ORA:12541 cannot connect. no listener at host localhost port 1521
How to resolve "Test failed: ORA-12541: Cannot connect. No listener at host localhost"
1. Write SQL query to get SID:
select * from global_name;
FREE
2. Qpen Services and check these three services running or not, if not start.
To open service use: windows icon+r type services.msc
a. OracleJobSchedulerFREE --- Must Running.
b. OracleOraDB23Home1TNSListener --- Must Running.
c. OracleServiceFREE --- Must Running.
3. D:\app\karra\product\23ai\dbhomeFree\NETWORK\ADMIN\/istener.ora
Check hostname and copy same host name and replace with localhost.
192.168.1.40
lsnrctl status
lsnrctl start
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = localh
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.opentext.net
)
app > usuario > product > 21c > homes > OraDB21Home1 > network > admin
listenes
sqlnet
sqlnet23112611PM4112.bak
tnsnames
<
---------------------------------------------
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\usuario\product\21c\dbhomeXE)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\usuario\product\21c\dbhomeXE\bin\oraclr.dll")
LISTENER =
(DESCRIPTION LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = localhost)(PORT =1521))
(ADDRESS =(PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
-------------------------------------
# tnsnames.ora Network Configuration File: C:\app\usuario\product\21c\homes\OraDB21Home1\NETWORK\ADMIN\tnsnames.ora
# Generated by Oracle configuration tools.
XE =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT=1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = XE)
I
)
LISTENER_XE =
(ADDRESS = (PROTOCOL = TCP) (HOST = localhost)(PORT = 1521))
Comments
Post a Comment