Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listener.ora setup for 9idb and 10gdb 1

Status
Not open for further replies.

ksbrace

Programmer
May 13, 2000
501
US
hello,
I have a 10g DB and a 9i db on the same box listening on diff ports and would like to just use one listener. is this possible and how would I want to modify this listener.ora and/or tnsnames.ora to be able to listen for the 9i db(oratest) on 1521? Thanks in advance!

Code:
LISTENER_10g =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
        (ADDRESS = (PROTOCOL = IPC)(KEY = TEST))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = btest)(PORT = 1528))
      )
    )
  )

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = TEST)
      (ORACLE_HOME = /u01/app/oracle10/product/ora102)
      (SERVICE_NAME= TEST)
    )
 )

 
Your 10g listener is listening on port 1528. If you want it to listen for your 9i database on 1521, you will need to either change the port, or add a second port and have it listen on both 1521 and 1528.

Your sid_list is for a listener named "LISTENER". It should be for the "LISTENER_10g. You should also add the 9i database to the sid_list.

Here is a bare-bones listener configuration file (with some name changes) that I have on one of my servers. It listens for one 9i database and one 10g database. You can modify it as needed for your purposes.

Code:
LISTENER_10G =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = karluks_host)(PORT = 1521))
  )

SID_LIST_LISTENER_10G =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = db10g)
      (ORACLE_HOME = /u01/app/oracle/product/10.2.0)
      (SERVICE_NAME = db10g)
    )
    (SID_DESC =
      (GLOBAL_DBNAME = db9i)
      (ORACLE_HOME = /u01/app/oracle/product/9.2.0)
      (SERVICE_NAME = db9i)
    )
  )
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top