ORA-12170: TNS:Connect timeout occurred
Hi All,
(sever test1 ,db orcl , ipadress 192.168.180.109 ,hostname -test1.global.ad ) )
I am facing a issue as follows.
i have database 10.2.0.1.0 on openSUSE i was able to connect to database on server using TOAD using DIRECT option(provoiding ip address ,pot , service
name).but from last 1 day i am not able to connect to db using TOAD from my machine even after editing tnsnames.ora with correct values.
but i can connect to db server using services name/connect string from db server itself when DB is up and running.
but when i connect using toad getting error as follows.
ERROR:
ORA-12170: TNS:Connect timeout occurred
Please suggest your solution.Thanks
i have listener.ora entry as follows and currenlty using LISTENER1
-----------------------------------------------------------------------------------------------
oracle@test1:/opt/app/oracle/product/10.2.0/network/admin> cat listener.ora
# listener.ora Network Configuration File: /opt/app/oracle/product/10.2.0/network/admin/listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /opt/app/oracle/product/10.2.0)
(PROGRAM = extproc)
( SID_NAME = ORCL)
)
(SID_DESC =
(ORACLE_HOME = /opt/app/oracle/product/10.2.0)
( SID_NAME = ORCL)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
(ADDRESS = (PROTOCOL = TCP)(HOST = test1.global.ad)(PORT = 1522))
)
)
LISTENER1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.180.109)(PORT = 1522))
)
)
SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER1=OFF
-------------------------------------------------------------------------------------------------------------
(listener status)
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC2)))
STATUS of the LISTENER
------------------------
Alias LISTENER1
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 24-AUG-2011 16:56:21
Uptime 0 days 16 hr. 33 min. 27 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /opt/app/oracle/product/10.2.0/network/admin/listener.ora
Listener Log File /opt/app/oracle/product/10.2.0/network/log/listener1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC2)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.180.109)(PORT=1522)))
Services Summary...
Service "ORCL" has 2 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
Instance "ORCL", status READY, has 1 handler(s) for this service...
Service "ORCLXDB" has 1 instance(s).
Instance "ORCL", status READY, has 1 handler(s) for this service...
Service "ORCL_XPT" has 1 instance(s).
Instance "ORCL", status READY, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
--------------------------------------------------------
(listener services)
LSNRCTL> services
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC2)))
Services Summary...
Service "ORCL" has 2 instance(s).
Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:1 refused:0
LOCAL SERVER
Instance "ORCL", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2630 refused:0 state:ready
LOCAL SERVER
Service "ORCLXDB" has 1 instance(s).
Instance "ORCL", status READY, has 1 handler(s) for this service...
Handler(s):
"D000" established:0 refused:0 current:0 max:1022 state:ready
DISPATCHER <machine: test1, pid: 30300>
(ADDRESS=(PROTOCOL=tcp)(HOST=test1.global.ad)(PORT=30271))
Service "ORCL_XPT" has 1 instance(s).
Instance "ORCL", status READY, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:2630 refused:0 state:ready
LOCAL SERVER
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Handler(s):
"DEDICATED" established:0 refused:0
LOCAL SERVER
The command completed successfully
--------------------------------------------------------------
(Tnsnames.ora entry as follows.)
ORCL =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = test1.global.ad)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl)
)
)
LISTENER_ORCL =
(ADDRESS = (PROTOCOL = TCP)(HOST = test1.global.ad)(PORT = 1522))
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
)
(CONNECT_DATA =
(SID = PLSExtProc)
(PRESENTATION = RO)
)
)
---------------------------------------------------------------------
tnsping work from db server itself as follows.
oracle@test1:/opt/app/oracle/product/10.2.0/network/admin> tnsping orcl
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 25-AUG-2011 09:39:51
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/opt/app/oracle/product/10.2.0/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.180.109)(PORT = 1522)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl)))
OK (0 msec)
oracle@test1:/opt/app/oracle/product/10.2.0/network/admin>
----------------------------------------------------------