aravindgopaluni
asked on
Linux: TNS Listener not starting
Hi,
Installed Oracle XE in RH 5.6 x64 using 'oracle-xe-11.2.0-1.0.x86_ 64.rpm.zip '.
After installation, I was able to connect to db using local sqlplus.
However, when tried to establish a connection from a remote host, connection failed.
Further looking into the oracle installed server, I found that LISTENER is not running and 1521 port is not listening.
Tried to start the listener using 'lsnrctl start' command, below is the output:
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 12-JUL-2012 20:09:30
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11 .2.0/xe/bi n/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.2.0 - Production
System parameter file is /u01/app/oracle/product/11 .2.0/xe/ne twork/admi n/listener .ora
Log messages written to /u01/app/oracle/product/11 .2.0/xe/lo g/diag/tns lsnr/gopar 01-VM47438 /listener/ alert/log. xml
Listening on: (DESCRIPTION=(ADDRESS=(PRO TOCOL=ipc) (KEY=EXTPR OC_FOR_XE) ))
Listening on: (DESCRIPTION=(ADDRESS=(PRO TOCOL=tcp) (HOST=gopa r01-VM4743 8.ca.com)( PORT=1521) ))
Connecting to (DESCRIPTION=(ADDRESS=(PRO TOCOL=IPC) (KEY=EXTPR OC_FOR_XE) ))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 12-JUL-2012 20:09:31
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /u01/app/oracle/product/11 .2.0/xe/ne twork/admi n/listener .ora
Listener Log File /u01/app/oracle/product/11 .2.0/xe/lo g/diag/tns lsnr/gopar 01-VM47438 /listener/ alert/log. xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PRO TOCOL=ipc) (KEY=EXTPR OC_FOR_XE) ))
(DESCRIPTION=(ADDRESS=(PRO TOCOL=tcp) (HOST=gopa r01-VM4743 8.ca.com)( PORT=1521) ))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
However, listener is not running. Please find below the listener.ora file:
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11 .2.0/xe)
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = gopar01-VM47438)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (XE)
Appreciate your help in this regard. I want to start the listener service and use oracle from a remote server.
Regards,
Aravind G
Installed Oracle XE in RH 5.6 x64 using 'oracle-xe-11.2.0-1.0.x86_
After installation, I was able to connect to db using local sqlplus.
However, when tried to establish a connection from a remote host, connection failed.
Further looking into the oracle installed server, I found that LISTENER is not running and 1521 port is not listening.
Tried to start the listener using 'lsnrctl start' command, below is the output:
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 12-JUL-2012 20:09:30
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11
TNSLSNR for Linux: Version 11.2.0.2.0 - Production
System parameter file is /u01/app/oracle/product/11
Log messages written to /u01/app/oracle/product/11
Listening on: (DESCRIPTION=(ADDRESS=(PRO
Listening on: (DESCRIPTION=(ADDRESS=(PRO
Connecting to (DESCRIPTION=(ADDRESS=(PRO
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 12-JUL-2012 20:09:31
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /u01/app/oracle/product/11
Listener Log File /u01/app/oracle/product/11
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PRO
(DESCRIPTION=(ADDRESS=(PRO
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
However, listener is not running. Please find below the listener.ora file:
# listener.ora Network Configuration File:
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/11
(PROGRAM = extproc)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
(ADDRESS = (PROTOCOL = TCP)(HOST = gopar01-VM47438)(PORT = 1521))
)
)
DEFAULT_SERVICE_LISTENER = (XE)
Appreciate your help in this regard. I want to start the listener service and use oracle from a remote server.
Regards,
Aravind G
ASKER
Hi,
Thanks for your inputs. However, I am seeing the below error with lsnctl status after executing 'alter system register' in SQLPLUS.
-------------------------- ---------- -------
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 12-JUL-2012 20:49:26
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PRO TOCOL=IPC) (KEY=EXTPR OC_FOR_XE) ))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PRO TOCOL=TCP) (HOST=gopa r01-VM4743 8)(PORT=15 21)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
-------------------------- --------
Please advise.
Regards,
Aravind G
Thanks for your inputs. However, I am seeing the below error with lsnctl status after executing 'alter system register' in SQLPLUS.
--------------------------
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 12-JUL-2012 20:49:26
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PRO
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PRO
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
--------------------------
Please advise.
Regards,
Aravind G
Ok, now the listener isn't started.
What happens with a lsnrctl start?
The the register of XE.
What happens with a lsnrctl start?
The the register of XE.
ASKER
Hi,
Lsnectl start gives the same message as in my first post :(
Lsnectl start gives the same message as in my first post :(
Hi,
Could you move listener.ora file:
As oracle user:
Since V10.1, no listener.ora is required to start the listener; if you are willing to accept standard default values (like port=1521).
Best regards.
Vincent.
Could you move listener.ora file:
As oracle user:
lsnrctl stop
mv /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora.old
lsnrctl start
Since V10.1, no listener.ora is required to start the listener; if you are willing to accept standard default values (like port=1521).
Best regards.
Vincent.
ASKER
Hi Vincent,
Thanks for your inputs. I renamed the listener.ora file and started listener, still getting the same error
Regards,
Aravind G
Thanks for your inputs. I renamed the listener.ora file and started listener, still getting the same error
bash$lsnrctl stop
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
bash$mv listener.ora listener.ora.old
bash$lsnrctl start
Starting /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Log messages written to /u01/app/oracle/product/11.2.0/xe/log/diag/tnslsnr/gopar01-VM47438/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gopar01-VM47438.ca.com)(PORT=1521)))
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 13-JUL-2012 08:48:56
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Log File /u01/app/oracle/product/11.2.0/xe/log/diag/tnslsnr/gopar01-VM47438/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=gopar01-VM47438.ca.com)(PORT=1521)))
The listener supports no services
The command completed successfully
bash$ lsnrctl status
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Regards,
Aravind G
Hi, can you post content of /etc/hosts ? and $ORACLE_HOME/network/admin /sqlnet.or a if exist ?
Best regards.
Vincent.
Best regards.
Vincent.
ASKER
Vincent,
I cant locate the file '$ORACLE_HOME/network/admi n/sqlnet.o ra' in my server.
However, below is how my /etc/hosts file look like...
#127.0.0.1 <hostname>.<domain>.com <hostname> localhost.localdomain localhost
#::1 <hostname>.<domain>.com <hostname> localhost6.localdomain6 localhost6
<IP> <hostname>.<domain>.com <hostname>
-Aravind G
I cant locate the file '$ORACLE_HOME/network/admi
However, below is how my /etc/hosts file look like...
#127.0.0.1 <hostname>.<domain>.com <hostname> localhost.localdomain localhost
#::1 <hostname>.<domain>.com <hostname> localhost6.localdomain6 localhost6
<IP> <hostname>.<domain>.com <hostname>
-Aravind G
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Vincent,
Thank you, it worked. I uncommented the line in /etc/hosts file and reinstalled OracleXE.
After this reinstall, listener started successfully.
Appreciate your help
Regard,
Aravind G
Thank you, it worked. I uncommented the line in /etc/hosts file and reinstalled OracleXE.
After this reinstall, listener started successfully.
Appreciate your help
Regard,
Aravind G
Log in locally to the XE database with sqlplus and do:
alter system register;
Then do the: lsnrctl status and see if XE is being listened for.