DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Listener

  1. #1
    Join Date
    Jul 2000
    Posts
    147

    Listener

    I have DB X and DB Y in same box. Only one listener for both DB 1521 port. I have to reconfigure DB Y to listen 1522. Do I have create another listener to do that? What would be best way doing it? Can you please point me any documentation or an example?

    Any help would be a great help.

    Thanks!

  2. #2
    Join Date
    Sep 2005
    Location
    Delhi
    Posts
    78
    A listener can listen only at one port. u need to create one more listener for that.

    create another listener at port 1522 by making entry of that listener in listener.ora file like .

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = DWH0P01))
    )
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nodeA.ldn.eu.wm.ubs.com)(PORT = 1522))
    )
    )
    )

    and then make entry in TNSNAMES.ora file as

    prod1.db.eu.wm.ubs.com =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nodeA.ldn.eu.wm.ubs.com)(PORT = 1522))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = prod1.db.eu.wm.ubs.com)
    )
    )

    and then use this service to connect to dataabase Y.
    ~KD.DBA~

  3. #3
    Join Date
    Apr 2006
    Posts
    377
    A listener can actually listen on multiple ports. You can try the following:

    listener.ora

    Code:
    LISTENER =
      (DESCRIPTION_LIST =
       (DESCRIPTION =
        (ADDRESS_LIST =
    	(ADDRESS = (PROTOCOL = TCP)(HOST = hosta)(PORT = 1522))
    	(ADDRESS = (PROTOCOL = TCP)(HOST = hosta)(PORT = 1521))
        )
       )
      )
    
    SID_LIST_LISTENER =
      (SID_LIST =
    	(SID_DESC =
    	  (GLOBAL_DBNAME = DBX)
    	  (ORACLE_HOME = <oracle_home_path>)
    	  (SID_NAME = dbx)
    	)
    	(SID_DESC =
    	  (GLOBAL_DBNAME = DBY)
    	  (ORACLE_HOME = <oracle_home_path>)
    	  (SID_NAME = dby)
    	)
      )
    tnsnames.ora

    Code:
    dbx =
      (DESCRIPTION =
    	(ADDRESS_LIST =
    	  (ADDRESS = (PROTOCOL = TCP)(HOST = hosta)(PORT = 1521))
    	)
    	(CONNECT_DATA =
    	  (SERVICE_NAME = dbx)
    	)
      )
    
    dby =
      (DESCRIPTION =
    	(ADDRESS_LIST =
    	  (ADDRESS = (PROTOCOL = TCP)(HOST = hosta)(PORT = 1522))
    	)
    	(CONNECT_DATA =
    	  (SERVICE_NAME = dby)
    	)
      )
    Last edited by ebrian; 06-07-2006 at 06:59 PM.

  4. #4
    Join Date
    Jul 2000
    Posts
    147
    Ebrian and Dhar_kiran

    Thank you very much!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width