alter system set remote_login_passwordfile='exclusive' scope=spfile sid='*';
2、SQLNET.AUTHENTICATION_SERVICES参数详解
2.1、值为none时
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#本地验证方式失效 [oracle@dax-mysql-slave admin]$ sqlplus / as sysdba ERROR: ORA-01017: invalid username/password; logon denied #使用用户名密码方式登录正常: [oracle@dax-mysql-slave admin]$ sqlplus sys/oracle as sysdba 22:51:21 SYS@ boston> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
[oracle@dax-mysql-slave admin]$ sqlplus test/oracle@boston 22:52:00 TEST@ boston> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@dax-mysql-slave admin]$ sqlplus test/oracle@192.168.168.177:1521/boston.us.oracle.com 22:53:02 TEST@ 192.168.168.177:1521/boston.us.oracle.com> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options
2.2、值为all时
1 2 3 4 5 6 7 8 9 10 11 12 13 14
网络服务名方式和service_name方式失效 [oracle@dax-mysql-slave admin]$ sqlplus / as sysdba 22:54:21 SYS@ boston>
[oracle@dax-mysql-slave admin]$ sqlplus sys/oracle as sysdba 22:54:45 SYS@ boston>
[oracle@dax-mysql-slave admin]$ sqlplus test/oracle@boston ERROR: ORA-12641: Authentication service failed to initialize
[oracle@dax-mysql-slave admin]$ sqlplus test/oracle@192.168.168.177:1521/boston.us.oracle.com ERROR: ORA-12641: Authentication service failed to initialize
USERNAME GRANTED_ROLE ADM DEF OS_ ------------------------------ ------------------------------ --- --- --- TEST CONNECT NO YES NO TEST DBA NO YES NO TEST RESOURCE NO YES NO Elapsed: 00:00:00.02