• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1005
  • Last Modified:

How to create Listner for multiple Oracle Home?

How to create Listner.ora and tnsnames.ora for multiple Oracle HOMES in the same server with different Port Numbers? Please give me some sample snippets.
0
umesh4exp
Asked:
umesh4exp
1 Solution
 
MikeOM_DBACommented:

On each $OH/network/admin, create a listener.ora with port number.

Create the local tnsnames.ora on $OH/network/admin of the highest version Oracle home.

Start the listener from the highest version Oracle home.

Examples of listener.ora for 9i and 10g homes:

# LISTENER.ORA Network Configuration
# File: /home/oracle/9.2.0.8/network/admin/listener.ora
#
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = /home/oracle/9.2.0.8)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (GLOBAL_DBNAME = ORCL9i)
      (ORACLE_HOME = /home/oracle/9.2.0.8)
      (SID_NAME = ORCL9i)
    )
  )
 
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = unix2.mydomain.net)(PORT = 1521))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
      )
    )
  )
 
# LISTENER.ORA Network Configuration
# File: /opt/oracle/10.2/network/admin/listener.ora
#
SID_LIST_LISTENER_1522 =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc1)
      (ORACLE_HOME = /opt/oracle/10.2)
      (PROGRAM = extproc)
    )
    (SID_DESC =
      (GLOBAL_DBNAME = ORCL10g.WORLD)
      (ORACLE_HOME = /opt/oracle/10.2)
      (SID_NAME = ORCL10g)
    )
  )
 
LISTENER_1522 =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = TCP)(HOST = unix2.mydomain.net)(PORT = 1522))
      )
      (ADDRESS_LIST =
        (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      )
    )
  )

Open in new window

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now