Re: Listener config , grid standalone

  • From: "Radoulov, Dimitre" <cichomitiko@xxxxxxxxx>
  • To: wissem@xxxxxxxxxxxxxxxx
  • Date: Thu, 30 Jun 2011 11:42:15 +0200


You could try to add the port to the srvctl command:

|srvctl add listener -l LISTENER_2|-p TCP:1522



Dimitre

On 30/06/2011 11:08, wissem elkhlifi wrote:
Hi,

I need to configure two listeners in 2 different port number. (1521 and 1522) in grid infrastructure for standalone.
My database version Oracle 11gR2, under Redhat Linux.

WHat I did, I have manually added in /opt/11.2.0/grid/network/admin/listener.ora file:

|SID_LIST_LISTENER =
   (SID_LIST =
     (SID_DESC =
       (SID_NAME = PLSExtProc)
       (ORACLE_HOME = /opt/app/oracle/product/11.2.0/db_1)
       (PROGRAM = extproc)
     )
   )
LISTENER =
   (DESCRIPTION_LIST =
     (DESCRIPTION =
       (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
       (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.198)(PORT = 1521))
     )
   )
SID_LIST_LISTENER_2 =
   (SID_LIST =
     (SID_DESC =
       (GLOBAL_DBNAME =db02.example.com  <http://db02.example.com>)
       (ORACLE_HOME = /opt/app/oracle/product/11.2.0/db_1)
       (SID_NAME = db02)
     )
   )
LISTENER_2 =
   (DESCRIPTION =
     (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.71.32)(PORT = 1522))
   )
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON
|


Now using srvctl commad:

|-bash-3.2$ srvctl add listener -l LISTENER_2
-bash-3.2$ srvctl add listener -l LISTENER
-bash-3.2$ srvctl config  listener -l LISTENER
Name: LISTENER
Home: /opt/11.2.0/grid
End points: TCP:1521
-bash-3.2$ srvctl config  listener -l LISTENER_2
Name: LISTENER_2
Home: /opt/11.2.0/grid
End points: TCP:1521
|


Why srvctl config for LISTENER_2 is showing me 1521 instead of 1522?
I have reloaded, stoped, started the listener again and again ... but still end points = 1521.

Any help?

Other related posts: