Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Setup two listeners on a machine
RA wrote:
> 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
Why two listeners? One listener can serve as many databases as you have on the server, even different version databases.
Working with Oracle since v7.3, I can only remember one listener 'crash'.
Assuming you still think you need two listeners for high-availability, you set up the 'failover' in your tnsnames. See chapter 6 of the Net Services Reference. Received on Wed Dec 27 2006 - 19:35:27 CST