Database Tuning (MOSC)

MOSC Banner

Need help tuning this procedure

edited Aug 11, 2009 7:31AM in Database Tuning (MOSC) 5 commentsAnswered

Oracle Version:8.1.7

The following is an example of the information that is captured via the monitoring software that is being used and the DBA’s diligence in tracking down the root cause of the problem:

        
    SQL Statements with                      
    100,000+ Disk reads
    USERNAME          READS      EXECS RDS_EXEC_RATIO   CMD_TYPE    
    ---------- ------------ ---------- -------------- ----------    
    STATEMENT                                                         
    ------------------------------ ------------------------------ -----
    BATCHER      13,205,568          1     13,205,568         47    
    BEGIN exeter.ESI_ADVERTISING_DGGO1; END;                        
    NOTE: 13 million reads
    In the cursor loop a check is made if a row exists on CMN_CORRESPONDENCE; if not a row is inserted. The query does a full table scan on the 5,499,400 row table in each iteration of the loop. There is currently no indexes on the where-clause columns. The job that runs this procedure ran for 1 hour 25 minutes this last Sunday.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center