two different listeners in the same server [message #67711] |
Mon, 24 January 2005 04:21 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Marcio
Messages: 2 Registered: January 2005
|
Junior Member |
|
|
Hello !
I´m working with Oracle 9.2.0 / HP-UX and I need to configure two different listeners for the same server using different IP address.
How could I do this ?
Regards,
Márcio.
|
|
|
Re: two different listeners in the same server [message #67712 is a reply to message #67711] |
Mon, 24 January 2005 04:54 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Frank Naude
Messages: 4590 Registered: April 1998
|
Senior Member |
|
|
Here is a quick LISTENER.ORA template that defines two listeners. If you need more info, see the Oracle Net Manuals:
LISTENER1=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=us.acme.com)(PORT=1521))))
SID_LIST_LISTENER1=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=sales.us.acme.com)
(ORACLE_HOME=/app/oracle/product/10.1.0)
(SID_NAME=sales)))
LISTENER2=
(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)(HOST=us.acme.com)(PORT=1522))))
SID_LIST_LISTENER2=
(SID_LIST=
(SID_DESC=
(GLOBAL_DBNAME=crm.us.acme.com)
(ORACLE_HOME=/app/oracle/product/10.1.0)
(SID_NAME=crm)))
To start the above listeners:
$ lsnrctl start listener1
$ lsnrctl start listener2
Best regards.
Frank
|
|
|
Re: two different listeners in the same server [message #67713 is a reply to message #67712] |
Mon, 24 January 2005 05:03 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Marcio
Messages: 2 Registered: January 2005
|
Junior Member |
|
|
Hi Frank !
Thank you for your help...
One more question:
Is it possible to put your exemple in different files. I mean, for exemple, the listener1 in a f1.ora file and the listener2 in a f2.ora file ?
I so, how could I do this ?
Best regards,
Márcio.
|
|
|
Re: two different listeners in the same server [message #67714 is a reply to message #67713] |
Mon, 24 January 2005 10:05 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
billh
Messages: 35 Registered: August 1999
|
Member |
|
|
Hi Marcio,
Yes, it is possible to have two listener.ora files. To do this you must set the TNS_ADMIN parameter. I do this very thing because of the way that our failover is setup. Multiple listener.ora files each in a different directory. Upon startup I set the TNS_ADMIN parameter to the directory containing the listener.ora file for the listener that is starting.
|
|
|
|
|
|
|
|
|
|
|
Re: two different listeners in the same server [message #524310 is a reply to message #518285] |
Thu, 22 September 2011 21:51 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
![](//www.gravatar.com/avatar/9504d288d4c103d5c8264f83291647a8?s=64&d=mm&r=g) |
Guru007
Messages: 3 Registered: September 2011 Location: Aussie
|
Junior Member |
|
|
Both Can be Used
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = au.us)(PORT = 2523)))
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = au.us)(PORT = 2523)))
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = au.us)(PORT = 1521)))
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = au.us)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc) (ORACLE_HOME = /u00/app/oracle/product/10.2.0/Db_1) (PROGRAM = extproc))
(SID_DESC = (ORACLE_HOME = /u00/app/oracle/product/10.2.0/Db_1) (SID_NAME = DB1))
(SID_DESC = (ORACLE_HOME = /u00/app/oracle/product/10.2.0/Db_1) (SID_NAME= DB2))
)
|
|
|