Contention for latches related to the shared pool was consuming significant

We are having performance issue on our database. When I look at the AWR, I see that there is a contention for latches. Below is the AWR Report.
ADDM Report for Task 'ADDM:1775307360_12808'
Analysis Period
AWR snapshot range from 12807 to 12808.
Time period starts at 10-MAY-11 01.00.15 PM
Time period ends at 10-MAY-11 02.00.23 PM
Analysis Target
Database 'ADVFDWP' with DB ID 1775307360.
Database version 11.1.0.7.0.
ADDM performed an analysis of all instances.
Activity During the Analysis Period
Total database time was 27827 seconds.
The average number of active sessions was 7.71.
Summary of Findings
Description Active Sessions Recommendations
Percent of Activity
1 Shared Pool Latches 6.43 | 83.42 0
2 Top SQL by DB Time 2.41 | 31.24 3
3 "Concurrency" Wait Class 2.18 | 28.22 0
4 PL/SQL Execution 1.53 | 19.86 1
5 "User I/O" wait Class 1.33 | 17.24 0
6 Hard Parse 1.24 | 16.14 0
7 Undersized Buffer Cache .83 | 10.73 0
8 CPU Usage .7 | 9.02 0
9 Top SQL By I/O .31 | 4.04 1
10 Top Segments by I/O .24 | 3.12 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Findings and Recommendations
Finding 1: Shared Pool Latches
Impact is 6.43 active sessions, 83.42% of total activity.
Contention for latches related to the shared pool was consuming significant
database time in some instances.
Instances that were significantly affected by this finding:
Number Name Percent Impact ADDM Task Name
1 ADVFDWP1 99.31 ADDM:1775307360_1_12808
Check the ADDM analysis of affected instances for recommendations.
Finding 2: Top SQL by DB Time
Impact is 2.41 active sessions, 31.24% of total activity.
SQL statements consuming significant database time were found.
Recommendation 1: SQL Tuning
Estimated benefit is 1.07 active sessions, 13.82% of total activity.
Action
Run SQL Tuning Advisor on the SQL statement with SQL_ID "fdk73nhpt93a5".
Related Object
SQL statement with SQL_ID fdk73nhpt93a5.
INSERT INTO SFCDM.F_LOAN_PTFL_MOL_SNPSHT SELECT * FROM
F_LOAN_PTFL_MOL_SNPSHT_STG
Recommendation 2: SQL Tuning
Estimated benefit is 1 active sessions, 12.96% of total activity.
Action
Tune the PL/SQL block with SQL_ID "7nvgzsgy9ydn9". Refer to the "Tuning
PL/SQL Applications" chapter of Oracle's "PL/SQL User's Guide and
Reference".
Related Object
SQL statement with SQL_ID 7nvgzsgy9ydn9.
begin
insert into SFCDM.F_LOAN_PTFL_MOL_SNPSHT select * from
F_LOAN_PTFL_MOL_SNPSHT_STG;
end;
Recommendation 3: SQL Tuning
Estimated benefit is .4 active sessions, 5.2% of total activity.
Action
Investigate the SQL statement with SQL_ID "fcvfq2gzmxu0t" for possible
performance improvements.
Related Object
SQL statement with SQL_ID fcvfq2gzmxu0t.
select
a11.DT_YR_MO DT_YR_MO,
a11.IND_SCRTZD IND_SCRTZD,
a13.CD_LNSTAT CD_LNSTAT_INTGRTD,
sum(a11.CNT_LOAN) WJXBFS1,
sum(a11.AMT_PART_EOP_UPB) WJXBFS2,
sum(a11.AMT_LST_VLD_PART_UPB) WJXBFS3
from
SFCDM.F_LOAN_PTFL_MOL_SNPSHT
a11
join
SFCDM.D_DETD_LNSTAT_CURR
a12
on
(a11.ID_CYCL_CLOS_DETD_LNSTAT_SRGT = a12.ID_DETD_LNSTAT_SRGT)
join
SFCDM.D_LNSTAT_CD
a13
on
(a12.ID_LNSTAT_CD_SRGT = a13.ID_LNSTAT_CD_SRGT)
join
SFCDM.D_LOAN_CHARTC_CURR_MINI
a14
on
(a11.ID_LOAN_CHARTC_SRGT = a14.ID_LOAN_CHARTC_SRGT)
where
(a11.DT_YR_MO in (201103)
and a14.CD_SFCRM_LOAN_BUS_LI not in ('L', 'T', 'W')
and a13.CD_LNSTAT in (14)
and not exists
(select * from SFCDM.F_LOAN_PTFL_MOL_SNPSHT s
where s.id_loan_syst_gend = a11.id_loan_syst_gend
and s.dt_yr_mo

It is worth checking the actual size of the shared pool e.g.
select pool,sum(bytes)/1024/1024/1024 from v$sgastat group by pool;
the parameters you ahve posted suggest you have set a minimum but no maximum, so it could very large.
Next up is looking for unhared SQL i.e.
select column1 from some_table where column2='A_VALUE';
select column1 from some_table where column2='Another_Value';
where the code should be using binds instead of literals for security and performance reasons, a simple way to find this is to look in v$sql for sql having the same plan_hash_value but different sql_Ids and compare the sql_fulltext of each statement.
Also a possibility is sql with many child cursors, this is trickier as the cause may vary and may not be easy to fix. check th econtents of v$sql for sql that have high values in the child_number column anmd investigate the contents of v$sql_shared_cursor for the reason there are multiple child cursors.
Chris

Similar Messages

  • How to pin sequences in the shared pool for RAC?

    We have a RAC environment with two instances. I want to pin some sequences in the shared pool to boost the performance. Do I need to pin them in both of the instances or just pin them in one instance?
    Thanks in advance

    If you cannot tolerate gaps, you must not use sequences. Period. A sequence-generated key will have gaps because transactions roll back, because databases get shut down, etc. If you want to ensure that there are no gaps, you have to write code that serializes access to a resource (i.e. a custom table of sequences) over the full length of a transaction. Of course, this is hugely inefficient and kills the application's scalability, but it does prevent gaps. Sequences are much faster and much more scalable, but they do not and can not guarantee that there are no gaps.
    Assuming the intention is to minimize gaps, rather than to eliminate them, NOCACHE & ORDER can help. That means, though, that you may need to communicate with the other nodes in the cluster every time you need a new value from the sequence, which is the slow part. Pinning the sequence is not going to be beneficial.
    Justin

  • Keeps an object in the shared pool

    hello all
    please tell me, when should we keep an object in the shared pool?how can we find out which should be kept in shared pool? please tell me in detail..........
    thank you all in advance

    mohammed_dba wrote:
    hi dear,
    please tell me how can find out which package is frequently pins? please give query for thatI guess you mean which packages are frequently accessed and are candidate for the pinning in the keep pool.
    Use the following query:
    SELECT substr(owner,1,10)||'.'||substr(name,1,35) "Object Name",
    ' Type: '||substr(type,1,12)||
    ' size: '||sharable_mem ||
    ' execs: '||executions||
    ' loads: '||loads||
    ' Kept: '||kept
    FROM v$db_object_cache
    WHERE type in ('TRIGGER','PROCEDURE','PACKAGE BODY','PACKAGE')
    AND executions > 0
    ORDER BY executions desc,
    loads desc,
    sharable_mem desc;Then check which objects have high value for the EXECS column. Also consult with your application developers to identify the frequently used code.
    regards

  • Set a dbms job which will flush the shared pool on box everyday 12.00am on

    Hello ,
    i want to set dbms job to flush shared pool everyday at 12.00 am on windows box.
    so can you please provide me script for that or idea on that.
    also i want to know where i have to set that job on sys or system or in user account.
    Thanks

    Receiving the 404 on box. Since the Oracle 404 error is
    ORA-00404: Convert file not found: "string"
    Cause: The file used for converting the database from V7 to V8 could not be found.
    Action: Verify that the migration process has been started on this database and that the convert filename is accessable.
    I'm going to go out on a limb and assume that you're talking about the HTTP 404 (Not Found) error. If that's the case, that would seem to be an issue with your web server/ web application and not with the database. Why do you believe that the database has any involvement with the error you're getting or that flushing the shared pool will resolve the error?
    Justin

  • How to calculate the shared pool size ..........

    Does anyone know if there is a decent algorithm/method to calculate the shared pool size in Oracle 8.1.7.

    look my answer on your thread about db cache size
    How to Calculate the DB Block Buffer value.

  • I created a new ID for my Iphone, because the old ID was an email address I no longer have. Also, the phone wouldn't recognize the password I have always used. Now the problem is when I try to update my apps, it automatically wants to use the old ID.

    I created a new ID for my Iphone, because the old ID was an email address I no longer have. Also, the phone wouldn't recognize the password I have always used. Now the problem is when I try to update my apps, it automatically wants to use the old ID. I've set the new ID for the phone, but it defaults to the old one when asking for a password to update apps.

    That's because all apps are forever tied to the Apple ID used to obtain them, & can only be updated using that ID.
    To use your new ID with these apps, you'll have to delete them, then repurchase. Or, contact iTunes support, explain the situation, & ask that they add these apps to the download queue of your new ID.

  • Unable to check for available downloads. The network connecting was lost.

    I have purchased a film on my Apple TV and now want to download it to my iTunes on my MacBook. I can see that I have 1 available download, but when i try to down load it, it just keeps saying:
    "Unable to check for available downloads. The networl connection was lost"
    I know there is not a problem if my network!
    is anyone else having the same problem? Is this a problem with iTunes or my MacBook?
    cheers

    Hello loz114,
    This is frequently due to an inability to establish or maintain a connection to the iTunes Store. The following article provides some useful information and troubleshooting steps that can help restore this connection.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Cheers,
    Allen

  • HT203128 "Unable to check for available downloads. The network connection was lost." I have 3 downloads from yesterday that I receive this error code. Any ideas?

    I have 3 downloads from yesterday that I receive this error code. Any ideas?
    Thank you!

    I may have stumbled upon something that could help. A type of "detour" around the problem.
    I just started experiencing this problem a few days ago. Anytime I'd try to download a song/video/movie, I would get the message, "Unable to check for available downloads. The network connection was reset".
    So, instead of selecting "Check for Available Downloads" under "Advanced" menu...
    I logged into "My Account" page in itunes. If there are available downloads it comes up at the top of the page with the option button "Download Now". When I select that -- it downloads immediately.
    Can't promise it will work every time. But it's worked for me so far. Good luck...

  • HT5622 Why do i asked for payment verification if the application i was about to download is FREE?? This happens after i change/reset my password.

    Why do i asked for payment verification if the application i was about to download is FREE?? This happens after i change/reset my password.

    Ive tried to complete the payment verification form but was declined due to my card has insufficient fund. But take note the app i was downloading is Free. Why am i charging for a Free app? Is this some kind of a bug or something? Need some help.

  • HT3702 i recently made a download purchase for "numbers" online and the price quoted was for usd9.99 but my credit card company says that i have made an online purchase for usd39.98. How do I make a payment dispute on this purchase.?

    i recently made a download purchase for "numbers" online and the price quoted was for usd9.99 but my credit card company says that i have made an online purchase for usd39.98. How do I make a payment dispute on this purchase.?

    There was a mistake with your purchase. Contact with the iTunes Store support to get a refund > http://www.apple.com/support/itunes/contact

  • Script to find the " List of objects to be pinned in the shared pool"

    hi all,
    please suggest me any script is there to find the recommended objects to be pinned in to shared pool.
    Regards,
    Vamsi.

    I think the important question here is – do you really need to PIN objects? Are you facing any ORA-4031 errors?
    Oracle would tell you to PIN packages such as STANDARD, DBMS_STANDARD, DBMS_UTILITY, DBMS_OUTPUT. It really depends on your application. So I am afraid there is no exact answer for that, but you can work with your application team to learn if there is some large object that is very frequently used that you might want to PIN.
    I suggest that you check the larger objects from your SGA using the view v$db_object_cache that folks already pointed out checking the column SHARABLE_MEM.
    You can refer to v$sql or v$sqlarea (which is a grouping of v$sql) to find the most executed stored procedures and packages and so on.
    However, most of the problems shared pool problems I have faced were related to bad application coding - such as lack of bind variables - or shared pool undersized. Once those problems were fixed, I hardly had to PIN anything into the SGA.
    Regards

  • BI contents for AR related reports

    Hi all:
    I am designing several reports with BI contents. Since I am not so familiar with BI contents, I can only find the majarity of my reports, while for below reports, I can not find the corresponding content for them. Can any body give me some guide like which contents are suitable for those reports? Many thanks~
    Report Name:
    - DSO Planning
    - Bad Debt Reserve
    - Credit Review Reporting
    - Expiring Securities Report
    - Credit Reference Reporting (Web site)
    Thanks and Best Regards !
    Steven

    Hi Steven,
    SAP has provided around 4600 standard reports in BI related to all modules.Provide me your mail so that i can send u the list.
    Regards
    Ram.

  • Altering the Shared Pool Size

    I am trying to start an oracle instance and tell it to use the init.ora file. However i am receiveing an error about my pool size being too small. Please see below:
    SQL> startup pfile=/home/oracle/OraHome_1/dbs/init.ora
    ORA-00371: not enough shared pool memory, should be atleast 52132659 bytes
    I checked init.ora and the shared_pool_size is set to 3500000. However, i tried the other settings, as it had a medium and a large option, i tried these just to see what would happen. It didn't work, and i don't think this is the problem.
    I then tried this query:
    SQL> SELECT shared_pool_size_for_estimate,
    2 shared_pool_size_factor,
    3 estd_lc_time_saved
    4 FROM v$shared_pool_advice;
    And it output the settings for my shared_pool_size. The setting for "level 1: 76".
    Can anyone tell me if this is too low, or how to fix this problem?
    Thanks,
    Gary

    Set shared_pool_size to 83886080. Depending on your
    RAM and your applications you may need to further
    increase this value.I did this and tried to start oracle, i then got this error:
    SQL> startup pfile=/home/oracle/OraHome_1/dbs/init.ora
    ORACLE instance started.
    Total System Global Area 117440512 bytes
    Fixed Size 777952 bytes
    Variable Size 116400416 bytes
    Database Buffers 0 bytes
    Redo Buffers 262144 bytes
    ORA-00205: error in identifying controlfile, check alert log for more info
    Any ideas on what this means?
    I have googled, but i'm not sure. In init.ora i found this abotu control files:
    # define two control files by default
    control_files = (ora_control1, ora_control2)
    Does this look right?
    Gary.

  • My new computer is authorized and home sharing is turned on for both computers, but the Shared section is no longer showing up on either computer. What do I do now?

    I am not sure how to view the Shared section on either computer. It says the new computer will open it once it finds my other computer, or something like that, and I do not know why it is not finding it. Basically, I do not know what to do at this point.

    If you have the horizontal menu bar showing (File, Edit, View,...), select View, then select Show Sidebar. 
    If the menu bar is not showing, dorp down the menu in the very upper left corner and select show menu bar, then follow steps above.
    Hope that helps.  Good luck.

  • My parent's IPad is SUPER outdated and I'm trying to buy an app for my brother for Christmas. However, the computer that was connected to the IPAD, we no longer have. So is there any way I can update it on my mac without erasing all the photos and videos?

    My parent's IPad is SUPER outdated and I'm trying to buy an app for my brother for Christmas. However, I can't buy the app because it says we need to update the software. The thing is, the computer that was connected to the IPAD, we no longer have. So is there any way I can update it on my mac without erasing all the photos and videos?

    HELPPP ME BEFORE CHRISTMASS MORNING!!

Maybe you are looking for

  • URGENT: iframe in a dynamic page. Strange Problem.

    Hi all, I have a typical problem. I created a Dynamic Page which brings out the information of a Purchase Order (PO). (PO_REPORT) Now the numer of items in a PO can vary from 1 to anything.... so I made a seperated report based on sql query (ITEM_DET

  • Pictures not in camera roll

    I recently updated to the iOs 5 on my ipod touch.  I like the new feature that allows you to quickly get to the camera without unlocking the ipod.  However the pictures and videos I took that way can't be found.  Where did they go? 

  • How can I disable 2 step Verification on Thunderbird

    I have been trying and trying for hours to remove the 2 step verification from my computer. Every time I open my email I put in my password and then a minute later I get the message 'Sending of password for user *my username* did not succeed. Mail se

  • Folder Access Denied when trying to delete folder

    I am using Windows 2008 server.  I have a folder that I had setup as a share but now I want to delete it.  I am logged in with a domain account that is a member of the local Administrators group.  When I try to delete the folder I get a "Folder Acces

  • Missing part of downloaded audiobook

    I purchased my first audiobook and only part one of three parts downloaded.   How do I get the rest?