Oracle 10g Admin workshops PPTLess 13

download Oracle 10g Admin workshops PPTLess 13

of 23

Transcript of Oracle 10g Admin workshops PPTLess 13

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    1/26

    Copyright 2004, Oracle. All rights reserved.

    Oracle Shared Servers

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    2/26

    13-2 Copyright 2004, Oracle. All rights reserved.

    Objectives

    After completing this lesson you should be able to do

    the following:

    Identify when to use Oracle Shared Servers

    Configure Oracle Shared Servers

    Monitor Shared Servers

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    3/26

    13-3 Copyright 2004, Oracle. All rights reserved.

    Listener

    Establishing a Connection

    Incoming

    connection request

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    4/26

    13-4 Copyright 2004, Oracle. All rights reserved.

    Dedicated Server Process

    Listener

    Server

    process

    User process

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    5/26

    13-5 Copyright 2004, Oracle. All rights reserved.

    Server

    process

    User Sessions

    PGA

    Listener

    User Session

    User process

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    6/26

    13-6 Copyright 2004, Oracle. All rights reserved.

    User Sessions: Dedicated Server

    User sessions

    Server process

    Server process

    Server process

    User session

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    7/26

    13-7 Copyright 2004, Oracle. All rights reserved.

    User Sessions: Shared Server

    Listener

    Dispatcher

    Server

    process

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    8/26

    13-8 Copyright 2004, Oracle. All rights reserved.

    Response queue

    forD001

    Response queueforD002

    Instance

    SGA

    Shared serverprocesses

    Database server

    Client ormiddle tier

    S001

    S002

    Userprocess

    DispatcherD001

    DispatcherD002

    S000

    DispatcherD000

    Response queueforD000

    Processing a Request

    Userprocess

    1

    2

    3

    4

    6

    5

    Common

    request queue

    for all

    dispatchers

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    9/26

    13-9 Copyright 2004, Oracle. All rights reserved.

    SGA

    Oracle Shared Server: User session data is held in the SGA.

    SGA

    Shared pool and othermemory structures

    Cursor

    state

    Shared pool andother memory

    structures

    Stack

    space

    PGA

    Dedicated server: User session data is kept in the PGA.

    Stackspace

    User

    session

    data

    Cursorstate

    PGA

    The SGA and PGA

    User

    session

    data

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    10/26

    13-10 Copyright 2004, Oracle. All rights reserved.

    Configuring Oracle Shared Server

    Required parameter

    DISPATCHERS

    Optional parameters

    SHARED_SERVERS MAX_SHARED_SERVERS

    CIRCUITS

    SHARED_SERVER_SESSIONS

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    11/26

    13-11 Copyright 2004, Oracle. All rights reserved.

    DISPATCHERS = (PROTOCOL=TCP)(DISPATCHERS=2)\(PROTOCOL=IPC)(DISPATCHERS=1)

    DispatcherD001

    TCP/IP

    DispatcherD002

    IPC

    DispatcherD000

    TCP/IP

    DISPATCHERS

    Specifies the number of dispatchers that are initially

    started for a given protocol.

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    12/26

    13-12 Copyright 2004, Oracle. All rights reserved.

    DISPATCHERSFull Notes Page

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    13/26

    13-13 Copyright 2004, Oracle. All rights reserved.

    SHARED_SERVERS = 6

    S000

    S001

    S002

    S003

    S004

    S005

    SHARED_SERVERS

    Specifies the number of shared server processes

    created when an instance is started up, and retained

    during instance operation.

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    14/26

    13-14 Copyright 2004, Oracle. All rights reserved.

    MAX_SHARED_SERVERS = 10

    S000

    S001

    S002

    S003

    S004

    S005

    S006

    S007

    S008

    S009

    MAX_SHARED_SERVERS

    Specifies the maximum number of shared servers

    that can be started

    Allows shared servers to be allocated dynamically

    based on the length of the request queue

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    15/26

    13-15 Copyright 2004, Oracle. All rights reserved.

    CIRCUITS = 100

    CIRCUITS

    Specifies the total number of virtual circuits that

    are available for inbound and outbound network

    sessions

    Contributes to total SGA size

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    16/26

    13-16 Copyright 2004, Oracle. All rights reserved.

    SHARED_SERVER_SESSIONS = 100

    SHARED_SERVER_SESSIONS

    Specifies the total number of Oracle Shared Server

    user sessions to allow

    Enables you to reserve user sessions for

    dedicated servers

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    17/26

    13-17 Copyright 2004, Oracle. All rights reserved.

    Related Parameters

    Other initialization parameters affected by Oracle

    Shared Server that may require adjustment:

    LARGE_POOL_SIZE

    SESSIONS PROCESSES

    LOCAL_LISTENER

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    18/26

    13-18 Copyright 2004, Oracle. All rights reserved.

    Verify that the dispatcher has registered with the

    listener when the database was started by issuing:

    Verify that you are connected using sharedservers by making a connection and then queryV$CIRCUIT view to show one entry per shared

    server connection.

    $ lsnrctl SERVICES

    Verifying Shared Server Setup

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    19/26

    13-19 Copyright 2004, Oracle. All rights reserved.

    Verifying Shared Server Setup

    Full Notes Page

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    20/26

    13-20 Copyright 2004, Oracle. All rights reserved.

    Data Dictionary Views

    V$CIRCUIT

    V$SHARED_SERVER

    V$DISPATCHER

    V$SHARED_SERVER_MONITOR

    V$QUEUE

    V$SESSION

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    21/26

    13-21 Copyright 2004, Oracle. All rights reserved.

    Choosing a Connection Type

    Unless otherwise configured, Oracle Net connections

    will use:

    Shared server if one is available

    Dedicated server if a shared server connection isnot available

    Using local or directory naming, the connection type

    can be specified as part of the Net service alias.

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    22/26

    13-22 Copyright 2004, Oracle. All rights reserved.

    When Not to Use Shared Server

    Certain types of database work should not be

    performed using shared servers:

    Database administration

    Backup and recovery operations Batch processing and bulk load operations

    Data warehouse operations

    Dispatcher Server process

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    23/26

    13-23 Copyright 2004, Oracle. All rights reserved.

    Summary

    In this lesson you should have learned how to:

    Identify when to use Oracle Shared Servers

    Configure Oracle Shared Servers

    Monitor Shared Servers

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    24/26

    13-24 Copyright 2004, Oracle. All rights reserved.

    Practice 13 Overview:

    Oracle Shared Servers

    This practice covers the following topics:

    Investigating the impact of dedicated server

    connections on your system

    Configuring your system to use shared servers Investigating the impact of shared server

    connections on your system

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    25/26

    13-25 Copyright 2004, Oracle. All rights reserved.

    Practice Lesson 13

  • 8/9/2019 Oracle 10g Admin workshops PPTLess 13

    26/26

    13-26 Copyright 2004, Oracle. All rights reserved.