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