Oracle Solution for ORA-12560

Source: Internet
Author: User
Tags command line

ORA-12560 resolution Method

Today, when performing Oracle data imp/exp, we suddenly find that the exp input scott/tiger is prompted after CMD:

EXP-00056: ORACLE Error 12560 encountered

ORA-12560:TNS: Protocol Adapter error

EXP-00000: Export termination failed

I began to think that I had the wrong username, after all, I am not familiar with Oracle here. Enter username and password again, still error.

Just think about it----listeners and database instances have been started and are using their own batch scripts. Under the Linxu I can also imp/exp, Linxu under the concept of not register, and the existence of environmental variables this concept. After you exclude the registry, the difference is here.

So I google ...

As I expected, the key value under Hkey_local_machine/software/oracle/key_oradb10g_home1 in the registry Oracle_sid the same as my database instance name is ORC. You can now exclude the registry. Then set the system environment variable ORACLE_SID=ORC and then go to cmd under the re-exp without prompting any errors can be exported.

And then do experimental verification is the reason for environmental variables, I set ORACLE_SID=ORCS, then exp again appear above the ORA-12560 error, and then set back to Oracle_sid=orc, the problem is solved again.

The relationship between environment variables and Oracle in Linxu was previously seen in a book in Eygle. Under Windows I personally think that the association with the Registry will be more, for me this more accustomed to command line of people in Windows and environment variables also have some connection.

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.