19
Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute.

Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Embed Size (px)

Citation preview

Page 1: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Oracle 10g AdministrationOracle Shared Server

Copyright ©2006, Custom Training Institute.

Page 2: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Oracle Shared Server

Previously known as Multi-Threaded Server (MTS).

Now “default” behavior.

Dynamically configured after initial setup.

Page 3: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Overview of Oracle Shared Server

Clients send requests.

Dispatcher processes on server receive requests.

Dispatcher activates process from shared server pool to satisfy client request.

Dispatcher returns to service another client request.

Page 4: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Benefits of Oracle Shared Server

Small number of processes; large number of users.

Reduces amount of memory.

Optimizes processor workload.

Page 5: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Determining Appropriate Usage of Oracle Shared Server

Greatest benefit:Many users initiating connections

Users frequently interrupting activity

Page 6: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Configuring Oracle Shared Servers

Use SHARED_SERVERS parameter:Set to a value greater than zero

Indicates number of processes to be started in shared server pool

Parameter may be dynamically altered through ALTER SYSTEM.

Page 7: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Oracle’s Self-Tuning of Shared Servers

Approximately one shared server process for every 10 client connections.

OLTP applications may cause there to be more than 10 client connections per shared server process

Page 8: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Oracle’s Self-Tuning of Shared Server Usage

SHARED_SERVERS parameter indicates both initial and minimum number of shared server processes.

Can help smooth out dynamically-changing workloads.

Page 9: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Configuration Parameters for Oracle Shared Server

SHARED_SERVERS

MAX_SHARED_SERVERS

DISPATCHERS

MAX_DISPATCHERS

CIRCUITS

Page 10: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Obsoleted MTS Parameters

MTS_SERVERS

MTS_MAX_SERVERS

MTS_DISPATCHERS

MTS_MAX_DISPATCHERS

MTS_CIRCUITS

Page 11: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

DISPATCHERS Parameter

One, and only one, of the following attributes is REQUIRED:

PROTOCOL

ADDRESS

DESCRIPTION

Page 12: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

MAX_DISPATCHERS Parameter

Specifies the total number of dispatchers you want to start.

Dispatcher processes accept connections from clients and funnel those connections to available shared server processes.

Page 13: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

MAX_SHARED_SERVERS

Upper bound on total number of shared server processes that PMON can create, based upon the peak load of the system.

Page 14: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Shared Server Views

V$DISPATCHER_CONFIGInformation on existing dispatchers

Information on dispatcher configurations

V$SHARED_SERVER_MONITOR

Page 15: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

V$DISPATCHER_CONFIG

CONF_INDXNETWORKDISPATCHERSCONNECTIONSSESSIONSPOOL

Page 16: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

V$DISPATCHER_CONFIG

TICKS

MULTIPLEX

LISTENER

SERVICE

Page 17: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Monitoring Shared Servers

V$SHARED_SERVER_MONITORMAXIMUM_CONNECTIONS

MAXIMUM_SESSIONS

SERVERS_STARTED

SERVERS_TERMINATED

SERVERS_HIGHWATER

Page 18: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Optimization

Set MAX_SHARED_SERVERS equal to one-tenth the maximum number of connections.

Set SHARED_SERVERS equal to one-tenth the average number of connections.

Page 19: Oracle 10g Administration Oracle Shared Server Copyright ©2006, Custom Training Institute

Copyright ©2006, Custom Training Institute.

Summary

Oracle Shared Server:Architecture

Benefits / Features

Configuration

Tuning

Monitoring