Q

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.

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

Dig deeper on Oracle database installation, upgrades and patches

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

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:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close