Run:
lsnrctl status LISTENERNAME
... where LISTENERNAME
is the name of the listener that is listening on port 1531. You can get this name from your $ORACLE_HOME/network/admin/listener.ora
file.
For example:
LISTENER1531 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = node1)(PORT = 1531))
)
)
)
LISTENER1531
would be the listener name for the above listener.ora
entry.
If you need to add databases to the listener, add an entry to the listener.ora
, as follows:
SID_LIST_LISTENER1531 =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = YOURDB)
(ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1)
(PROGRAM = extproc)
(SID_NAME = YOURDB)
)
)
Obviously you'll need to add your own database and listener names & change the path to your $ORACLE_HOME
.
You can reload the listener config with:
lsnrctl reload LISTENER1531
The above works fine for me with a `tnsnames.ora as follows:
YOURDB =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(Host = node1)(Port = 1531))
)
(CONNECT_DATA =
(SERVICE_NAME = YOURDB)
)
)
Check this registry key to ensure ORACLE_HOME is configured for the service:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\ORACLE_HOME
If that doesn't exist, check here:
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_XE\ORACLE_HOME
Also make sure this other key isn't pointing to your old client registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_XE\ORACLE_HOME_KEY
or
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_XE\ORACLE_HOME_KEY
Best Answer
Listener alias and Listener name need not be the same. The database resolves the listener alias to the correct listener description by looking up the
tnsnames.ora
file.