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

Preview:

Citation preview

Oracle 10g AdministrationOracle 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.

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.

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.

Copyright ©2006, Custom Training Institute.

Determining Appropriate Usage of Oracle Shared Server

Greatest benefit:Many users initiating connections

Users frequently interrupting activity

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.

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

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.

Copyright ©2006, Custom Training Institute.

Configuration Parameters for Oracle Shared Server

SHARED_SERVERS

MAX_SHARED_SERVERS

DISPATCHERS

MAX_DISPATCHERS

CIRCUITS

Copyright ©2006, Custom Training Institute.

Obsoleted MTS Parameters

MTS_SERVERS

MTS_MAX_SERVERS

MTS_DISPATCHERS

MTS_MAX_DISPATCHERS

MTS_CIRCUITS

Copyright ©2006, Custom Training Institute.

DISPATCHERS Parameter

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

PROTOCOL

ADDRESS

DESCRIPTION

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.

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.

Copyright ©2006, Custom Training Institute.

Shared Server Views

V$DISPATCHER_CONFIGInformation on existing dispatchers

Information on dispatcher configurations

V$SHARED_SERVER_MONITOR

Copyright ©2006, Custom Training Institute.

V$DISPATCHER_CONFIG

CONF_INDXNETWORKDISPATCHERSCONNECTIONSSESSIONSPOOL

Copyright ©2006, Custom Training Institute.

V$DISPATCHER_CONFIG

TICKS

MULTIPLEX

LISTENER

SERVICE

Copyright ©2006, Custom Training Institute.

Monitoring Shared Servers

V$SHARED_SERVER_MONITORMAXIMUM_CONNECTIONS

MAXIMUM_SESSIONS

SERVERS_STARTED

SERVERS_TERMINATED

SERVERS_HIGHWATER

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.

Copyright ©2006, Custom Training Institute.

Summary

Oracle Shared Server:Architecture

Benefits / Features

Configuration

Tuning

Monitoring