Thanks. But problem is not with the hostname. The oracle listener status is UP.
The issue is the oracle instance can not be connected through server IP. It works fine with the hostname or localhost. See the tnsping command output in both the cases:
[oracle@ctplsrv093 admin]$ tnsping localhost
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 09-NOV-2012 22:35:54
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
Used EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
OK (0 msec)
[oracle@ctplsrv093 admin]$ tnsping 192.168.102.200
TNS Ping Utility for Linux: Version 11.2.0.1.0 - Production on 09-NOV-2012 22:36:06
Copyright (c) 1997, 2009, Oracle. All rights reserved.
Used parameter files:
/u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
Used EZCONNECT adapter to resolve the alias
Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=))(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.102.200)(PORT=1521)))
TNS-12541: TNS:no listenerCheck the execution of nmap command in both cases. It is not showing oracle instance in second case.
[oracle@ctplsrv093 admin]$ nmap localhost
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2012-11-10 00:03 IST
Interesting ports on ctplsrv093 (127.0.0.1):
Not shown: 1667 closed ports
PORT STATE SERVICE
25/tcp open smtp
80/tcp open http
111/tcp open rpcbind
443/tcp open https
631/tcp open ipp
925/tcp open unknown
1158/tcp open lsnr
1521/tcp open oracle
3306/tcp open mysql
5520/tcp open sdlog
5802/tcp open vnc-http-2
5902/tcp open vnc-2
6002/tcp open X11:2
Nmap finished: 1 IP address (1 host up) scanned in 0.163 seconds
[oracle@ctplsrv093 admin]$ nmap 192.168.102.200
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2012-11-10 00:03 IST
Interesting ports on 192.168.102.200:
Not shown: 1670 closed ports
PORT STATE SERVICE
80/tcp open http
111/tcp open rpcbind
443/tcp open https
925/tcp open unknown
1158/tcp open lsnr
3306/tcp open mysql
5520/tcp open sdlog
5802/tcp open vnc-http-2
5902/tcp open vnc-2
6002/tcp open X11:2
Nmap finished: 1 IP address (1 host up) scanned in 0.142 seconds
Check the telenet output below and see the difference:
[oracle@ctplsrv093 admin]$ telnet localhost 1521
Trying 127.0.0.1...
Connected to ctplsrv093.cignex.com (127.0.0.1).
Escape character is '^]'.
Connection closed by foreign host.
[oracle@ctplsrv093 admin]$ telnet 192.168.102.200 1521
Trying 192.168.102.200...
telnet: connect to address 192.168.102.200: Connection refused
telnet: Unable to connect to remote host: Connection refusedThat is the problem. listener service is working fine but DB instance can not be connected when accessed through IP address.