Windows sqlplus/assysdba report the ultimate solution of ora-12560

Source: Internet
Author: User

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.

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.