Need to use the SYS user today to handle the problem, but the error above ora-01031:insufficient privileges.
There are many ways to do this online, and this is the way to test your own steps.
1: First check whether the file Sqlnet.ora file is set correctly (the file address is your Oracle installed directory)
[HTML]View PlainCopy
- # Sqlnet.ora Network Configuration File:/app/oracle/product/10.2.0/network/admin/sqlnet.ora
- # Generated by Oracle configuration tools.
- NAMES. Directory_path= (TNSNames, Ezconnect, HOSTNAME)
- <span style="color: #FF0000;" >sqlnet. authentication_services= (All)
- </span>
2: If the above settings are correct (why the settings can refer to http://blog.csdn.net/huoyin/article/details/45544709)
Then use the connection tool such as SSH to access the Linux server here, note that if multiple instances exist, you need to specify
Log in to Oracle
[Java]View PlainCopy
- Su-oracle
Specifying instances
[Java]View PlainCopy
- Export oracle_sid=***
3: Need to check system configuration
Log in to Oracle
[Java]View PlainCopy
- Sqlplus/as SYSDBA
Inquire
[SQL]View PlainCopy
- Sql> Show parameter password
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- Remote_login_passwordfile string EXCLUSIVE
- Sql>
2: Check which users are
[SQL]View PlainCopy
- Sql> SELECT * from v$pwfile_users;
- USERNAME Sysdb SYSOP
- ------------------------------ ----- -----
- SYS true true
- Sql>
Because I've already manipulated it. Now the display is SYS, not set is empty
[SQL]View PlainCopy
- Sql> Grant SYSDBA to SYS;
- Grant SYSDBA to SYS
- *
- ERROR at line 1:
- ORA-01994: GRANT failed: password file missing or disabled
3: Add file now to exit Oracle user
[SQL]View PlainCopy
- Sql> exit
- Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-production
- With the partitioning, OLAP and Data Mining options
- [Email protected] ~]$
4: Add File
Execute Add encrypted build password file
[Java]View PlainCopy
- [Oracle@dd ~] $orapwd file=/app/oracle/product/10.2. 0/dbs/orapwprice.ora password=111111 entries=force=y
The file is a orapw+ instance because it is Linux. ora
Window is an instance of pwd+. Ora
5: Restart the service, log in with Sys
A summary of how to set ora-01031:insufficient privileges solution in Linux environment