Team-Fly |
Oracle Net8 Configuration and Troubleshooting By Jonathan Gennick , Hugo Toledo | |
Table of Contents | |
Appendix C. The listener.ora File |
Listener Address |
The listener address section (or entry) defines a listener and the network addresses that it monitors. If you're running Release 8.1 or higher, the listener address entry may take one of the following forms (the first form is the preferred form):
listener_name = (DESCRIPTION_LIST= (DESCRIPTION = address_description ) [(DESCRIPTION = address_description )] ... ) listener_name = (DESCRIPTION = address_description ) address_description := (ADDRESS = address_data ) [(PROTOCOL_STACK= (PRESENTATION = {TTCGIOP}) (SESSION = {NSRAW}) )] ) address_data (TCP/IP) := (PROTOCOL = TCP)(HOST = { hostname ip_address })(PORT = port_number ) address_data (IPC) := (PROTOCOL = IPC)(KEY = key_name ) address_data (SPX) := (PROTOCOL = SPX)(SERVICE = spx_service_name ) address_data (Named Pipes) := (PROTOCOL = NMP)(SERVER = server_name )(PIPE = pipe_name )
The DESCRIPTION and DESCRIPTION_LIST keywords were introduced in Release 8.1. If you're running a release prior to 8.1, then use the following form with an ADDRESS_LIST keyword:
listener_name = (ADDRESS_LIST= (ADDRESS = address_data ) [(ADDRESS = address_data ) ...] )
The name that you want to give the listener.
Encloses one or more DESCRIPTION entries. Use this when you want an Oracle8 i listener to listen on more than one network address.
Encloses an ADDRESS entry together with its related PROTOCOL entry.
Describes an address in terms of both the network protocol supported (TCP/IP, SPX, etc.) and the presentation and session layers being used.
Defines one address on which a Net8 listener listens.
The protocol-specific address data required to identify a listener address.
Specifies the presentation and session layers to support on an address.
Specifies the presentation layer to support. Use TTC (Two-Task Common) for traditional Oracle connections. Use GIOP (General Inter-Orb Protocol) for CORBA connections from Java clients . Your SESSION setting must correspond to your PRESENTATION setting.
Specifies the session layer to support. Use NS (Network Session) if you specified TTC for the presentation layer. Use RAW if you specified GIOP for the presentation layer.
|
Encloses a list of one or more ADDRESS entries. Prior to the release of Oracle8 i , the PROTOCOL_STACK entry did not exist. All you needed in order to define a listener was a list of one or more ADDRESS entries. That list was enclosed by the ADDRESS_LIST entry. This obsolete form is still supported for backward compatibility.
The TCP/IP hostname of your server.
The TCP/IP address of your server.
The TCP/IP port number that you want the Net8 listener to monitor. If you're not sure which port to use, try 1521. That's the default port assigned when you install Oracle to begin with.
An IPC key name. This can be any alphanumeric name that you like. Programs making an IPC connection to the database must then use a net service name that references this same key in its definition.
An arbitrary name that you choose. This must correspond to the SPX service name in a net service name definition in order for a client to connect.
The name of your server.
The name of the pipe over which you want to communicate. This can be any name you choose, but it must correspond to the pipe name in a net service name definition in order for a connection to take place.
PRODLISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = donna.gennick.org)(PORT = 1521)) (PROTOCOL_STACK = (PRESENTATION = TTC) (SESSION = NS) ) ) (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY)) (PROTOCOL_STACK = (PRESENTATION = TTC) (SESSION = NS) ) ) )
Team-Fly |
Top |