不同作業系統上屏蔽oracle的作業系統認證方式

來源:互聯網
上載者:User

標籤:操作   network   cti   基於   install   tor   min   win   auth   

windows系統上>如果不想使用者通過作業系統驗證方式登入,可以修改 sqlnet.ora檔案,把 SQLNET.AUTHENTICATION_SERVICES=NTS 前面加#注釋掉就可以了。


linux系統上>如果不想使用者通過作業系統驗證方式登入,可以建立一個 sqlnet.ora 檔案,加上
SQLNET.AUTHENTICATION_SERVICES設定為NONE或者NTS,都是屏蔽作業系統認證,基於oracle密碼驗證的。

linux下示範:

[[email protected] admin]$ pwd
/home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin
[[email protected] admin]$ touch sqlnet.ora
[[email protected] admin]$ ll
total 24
-rw-r--r--. 1 oracle oinstall 72 Nov 22 16:58 1
-rw-r--r--. 1 oracle oinstall 315 Oct 9 17:50 listener.ora
drwxr-xr-x. 2 oracle oinstall 4096 Nov 22 16:46 samples
-rw-r--r--. 1 oracle oinstall 187 May 8 2007 shrept.lst
-rw-r--r--. 1 oracle oinstall 72 Nov 22 17:11 sqlnet.ora
-rw-r-----. 1 oracle oinstall 330 Oct 9 18:02 tnsnames.ora
[[email protected] admin]$ cat sqlnet.ora

SQLNET.AUTHENTICATION_SERVICES= (NTS)
NAMES.DIRECTORY_PATH= (TNSNAMES)
[[email protected] admin]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Sat Nov 22 17:14:08 2014

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

ERROR:
ORA-01031: insufficient privileges

ok,成功。轉載請標明出處。

不同作業系統上屏蔽oracle的作業系統認證方式

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.