SGA Tuning

Oracle version: 10g and 11g
How to monitor SGA size for tuning whether we need to increase the SGA size or not

Hi;
Please mention db versions.
Also Please see our previous discussion:
Estimating SGA Size
Re: Estimating SGA Size
SGA and PGA size
SGA and PGA size
Also see:
http://www.oracle-base.com/articles/11g/AutomaticMemoryManagement_11gR1.php
http://orafaq.com/wiki/SGA
Regard
Helios

Similar Messages

  • NT 의 SGA TUNING

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-25
    NT의 SGA TUNING
    ================
    PURPOSE
    NT에서의 SGA TUNING하는 법을 알아본다.
    Explanations
    <Library cache tuning>
    SELECT gethitratio, reloads/pins "Reload Ratio"
    FROM V$librarycache
    where namespace='SQL AREA'
    1) 90% 이상 :app program 의 효율성 향상 노력
    2) 1 %초과 : shared_pool_size 증가
    <Library cache 크기 조정>
    SELCT SUM(sharable_mem) "DB Object Size"
    FROM v$db_object_cache;
    SELECT SUM(sharable_mem) "SQL SIZE"     
    FROM v$sqlarea
    WHERE executions>5;
    SELCT SUM(250*users_opening) "Cursor Size"
    FROM v$sqlarea;
    이들의 합 이상으로 할당
    <Dictionary Cache tuning>
    SELECT SUM(gets) "Dictionary Cache Gets",
    SUM(getmisses) "Misses"     ,
    SUM(getmisses)/SUM(gets) *100 ||'%' "Miss Ratio"
    FROM v$rowcache;
    15% 초과이면 shared_pool_size 를 증가 고려
    <Database Buffer Cache tuning>
    SELECT (1-phy.value/(cur.value + con.value))*100 ||’%’
    "Cache Hit Ratio"
    FROM v$sysstat phy,v$sysstat cur v$sysstat con
    WHERE phy.name ='physical reads'
    AND cur.name ='db block gets'
    AND con.name='consistent gets';
    80% 미만이면 DB_BLOCK_BUFFERS 증가
    (RAW device 는 90% 미만)
    Reference Documents
    --------------------

    제품 : ORACLE SERVER
    작성날짜 : 2002-04-25
    NT의 SGA TUNING
    ================
    PURPOSE
    NT에서의 SGA TUNING하는 법을 알아본다.
    Explanations
    <Library cache tuning>
    SELECT gethitratio, reloads/pins "Reload Ratio"
    FROM V$librarycache
    where namespace='SQL AREA'
    1) 90% 이상 :app program 의 효율성 향상 노력
    2) 1 %초과 : shared_pool_size 증가
    <Library cache 크기 조정>
    SELCT SUM(sharable_mem) "DB Object Size"
    FROM v$db_object_cache;
    SELECT SUM(sharable_mem) "SQL SIZE"     
    FROM v$sqlarea
    WHERE executions>5;
    SELCT SUM(250*users_opening) "Cursor Size"
    FROM v$sqlarea;
    이들의 합 이상으로 할당
    <Dictionary Cache tuning>
    SELECT SUM(gets) "Dictionary Cache Gets",
    SUM(getmisses) "Misses"     ,
    SUM(getmisses)/SUM(gets) *100 ||'%' "Miss Ratio"
    FROM v$rowcache;
    15% 초과이면 shared_pool_size 를 증가 고려
    <Database Buffer Cache tuning>
    SELECT (1-phy.value/(cur.value + con.value))*100 ||’%’
    "Cache Hit Ratio"
    FROM v$sysstat phy,v$sysstat cur v$sysstat con
    WHERE phy.name ='physical reads'
    AND cur.name ='db block gets'
    AND con.name='consistent gets';
    80% 미만이면 DB_BLOCK_BUFFERS 증가
    (RAW device 는 90% 미만)
    Reference Documents
    --------------------

  • SGA Tuning - Total, Free, Used Per Node in RAC

    Hi,
    I am working on Total, Free, Used MB for SGA per instance, similar to a chart in TOAD (AWR Browser). The report from TOAD is combination of all the nodes. I want to per node.
    Can someone help me on the script.
    Thanks,

    893593 wrote:
    Hi,
    I am working on Total, Free, Used MB for SGA per instance, similar to a chart in TOAD (AWR Browser). The report from TOAD is combination of all the nodes. I want to per node.
    Can someone help me on the script.
    Thanks,
    10:21:07 SQL> select * from gv$sgainfo
    10:21:21   2  ;
       INST_ID NAME                      BYTES RES
          1 Fixed SGA Size                 2213656 No
          1 Redo Buffers                  7585792 No
          1 Buffer Cache Size               637534208 Yes
          1 Shared Pool Size               301989888 Yes
          1 Large Pool Size                16777216 Yes
          1 Java Pool Size                16777216 Yes
          1 Streams Pool Size                16777216 Yes
          1 Shared IO Pool Size                    0 Yes
          1 Granule Size                 16777216 No
          1 Maximum SGA Size              1553305600 No
          1 Startup overhead in Shared Pool    83886080 No
       INST_ID NAME                      BYTES RES
          1 Free SGA Memory Available          553648128
    12 rows selected.

  • Tuning Oracle10g

    Hi All,
    I am learning Oracle Memory Tuning and gone through some Performance Tuning Articles. My questions are:
    - Since Oracle10g has Automatic Memory Management, once we specified Max SGA and MAX PGA what we need to tune in memory?
    - Where can I get tuning examples with case scenarios?
    Thanks & Regards,
    Danish

    Hi Danish,
    Since Oracle10g has Automatic Memory Management, once we specified Max SGA and MAX PGA what we need to tune in memory?My company supports hundreds of databases, and I've noticed that while this "autoimated" memory management is OK for small databases, it may not be right for shops with a large or busy system. This is because AMM is "reactive", and waits until it detects a problem before addressing it. I have an alert here about it, how AMM resise operations can cause performance issues, in some cases:
    http://www.dba-oracle.com/t_amm_automatic_memory_resize.htm
    Oracle has an insatiable appetite for RAM, but there are diminishing marginal returns as you approach full caching.
    Your goal is to give him enough RAM to hit the "sweet spot" of optimal pool sizes.
    Oracle has pool advisory utilities that can assist you in this, check them out . . . .
    Also, I wrote this note especially for people like you, who use AMM and want to tune RAM:
    http://www.oracle-training.cc/t_amm_oracle_instance_tuning.htm
    Since you are on 10g, I've collected numerous "gotchas" in 10g that you may find useful:
    http://www.dba-oracle.com/t_slow_performance_after_upgrade.htm
    Where can I get tuning examples with case scenarios?There are literally thousands of examples on the web. I would search like this, for Oracle RAM (or SGA) tuning examples:
    http://www.google.com/search?&q=oracle+ram%7Csga+tuning+example
    In sum, the best way to learn how to optimize RAM is to dive-in and get your feet wet!
    Hope this helps . . .
    Donald K. Burleson
    Oracle Press author
    Author of "Oracle Tuning: The Definitive Reference"
    http://www.rampant-books.com/book_2005_1_awr_proactive_tuning.htm

  • Sizing of SGA

    Hi All,
    OS:Windows 32 bit
    RAM= 2GB
    DB: Oracle 10.2.0.3
    I am in a fix, my UAT server is used to run reports and it was running fine earlier but now due to a big java file , the report is not generated.
    In my DB automatic SGA tuning is not enable and the SGA parameters are specified as below:
    sga_max_size=1400M
    Java_pool_size=32M
    large_pool_size=104M
    pga_aggregate_target=512M
    Kindly tell me how to go about this as the RAM size of the UAT server is limited to 2GB and whether i should enable auto SGA tuning for the same, will this move help the cause?
    BR
    Sphinx
    Edited by: $phinx19 on Aug 14, 2012 3:20 AM

    Hi,
    I tried increasing the size of java pool but i got the following error:
    alter system set java_pool_size=104M scope=spfile;ERROR at line 1:
    ORA-02097: parameter cannot be modified because specified value is invalid
    ORA-04033: Insufficient memory to grow pool
    So can you please tell me how to go about this?
    Will enabling SGA_TARGET will help the cause or can I reduce some other parameter so that it can compensate for the increase in Java pool?
    BR
    Sphinx

  • Oracle 10G New Feature........Part 1

    Dear all,
    from last couple of days i was very busy with my oracle 10g box,so i think this is right time to
    share some intresting feature on 10g and some internal stuff with all of you.
    Have a look :-
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Oracle 10g Memory and Storage Feature.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1.Automatic Memory Management.
    2.Online Segment Shrink
    3.Redolog Advisor, checkpointing
    4.Multiple Temporary tablespace.
    5.Automatic Workload Repository
    6.Active Session History
    7.Misc
    a)Rename Tablespace
    b)Bigfile tablespace
    c)flushing buffer cache
    8.ORACLE INTERNAL
    a)undocumented parameter (_log_blocks_during_backup)
    b)X$ view (x$messages view)
    c)Internal Structure of Controlfile
    1.Automatic memory management
    ================================
    This feature reduce the overhead of oracle DBA.previously mostly time we need to set diff oracle SGA parameter for
    better performance with the help of own experience,advice views and by monitoring the behaviour
    of oracle database.
    this was just time consuming activity.........
    Now this feature makes easy life for oracle DBA.
    Just set SGA_TARGET parameter and it automatically allocate memory to different SGA parameter.
    it focus on DB_CACHE_SIZE
    SHARED_POOL_SIZE
    LARGE_POOL
    JAVA_POOL
    and automatically set it as
    __db_cache_size
    __shared_pool_size
    __large_pool_size
    __java_pool_size
    check it in alert_log
    MMAN(memory manager) process is new in 10g and this is responsible for sga tuning task.
    it automatically increase and decrease the SGA parameters value as per the requirement.
    Benefit:- Maximum utlization of available SGA memory.
    2.Online Segment Shrink.
    ==========================
    hmmmmm again a new feature by oracle to reduce the downtime.Now oracle mainly focus on availablity
    thats why its always try to reduce the downtime by intrducing new feature.
    in previous version ,reducing High water mark of table was possible by
    Exp/imp
    or
    alter table move....cmd. but on these method tables was not available for normal use for long hrs if it has more data.
    but in 10g with just few command we can reduce the HWmark of table.
    this feature is available for ASSM tablespaces.
    1.alter table emp enable row movement.
    2.alter table emp shrink space.
    the second cmd have two phases
    first phase is to compact the segment and in this phase DML operations are allowed.
    second phase(shrink phase)oracle shrink the HWM of table, DML operation will be blocked at that time for short duration.
    So if want to shrink the HWM of table then we should use it with two diff command
    first compact the segment and then shrink it on non-peak hrs.
    alter table emp shrink space compact. (This cmd doesn't block the DML operation.)
    and alter table emp shrink space. (This cmd should be on non-peak hrs.)
    Benefit:- better full table scan.
    3.Redolog Advisor and checkpointing
    ================================================================
    now oracle will suggest the size of redo log file by V$INSTANCE_RECOVERY
    SELECT OPTIMAL_LOGFILE_SIZE
    FROM V$INSTANCE_RECOVERY
    this value is influence with the value of FAST_START_MTTR_TARGET .
    Checkpointing
    Automatic checkpointing will be enable after setting FAST_START_MTTR_TARGET to non-zero value.
    4.Multiple Temporary tablespace.
    ==================================
    Now we can manage multiple temp tablespace under one group.
    we can create a tablespace group implicitly when we include the TABLESPACE GROUP clause in the CREATE TEMPORARY TABLESPACE or ALTER TABLESPACE statement and the specified tablespace group does not currently exist.
    For example, if group1 is not exists,then the following statements create this groups with new tablespace
    CREATE TEMPORARY TABLESPACE temp1 TEMPFILE '/u02/oracle/data/temp01.dbf'
    SIZE 50M
    TABLESPACE GROUP group1;
    --Add Existing temp tablespace into group by
    alter tablespace temp2 tablespace group group1.
    --we can also assign the temp tablespace group on database level as default temp tablespace.
    ALTER DATABASE <db name> DEFAULT TEMPORARY TABLESPACE group1;
    benefit:- Better I/O
    One sql can use more then one temp tablespace
    5.AWR(Automatic Workload Repository):-
    ================================== AWR is built in Repository and Central point of Oracle 10g.Oracle self managing activities
    is fully dependent on AWR.by default after 1 hr, oracle capure all database uses information and store in AWR with the help of
    MMON process.we called it Memory monitor process.and all these information are kept upto 7 days(default) and after that it automatically purge.
    we can generate a AWR report by
    SQL> @?/rdbms/admin/awrrpt
    Just like statspack report but its a advance and diff version of statspack,it provide more information of Database as well as OS.
    it show report in Html and Text format.
    we can also take manually snapshot for AWR by
    BEGIN
    DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT ();
    END;
    **The STATISTICS_LEVEL initialization parameter must be set to the TYPICAL or ALL to enable the Automatic Workload Repository.
    [oracle@RMSORA1 oracle]$ sqlplus / as sysdba
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Mar 17 10:37:22 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> @?/rdbms/admin/awrrpt
    Current Instance
    ~~~~~~~~~~~~~~~~
    DB Id DB Name Inst Num Instance
    4174002554 RMSORA 1 rmsora
    Specify the Report Type
    ~~~~~~~~~~~~~~~~~~~~~~~
    Would you like an HTML report, or a plain text report?
    Enter 'html' for an HTML report, or 'text' for plain text
    Defaults to 'html'
    Enter value for report_type: text
    Type Specified: text
    Instances in this Workload Repository schema
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    DB Id Inst Num DB Name Instance Host
    * 4174002554 1 RMSORA rmsora RMSORA1
    Using 4174002554 for database Id
    Using 1 for instance number
    Specify the number of days of snapshots to choose from
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Entering the number of days (n) will result in the most recent
    (n) days of snapshots being listed. Pressing <return> without
    specifying a number lists all completed snapshots.
    Listing the last 3 days of Completed Snapshots
    Snap
    Instance DB Name Snap Id Snap Started Level
    rmsora RMSORA 16186 16 Mar 2006 17:33 1
    16187 16 Mar 2006 18:00 1
    16206 17 Mar 2006 03:30 1
    16207 17 Mar 2006 04:00 1
    16208 17 Mar 2006 04:30 1
    16209 17 Mar 2006 05:00 1
    16210 17 Mar 2006 05:31 1
    16211 17 Mar 2006 06:00 1
    16212 17 Mar 2006 06:30 1
    16213 17 Mar 2006 07:00 1
    16214 17 Mar 2006 07:30 1
    16215 17 Mar 2006 08:01 1
    16216 17 Mar 2006 08:30 1
    16217 17 Mar 2006 09:00 1
    Specify the Begin and End Snapshot Ids
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Enter value for begin_snap: 16216
    Begin Snapshot Id specified: 16216
    Enter value for end_snap: 16217
    End Snapshot Id specified: 16217
    Specify the Report Name
    ~~~~~~~~~~~~~~~~~~~~~~~
    The default report file name is awrrpt_1_16216_16217.txt. To use this name,
    press <return> to continue, otherwise enter an alternative.
    Benefit:- Now DBA have more free time to play games.....................:-)
    Advance version of statspack
    more DB and OS information with self managing capabilty
    New Automatic alert and database advisor with the help of AWR.
    6.Active Session History:-
    ==========================
    V$active_session_history is view that contain the recent session history.
    the memory for ASH is comes from SGA and it can't more then 5% of Shared pool.
    So we can get latest and active session report from v$active_session_history view and also get histortical data of
    of session from DBA_HIST_ACTIVE_SESS_HISTORY.
    v$active_session_history include some imp column like:-
    ~SQL identifier of SQL statement
    ~Object number, file number, and block number
    ~Wait event identifier and parameters
    ~Session identifier and session serial number
    ~Module and action name
    ~Client identifier of the session
    7.Misc:-
    ========
    Rename Tablespace:-
    =================
    in 10g,we can even rename a tablespace by
    alter tablespace <tb_name> rename to <tb_name_new>;
    This command will update the controlfile,data dictionary and datafile header,but dbf filename will be same.
    **we can't rename system and sysaux tablespace.
    Bigfile tablespace:-
    ====================
    Bigfile tablespace contain only one datafile.
    A bigfile tablespace with 8K blocks can contain a 32 terabyte datafile.
    Bigfile tablespaces are supported only for locally managed tablespaces with automatic segment-space management.
    we can take the advantage of bigfile tablespace when we are using ASM or other logical volume with RAID.
    without ASM or RAID ,it gives poor response.
    syntax:-
    CREATE BIGFILE TABLESPACE bigtbs
    Flushing Buffer Cache:-
    ======================
    This option is same as flushing the shared pool,but only available with 10g.
    but i don't know, whats the use of this command in prod database......
    anyway we can check and try it on test server for tuning n testing some query etc....
    SQL> alter system flush buffer_cache;
    System altered.
    ++++++++++++++++++
    8.Oracle Internal
    ++++++++++++++++++
    Here is some stuff that is not related with 10g but have some intresting things.
    a)undocumented parameter "_log_blocks_during_backup"
    ++++++++++++++++++++++++
    as we know that oracle has generate more redo logs during hotbackup mode because
    oracle has to maintain the a complete copy of block into redolog due to split block.
    we can also change this behaviour by setting this parameter to False.
    If Oracle block size equals the operating system block size.thus reducing the amount of redo generated
    during a hot backup.
    WITHOUT ORACLE SUPPORT DON'T SET IT ON PROD DATABASE.THIS DOCUMENT IS JUST FOR INFORMATIONAL PURPOSE.
    b)some X$ views (X$messages)
    ++++++++++++++++
    if you are intresting in oracle internal architecture then x$ view is right place for getting some intresting things.
    X$messages :-it show all the actions that a background process do.
    select * from x$messages;
    like:-
    lock memory at startup MMAN
    Memory Management MMAN
    Handle sga_target resize MMAN
    Reset advisory pool when advisory turned ON MMAN
    Complete deferred initialization of components MMAN
    lock memory timeout action MMAN
    tune undo retention MMNL
    MMNL Periodic MQL Selector MMNL
    ASH Sampler (KEWA) MMNL
    MMON SWRF Raw Metrics Capture MMNL
    reload failed KSPD callbacks MMON
    SGA memory tuning MMON
    background recovery area alert action MMON
    Flashback Marker MMON
    tablespace alert monitor MMON
    Open/close flashback thread RVWR
    RVWR IO's RVWR
    kfcl instance recovery SMON
    c)Internal Structure of Controlfile
    ++++++++++++++++++++++++++++++++++++
    The contents of the current controlfile can be dumped in text form.
    Dump Level Dump Contains
    1 only the file header
    2 just the file header, the database info record, and checkpoint progress records
    3 all record types, but just the earliest and latest records for circular reuse record types
    4 as above, but includes the 4 most recent records for circular reuse record types
    5+ as above, but the number of circular reuse records included doubles with each level
    the session must be connected AS SYSDBA
    alter session set events 'immediate trace name controlf level 5';
    This dump show lots of intresting information.
    it also show rman recordes if we used this controlfile in rman backup.
    Thanks
    Kuljeet Pal Singh

    You can find each doc in html and pdf format on the Documentation Library<br>
    You can too download all the documentation in html format to have all on your own computer here (445.8MB)<br>
    <br>
    Nicolas.

  • Shared Pool error in Oracle 10.1.0.5

    Setup : 3-node RAC clustered databases
    OS version : RHEL 4.5
    DB version : 10.1.0.5
    Storage : ASM diskgroups for C/R/D files & archivelogs on SAN box
    applications : no. of OLTP applications running on a separate app server
    We are getting ORA-04031 SHARED POOL MEMORY error . There are three nodes : node1, node2 & node3 each running on RHEL AS4 OS . The sga components are not tuned automatically i mean there is no automated sga tuning or resizing . We have set each SGA component manuallay when required. All the c/r/d files are stored on ASM Diskgroups .
    From last night we are facing the SHARED POOL MEMORY issue . There are number of OLTP applications running at front end and the load is more on node3 . Due to the saturation of shared pool it affected the applications and the CPU utilization on App server was almost 90%. But the CPU utilization on each rac node was just below 30%. The Client's complained slow performance of applications and in fact few user sessions hung up.
    What we found in the alert log is the ORA-04031 shared pool error . Which was casuing the problem and the applications started to work very slowly . For workaround we increased the size of the SHARED_POOL_SIZE parameter as well as we flushed the shared pool memory . Now the applications were running fine. I have also observed that there were 454 INACTIVE sessions in the node3. Will these sessions have any impact on performance?
    But i dont know whether it will be fixed for future as well. But Can anyone suggest me how could i approach for resolving this issue permanently ?
    I know that we are still using 10.1.0.5 release and also one more thing is that the SWAP space in one of the node is 4GB short compared to other two nodes swap space. I cant post you the logs please.Whatever i have observed and done i have posted here.
    Any suggestions will be hugely appreciate. Thanks taking out sometime to helping me out.
    Regards,
    imran khan

    I understand SB and i know that 10gr1 is going to be de-supported in dec,2011. But for atleast we can fix the problem for more two months . There are few critical applications which required minimal downtime but at present the client doesn't want to have any outage. Please help.
    Thanks.

  • How to uninstall Oracle 11g Database Options?

    I've come across a problem. A company that developed an application, installed Oracle 11g EE.
    I guess they would use all default options. Some of them are licensed separately, and are not used. So I need to uninstall them.
    For example, I see that it is installed "Advanced Compression". I tried to uninstall it from the Universal Installer, but there isn't an option.

    Good news for my company.
    There has never been used "Advanced Compression" and for everything else we are licensed.
    NAME                                                     VERSION     DETECTED_USAGES CURRENTLY_USED LAST_USAGE_DATE
    Active Data Guard - Real-Time Query on Physical Standby  11.2.0.2.0                0 FALSE                         
    ADDM                                                     11.2.0.2.0                0 FALSE                         
    Advanced Replication                                     11.2.0.2.0                0 FALSE                         
    Application Express                                      11.2.0.2.0                0 FALSE                         
    Automatic SGA Tuning                                     11.2.0.2.0                0 FALSE                         
    Automatic Storage Management                             11.2.0.2.0                0 FALSE                         
    Automatic Workload Repository                            11.2.0.2.0                0 FALSE                         
    AWR Baseline                                             11.2.0.2.0                0 FALSE                         
    AWR Baseline Template                                    11.2.0.2.0                0 FALSE                         
    Backup BASIC Compression                                 11.2.0.2.0                0 FALSE                         
    Backup BZIP2 Compression                                 11.2.0.2.0                0 FALSE                         
    Backup Encryption                                        11.2.0.2.0                0 FALSE                         
    Backup HIGH Compression                                  11.2.0.2.0                0 FALSE                         
    Backup LOW Compression                                   11.2.0.2.0                0 FALSE                         
    Backup MEDIUM Compression                                11.2.0.2.0                0 FALSE                         
    Backup Rollforward                                       11.2.0.2.0                0 FALSE                         
    Backup ZLIB Compression                                  11.2.0.2.0                0 FALSE                         
    Baseline Adaptive Thresholds                             11.2.0.2.0                0 FALSE                         
    Baseline Static Computations                             11.2.0.2.0                0 FALSE                         
    Bigfile Tablespace                                       11.2.0.2.0                0 FALSE                         
    Block Media Recovery                                     11.2.0.2.0                0 FALSE                         
    Change Data Capture                                      11.2.0.2.0                0 FALSE                         
    Change-Aware Incremental Backup                          11.2.0.2.0                0 FALSE                         
    Character Semantics                                      11.2.0.2.0                0 FALSE                         
    Client Identifier                                        11.2.0.2.0                0 FALSE                         
    Clusterwide Global Transactions                          11.2.0.2.0                0 FALSE                         
    Compression Advisor                                      11.2.0.2.0                0 FALSE                         
    Crossedition Triggers                                    11.2.0.2.0                0 FALSE                         
    CSSCAN                                                   11.2.0.2.0                0 FALSE                         
    Data Guard                                               11.2.0.2.0                0 FALSE                         
    Data Mining                                              11.2.0.2.0                0 FALSE                         
    Data Recovery Advisor                                    11.2.0.2.0                0 FALSE                         
    Database Replay: Workload Capture                        11.2.0.2.0                0 FALSE                         
    Database Replay: Workload Replay                         11.2.0.2.0                0 FALSE                         
    Deferred Open Read Only                                  11.2.0.2.0                0 FALSE                         
    Direct NFS                                               11.2.0.2.0                0 FALSE                         
    Dynamic SGA                                              11.2.0.2.0                0 FALSE                         
    Editioning Views                                         11.2.0.2.0                0 FALSE                         
    Editions                                                 11.2.0.2.0                0 FALSE                         
    EM Database Control                                      11.2.0.2.0                0 FALSE                         
    Encrypted Tablespaces                                    11.2.0.2.0                0 FALSE                         
    Exadata                                                  11.2.0.2.0                0 FALSE                         
    Extensibility                                            11.2.0.2.0                0 FALSE                         
    File Mapping                                             11.2.0.2.0                0 FALSE                         
    Flashback Data Archive                                   11.2.0.2.0                0 FALSE                         
    Flashback Database                                       11.2.0.2.0                0 FALSE                         
    GoldenGate                                               11.2.0.2.0                0 FALSE                         
    HeapCompression                                          11.2.0.2.0                0 FALSE                         
    Hybrid Columnar Compression                              11.2.0.2.0                0 FALSE                         
    Instance Caging                                          11.2.0.2.0                0 FALSE                         
    Internode Parallel Execution                             11.2.0.2.0                0 FALSE                         
    Label Security                                           11.2.0.2.0                0 FALSE                         
    Locator                                                  11.2.0.2.0                0 FALSE                         
    Long-term Archival Backup                                11.2.0.2.0                0 FALSE                         
    Materialized Views (User)                                11.2.0.2.0                0 FALSE                         
    Messaging Gateway                                        11.2.0.2.0                0 FALSE                         
    Multi Section Backup                                     11.2.0.2.0                0 FALSE                         
    Multiple Block Sizes                                     11.2.0.2.0                0 FALSE                         
    Object                                                   11.2.0.2.0                0 FALSE                         
    OLAP - Analytic Workspaces                               11.2.0.2.0                0 FALSE                         
    OLAP - Cubes                                             11.2.0.2.0                0 FALSE                         
    Oracle Database Vault                                    11.2.0.2.0                0 FALSE                         
    Oracle Java Virtual Machine (user)                       11.2.0.2.0                0 FALSE                         
    Oracle Managed Files                                     11.2.0.2.0                0 FALSE                         
    Oracle Multimedia                                        11.2.0.2.0                0 FALSE                         
    Oracle Multimedia DICOM                                  11.2.0.2.0                0 FALSE                         
    Oracle Secure Backup                                     11.2.0.2.0                0 FALSE                         
    Oracle Text                                              11.2.0.2.0                0 FALSE                         
    Oracle Utility External Table                            11.2.0.2.0                0 FALSE                         
    Oracle Utility SQL Loader (Direct Path Load)             11.2.0.2.0                0 FALSE                         
    PL/SQL Native Compilation                                11.2.0.2.0                0 FALSE                         
    Read Only Tablespace                                     11.2.0.2.0                0 FALSE                         
    Real Application Clusters (RAC)                          11.2.0.2.0                0 FALSE                         
    Real-Time SQL Monitoring                                 11.2.0.2.0                0 FALSE                         
    Recovery Area                                            11.2.0.2.0                0 FALSE                         
    Recovery Manager (RMAN)                                  11.2.0.2.0                0 FALSE                         
    Resource Manager                                         11.2.0.2.0                0 FALSE                         
    Restore Point                                            11.2.0.2.0                0 FALSE                         
    Result Cache                                             11.2.0.2.0                0 FALSE                         
    RMAN - Disk Backup                                       11.2.0.2.0                0 FALSE                         
    RMAN - Tape Backup                                       11.2.0.2.0                0 FALSE                         
    Rules Manager                                            11.2.0.2.0                0 FALSE                         
    SecureFile Compression (system)                          11.2.0.2.0                0 FALSE                         
    SecureFile Compression (user)                            11.2.0.2.0                0 FALSE                         
    SecureFile Deduplication (system)                        11.2.0.2.0                0 FALSE                         
    SecureFile Deduplication (user)                          11.2.0.2.0                0 FALSE                         
    SecureFile Encryption (system)                           11.2.0.2.0                0 FALSE                         
    SecureFile Encryption (user)                             11.2.0.2.0                0 FALSE                         
    Semantics/RDF                                            11.2.0.2.0                0 FALSE                         
    Server Flash Cache                                       11.2.0.2.0                0 FALSE                         
    Services                                                 11.2.0.2.0                0 FALSE                         
    Shared Server                                            11.2.0.2.0                0 FALSE                         
    Spatial                                                  11.2.0.2.0                0 FALSE                         
    SQL Access Advisor                                       11.2.0.2.0                0 FALSE                         
    SQL Performance Analyzer                                 11.2.0.2.0                0 FALSE                         
    SQL Plan Management                                      11.2.0.2.0                0 FALSE                         
    SQL Profile                                              11.2.0.2.0                0 FALSE                         
    SQL Repair Advisor                                       11.2.0.2.0                0 FALSE                         
    SQL Tuning Set (system)                                  11.2.0.2.0                0 FALSE                         
    SQL Tuning Set (user)                                    11.2.0.2.0                0 FALSE                         
    SQL Workload Manager                                     11.2.0.2.0                0 FALSE                         
    Streams (system)                                         11.2.0.2.0                0 FALSE                         
    Streams (user)                                           11.2.0.2.0                0 FALSE                         
    Transparent Data Encryption                              11.2.0.2.0                0 FALSE                         
    Transparent Gateway                                      11.2.0.2.0                0 FALSE                         
    Transportable Tablespace                                 11.2.0.2.0                0 FALSE                         
    Tune MView                                               11.2.0.2.0                0 FALSE                         
    Undo Advisor                                             11.2.0.2.0                0 FALSE                         
    Very Large Memory                                        11.2.0.2.0                0 FALSE                         
    Workspace Manager                                        11.2.0.2.0                0 FALSE                         
    XDB                                                      11.2.0.2.0                0 FALSE                         
    XStream In                                               11.2.0.2.0                0 FALSE                         
    XStream Out                                              11.2.0.2.0                0 FALSE                         
    XStream Streams                                          11.2.0.2.0                0 FALSE                         
    ASO native encryption and checksumming                   11.2.0.2.0                1 FALSE          20/10/12       
    Segment Advisor (user)                                   11.2.0.2.0                1 FALSE          08/03/13       
    SQL Tuning Advisor                                       11.2.0.2.0                2 FALSE          09/02/13       
    AWR Report                                               11.2.0.2.0                3 FALSE          09/02/13       
    Oracle Utility Datapump (Import)                         11.2.0.2.0                3 FALSE          26/05/12       
    EM Performance Page                                      11.2.0.2.0                5 FALSE          20/10/12       
    SQL Monitoring and Tuning pages                          11.2.0.2.0                5 FALSE          20/10/12       
    Job Scheduler                                            11.2.0.2.0                6 TRUE           13/04/13       
    Segment Shrink                                           11.2.0.2.0                6 TRUE           13/04/13       
    EM Grid Control                                          11.2.0.2.0               27 FALSE          15/03/13       
    Automatic SQL Execution Memory                           11.2.0.2.0               35 TRUE           13/04/13       
    MTTR Advisor                                             11.2.0.2.0               41 TRUE           13/04/13       
    Parallel SQL DDL Execution                               11.2.0.2.0               56 TRUE           13/04/13       
    Parallel SQL DML Execution                               11.2.0.2.0               56 TRUE           13/04/13       
    Parallel SQL Query Execution                             11.2.0.2.0               61 TRUE           13/04/13       
    Oracle Utility Datapump (Export)                         11.2.0.2.0               93 TRUE           13/04/13       
    Oracle Utility Metadata API                              11.2.0.2.0               93 TRUE           13/04/13       
    Automatic Segment Space Management (user)                11.2.0.2.0               95 TRUE           13/04/13       
    Automatic SQL Tuning Advisor                             11.2.0.2.0               95 TRUE           13/04/13       
    LOB                                                      11.2.0.2.0               95 TRUE           13/04/13       
    Partitioning (user)                                      11.2.0.2.0               95 TRUE           13/04/13       
    Audit Options                                            11.2.0.2.0               96 TRUE           13/04/13       
    Automatic Maintenance - Optimizer Statistics Gathering   11.2.0.2.0               96 TRUE           13/04/13       
    Automatic Maintenance - Space Advisor                    11.2.0.2.0               96 TRUE           13/04/13       
    Automatic Maintenance - SQL Tuning Advisor               11.2.0.2.0               96 TRUE           13/04/13       
    Automatic Memory Tuning                                  11.2.0.2.0               96 TRUE           13/04/13       
    Automatic Segment Space Management (system)              11.2.0.2.0               96 TRUE           13/04/13       
    Automatic Undo Management                                11.2.0.2.0               96 TRUE           13/04/13       
    Character Set                                            11.2.0.2.0               96 TRUE           13/04/13       
    Deferred Segment Creation                                11.2.0.2.0               96 TRUE           13/04/13       
    Locally Managed Tablespaces (system)                     11.2.0.2.0               96 TRUE           13/04/13       
    Locally Managed Tablespaces (user)                       11.2.0.2.0               96 TRUE           13/04/13       
    Logfile Multiplexing                                     11.2.0.2.0               96 TRUE           13/04/13       
    Oracle Java Virtual Machine (system)                     11.2.0.2.0               96 TRUE           13/04/13       
    Partitioning (system)                                    11.2.0.2.0               96 TRUE           13/04/13       
    SecureFiles (system)                                     11.2.0.2.0               96 TRUE           13/04/13       
    SecureFiles (user)                                       11.2.0.2.0               96 TRUE           13/04/13       
    Server Parameter File                                    11.2.0.2.0               96 TRUE           13/04/13       
    Virtual Private Database (VPD)                           11.2.0.2.0               96 TRUE           13/04/13 thanks again

  • Oracle Support ORA-4031 Troubleshooting Tool problem - FILE VALIDATION FAIL

    Hi,
    Having problem while trying to use ORA-4031 Troubleshooting Tool on the Oracle Support site.
    I believe I upload all files correctly: db alert log, 4031 trace file and AWR report (HTML), answered YES to the question.
    But, get this error:
    "FILE VALIDATION FAILED: Fatal Error: missing 4031 information in the trace file. ..."
    However, the trace file has 4031 error information:
    *** SERVICE NAME:(SYS$BACKGROUND) 2011-12-20 08:27:06.548
    *** SESSION ID:(546.1) 2011-12-20 08:27:06.548
    *** 2011-12-20 08:27:06.548
    AUTO SGA: Dumping stacks and disabling background sga tuning on error 604, simerr=0
    ORA-00604: error occurred at recursive SQL level 2
    ORA-04031: unable to allocate 4120 bytes of shared memory ("shared pool","select shared_pool_size_for_...","Typecheck","kgghteInit")
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    ksedst+001c bl ksedst1 000000000 ? 646F33002040000 ?
    kmgsb_tune+0ce0 bl 03F5A418
    ksbcti+03d8 bl _ptrgl              
    ksbabs+025c bl ksbcti FFFFFFFFFFFD068 ? 000000006 ?
    70000004D63CBA0 ?
    kebm_mmon_main+02e4 bl 01FC6DA4
    ksbrdp+0408 bl _ptrgl              
    opirip+03fc bl 03F59B14
    opidrv+0448 bl opirip 110278B10 ? 41027B9D0 ?
    FFFFFFFFFFFF340 ?
    sou2o+0090 bl opidrv 3202AB38FC ? 440656000 ?
    FFFFFFFFFFFF340 ?
    opimai_real+0150 bl 01FC4EB4
    main+0098 bl opimai_real 000000000 ? 000000000 ?
    __start+0098 bl main 000000000 ? 000000000 ?
    --------------------- Binary Stack Dump ---------------------
    ========== FRAME [1] (ksedst+001c -> ksedst1) ==========
    Dump of memory from 0x0FFFFFFFFFFFBB70 to 0x0FFFFFFFFFFFBBE0
    FFFFFFFFFFFBB70 0FFFFFFF FFFFBBE0 42842228 00000000 [........B."(....]
    FFFFFFFFFFFBB80 00000001 000D9DE0 00000000 00000000 [................]
    FFFFFFFFFFFBB90 00000000 00000000 00000001 102242E8 [............."B.]
    FFFFFFFFFFFBBA0 00000000 00000000 0646F330 02040000 [.........F.0....]
    FFFFFFFFFFFBBB0 00000001 10000B00 00000001 05294C08 [.............)L.]
    FFFFFFFFFFFBBC0 00000000 0000025C 00000000 0000025C [.......\.......\]
    FFFFFFFFFFFBBD0 00000001 101902C0 0FFFFFFF FFFFBBE0 [................]
    ========== FRAME [2] (kmgsb_tune+0ce0 -> 03F5A418) ==========
    Dump of memory from 0x0FFFFFFFFFFFBBE0 to 0x0FFFFFFFFFFFBFE0
    FFFFFFFFFFFBBE0 0FFFFFFF FFFFCE60 00000000 00000000 [.......`........]
    FFFFFFFFFFFBBF0 00000001 04356164 00000000 00000000 [.....5ad........]
    (.... etc.)
    What am I doing wrong ?
    Oracle 10.2.0.3 (compatible=9.2.0) on AIX.
    Thanks.

    user12053739 wrote:
    My question here is not abuot ORA-4031 error and how to troubleshoot it, but about the error (FILE VALIDATION FAILED) that I receive in ORA-4031 Trobleshooting Tool on the Oracle Support web site. We do manuall analyses and troubleshooting as well, but would be nice if the tool works as well.Have you followed all the steps in (How to use the ORA-4031 Troubleshooting Tool on MOS [ID 1381442.1])? If yes, then I believe you need to log a SR for this issue as none of us maintain this tool, and you need someone from Oracle (development team who maintain it internally) to verify why you are getting that error when uploading the files.
    Thanks,
    Hussein

  • Pfile

    Hi all, I am using Oracle 10gR2 on Solaris 10.
    We have a RAC, two nodes as well as ASM on them. Both the nodes are using their local PFILES. Currently the sga_target is set to 0 on my DB. I have checked the init.ora files on both the nodes and there is no entry on sga_target.
    #### SGA Tuning ####
    *.sga_max_size=12G
    *.shared_pool_size=1024M
    *.db_cache_size=4096M
    *.large_pool_size=1024M
    The total size of the SGA is 12G, but if we add up the below values they dont sum up to 12G. Is this normal? If I want oracle to use automatic memory management do I need to manually add the parameter in the PFILE? Do I need to make some other changes as well?
    Regards.....

    Hi,
    #        Initialization Parameter Settings Done By Connectiva Systems (I) Pvt. Ltd For MTC Group RA - (2007)                     #
    ################# DATBASE NAME : gradb , Node 1 Instance Name : gradb1 , Node 2 Instance Name : gradb2 ###########################
    ################# Local Listener For Node 1:LISTENER_RA-DB1 , Local Listener For Node 2:LISTENER_RA-DB2 ##########################
    ##### Global Settings #####
    *.compatible='10.2.0'
    *.db_domain=''
    *.db_name='gradb'
    *.cluster_database=TRUE
    *.cluster_database_instances=4
    *.control_files='+MTCRAC_DBREP_DATA/ctlfile/gradbctl01.ctl','+MTCRAC_TEMP_ALL/ctlfile/gradbctl02.ctl'
    *.control_file_record_keep_time=60 # 60 Days Control File Record Retention #
    *.db_files=3000
    *.recyclebin='OFF'
    *.fast_start_mttr_target=1200 # 20 Minutes #
    #### Data I/O Tuning ####
    *.db_block_size=16384
    *.db_block_checking='true'
    *.db_cache_advice='OFF'
    *.db_file_multiblock_read_count=16 #### Stripe Read 16k*16 => 256K ####
    *.gcs_server_processes=8
    #### Enqueue Processes Restriction ####
    *.aq_tm_processes=2
    *.job_queue_processes=200
    #### SGA Tuning ####
    *.sga_max_size=12G
    *.sga_target=12G
    *.shared_pool_size=0
    *.db_cache_size=0
    *.large_pool_size=0
    #### PGA Allocation Limit ####
    *.pga_aggregate_target=6144M
    #### PGA Tuning Parameters ####
    *.open_cursors=2000
    *.session_cached_cursors=2000
    #### Query Optimization Tuning ####
    *.optimizer_index_caching=60
    *.optimizer_index_cost_adj=40
    #### Enhanced Feature For Query ####
    *.query_rewrite_enabled='true'
    *.star_transformation_enabled='true'
    #### Limit Total Number of Processes In The Environment ####
    *.processes=2000
    ####### Undo Tuning ######
    *.undo_management='AUTO'
    *.undo_retention=36000## 10Hrs ##
    #### XML Database Listener Registration Configuration ####
    *.dispatchers="(PROTOCOL=TCP) (SERVICE=gradbXDB)"
    #### Automatic Archivelog Settings ####
    *.log_archive_format="gradb%T_seq%S_reset%r"
    *.log_archive_dest='+MTCRAC_ARCHIVE_DEST/archivefile'
    ##### Local Settings #####
    *.background_dump_dest='/logs/db_logs/GRADB_logs/bdump'
    *.user_dump_dest='/logs/db_logs/GRADB_logs/udump'
    *.core_dump_dest='/logs/db_logs/GRADB_logs/cdump'
    *.audit_file_dest='/logs/db_logs/GRADB_logs/adump'
    *.audit_trail=db
    ##### Instance Based Settings #####
    gradb1.instance_number=1
    gradb2.instance_number=2
    gradb1.local_listener='LISTENER_RA-DB1'
    gradb2.local_listener='LISTENER_RA-DB2'
    gradb1.thread=1
    gradb2.thread=2
    gradb1.undo_tablespace='UNDOTBS_N1'
    gradb2.undo_tablespace='UNDOTBS_N2'
    *.statistics_level='BASIC'Now when I start the instance it give me this error
    ORA-00824: cannot set sga_target due to existing internal settings, see alert log for more information
    There is nothing in the alert log.
    Regards.....

  • Wpg_docload fails with "large" files

    Hi people,
    I have an application that allows the user to query and download files stored in an external application server that exposes its functionality via webservices. There's a lot of overhead involved:
    1. The user queries the file from the application and gets a link that allows her to download the file. She clicks on it.
    2. Oracle submits a request to the webservice and gets a XML response back. One of the elements of the XML response is an embedded XML document itself, and one of its elements is the file, encoded in base64.
    3. The embedded XML document is extracted from the response, and the contents of the file are stored into a CLOB.
    4. The CLOB is converted into a BLOB.
    5. The BLOB is pushed to the client.
    Problem is, it only works with "small" files, less than 50 KB. With "large" files (more than 50 KB), the user clicks on the download link and about one second later, gets a
    The requested URL /apex/SCHEMA.GET_FILE was not found on this serverWhen I run the webservice outside Oracle, it works fine. I suppose it has to do with PGA/SGA tuning.
    It looks a lot like the problem described at this Ask Tom question.
    Here's my slightly modified code (XMLRPC_API is based on Jason Straub's excellent [Flexible Web Service API|http://jastraub.blogspot.com/2008/06/flexible-web-service-api.html]):
    CREATE OR REPLACE PROCEDURE get_file ( p_file_id IN NUMBER )
    IS
        l_url                  VARCHAR2( 255 );
        l_envelope             CLOB;
        l_xml                  XMLTYPE;
        l_xml_cooked           XMLTYPE;
        l_val                  CLOB;
        l_length               NUMBER;
        l_filename             VARCHAR2( 2000 );
        l_filename_with_path   VARCHAR2( 2000 );
        l_file_blob            BLOB;
    BEGIN
        SELECT FILENAME, FILENAME_WITH_PATH
          INTO l_filename, l_filename_with_path
          FROM MY_FILES
         WHERE FILE_ID = p_file_id;
        l_envelope := q'!<?xml version="1.0"?>!';
        l_envelope := l_envelope || '<methodCall>';
        l_envelope := l_envelope || '<methodName>getfile</methodName>';
        l_envelope := l_envelope || '<params>';
        l_envelope := l_envelope || '<param>';
        l_envelope := l_envelope || '<value><string>' || l_filename_with_path || '</string></value>';
        l_envelope := l_envelope || '</param>';
        l_envelope := l_envelope || '</params>';
        l_envelope := l_envelope || '</methodCall>';
        l_url := 'http://127.0.0.1/ws/xmlrpc_server.php';
        -- Download XML response from webservice. The file content is in an embedded XML document encoded in base64
        l_xml := XMLRPC_API.make_request( p_url      => l_url,
                                          p_envelope => l_envelope );
        -- Extract the embedded XML document from the XML response into a CLOB
        l_val := DBMS_XMLGEN.convert( l_xml.extract('/methodResponse/params/param/value/string/text()').getclobval(), 1 );
        -- Make a XML document out of the extracted CLOB
        l_xml := xmltype.createxml( l_val );
        -- Get the actual content of the file from the XML
        l_val := DBMS_XMLGEN.convert( l_xml.extract('/downloadResult/contents/text()').getclobval(), 1 );
        -- Convert from CLOB to BLOB
        l_file_blob := XMLRPC_API.clobbase642blob( l_val );
        -- Figure out how big the file is
        l_length    := DBMS_LOB.getlength( l_file_blob );
        -- Push the file to the client
        owa_util.mime_header( 'application/octet', FALSE );
        htp.p( 'Content-length: ' || l_length );
        htp.p( 'Content-Disposition: attachment;filename="' || l_filename || '"' );
        owa_util.http_header_close;
        wpg_docload.download_file( l_file_blob );
    END get_file;
    /I'm running XE, PGA is 200 MB, SGA is 800 MB. Any ideas?
    Regards,
    Georger

    Script: http://www.indesignsecrets.com/downloads/MultiPageImporter2.5JJB.jsx.zip
    It works great for files upto ~400 pages, when have more pages than that, is when I get the crash at around page 332 .
    Thanks

  • CRS Migration: Repository functions Only

    Hello,
    by the migration of a CR Server XI to CR2008 the Repository functions failed by the migration.
    Is there any possibility to migrate only Functions without the other repository elements. Or is it possible to manipulate the BIAR File in order to select only Repository functions by the import and how ..?
    Thanx

    There is plenty of tablespace space left.
    I was able to do the migration by installing the migration repository in a 10.2.05 database and then migrating the access database into this same 11.1.0.7 database. Just couldn't get the repository created in this db.
    Using SQLDeveloper 3.0.04 Build Main 04.34
    NLS_Characterset = US7ASCII
    NAME VERSION DETECTED_USAGES
    Automatic Maintenance - Optimizer Statistics Gathering 11.1.0.7.0 16
    Automatic Maintenance - SQL Tuning Advisor 11.1.0.7.0 16
    Automatic Maintenance - Space Advisor 11.1.0.7.0 16
    Automatic SGA Tuning 11.1.0.7.0 16
    Automatic SQL Execution Memory 11.1.0.7.0 16
    Automatic SQL Tuning Advisor 11.1.0.7.0 16
    Automatic Segment Advisor 11.1.0.7.0 6
    Automatic Segment Space Management (system) 11.1.0.7.0 16
    Automatic Segment Space Management (user) 11.1.0.7.0 2
    Automatic Storage Management 11.1.0.7.0 16
    Automatic Undo Management 11.1.0.7.0 16
    Character Set 11.1.0.7.0 16
    LOB 11.1.0.7.0 16
    Locally Managed Tablespaces (system) 11.1.0.7.0 16
    Locally Managed Tablespaces (user) 11.1.0.7.0 16
    Logfile Multiplexing 11.1.0.7.0 16
    Materialized Views (User) 11.1.0.7.0 16
    Oracle Utility Metadata API 11.1.0.7.0 16
    Parallel SQL Query Execution 11.1.0.7.0 16
    Partitioning (system) 11.1.0.7.0 16
    RMAN - Disk Backup 11.1.0.7.0 15
    Real Application Clusters (RAC) 11.1.0.7.0 16
    Recovery Area 11.1.0.7.0 16
    Recovery Manager (RMAN) 11.1.0.7.0 15
    Resource Manager 11.1.0.7.0 15
    Segment Advisor 11.1.0.7.0 6
    Server Parameter File 11.1.0.7.0 16
    Services 11.1.0.7.0 16
    Edited by: 875118 on Jul 26, 2011 2:40 PM

  • Guidelines for SGA and PGA tuning for 10gR2 RAC and ASM ?

    I am looking for tuning information on SGA and PGA tuning for Oracle 10g (10.2) RAC and ASM for a 4TB OLTP and DSS mixed environment on Solaris 10 platform.

    We are running Solaris 10 SPARC 64 bit with Oracle 10gR2 RAC Enterprise Edition and ASM on Sun servers with 32GB of RAM for memory for a 4TB OLTP database.
    It is in design phase so I do not have an existing AWR or Statspack report yet. Is there a best practices guideline on how to size parameters for the SGA (ie: shared_pool_size, etc) and PGA for this environment from Oracle?

  • Tuning SGA

    Hi experts,
    Can anyone give me some basic tuning script for tuning SGA.?

    Take a look at Oracle ebook:
    Oracle® Database Performance Tuning Guide
    10g Release 2 (10.2)
    Part Number B14211-01
    Chapter 7 Memory Configuration and Use
    Greetings...
    Sim

  • Tuning of SGA on Oracle 8.0.5 and AIX 4.3.3

    Hi folks,
    I have an AIX box running AIX 4.3.3 and Oracle 8.0.5.2.0. The original SGA settings are as follows:
    shared_pool_size = 150000000
    sort_area_size = 1024876
    db_block_buffer = 126102
    The SGA size then is:
    Total System Global Area 1838467232 bytes
    Fixed Size 47264 bytes
    Variable Size 803287040 bytes
    Database Buffers 1033027584 bytes
    Redo Buffers 2105344 bytes
    I changed the SGA settings to the following:
    shared_pool_size = 768000000
    sort_area_size = 512000000
    The SGA size is now:
    Total System Global Area 2227943584 bytes
    Fixed Size 47264 bytes
    Variable Size 214097920 bytes
    Database Buffers 2013265920 bytes
    Redo Buffers 532480 bytes
    After this change was done, the system ran but the users had some problems running reports in JDEOneWorld.
    I then downsize the SGA settings and altered the db_block_buffer to improve buffer cache hits with these settings:
    db_block_buffers = 245760
    shared_pool_size = 200000000
    sort_area_size = 1048576
    On restarting the database with the new values, I noted that the SGA size remained unchanged as below:
    Total System Global Area 2278475936 bytes
    Fixed Size 47264 bytes
    Variable Size 264105984 bytes
    Database Buffers 2013265920 bytes
    Redo Buffers 1056768 bytes
    I tried to increase the size of db_block_buffers to 327680 but encountered ORA-27123 when trying to startup the database. I did some searches in metalink and found an article saying that the SGA size cannot exceed 2GB on AIX platforms. (Doc ID: 114934.1). Therefore I resize the db_block_buffers back to 245760.
    What puzzles me is why the SGA size does not reflect my latest init.ora settings? Does anyone have any idea on how I can get the SGA to reflect the updated values in the init.ora file?

    I did a find and here are the files I got:
    278529 12 -rw-r--r-- 1 oracle dba 8332 May 12 1998 /u01/app/oracle/product/805/dbs/init.ora
    278531 0 lrwxrwxrwx 1 oracle dba 43 Apr 14 2001 /u01/app/oracle/product/805/dbs/initklb.ora -> /u01/app/oracle/admin/klb/pfile/initklb.ora
    278532 0 lrwxrwxrwx 1 oracle dba 45 Apr 14 2001 /u01/app/oracle/product/805/dbs/initklb_0.ora -> /u01/app/oracle/admin/klb/pfile/initklb_0.ora
    49154 8 -rw-r--r-- 1 oracle dba 4657 Sep 7 2000 /u01/app/oracle/product/orig_db/initklb.ora
    49155 8 -rw-r--r-- 1 oracle dba 4657 Jul 27 2000 /u01/app/oracle/product/orig_db/initklb_0.ora
    151553 4 -rw-r--r-- 1 oracle dba 2985 Aug 4 2006 /u01/app/oracle/product/luz/pfile/initklb.ora
    49161 8 -rw-r--r-- 1 oracle dba 4118 Oct 11 11:22 /u01/app/oracle/admin/klb/pfile/initklb.ora
    135169 4 -rw-r--r-- 1 oracle dba 2896 Aug 4 2006 /u01/app/oracle/admin/klb/pfile/backup/initklb.ora
    49168 8 -rw-r--r-- 1 root dba 4687 Jul 21 2001 /u01/app/oracle/admin/klb/pfile/archive/initklb1.ora
    49162 8 -rw-r--r-- 1 oracle dba 4657 Dec 23 1999 /u01/app/oracle/admin/klb/pfile/archive/initklb_0.ora
    The instance name is KLB so the applicable files are:
    278531 0 lrwxrwxrwx 1 oracle dba 43 Apr 14 2001 /u01/app/oracle/product/805/dbs/initklb.ora -> /u01/app/oracle/admin/klb/pfile/initklb.ora
    278532 0 lrwxrwxrwx 1 oracle dba 45 Apr 14 2001 /u01/app/oracle/product/805/dbs/initklb_0.ora -> /u01/app/oracle/admin/klb/pfile/initklb_0.ora
    49154 8 -rw-r--r-- 1 oracle dba 4657 Sep 7 2000 /u01/app/oracle/product/orig_db/initklb.ora
    49155 8 -rw-r--r-- 1 oracle dba 4657 Jul 27 2000 /u01/app/oracle/product/orig_db/initklb_0.ora
    151553 4 -rw-r--r-- 1 oracle dba 2985 Aug 4 2006 /u01/app/oracle/product/luz/pfile/initklb.ora
    49161 8 -rw-r--r-- 1 oracle dba 4118 Oct 11 11:22 /u01/app/oracle/admin/klb/pfile/initklb.ora
    135169 4 -rw-r--r-- 1 oracle dba 2896 Aug 4 2006 /u01/app/oracle/admin/klb/pfile/backup/initklb.ora
    49168 8 -rw-r--r-- 1 root dba 4687 Jul 21 2001 /u01/app/oracle/admin/klb/pfile/archive/initklb1.ora
    49162 8 -rw-r--r-- 1 oracle dba 4657 Dec 23 1999 /u01/app/oracle/admin/klb/pfile/archive/initklb_0.ora
    Now, exclude the files in the product, backup and archive directories (the pfile should be in the pfile directory), and that leaves us with:
    49161 8 -rw-r--r-- 1 oracle dba 4118 Oct 11 11:22 /u01/app/oracle/admin/klb/pfile/initklb.ora
    (Which is the file that I edited)
    As I mentioned previously, my client is not prepared to perform an upgrade on both Oracle and AIX. As much as I would like to have them upgrade to the latest versions, it is just not possible.
    Oracle 8.0.5 does not have spfiles, so there is no way for me to edit a spfile unless this is one of those undocumented tricks floating around.

Maybe you are looking for