DBAsupport.com Forums - Powered by vBulletin
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Performance

  1. #1
    Join Date
    Aug 2000
    Posts
    52

    Red face

    We have a sql query .
    This query performing well in QA but not performaing well in Prod ?
    What and where should i look for ??

    Any guidence will be appreciated.

    SANJAY

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Compare the query plans.
    Jeff Hunter

  3. #3
    Join Date
    Aug 2000
    Posts
    52
    Explain plan is also same, we have identical system and database

  4. #4
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Is it the same volume of data?
    Is the data distributed on disk differently?
    Are the SGA's the same?
    Is all your hardware functioning properly?
    Jeff Hunter

  5. #5
    Join Date
    Aug 2000
    Posts
    52
    We have ensure that also.
    I think that I/O contention ...?????

  6. #6
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    Maybe. What are your disks doing? How is your data distributed? Have you analyzed your tables & indexes? Are you using the same optimizer in both dbs?
    Jeff Hunter

  7. #7
    Join Date
    Aug 2000
    Posts
    52
    Tables and indexes both are analyze at a regular interval.
    We have folowing configuration
    Mount Point
    u01 oracle software
    u02 data and system datafiles,
    u03 RBS files
    u04 indexes files
    u05 temp files
    u06 datafiles
    u07 datafiles
    u08 archivelogfiles.


    Control files and redolog groups are distributed across the disk...

    I fire following query and Threre is much difference between
    PHYRDS and PHYWRTS.

    col PHYRDS format 999,999,999
    col PHYWRTS formay 999,999,999
    col READTIM format 999,999,999
    col WRITETIM format 999,999,999
    col name format a40
    spool fiol.out

    select name, phyrds, phywrts, readtim, writetim
    from v$filestat a, v$datafile b
    where a.file# = b.file#
    order by readtim desc

  8. #8
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    Just a thought:

    Have you gathered stats for the SYS schema. This always trashes the performance on my systems. The data dictionary needs to run with the RBO. Do the following and try again:

    conn sys/password@service as sysdba
    EXEC DBMS_STATS.DELETE_SCHEMA_STATS('SYS');

    If this is the case avoid the GATHER_DATABASE_STATS procedure in favour of GATHER_SCHEMA_STATS.

    Cheers
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: oracle-base.com
    My blog: oracle-base.com/blog

  9. #9
    Join Date
    Aug 2000
    Posts
    52
    No ......Sir This is not the case.
    There no stats for SYS.


  10. #10
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,684
    Sorry. Worth a shot!

    I would try getting trace on this and using TKPROF. This may give you more detail on the differences between the repsonse from the servers.

    Cheers

    Tim...
    Tim...
    OCP DBA 7.3, 8, 8i, 9i, 10g, 11g
    OCA PL/SQL Developer
    Oracle ACE Director
    My website: oracle-base.com
    My blog: oracle-base.com/blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width