Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

A simple select query taking forever

ankurkDec 10 2010 — edited Dec 10 2010
Hi All

I am not able to execute a simple select query, I traced my session and here is TKPROF of that Trace.

Solaris 8 , Oracle 10.2.0.4.0
TKPROF: Release 10.2.0.4.0 - 
Copyright (c) 1982, 2007, Oracle.  All rights reserved.

Trace file: 502_ora_28260.trc
Sort options: default

********************************************************************************
count    = number of times OCI procedure was executed
cpu      = cpu time in seconds executing
elapsed  = elapsed time in seconds executing
disk     = number of physical reads of buffers from disk
query    = number of buffers gotten for consistent read
current  = number of buffers gotten in current mode (usually for update)
rows     = number of rows processed by the fetch or execute call
********************************************************************************

select OBJECT_ID , ORACLE_USERNAME , SESSION_ID
from
  v$locked_object


call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.00       0.00          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch        1      0.03      32.86          0          0          6           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        3      0.03      32.86          0          0          6           0

Misses in library cache during parse: 1
Optimizer mode: CHOOSE
Parsing user id: SYS

Rows     Row Source Operation
-------  ---------------------------------------------------
      0  MERGE JOIN  (cr=0 pr=0 pw=0 time=60 us)
      0   SORT JOIN (cr=0 pr=0 pw=0 time=58 us)
      0    MERGE JOIN  (cr=0 pr=0 pw=0 time=42 us)
      1     SORT JOIN (cr=0 pr=0 pw=0 time=2443 us)
   1105      FIXED TABLE FULL X$KSUSE (cr=0 pr=0 pw=0 time=1204 us)
      0     SORT JOIN (cr=0 pr=0 pw=0 time=41 us)
   1001      FIXED TABLE FULL X$KTCXB (cr=0 pr=0 pw=0 time=16132 us)
      0   SORT JOIN (cr=0 pr=0 pw=0 time=0 us)
      0    FIXED TABLE FULL X$KTADM (cr=0 pr=0 pw=0 time=0 us)


Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  SQL*Net message to client                       1        0.00          0.00
  buffer busy waits                              34        0.97         32.83
  SQL*Net break/reset to client                   1        0.00          0.00



********************************************************************************

OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.00       0.00          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch        1      0.03      32.86          0          0          6           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        3      0.03      32.86          0          0          6           0

Misses in library cache during parse: 1

Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  SQL*Net message to client                       2        0.00          0.00
  SQL*Net message from client                     1       19.00         19.00
  buffer busy waits                              34        0.97         32.83
  SQL*Net break/reset to client                   1        0.00          0.00


OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        0      0.00       0.00          0          0          0           0
Execute      0      0.00       0.00          0          0          0           0
Fetch        0      0.00       0.00          0          0          0           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        0      0.00       0.00          0          0          0           0

Misses in library cache during parse: 0

    1  user  SQL statements in session.
    0  internal SQL statements in session.
    1  SQL statements in session.
********************************************************************************
Trace file: 502_ora_28260.trc
Trace file compatibility: 10.01.00
Sort options: default

       0  session in tracefile.
       1  user  SQL statements in trace file.
       0  internal SQL statements in trace file.
       1  SQL statements in trace file.
       1  unique SQL statements in trace file.
      64  lines in trace file.
      32  elapsed seconds in trace file.
There is nothing fishy in alert logs... Please guide

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 7 2011
Added on Dec 10 2010
3 comments
348 views