理解SQLNET.AUTHENTICATION_SERVICES参数
生活随笔
收集整理的這篇文章主要介紹了
理解SQLNET.AUTHENTICATION_SERVICES参数
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
理解SQLNET.AUTHENTICATION_SERVICES參數
1、官方說明: SQLNET.AUTHENTICATION_SERVICES Purpose Use the parameter SQLNET.AUTHENTICATION_SERVICES to enable one or more authentication services. If authentication has been installed, it is recommended that this parameter be set to either none or to one of the authentication methods. Default None Values Authentication Methods Available with Oracle Net Services: ·?????????none for no authentication methods. A valid username and password can be used to access the database. ·?????????all for all authentication methods ·?????????nts for?Windows NT native authentication 2、測試: 可以通過對SQLNET.AUTHENTICATION_SERVICES值進行修改查看其影響。 l?WINDOWNS: A.?無sqlnet.ora文件: ? E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN>dir sqlnet.ora ?驅動器?E?中的卷沒有標簽。 ?卷的序列號是?1CF8-89BB E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN?的目錄 找不到文件 E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN> ??????????????????????????? ?E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN>sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.1.0 - Production on?星期二?5月?8 20:45:35 2012 Copyright (c) 1982, 2005, Oracle.?All rights reserved. ERROR: ORA-01031:?權限不足 請輸入用戶名: B.????SQLNET.AUTHENTICATION_SERVICES=(NONE) ? E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN>dir sqlnet.ora ?驅動器?E?中的卷沒有標簽。 ?卷的序列號是?1CF8-89BB ?E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN?的目錄 2012-05-08?20:48?????????????? 266 sqlnet.ora ?????????????? 1?個文件??????????? 266?字節 ?????????????? 0?個目錄?1,969,827,840?可用字節 E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN>type sqlnet.ora # This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be able to connect to the database on NT. SQLNET.AUTHENTICATION_SERVICES = (NONE) E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN>sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.1.0 - Production on?星期二?5月?8 20:48:53 2012 Copyright (c) 1982, 2005, Oracle.?All rights reserved. ERROR: ORA-01031:?權限不足 請輸入用戶名: C.????SQLNET.AUTHENTICATION_SERVICES=(ALL) ? E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN>type sqlnet.ora # This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be able to connect to the database on NT. SQLNET.AUTHENTICATION_SERVICES = (ALL) E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN>sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.1.0 - Production on?星期二?5月?8 20:51:28 2012 Copyright (c) 1982, 2005, Oracle.?All rights reserved. ERROR: ORA-12641:?驗證服務無法初始化 請輸入用戶名: D.????SQLNET.AUTHENTICATION_SERVICES=(NTS) ? E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN>type sqlnet.ora # This file is actually generated by netca. But if customers choose to # install "Software Only", this file wont exist and without the native # authentication, they will not be able to connect to the database on NT. SQLNET.AUTHENTICATION_SERVICES = (NTS) E:\oracle\product\10.2.0\db_1\NETWORK\ADMIN>sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.1.0 - Production on?星期二?5月?8 20:53:49 2012 Copyright (c) 1982, 2005, Oracle.?All rights reserved. 連接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining options SQL> l?LINUX A.?無sqlnet.ora文件: ? bash-3.00$?ls -l sqlnet.ora sqlnet.ora:?無此文件或目錄 bash-3.00$?sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.1.0 - Production on Tue May 8 21:11:04 2012 Copyright (c) 1982, 2005, Oracle.?All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production With the Partitioning, OLAP and Data Mining options SQL> B.????SQLNET.AUTHENTICATION_SERVICES=(NONE) ? bash-3.00$?cat sqlnet.ora SQLNET.AUTHENTICATION_SERVICES = (NONE) bash-3.00$?sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.1.0 - Production on Tue May 8 21:13:00 2012 Copyright (c) 1982, 2005, Oracle.?All rights reserved. ERROR: ORA-01031: insufficient privileges Enter user-name: C.????SQLNET.AUTHENTICATION_SERVICES=(ALL) ? bash-3.00$?cat sqlnet.ora SQLNET.AUTHENTICATION_SERVICES = (ALL) bash-3.00$?sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.1.0 - Production on Tue May 8 21:13:59 2012 Copyright (c) 1982, 2005, Oracle.?All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production With the Partitioning, OLAP and Data Mining options SQL> D.????SQLNET.AUTHENTICATION_SERVICES=(NTS) ? bash-3.00$?cat sqlnet.ora SQLNET.AUTHENTICATION_SERVICES = (NTS) bash-3.00$?sqlplus "/ as sysdba" SQL*Plus: Release 10.2.0.1.0 - Production on Tue May 8 21:15:05 2012 Copyright (c) 1982, 2005, Oracle.?All rights reserved. ERROR: ORA-01031: insufficient privileges Enter user-name:總結
以上是生活随笔為你收集整理的理解SQLNET.AUTHENTICATION_SERVICES参数的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: purge table table_na
- 下一篇: RMAN CONFIGURE