温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Oracle 禁止操作系统认证登录

发布时间:2020-07-15 10:26:22 来源:网络 阅读:457 作者:攻城狮一枚 栏目:关系型数据库

以操作系统认证方式登录数据库的方法

1.最基本的方法就是使用“sqlplus / as sysdba”登录数据库
sqlplus / as sysdba
斜杠“/”左面是用户名,右面是密码,这里表示不给出用户名和密码一样可以登录到数据库系统中

2.禁用操作系统认证方式登录数据库
编辑Oracle_HOME/network/admin/sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES=(NONE)


3.验证是否生效
1)必须使用正确的用户名和密码才能登陆到系统中
C:\>sqlplus sys/password as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on 星期三 2月 16 13:41:14 2011

Copyright (c) 1982, 2010, Oracle.  All rights reserved.


连接到:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

2)使用正确的用户名和错误的密码进行登录测试
C:\Users\Administrator>sqlplus sys/wind as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on 星期三 2月 16 13:40:35 2011
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
ERROR:
ORA-01031: insufficient privileges


请输入用户名:


3)使用“sqlplus / as sysdba”登录方式进行验证
C:\>sqlplus / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on 星期三 2月 16 13:42:29 2011
Copyright (c) 1982, 2010, Oracle.  All rights reserved.
ERROR:
ORA-01031: insufficient privileges

请输入用户名:

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI