Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Setting up two listeners
Here are the steps I took to set up two listeners on a Novell server running
7.3.4 databases.
The ideas are the same for different OS's and different Oracle versions.
Van
Listeners - Multiple Novell
Oracle creates a listener with an IPC protocol connection and an SPX
protocol connection automatically when you upgrade or install. The name of
the listener is LISTENER. You must always have one listener in your
server-side listener.ora file named LISTENER. You can add others as you
wish. Most places do not run with multiple listeners but Jack wanted to
know if we could. He wanted to have two network cards in one server, each
with its own IP address. Then he wanted to be able to connect to the Oracle
instance using whichever IP address he chose.
To do this at the ldcwlt88 prompt I issued load lsnrctl to get to the
listener control utility. [Typing help gives you a list of commands, most
of which can take an argument. If you use no argument, Oracle assumes you
are referring to the default listener LISTENER. Thus "start mylist" starts
a listener called mylist. Typing "start" without an argument starts the
listener LISTENER.] At the lsnrctl prompt I typed stop to shut down the
running listener.
Back at the ldcwlt88 prompt I typed easycfg to bring up the EasyConfig
program. There were several configurations already present and I added
three more for the second listener - one for SPX, one for IPC and one for
TCP/IP. Then I exited easycfg.
At my workstation I modified the server-side listener.ora file by hand.
The pieces shown below in blue italics were things I had to add. EasyConfig
does not add the second listener name or the block which associates that
listener with a SID.
LISTENER =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = LDCWLT88_LSNR)
) (ADDRESS =
(PROTOCOL = SPX)
(SERVICE = LDCWLT88_LSNR)
) (ADDRESS =
(PROTOCOL = TCP)
(HOST = 10.2.88.1)
(PORT = 1521)
)
(ADDRESS =
(PROTOCOL = IPC)
(KEY = LDCWLT8A_LSNR)
) (ADDRESS =
(PROTOCOL = SPX)
(SERVICE = LDCWLT8A_LSNR)
) (ADDRESS =
(PROTOCOL = TCP)
(HOST = 111.111.111.88)
(PORT = 1521)
)
(SID_NAME = ORCL) (ORACLE_HOME = SYS:ORANW734)
(SID_NAME = ORCL) (ORACLE_HOME = SYS:ORANW734)
ORAUNLD.NCF
# # .NCF file to unload Oracle73 modules. # # UNLOAD SPXSRV # SQL*NET V1 (SPX) # UNLOAD SQLSPX # SQL*NET V1 (SPX) # UNLOAD TCPSRV # SQL*NET V1 (TCP) # UNLOAD SQLTCP # SQL*NET V1 (TCP) # UNLOAD TNSLSNR # SQL*NET V2 # UNLOAD ORACLE73 # Oracle7 # UNLOAD ORATK2 # Oracle7 # UNLOAD SQLTNS # SQL*NET V2 # UNLOAD NTS # SQL*NET V2 # UNLOAD NTP # SQL*NET V2 # UNLOAD NTIUS # SQL*NET V2 # UNLOAD IPC.MPM # SQL*NET V2 # UNLOAD IPC # SQL*NET V2 # UNLOAD NTIT # SQL*NET V2 # UNLOAD NTAT # SQL*NET V2 # UNLOAD ORADRV # Oracle7 # UNLOAD TNSLIB # SQL*NET V2 # UNLOAD ORARUN # Utility for Loading ORACLE # UNLOAD CORE35 # Oracle7 # UNLOAD TNSDUM # Oracle7LOAD SVRMGR @SYS:\ORANW734\NLM\STOP.SQL STOP.SQL
ORALOAD.NCF
# # .NCF file to load modules needed by Oracle7. # # First load the NetWare modules and patches required by Oracle7 for # running on a NetWare 3.12 server. # NOTE: These modules will vary depending on your NetWare version, so # if you upgrade your server, you may need to modify this section. # Refer to the"Oracle7 Server for NetWare Installation and User's # Guide" for specifics.
# # Load the Oracle7 Server NLM. #
# # Load the ORACLE NetWare SPX Server. # # SQLNET V1 # LOAD SPXSRV # # SQLNET V2
Kenneth C Stahl <BlueSax_at_Unforgettable.com> wrote in message news:37E295BA.C0238D71_at_Unforgettable.com...
> Does anyone have an example of a listener.ora in which there are > different listeners configured for different databases? I currently have > two instances running on a machine but am using the same listener for > both of them. The problem is, if something goes wrong with one database > it causes the listener to hang for the other database. I think that if I > configure a seperate listener for each database then they will work > totally independent of each other and I can take the database and the > associated listener down without effecting the other database/listener. > > If you could, put the example in an attachment in a message posted here > to the newsgroup. Thanks. >Received on Fri Sep 17 1999 - 15:23:35 CDT