I had this error:
ORA-28040: No matching authentication protocol (DBD ERROR: OCISessionBegin)

One possible solution is to add this line to sqlnet.ora file:
SQLNET.ALLOWED_LOGON_VERSION_SERVER = 8