Solutions to Oracle ORA-01031

Source: Internet
Author: User

A ORA-01031 solution appears when using sys users to log in as administrators

1. Start the database with a local system user and view the configuration parameters by name.


Show parameter Password

Check the exclusive parameter status. If not, modify the pfile or spfile parameter.


Alter system set remote_login_passwordfile = 'clusive'



2. query the Password File View

Select * from V $ pwfile_users


If no result set is returned, the password file is incorrect. reconfigure the password file and grant the sysdba permission to the user.


Use the command orapwd file = orapworcl Password = root entries = 10

Create a password file,

Grant sysdba to System

Grant DBA permissions to system users


Re-query, there should be sys and system users with sysdba Permissions



3 if select * from V $ pwfile_users can accurately return sys users, you can also log on to the local system using the password file, but you cannot remotely start the database using the sys account, reported a ORA-01031 error. It is very likely that there is a problem with the configuration of the listening file. Modify the listening file. (The following is a correct template)

Sid_list_listener =

(Sid_list =

(Sid_desc =

(Global_dbname = orcl)

(ORACLE_HOME =/u01/APP/Oracle)

(Sid_name = orcl)




Listener =

(Description_list =

(Description =

(Address = (Protocol = TCP) (host = (Port = 1521 ))



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: 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.