ORA-28040: No matching authentication protocol : Oracle 12c Upgrade

后端 未结 8 1479
臣服心动
臣服心动 2020-12-11 07:11

We have migrated our Oracle database to 12c from 11g. We have a legacy application running in Java 1.5 and using ojdbc14.jar.

Our application is not able to create c

8条回答
  •  执笔经年
    2020-12-11 07:44

    The main problem is that the JDBC thin client of the 10g uses the SHA-1 authentication protocol, this protocol is not allowed in the 12c, so it gives the error.

    In my Oracle I could not find the sqlnet.ora file so I had to create it with the command:

    vi $ORACLE_HOME/network/admin/sqlnet.ora
    

    And I added the following:

    SQLNET.ALLOWED_LOGON_VERSION=10
    SQLNET.ALLOWED_LOGON_VERSION_CLIENT=10
    SQLNET.ALLOWED_LOGON_VERSION_SERVER=10
    SQLNET.ALLOWED_LOGON_VERSION=8
    SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8
    SQLNET.ALLOWED_LOGON_VERSION_SERVER=8
    SQLNET.AUTHENTICATION_SERVICES = (NONE)
    

    So I had to stop and start the listener:

    lsnrctl stop
    lsnrctl start
    

    Finally, I restart the database.

    This should only be a workaround

提交回复
热议问题