Oracle prompt TNS: No listener Solution

Source: Internet
Author: User

If oracle prompts ERROR-ORA-12541: TNS: No listener, follow these steps because your assigned address is incorrect.
 
View the \ oracle \ product \ 10.2.0 \ db_1 \ network \ admin \ tnsnames. ora file, open it in notepad, and display the oracle value:
 
 
 
ORACLE =
 
(DESCRIPTION =
 
(ADDRESS = (PROTOCOL = TCP) (HOST = automatically assigned ip address) (PORT = 1521 ))
 
(CONNECT_DATA =
 
(SERVER = DEDICATED)
 
(SERVICE_NAME = oracle)
 
)
 
)
 
 
 
 
 
If you enter localhost or 127.0.0.1 as the host name, no listening program is displayed. Because the automatically assigned IP address changes, change the host in the oracle value to the computer name of the Local Machine and save the modified tnsnames. ora. Create a new database again and solve the error.
 
 
 
 
 
# Tnsnames. ora Network Configuration
 
File: G: \ oracle \ product \ 10.2.0 \ db_1 \ network \ admin \ tnsnames. ora
 
# Generated by Oracle configuration tools.
 
 
 
 
 
ORACLE =
 
(DESCRIPTION =
 
(ADDRESS = (PROTOCOL = TCP) (HOST = computer name) (PORT = 1521 ))
 
(CONNECT_DATA =
 
(SERVER = DEDICATED)
 
(SERVICE_NAME = oracle)
 
)
 
)
 
 
 
Right-click the computer name and choose my computer.

From column qb371

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.