Solutions to ora-12154 problems connecting to Oracle virtual machines

Source: Internet
Author: User

ConnectionOracle Virtual MachineAppearsOra-12154The knowledge about the solution to the problem is what we will introduce in this article. Speaking of ora-12154 problems, there are a lot of solutions online, the reasons are basically unified: tns or listener Configuration is incorrect. Generally, incorrect listener Configuration rarely occurs. Most people follow the default configuration to "Next", which is basically the service name of orcl. If you can connect to orcl locally, other machines cannot connect to listener.

Most of them are incorrect tns configurations. I encountered a phenomenon: A 2003 virtual machine was created on the machine, and oracle10g was installed on the virtual machine. The default configuration is as follows. The local machine only has an oracle10g client. When I used to connect the local machine to the orcl Service database in the local area network (the same as the local database in the local area network), there is no problem, but the orcl service in the connection virtual machine does not connect, always reports ora-12154 error. In the virtual machine, plsql can connect to the Virtual Machine oracle, but cannot connect to the oracle in the local area network.

Generally, you can solve the problem as follows:

Virtual Machine listener:

 
 
  1. SID_LIST_LISTENER =
  2. (SID_LIST =
  3. (SID_DESC =
  4. (GLOBAL_DBNAME = test) Custom Service name
  5. (ORACLE_HOME = E: \ oracle \ product \ 10.2.0 \ db_1) db_home
  6. (SID_NAME = test)
  7.  
  8. )
  9. (SID_DESC =
  10. (PROGRAM = extproc)
  11. (SID_NAME = PLSExtProc)
  12. (ORACLE_HOME = E: \ oracle \ product \ 10.2.0 \ db_1) # This Service ensures that you can use external processes, such as C Programs.
  13. )
  14. )

Local tns:

 
 
  1. ORCL_XNJ =
  2. (DESCRIPTION =
  3. (ADDRESS_LIST =
  4. (ADDRESS = (PROTOCOL = TCP) (HOST = 182.12.15.232) (PORT = 1521 ))
  5. )
  6. (CONNECT_DATA =
  7. (SERVICE_NAME = test) corresponds to the Custom Service name
  8. )
  9. )

Connect again to solve the problem!

Summary:Remember, you must start from the simplest reason. Don't see any changes to the number of processes and registries on the Internet as soon as you go up. Think about why the local machine can connect to the network, locate the problem.

About the connection Oracle Virtual Machine Appears ora-12154 problem related knowledge to introduce here, I hope this introduction can be for you to gain something!

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.