Oracle 11 gクライアント接続Oracle 12 cサーバエラーORA-28040

9224 ワード

問題の説明:
oracleサーバ側バージョン:oracle 12.2.0.1.0 oracleクライアントバージョン:oracle 11.2.0.1.0
クライアントでoracle 12 cにアクセスすると、次のエラーが表示されます.
sqlplus scott/scott@192.168.100.89/ocp12c
SQL*Plus: Release 11.2.0.1.0 Production on     3  20 12:10:11 2019
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
ERROR:
ORA-28040: No matching authentication protocol

もんだいぶんせき
エラーの詳細を表示:
[oracle@localhost ~]$ oerr ora 28040
28040, 0000, "No matching authentication protocol"
// *Cause:  There was no acceptable authentication protocol for
//          either client or server.
// *Action: The administrator should set the values of the
//          SQLNET.ALLOWED_LOGON_VERSION_SERVER and
//          SQLNET.ALLOWED_LOGON_VERSION_CLIENT parameters, on both the
//          client and on the server, to values that match the minimum
//          version software supported in the system.
//          This error is also raised when the client is authenticating to
//          a user account which was created without a verifier suitable for
//          the client software version. In this situation, that account's
//          password must be reset, in order for the required verifier to
//          be generated and allow authentication to proceed successfully.

サーバ側でのテーブルの表示:dba_users,PASSWORD_VERSIONS列は:11 G 12 C
SQL> select username, account_status,password_versions from dba_users where account_status='OPEN';

USERNAME   ACCOUNT_STATUS                   PASSWORD_VERSIONS
---------- -------------------------------- -----------------
SYS        OPEN                             11G 12C
SYSTEM     OPEN                             11G 12C
SCOTT      OPEN                             11G 12C

サーバ側:sqlnet.を変更する.ora構成:(構成変更後、oracleサーバを再起動する必要はありません)
[oracle@localhost ~]$ cd $ORACLE_HOME/network/admin
[oracle@localhost admin]$ cat sqlnet.ora
# sqlnet.ora Network Configuration File: /u01/app/oracle/product/12.2.0/dbhome_1/network/admin/sqlnet.ora
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (EZCONNECT)
#       
SQLNET.ALLOWED_LOGON_VERSION_SERVER=11
SQLNET.ALLOWED_LOGON_VERSION_CLIENT=11

クライアント:接続を再試行し、ユーザー名のパスワードを求めるエラー:
sqlplus scott/scott@192.168.100.89/ocp12c
SQL*Plus: Release 11.2.0.1.0 Production on     3  20 12:20:32 2019
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied

サーバ側sqlnetを変更する.ora後、sqlplusに再ログインし、ユーザーパスワードを変更する必要があります.そうしないと、ユーザーパスワードを変更した後も、タグのパスワードバージョンは11 G 12 Cです.sqlplusに再ログインし、scottユーザーパスワードを変更し、PASWORD_を表示します.VERSIONS、10 G増えた
SQL> alter user scott identified by scott;
User altered.
SQL> select username, account_status,password_versions from dba_users where account_status='OPEN';

USERNAME             ACCOUNT_STATUS                   PASSWORD_VERSIONS
-------------------- -------------------------------- -----------------
SYS                  OPEN                             11G 12C
SYSTEM               OPEN                             11G 12C
SCOTT                OPEN                             10G 11G 12C

クライアント:oracle 12 cに再度ログインしようとしましたが、成功しました:
sqlplus scott/scott@192.168.100.89/ocp12c
SQL*Plus: Release 11.2.0.1.0 Production on     3  20 12:26:52 2019
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
   :
Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production
SQL>

小結
以上、oracle 11 gクライアントはoracle 12 cサーバに接続する、サーバ側でsqlnetを構成する必要がある.ora、ユーザーパスワードを再変更します.
リファレンス
https://community.oracle.com/message/14446765-終了-