Resolving oracle database connection exceptions caused by IP changes ORA-12541: TNS: no listeners"

Source: Internet
Author: User

Solve oracle database connection exceptions caused by IP changes "ORA-12541: TNS: no listening program" before the local machine installed oracle, several databases are commonly used, no exception. But today I use PLSQL to connect to the database, and found that the ORA-12541: TNS: No listener program ". To save content resources, oracle-related services are stopped when the database is not used. So we started oracle-related services. After starting the oracle service, try again and still cannot connect. Strange things. Simply restart the machine again and still cannot connect. Suddenly, in order to expand the IP address of the company, the IP addresses of all employees have changed recently. This IP address may change. Then set the relevant IP address. Finally. I changed "tnsnames" under the "product \ 11.2.0 \ dbhome_1 \ NETWORK \ ADMIN" directory. ora "and" listener. ora "configuration in two files," tnsnames. not to mention the configuration of ora, you should be familiar with oracle shoes, "listener. the configuration of ora is easy to understand, because the IP address is changed, you only need to modify the following Configuration:

LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521) (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.0.83) (PORT = 1521 ))))

 

Among them, "HOST" is the focus. After modification according to your own situation, restart oracle and related services to solve the problem.

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.