Less11 Network MB3
Transcript of Less11 Network MB3
-
8/14/2019 Less11 Network MB3
1/32
11Copyright 2005, Oracle. All rights reserved.
Configuring the
Oracle Network Environment
-
8/14/2019 Less11 Network MB3
2/32
11-2 Copyright 2005, Oracle. All rights reserved.
Objectives
After completing this lesson, you should be able to:
Use Enterprise Manager to:
Create additional listeners
Create Oracle Net Service aliases Configure connect-time failover
Control the Oracle Net Listener
Use tnsping to test Oracle Net connectivity
Identify when to use shared servers versusdedicated servers
-
8/14/2019 Less11 Network MB3
3/32
11-3 Copyright 2005, Oracle. All rights reserved.
Oracle Net Services
Application
Oracle Net
RDBMS
Oracle Net
Client or
middle tierDatabase server
TCP/IP
networkListener
Oracle Net
configuration files
Oracle Net
configuration files
-
8/14/2019 Less11 Network MB3
4/32
11-4 Copyright 2005, Oracle. All rights reserved.
Oracle Net Listener
Listener
/network/admin/listener.orasqlnet.ora
Oracle databases
Oracle Net
configuration files
Enterprise
Manager
Database
Control
-
8/14/2019 Less11 Network MB3
5/32
11-5 Copyright 2005, Oracle. All rights reserved.
Establishing Net Connections
To make a client or middle-tier connection, Oracle Net
requires the client to know the:
Host where the listener is running
Port that the listener is monitoring Protocol that the listener is using
Name of the service that the listener is handling
Names Resolution
-
8/14/2019 Less11 Network MB3
6/32
11-6 Copyright 2005, Oracle. All rights reserved.
Listener
Establishing a Connection
Incoming
connection request
-
8/14/2019 Less11 Network MB3
7/3211-7 Copyright 2005, Oracle. All rights reserved.
Server
process
User Sessions
PGA
Listener
User session
User process
-
8/14/2019 Less11 Network MB3
8/3211-8 Copyright 2005, Oracle. All rights reserved.
Tools for Configuring and Managing
the Oracle Network
Enterprise Manager Net Services Administration
page
Oracle Net Manager
Oracle Net Configuration Assistant launched byOracle Universal Installer
Command line
-
8/14/2019 Less11 Network MB3
9/3211-9 Copyright 2005, Oracle. All rights reserved.
Listener Control Utility
Oracle Net listeners can be controlled with the
command-line lsnrctl utility (or from EM).
$lsnrctl
LSNRCTL for Linux: Version 10.2.0.0.0 on 12-MAY-2005 13:27:51
Copyright (c) 1991, 2004, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> help
The following operations are available
An asterisk (*) denotes a modifier or extended command:
start stop statusservices version reload
save_config trace spawn
change_password quit exit
set* show*
-
8/14/2019 Less11 Network MB3
10/3211-10 Copyright 2005, Oracle. All rights reserved.
Listener Control Utility Syntax
Commands from the listener control utility can be
issued from the command line or from the LSNRCTLprompt.
UNIX or Linux command-line syntax:
Prompt syntax:
$ lsnrctl
$ lsnrctl start
$ lsnrctl status
LSNRCTL>
LSNRCTL> start
LSNRCTL> status
-
8/14/2019 Less11 Network MB3
11/3211-11 Copyright 2005, Oracle. All rights reserved.
Listener Control Utility Syntax
Full Notes Page
-
8/14/2019 Less11 Network MB3
12/3211-12 Copyright 2005, Oracle. All rights reserved.
Listener Home Page
-
8/14/2019 Less11 Network MB3
13/3211-13 Copyright 2005, Oracle. All rights reserved.
Net Services Administration Pages
-
8/14/2019 Less11 Network MB3
14/3211-14 Copyright 2005, Oracle. All rights reserved.
Creating a Listener
1
2
3
4
-
8/14/2019 Less11 Network MB3
15/3211-15 Copyright 2005, Oracle. All rights reserved.
Adding Listener Addresses
56
7
-
8/14/2019 Less11 Network MB3
16/3211-16 Copyright 2005, Oracle. All rights reserved.
Database Service Registration
-
8/14/2019 Less11 Network MB3
17/3211-17 Copyright 2005, Oracle. All rights reserved.
Naming Methods
Oracle Net supports several methods of resolving
connection information: Easy connect naming: Uses a TCP/IP connect
string
Local naming: Uses a local configuration file Directory naming: Uses a centralized
LDAP-compliant directory server External naming: Uses a supported non-Oracle
naming service
Client/application server
Oracle Net
Oracle Net configuration files
-
8/14/2019 Less11 Network MB3
18/3211-18 Copyright 2005, Oracle. All rights reserved.
Easy Connect
Is enabled by default Requires no client-side configuration
Supports only TCP/IP (no SSL)
Offers no support for advanced connection
options, such as: Connect-time failover
Source routing
Load balancing
SQL> CONNECT hr/[email protected]:1521/dba10g
No Oracle Net configuration files
-
8/14/2019 Less11 Network MB3
19/3211-19 Copyright 2005, Oracle. All rights reserved.
Local Naming
Requires a client-side Names Resolution file
Supports all Oracle Net protocols
Supports advanced connection options, such as:
Connect-time failover Source routing
Load balancing
SQL> CONNECT hr/hr@orcl
Oracle Net
configuration files
-
8/14/2019 Less11 Network MB3
20/3211-20 Copyright 2005, Oracle. All rights reserved.
Directory Naming
Requires LDAP with Oracle Net Names Resolution
information loaded:
Oracle Internet Directory
Microsoft Active Directory Services
Supports all Oracle Net protocols
Supports advanced connection options
SQL> CONNECT hr/hr@orcl
LDAP directory
Oracle Net
configuration files
-
8/14/2019 Less11 Network MB3
21/3211-21 Copyright 2005, Oracle. All rights reserved.
External Naming Method
Uses a supported non-Oracle naming service
Includes:
Network Information Service (NIS) External Naming
Distributed Computing Environment (DCE) CellDirectory Services (CDS)
Oracle Net
Non-Oracle
naming
service
-
8/14/2019 Less11 Network MB3
22/3211-22 Copyright 2005, Oracle. All rights reserved.
Configuring Service Aliases
Create or
edit
-
8/14/2019 Less11 Network MB3
23/3211-23 Copyright 2005, Oracle. All rights reserved.
Advanced Connection Options
Oracle Net supports the following advanced
connection options with local and directory naming:
Connect-time failover
Load balancing Source routing
-
8/14/2019 Less11 Network MB3
24/3211-24 Copyright 2005, Oracle. All rights reserved.
Advanced Connection Options
Full Notes Page
-
8/14/2019 Less11 Network MB3
25/32
11-25 Copyright 2005, Oracle. All rights reserved.
Testing Oracle Net Connectivity
The tnsping utility that tests Oracle Net servicealiases:
Ensures connectivity between the client and the
Oracle Net Listener
Does not verify that the requested service is
available
Supports Easy Connect Names Resolution:
Supports local and directory naming:
tnsping db.us.oracle.com:1521/dba10g
tnsping orcl
-
8/14/2019 Less11 Network MB3
26/32
11-26 Copyright 2005, Oracle. All rights reserved.
User Sessions: Dedicated Server
Server process
Server process
User sessions
Server process
Listener
-
8/14/2019 Less11 Network MB3
27/32
11-27 Copyright 2005, Oracle. All rights reserved.
User Sessions: Shared Servers
Listener
Dispatcher
Server process
Server process
Server process
User sessions
-
8/14/2019 Less11 Network MB3
28/32
11-28 Copyright 2005, Oracle. All rights reserved.
SGA
Large pool and
other memorystructures
Stackspace
PGA
SGA and PGA
User
sessiondata
Cursorstate
Oracle Shared Server: User session data is held in the
SGA.
Sortdata
Remember to factor in shared server memory
requirement when sizing the SGA.
-
8/14/2019 Less11 Network MB3
29/32
11-29 Copyright 2005, Oracle. All rights reserved.
Shared Server: Connection Pooling
The client application has beenidle past the specified time, andan incoming client requests a
connection.
The maximum
number ofconnections isconfigured to 255.
This client connection is the 256th
connection into the server. Connectionpooling is turned on, so that thisconnection can be accepted.
Database
server
Idle
client
Active
client
New
client
-
8/14/2019 Less11 Network MB3
30/32
11-30 Copyright 2005, Oracle. All rights reserved.
When Not to Use a Shared Server
Certain types of database work must not be performed
by using shared servers:
Database administration
Backup and recovery operations Batch processing and bulk load operations
Data warehouse operations
Dispatcher DedicatedServer process
-
8/14/2019 Less11 Network MB3
31/32
-
8/14/2019 Less11 Network MB3
32/32
Practice Overview:
Working with Oracle Network Components
This practice covers:
Configuring local Names Resolution to connect to
another database
Creating a second listener for connect-timefailover