There are two way to get around it.
- Put UR=A in your tnsnames.ora for the entry. e.g.
STBY=
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = STBY)
(UR = A)
)
) - Create static listener to allow listener know which oracle SID to connect. e.g.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = TESTDB.gov.edmonton.ab.ca)
(ORACLE_HOME = /u01/app/ora10g/product/10.2.0.4/db_1)
(SID_NAME = TESTDB1)
)
)
After you change listener.ora you need reload listener to take effect.