禁用操作系统认证

---整理以前的学习笔记---

禁用操作系统认证

[oracle@mylinux admin]$ ll
total 44
-rw-r--r-- 1 oracle oinstall  279 Apr  5 20:12 listener1204058PM1243.bak
-rw-r--r-- 1 oracle oinstall  752 Apr 10 22:29 listener.ora
drwxr-xr-x 2 oracle oinstall 4096 Mar 13 05:32 samples
-rw-r--r-- 1 oracle oinstall  187 May  9  2007 shrept.lst
-rw-r--r-- 1 oracle oinstall  139 Apr 10 22:29 sqlnet.ora
drwxr-xr-x 2 oracle oinstall 4096 Apr  8 20:24 temp
-rw-r--r-- 1 oracle oinstall  298 Apr  5 20:12 tnsnames1204058PM1243.bak
-rw-r----- 1 oracle oinstall  716 Apr 10 22:31 tnsnames.ora
[oracle@mylinux admin]$ vi sqlnet.ora
在sqlnet.ora中添加以下
SQLNET.AUTHENTICATION_SERVICES=(NONE)

[oracle@mylinux admin]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Thu May 17 20:58:07 2012
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
SQL> conn /as sysdba
ERROR:
ORA-01031: insufficient privileges

SQL> conn sys/oracle as sysdba
ERROR:
ORA-01017: invalid username/password; logon denied
--用户名和密码正确的,也登录不了

把sqlnet.ora中的SQLNET.AUTHENTICATION_SERVICES=(NONE)先注释掉
SQL> conn /as sysdba
Connected.
SQL> show parameter remote_login_passwordfile;
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile            string      NONE
--刚才用户名和密码正确的,也登录不了,是因为禁用了口令文件的验证(remote_login_passwordfile为none)

SQL> alter system set remote_login_passwordfile=exclusive scope=spfile;
System altered.
重启实例

再把sqlnet.ora改成SQLNET.AUTHENTICATION_SERVICES=(NONE)
[oracle@mylinux admin]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.1.0 Production on Thu May 17 21:02:53 2012
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
SQL> conn /as sysdba
ERROR:
ORA-01031: insufficient privileges

SQL> conn sys/oracle as sysdba
Connected.

综上:
sqlnet.ora中的SQLNET.AUTHENTICATION_SERVICES=(NONE)是用来禁用操作系统认证的
另实验后,发现操作系统认证禁用后,用外部身份验证中的操作系统身份验证即有前缀的ops$这些用户也不能进行验证了

另外:remote_login_passwordfile这个参数如果设置为none,那么无论是本地的还是远端的,都不能通过口令文件验证了

参考资料:http://database.51cto.com/art/201106/271038.htm

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26524307/viewspace-777349/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/26524307/viewspace-777349/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值