binding a database instance to a certain port [message #53797] |
Fri, 11 October 2002 08:26 |
Mike
Messages: 417 Registered: September 1998
|
Senior Member |
|
|
Our environment is Windows 2K running Oracle 8.1.7. We have multiple databases running on this server. Is there a way to bind a given database to a certain tcp/ip port so that the database in question only listens on that port? I am new to Oracle. Is this even a best practice?
|
|
|
|
Re: binding a database instance to a certain port [message #53803 is a reply to message #53797] |
Fri, 11 October 2002 13:07 |
Trifon Anguelov
Messages: 514 Registered: June 2002
|
Senior Member |
|
|
You have to edit your listener.ora file, to create listener for each db instance:
LISTENER =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = yourhost.yourdomain.com)(PORT = 1521))
)
)
LISTENER_DB2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = yourhost.yourdomain.com)(PORT = 1522))
)
)
LISTENER_DB3 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = yourhost.yourdomain.com)(PORT = 1523))
)
)
Then start your listeners with:
$lsnrctl start [[LISTENER]]
$lsnrctl start LISTENER_DB2
$listenr start LISTENER_DB3
It could be a good idea if you have more than one NIC with IP address on your box, and you assign every hostname = to separate IP address. Then the traffic could go through separate VLANs.
We are using something like that to separate the production from the administrative traffic on some boxes. You can bind OEM Agent to a separate IP address and port even. It is up to you how to set it up. Oracle gives you this ability.
Hope that helps,
clio_usa
OCP - DBA
Visit our Web site
|
|
|