Unix Technical Forum

Setup two listeners on a machine

This is a discussion on Setup two listeners on a machine within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi, I have a question on Listener process. I have two listeners (L1 and L2) and two databases(DB1 and ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 12:00 PM
janu
 
Posts: n/a
Default Setup two listeners on a machine

Hi,

I have a question on Listener process.

I have two listeners (L1 and L2) and two databases(DB1 and DB2) on one
machine.

L1 and L2 are using the port 1521 and 1522.

My question is,

How do I set up failover for L1 and L2, meaning if L1 crashes, my
user connections should automatically connect to L2.

A sample code would be great.

Thanks a bunch
janu

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 12:00 PM
Frank van Bortel
 
Posts: n/a
Default Re: Setup two listeners on a machine

janu schreef:
> Hi,
>
> I have a question on Listener process.
>
> I have two listeners (L1 and L2) and two databases(DB1 and DB2) on one
> machine.
>
> L1 and L2 are using the port 1521 and 1522.
>
> My question is,
>
> How do I set up failover for L1 and L2, meaning if L1 crashes, my
> user connections should automatically connect to L2.
>
> A sample code would be great.
>
> Thanks a bunch
> janu
>

No - connections are there as a result of
a hand-off by the listener. When a listener stops,
connections still exist; there is no reason to reconnect.

New connection attempts, however, will fail with a
'No Listener' error.

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 12:00 PM
Mark D Powell
 
Posts: n/a
Default Re: Setup two listeners on a machine



On Dec 28, 7:11 pm, Frank van Bortel <frank.van.bor...@gmail.com>
wrote:
> janu schreef:
>
>
>
> > Hi,

>
> > I have a question on Listener process.

>
> > I have two listeners (L1 and L2) and two databases(DB1 and DB2) on one
> > machine.

>
> > L1 and L2 are using the port 1521 and 1522.


Janu, you should be able to use one listener for both databases. There
is usually no need for multiple listeners unless you need to listen for
multiple protocols.

HTH -- Mark D Powell --

>
> > My question is,

>
> > How do I set up failover for L1 and L2, meaning if L1 crashes, my
> > user connections should automatically connect to L2.

>
> > A sample code would be great.

>
> > Thanks a bunch
> > januNo - connections are there as a result of

> a hand-off by the listener. When a listener stops,
> connections still exist; there is no reason to reconnect.
>
> New connection attempts, however, will fail with a
> 'No Listener' error.
>
> --
> Regards,
> Frank van Bortel
>
> Top-posting is one way to shut me up...- Hide quoted text -- Show quoted text -


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:37 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com