Windows sqlplus/as sysdba report ora-12560 the ultimate solution, sqlplusora-12560

Source: Internet
Author: User

Windows sqlplus/as sysdba report ora-12560 the ultimate solution, sqlplusora-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.



Oracle connection sqlplus connection problem: ORA-12560: TNS: protocol adapter error oracle services are also started

Possible causes:
1. Check that the listening process is not started.
2. Check for tnsinitora configuration errors
Check:
1. ping the IP address of the oracle server to check whether the connection is normal.
2 tnsping check whether the service is normal
3. Check the listener status lsnrctl stat and reload it if necessary.
 
Quick Fix for younger brother new to oracle and database ORA-12560 protocol adapter error in sys 3 databases, one named lmy01

Conn sys/lmy @ lmy01 as sysdba can be connected successfully, indicating that your instance is connected and the listener is also connected. If con/as sysdba cannot be connected, it only indicates one problem, you have not set operating system authentication.
Open $ ORACLE_HOME/network/admin/SQL .net
Check whether SQLNET. AUTHENTICATION_SERVICES = (ETS) has been set. If it is not added, you can log on as an operating system authentication.

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.