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 = 192.168.1.3) (Port = 1521 ))
)
)