Oracle 禁止作業系統認證登入

來源:互聯網
上載者:User

1.以作業系統認證方式登入資料庫的方法

1)最基本的方法就是使用“sqlplus / as sysdba”登入資料庫

sqlplus / as sysdba

斜杠“/”左面是使用者名稱,右面是密碼,這裡表示不給出使用者名稱和密碼一樣可以登入到資料庫系統中


2)使用正確的使用者名稱和密碼登陸資料庫

sqlplus sys/password as sysdba

顯然,登入完全沒有問題。


3)使用錯誤的使用者名稱和密碼登陸資料庫

sqlplus wind/wind 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

請輸入使用者名稱:

更多Oracle相關資訊見Oracle 專題頁面 http://www.bkjia.com/topicnews.aspx?tid=12

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.