Ask the Expert

How to connect two databases to one listener

I want to install multiple databases within a single home, having two databases listening to only one listener at a time. That means if I have 10 databases installed in a single home and 5 listeners, I want two databases to access one listener at the same time. Please advise how I can go about doing this. Any reference, technical steps, or documentation guides would also be appreciated.

    Requires Free Membership to View

For 8i and higher databases, you can rely on dynamic registration to set certain instances to use certain listeners. For that configuration, you will need to set the local_listener parameter for each instance since you won't be using the default listener port (for at least 4 of the listeners). Set the local_listener parameter to a value like this:

local_listener = "(ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=1521))"

The PORT number will be different depending on which listener you want the database to register with. The local_listener parameter can be modified dynamically and you can use the "alter system register;" statement to force PMON to register with the listener immediately (otherwise it does a service_update about every 60 seconds).

This was first published in December 2004

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: