Windows sqlplus/assysdba report the ultimate solution of ora-12560
Windows sqlplus/as sysdba report the ultimate solution of ora-12560
Windows, sqlplus/as sysdba often report ORA-12560: TNS: protocol adapter error, solve this error, there are multiple methods:
1. Verify that the ORACLE_HOME key and its key value in the windows registry are correct and valid.
For example, find the ORACLE_HOME key under HKEY_LOCAL_MACHINE \ SOFTWARE \ ORACLE \ KEY_OraDb10g_home1 and the corresponding key value is H: \ oracle \ product \ 10.2.0 \ db_1. The correct key value is F: \ oracle \ product \ 10.2.0 \ db_1
---> Note: In windows, do not set ORACLE_HOME environment variables. For more information, see my translated articles:
Http://blog.csdn.net/msdnchina/article/details/38010025
---> Note: the ORACLE_HOME and ORACLE_SID keys in the windows registry are equivalent to the environment variables such as ORACLE_HOME and ORACLE_SID defined in. profile in unix. This is my personal summary.
2. Make sure that the OracleServiceXXX service in windows is started.
For the relationship between OracleServiceXXX and Oracle instances, see my article:
Http://blog.csdn.net/msdnchina/article/details/38011055
3. cd to F: \ oracle \ product \ 10.2.0 \ db_1 \ bin under cmd, and then tap sqlplus/as sysdba
Note that it is not cd to F: \ oracle \ product \ 10.2.0 \ client_1 \ bin. That is to say, the cd to the server of the oracle database software is not the client of the cd to the oracle database software.
---> Note: In windows cmd, run a command. In windows, the command search sequence is as follows: First, check whether the command is in the current directory, next, go to the PATH to find the command. 4. In cmd, set ORACLE_SID = the sid of the database you want to access
5. cd to F: \ oracle \ product \ 10.2.0 \ db_1 \ bin under cmd, and then tap sqlplus/@ network service name as sysdba
Note that it is not cd to F: \ oracle \ product \ 10.2.0 \ client_1 \ bin. That is to say, the cd to the server of the oracle database software is not the client of the cd to the oracle database software.