Oracle Database case study-failed to log on to Oracle database-Oracle initialization parameter setting error causes common users to fail to grant sysdba permission to log on

Source: Internet
Author: User

1.1 symptom description authorized by common usersSysdbaFailed to log on to database with the permission. The system displays the following error message:
% Sqlplus<Username>/<password >@< connect_string>As sysdba

SQL*Plus: Release 11.1.0.7.0 - Production on Thu Nov 26 14:28:11 2009
Copyright (c) 1982, 2008, Oracle.  All rights reserved.
ERROR:
ORA-01017: invalid username/password; logon denied
However SysdbaIf you log on directly, the system prompts the following information:
% Sqlplus/as sysdba
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Nov 26 14:28:35 2009
Copyright (c) 1982, 2008, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, Data Mining and Real Application Testing options
1.2 The possible cause is that the Oracle initialization parameter "REMOTE_LOGIN_PASSWORDFILE" is set to "NONE", resulting in failure to grant SYSDBA permissions to common users. 1.3 locate the idea and check the value of "REMOTE_LOGIN_PASSWORDFILE.
SQL> show parameter password;
The system displays the following information:
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile            string      NONE
The query results show that the value of "REMOTE_LOGIN_PASSWORDFILE" is "NONE ". 1.4 procedure OracleLog on to the host node. To SysdbaThe user connects to the database.

% Sqlplus/as sysdba

Create a pfile on the host node using the spfile file.

SQL> create pfile = '/oracle/app/admin/ora11g/pfile/inittest. ora' from spfile;

After the creation is successful, the system prompts the following information:

File created.
Modify the parameters in the new pfile.
5.     .....
6.     *.remote_login_passwordfile='none'
.....

Change the value of "remote_login_passwordfile" to "exclusive ".

Shut down the database.

SQL> shutdown immediate

Start the database using the newly created pfile.

SQL> startup pfile = '/oracle/app/admin/ora11g/pfile/inittest. ora'

Create a spfile file using the pfile file.

SQL> create spfile from pfile;

Log out of the database.

SQL> quit

To SqlplusLog on to the database again.

% Sqlplus<Username>/<password >@< connect_string>As sysdba

Log on successfully. The system displays the following information:

SQL*Plus: Release 11.1.0.7.0 - Production on Thu Nov 26 14:28:35 2009 
Copyright (c) 1982, 2008, Oracle.  All rights reserved.  
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, Real Application Clusters, Data Mining and Real Application Testing options
Perform the same operations as the host node on the slave node. 1.5 references

The Oracle initialization parameter "REMOTE_LOGIN_PASSWORDFILE" is used to set the password verification method for the Oracle database.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.