Basic Oracle Net Server-Side Configuration
description
Transcript of Basic Oracle Net Server-Side Configuration
![Page 1: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/1.jpg)
Basic Oracle Net Server-Side Configuration
Supinfo Oracle Lab.
3
![Page 2: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/2.jpg)
Objectives
After completing this lesson, you should be able to do the following:• Identify how the listener responds to incoming
connections• Configure the listener using Oracle Net Manager• Control the listener using the Listener Control
Utility (lsnrctl)Describe Dynamic Service Registration
• Configure the listener for IIOP and HTTP connections
![Page 3: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/3.jpg)
Overview: The Listener Process
listener.oralistener.ora
ListenerListener
ClientClient ServerServer
tnsnames.oratnsnames.ora
sqlnet.orasqlnet.ora
![Page 4: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/4.jpg)
The Listener Responses
When a connection request is made by a client to a server, the listener performs one of the following:• Spawns a server process and passes the
connection to it• Hands off the connection to a dispatcher or server
process in an Oracle Shared Server configuration• Redirects the connection to a dispatcher or server
process
![Page 5: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/5.jpg)
Configuring the Listener
The listener can be configured in two ways:• Static service configuration
– Used for Oracle8 and earlier releases– Requires LISTENER.ORA configuration– Required for Oracle Enterprise Manager and
other services• Dynamic service registration
– Does not require a LISTENER.ORA file– The listener relies on the PMON process– Oracle9i uses service registration
![Page 6: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/6.jpg)
Bequeath Session
1
3
listenerlistener
ClientClientServerServer
2
4
Spawned server process5
![Page 7: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/7.jpg)
Redirect Session
1
port
4
ListenerListener
ClientClient ServerServer
3
port
5
Server ordispatcher
process6
2
![Page 8: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/8.jpg)
Static Service Registration:The listener.ora File
When the Oracle software is installed, the
listener.ora file is created for the starter database
with the following default settings:• Listener name LISTENER• Port 1521• Protocols TCP/IP and IPC• SID name Default instance• Host name Default host name
![Page 9: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/9.jpg)
Static Service Registration: The listener.ora File
1. LISTENER =2. (ADDRESS_LIST =3. (ADDRESS= (PROTOCOL= TCP)(Host= stc-sun02)(Port= 1521)) )4. SID_LIST_LISTENER =5. (SID_LIST =6. (SID_DESC =7. (ORACLE_HOME= /home/oracle)8. (GLOBAL_DBNAME = ORCL.us.oracle.com)9. (SID_NAME = ORCL) )
10. ...sample additional SID description ... )
![Page 10: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/10.jpg)
Static Service Registration: Create a Listener
![Page 11: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/11.jpg)
Configure Services
![Page 12: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/12.jpg)
Logging and Tracing
![Page 13: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/13.jpg)
Dynamic Service Registration:Configure Registration
To ensure that service registration is functional, the
following INIT.ORA parameters must be configured:
• SERVICE_NAMES• INSTANCE_NAME
![Page 14: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/14.jpg)
Dynamic Service Registration:Configure PMON
• By default, PMON registers with a local listener on the server with the following settings:– Listener name LISTENER– Port 1521– Protocols TCP/IP – SID name Default instance– Host name Default host name
• PMON can register with a non default listener if:– LOCAL_LISTENER parameter is defined in
INIT.ORA – DISPATCHERS parameter (For Shared Server)
is defined in INIT.ORA
![Page 15: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/15.jpg)
Configure the Listener for Oracle9i JVM: IIOP and HTTP
The listener can be configured to accept connections
from clients using IIOP and HTTP under the following
conditions:• Use Static Listener Registration if Oracle8i or
earlier database is used, even if Oracle9i listener is used
• If both the listener and the database are release 9.0, configuration occurs dynamically during service registration
![Page 16: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/16.jpg)
Listener Control Utility (LSNRCTL)
Commands from the Listener Control utility can be
issued from the command-line or from the LSNRCTL
prompt.• UNIX command-line syntax:
• Prompt syntax:
• Control a non-default listener
$ lsnrctl <command name>
LSNRCTL> <command name>
LSNRCTL> set current_listener listener02
![Page 17: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/17.jpg)
LSNRCTL Commands
Use the following commands to control the listener:• START [listener_name]• STOP [listener_name]
![Page 18: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/18.jpg)
LSNRCTL SET and SHOW Modifiers
The SET modifier is used to change listener
parameters in the Listener Control utility
environment.
The SHOW modifier is used to display the values of the parameters set for the listener.
LSNRCTL> SET trc_level ADMIN
LSNRCTL> SHOW connect_timeout
![Page 19: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/19.jpg)
Summary
In this lesson, you should have learned how to:• Describe how the listener handles client
connection requests• What role the listener.ora file plays in configuring
the listener• Use the lsnrctl utility to control the functions of the
listener• Configure the listener for IIOP and HTTP
connections
![Page 20: Basic Oracle Net Server-Side Configuration](https://reader035.fdocuments.in/reader035/viewer/2022062304/568146e8550346895db4203c/html5/thumbnails/20.jpg)
Practice 3 Overview
This practice covers the following topics:• Configuring a non-default LISTENER• Starting and stopping your listener• Viewing the LISTENER log file