溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Oracle 禁止操作系統(tǒng)認證登錄

發(fā)布時間:2020-07-15 10:26:22 來源:網(wǎng)絡 閱讀:473 作者:攻城獅一枚 欄目:關系型數(shù)據(jù)庫

以操作系統(tǒng)認證方式登錄數(shù)據(jù)庫的方法

1.最基本的方法就是使用“sqlplus / as sysdba”登錄數(shù)據(jù)庫
sqlplus / as sysdba
斜杠“/”左面是用戶名,右面是密碼,這里表示不給出用戶名和密碼一樣可以登錄到數(shù)據(jù)庫系統(tǒng)中

2.禁用操作系統(tǒng)認證方式登錄數(shù)據(jù)庫
編輯Oracle_HOME/network/admin/sqlnet.ora
SQLNET.AUTHENTICATION_SERVICES=(NONE)


3.驗證是否生效
1)必須使用正確的用戶名和密碼才能登陸到系統(tǒng)中
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問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI