Oracle Cloud Infrastructure
Coming soon ...
Apps R12.2
  • R12.2 Architecture
  • Cloning Error (RC-50208)
  • Apps R12.1
  • Major changes from 11i
  • R12:HTTP Debug Logging
  • Compile Apps Schema invalid objects in R12
  • Apps 11i
  • Apps Components and Architecture
  • Concurrent managers
  • Patching
  • Using AD Patch
  • Using AD Control
  • FNDCPASS utility
  • Single-node Installation
  • Multi-node Installation
  • Find Apps Version
  • Cloning
  • Upgrade 11.5.9 to 11.5.10.2
  • Upgrade from 11.5.10.2 to R12
  • Upgrading 9i to 10g with 11i
  • 11i/R12 General Topics
  • AppsDBA System Management Utilities Guide
  • Identifying Long Idle Sessions
  • Identifying High Active Sessions
  • Change hostname for EBS
  • Oracle 12c Database
  • Oracle12c PSU Apply
  • Oracle12c Datafile moved Online
  • Oracle 11g Database
  • Upgrade 10g to 11g R1
  • Upgrade 11.2.0.2 to 11.2.0.3
  • Database 9i-10g
  • Top 99 Responsibilities of a DBA
  • General Info
  • Database Patching
  • 10g:ASM
  • 10g:Data Pump
  • 10g:Data Guard Installing
  • 10g:Rollback Monitoring
  • 10g:Flashback Table
  • Tablespace Management
  • Materialized Views
  • 10g:Enterprise Manager
  • 10g:Upgrade
  • Error:Ora-01631
  • DBA Scripts
  • Disk I/O,Events,Waits
  • Tablespace Information
  • Session Statistics
  • Hit/Miss Ratios
  • User Information
  • Rollback Segments
  • Full Table Scans
  • Contention/Locking
  • Redo Log Buffer
  • Data Dictionary Info
  • Oracle10g Application Server
  • Oracle10g Application Installation
  • (Re)Securing OAS Control
  • Oracle AS10g null protocol issue
  • Oracle Backup & Recovery
  • RMAN
  • RMAN Setup
  • Backup Recovery
  • Flash Recovery Area
  • Oracle10g Discoverer with Apps
    Coming soon ..............
    Troubleshooting
  • Discoverer Troubleshooting
  • Access EBS in mozile
  • Linux and Unix Platforms
  • How To configure NFS
  • Unix/Linux Command
  • Change hostname in Linux
  • SENDMAIL configuration
  • This Oracle Application DBA Portal is the biggest knowledge gateway for the people in the world of Oracle...
    Monday, August 3, 2009
    Full Table Scans
    Full Table Scans
    Here are some scripts related to Full Table Scans .

    System Statistics (Table)SYSTEM STATISTICS (TABLE) NOTES:


    Statistic Name - Name of the statistic
    Bytes - Size


    This query provides information on the full table scan activity. If your application is OLTP only, having long full table scans can be an indicator of having missing or incorrect indexes or untuned SQL.
    Table fetch by rowid reflect the cumulative number of rows fetched from tables using a TABLE ACCESS BY ROWID operation.
    Table fetch continued row reflect the cumulative number of continued rows fetched. This value is incremented when accessing a row that is longer than a block in length and when accessing "migrated" rows. Migrated rows are rows that were relocated from their original location to a new location because of an update that increased their size to the point where they could no longer be accommodated inside their original block. Access to migrated rows will cause this statistic's value to increment only if the access is performed by ROWID. Full table scans of tables that contain migrated rows do not cause this counter to increment.
    Table scan blocks gotten reflect the cumulative number of blocks read for full table scans.
    Table scans rows gotten reflect the cumulative number of rows read for full table scans.
    Table scans (cache partitions) is used with the Parallel Query Option. The number of RowID ranges corresponds to the number of simultaneous query server processes that scan the table.
    Table scans (long scans) indicate a full scan of a table that has > 5 database blocks.
    Table scans (rowid ranges) is used with the Parallel Query Option. The number of RowID ranges corresponds to the number of simultaneous query server processes that scan the table.
    Table scans (short scans) indicate a full scan of a table that has <= 5 database blocks.

    select NAME,
    VALUE
    from v$sysstat
    where NAME like '%table'

    Process Table Scans
    PROCESS TABLE SCAN NOTES:



    User Process - Name of user process
    Long Scans - Full scan of a table that has > 5 database blocks.
    Short Scans - Full scan of a table that has <= 5 database blocks.
    Row Retrieved - Cumulative number of rows read for full table scans.

    select ss.username||'('||se.sid||') ' "User Process",
    sum(decode(name,'table scans (short tables)',value)) "Short Scans",
    sum(decode(name,'table scans (long tables)', value)) "Long Scans",
    sum(decode(name,'table scan rows gotten',value)) "Rows Retreived"
    from v$session ss,
    v$sesstat se,
    v$statname sn
    where se.statistic# = sn.statistic#
    and (name like '%table scans (short tables)%'
    or name like '%table scans (long tables)%'
    or name like '%table scan rows gotten%')
    and se.sid = ss.sid
    and ss.username is not null
    group by ss.username||'('||se.sid||') '

    Process Table Scans (Avg)
    PROCESS TABLE SCAN (AVERAGE) NOTES:



    User Process - Name of user process
    Short Scans - Number of short scans (<= 5 blocks)
    Long Scans - Number of long scans (> 5 blocks)
    Rows Retrieved - Number of rows retrieved
    Long Scans Length - Average long scan length (i.e. full table scan of > 5 blocks)

    select ss.username||'('||se.sid||') ' "User Process",
    sum(decode(name,'table scans (short tables)',value)) "Short Scans",
    sum(decode(name,'table scans (long tables)', value)) "Long Scans",
    sum(decode(name,'table scan rows gotten',value)) "Rows Retreived",
    round((sum(decode(name,'table scan rows gotten',value)) - (sum(decode(name,'table scans (short tables)',value)) * 5)) / (sum(decode(name,'table scans (long tables)', value))),2) "Long Scans Length"
    from v$session ss,
    v$sesstat se,
    v$statname sn
    where se.statistic# = sn.statistic#
    and (name like '%table scans (short tables)%'
    or name like '%table scans (long tables)%'
    or name like '%table scan rows gotten%')
    and se.sid = ss.sid
    and ss.username is not null
    group by ss.username||'('||se.sid||') '
    having sum(decode(name,'table scans (long tables)', value)) != 0
    order by 3 desc

    Labels:

    posted by Srinivasan .R @ 11:15 PM  
    2 Comments:
    • At November 23, 2020 at 7:02 PM, Blogger Free fire Diamond said…

    • At April 23, 2021 at 5:22 AM, Blogger Light Wilson said…

      Hi! I understand this is kind of off-topic but I had to ask. Does managing a well-established blog like yours require a lot of work? I am completely new to operating a blog however I do write in my diary daily. I’d like to start a blog so I can share my personal experience and views online. Please let me know if you have any kind of suggestions or tips for new aspiring blog owners. Thankyou!

      What your stating is absolutely genuine. I know that everyone ought to say the identical factor, but I just feel that you set it in a way that absolutely everyone can realize. I also adore the photographs you set in here. They fit so nicely with what youre hoping to say. Im guaranteed youll attain so numerous people today with what youve got to say.

      These moles may possibly be irregular in size and color and that is what can make them this type of wellness danger. When you have been born with this particular problem you might also be more likely to develop Melanoma and so you might have to get the required precautions with regards to protecting your pores and skin and your well being.

      This is such a great post, and was thinking much the same myself. It’s certainly an opinion I agree with.

      Enjoyed this article. I believe that the writer took an rationale perspective and made some pivotale ideas.

      Aw, it was an extremely good post. In notion I must place in writing such as this moreover – spending time and actual effort to make a really good article… but so what can I say… I procrastinate alot and no means apparently go completed.

      You need to experience a tournament for just one of the most effective blogs on the web. I’ll recommend this page!

      Thank you for yet another great informative article, I’m a loyal reader to this blog and I can’t stress enough how much valuable information I’ve learned from reading your content. I really appreciate all the hard work you put into this great site.

      When I originally commented I clicked the -Notify me when new comments are added- checkbox and now when a comment is added I buy four emails concentrating on the same comment. Perhaps there is in any manner you can get rid of me from that service? Thanks!

       
    Post a Comment
    << Home
     
    About Me

    Name: Srinivasan .R
    Home: Chennai, India

    About Me:
    I am working as an Oracle Applications DBA specializing in EBS 11i/R12 with Over 14+ years of experience, mainly in different versions of Oracle Database & Application administration on various platforms like HP-UX, SOLARIS, AIX, Red hat Linux & Windows
    See my complete profile
    High Availability
  • Oracle10g RAC Installation
  • A Quick Reference for Oracle Database 10g RAC on Linux and Unix Platforms
  • Implementing Oracle 10g RAC with ASM on AIX
  • Locked objects for whole RAC
  • Monitor Memory RAC
  • Sessions RAC
  • Install Oracle 11g RAC On Linux
  • Migrating Oracle10g DB to ASM
  • Helpful Links
  • Good Metalink Notes
  • Discoverer:Metalink Notes
  • Logs Scripts:Metalink Notes
  • Support:Metalink Notes
  • Previous Post
  • SENDMAIL configuration
  • Rollback Segments
  • User Information
  • Hit/Miss Ratios
  • Session Statistics
  • Tablespace Information
  • Disk I/O, Events, Waits
  • General Info
  • Migrating Oracle10g DB to ASM
  • Install Oracle 11g RAC On Linux
  • Archives
    Download Software
  • Oracle 11g
  • Oracle 10g
  • 10g Express Edition
  • Oracle 9i
  • Oracle Apps
  • Oracle Linux
  • Oracle VM
  • App Server
  • Solaris
  • Fedora
  • Fedora
  • OpenSUSE
  • Ubuntu
  • Advertisement Links
    INTUIT Technology

    MACHS DATA

    Add Ons
    Locations of visitors to this page

    Add to Google Reader or Homepage

    Template by
    Sreene



    Oracle Application DBA Portal