官方解釋sqlplus /nolog conn /as sysdba無密碼可登陸


CONN / AS SYSDBA give ORA-01031

In windows, If you have such error:

SQL> conn / as sysdba
ERROR:
ORA-01031: insufficient privileges

Check the sqlnet.ora first

SQLNET.AUTHENTICATION_SERVICES = (NTS)

This allows any privileged user defined in the NT user group (named ORA_<sid>_DBA or ORA_DBA) to login to database without providing a password.

To disable this, comment this line or change it to:

SQLNET.AUTHENTICATION_SERVICES = (NONE)

After solve this issue, open a new sqlplusw, you should able to see:

SQL> conn / as sysdba
Connected.
SQL>

Remarks: Following information can be found in the Application log with event viewer.

Event Type: Information
Event Source: Oracle.orcl
Event Category: None
Event ID: 34
Date: 8/8/2005
Time: 3:44:31 PM
User: N/A
Computer: AIX
Description:
The description for Event ID ( 34 ) in Source ( Oracle.orcl ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: ACTION : 'CONNECT' DATABASE USER: '/' PRIVILEGE : NONE CLIENT USER: donghua CLIENT TERMINAL: AIX STATUS: 1031 . 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM