Unable to relate consistent reads with number of phsyical block reads

HI ,
The question is we have observed the consistent reads are much more than total buffers required to give the results back.
I have flushed the buffer_cache before executing the query and also queried the V$BH to know the buffer details for these objects ...after the flush before firing the query we don't have any buffers regarding these tables. Which is expected.
We are doing DB file sequential reads through the plan and it will result into a single block read at a time.
Please take a close look at "TABLE ACCESS BY INDEX ROWID CMPGN_DIM (cr=45379 pr=22949 pw=0 time=52434931 us)" line in the below row source plan..
Here we have only 22949 physical reads means 22949 data buffers but we are seeing 45379 consistent gets.
Note: We have the CMPGN_DIM and AD_GRP tables are in 4M block size table space and we have only than the default db_cache_size . My database block size is 8192.
Can you please help me in understand how the 22949 sequential reads result into 45379 consistant gets.
Even the V$BH query buffer details matches with physical reads .
query row source plan from 10043 trace:
27 SORT ORDER BY (cr=92355 pr=47396 pw=0 time=359030364 us)
27 WINDOW SORT (cr=92355 pr=47396 pw=0 time=359030088 us)
27 NESTED LOOPS OUTER (cr=92355 pr=47396 pw=0 time=359094569 us)
27 NESTED LOOPS OUTER (cr=92276 pr=47395 pw=0 time=359041825 us)
27 VIEW (cr=92197 pr=47393 pw=0 time=358984314 us)
27 UNION-ALL (cr=92197 pr=47393 pw=0 time=358984120 us)
26 HASH GROUP BY (cr=92197 pr=47393 pw=0 time=358983665 us)
9400 VIEW (cr=92197 pr=47393 pw=0 time=359094286 us)
9400 COUNT (cr=92197 pr=47393 pw=0 time=359056676 us)
9400 VIEW (cr=92197 pr=47393 pw=0 time=359009672 us)
9400 SORT ORDER BY (cr=92197 pr=47393 pw=0 time=358972063 us)
9400 HASH JOIN OUTER (cr=92197 pr=47393 pw=0 time=358954170 us)
9400 VIEW (cr=92191 pr=47387 pw=0 time=349796124 us)
9400 HASH JOIN (cr=92191 pr=47387 pw=0 time=349758517 us)
94 TABLE ACCESS BY INDEX ROWID CMPGN_DIM (cr=45379 pr=22949 pw=0 time=52434931 us)
50700 INDEX RANGE SCAN IDX_CMPGN_DIM_UK1 (cr=351 pr=349 pw=0 time=1915239 us)(object id 55617)
60335 TABLE ACCESS BY INDEX ROWID AD_GRP (cr=46812 pr=24438 pw=0 time=208234661 us)
60335 INDEX RANGE SCAN IDX_AD_GRP2 (cr=613 pr=611 pw=0 time=13350221 us)(object id 10072801)
7 VIEW (cr=6 pr=6 pw=0 time=72933 us)
7 HASH GROUP BY (cr=6 pr=6 pw=0 time=72898 us)
162 PARTITION RANGE SINGLE PARTITION: 4 4 (cr=6 pr=6 pw=0 time=45363 us)
162 PARTITION HASH SINGLE PARTITION: 676 676 (cr=6 pr=6 pw=0 time=44690 us)
162 INDEX RANGE SCAN PK_AD_GRP_DTL_FACT PARTITION: 3748 3748 (cr=6 pr=6 pw=0 time=44031 us)(object id 8347241)
1 FAST DUAL (cr=0 pr=0 pw=0 time=9 us)
25 TABLE ACCESS BY INDEX ROWID AD_GRP (cr=79 pr=2 pw=0 time=29817 us)

I think that I understand your question. The consistent gets statistic (CR) indicates the number of times blocks were accessed in memory, and doing so possibly required undo to be applied to the blocks to provide a consistent get. The physical read statistic (PR) indicates the number of blocks that were accessed from disk. The consistent gets statistic may be very close to the physical reads statistic, or very different depending on several factors. A test case might best explain why the CR and PR statistics may differ significantly. First, creating the test objects:
CREATE TABLE T1 AS
SELECT
  ROWNUM C1,
  1000000-ROWNUM C2,
  RPAD(TO_CHAR(ROWNUM),800,'X') C3
FROM
  DUAL
CONNECT BY
  LEVEL<=1000000;
CREATE INDEX INT_T1_C1 ON T1(C1);
CREATE INDEX INT_T1_C2 ON T1(C2);
CREATE TABLE T2 AS
SELECT
  ROWNUM C1,
  1000000-ROWNUM C2,
  RPAD(TO_CHAR(ROWNUM),800,'X') C3
FROM
  DUAL
CONNECT BY
  LEVEL<=100000;
COMMIT;
EXEC DBMS_STATS.GATHER_TABLE_STATS(OWNNAME=>USER,TABNAME=>'T1',CASCADE=>TRUE,ESTIMATE_PERCENT=>NULL)
EXEC DBMS_STATS.GATHER_TABLE_STATS(OWNNAME=>USER,TABNAME=>'T2',CASCADE=>TRUE,ESTIMATE_PERCENT=>NULL)We now have 2 tables, the first with 1,000,000 rows with about 8 rows per block and having 2 indexes, and the second table with 100,000 rows and no indexes.
SELECT
  TABLE_NAME,
  PCT_FREE,
  NUM_ROWS,
  BLOCKS
FROM
  USER_TABLES
WHERE
  TABLE_NAME IN ('T1','T2');
TABLE_NAME   PCT_FREE   NUM_ROWS     BLOCKS
T1                 10    1000000     125597
T2                 10     100000      12655
COLUMN INDEX_NAME FORMAT A10
SELECT
  INDEX_NAME,
  BLEVEL,
  LEAF_BLOCKS,
  DISTINCT_KEYS DK,
  CLUSTERING_FACTOR CF,
  NUM_ROWS
FROM
  USER_INDEXES
WHERE
  TABLE_NAME IN ('T1','T2');
INDEX_NAME     BLEVEL LEAF_BLOCKS         DK         CF   NUM_ROWS
INT_T1_C1           2        2226    1000000     125000    1000000
INT_T1_C2           2        2226    1000000     125000    1000000Now a test script to try a couple experiments with the two tables:
SET LIN 120
SET AUTOTRACE TRACEONLY STATISTICS EXPLAIN
SET TIMING ON
SPOOL C:\MYTEST.TXT
ALTER SESSION SET STATISTICS_LEVEL=TYPICAL;
ALTER SYSTEM FLUSH BUFFER_CACHE;
ALTER SYSTEM FLUSH BUFFER_CACHE;
ALTER SESSION SET TRACEFILE_IDENTIFIER = 'TEST1';
ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT FOREVER, LEVEL 8';
SELECT /*+ USE_HASH(T1 T2) */
  T1.C1,
  T2.C2,
  T1.C3
FROM
  T1,
  T2
WHERE
  T1.C2=T2.C2
  AND T1.C2 BETWEEN 900000 AND 1000000;
ALTER SYSTEM FLUSH BUFFER_CACHE;
ALTER SYSTEM FLUSH BUFFER_CACHE;
ALTER SESSION SET TRACEFILE_IDENTIFIER = 'TEST2';
SELECT /*+ USE_NL(T1 T2) */
  T1.C1,
  T2.C2,
  T1.C3
FROM
  T1,
  T2
WHERE
  T1.C2=T2.C2
  AND T1.C2 BETWEEN 900000 AND 1000000;
ALTER SYSTEM FLUSH BUFFER_CACHE;
ALTER SYSTEM FLUSH BUFFER_CACHE;
ALTER SESSION SET TRACEFILE_IDENTIFIER = 'TEST3';
SELECT /*+ USE_HASH(T1 T2) */
  T1.C1,
  T2.C2,
  T1.C3
FROM
  T1,
  T2
WHERE
  T1.C1=T2.C1
  AND T1.C1 BETWEEN 1 AND 100000;
ALTER SYSTEM FLUSH BUFFER_CACHE;
ALTER SYSTEM FLUSH BUFFER_CACHE;
ALTER SESSION SET TRACEFILE_IDENTIFIER = 'TEST4';
SELECT /*+ USE_NL(T1 T2) */
  T1.C1,
  T2.C2,
  T1.C3
FROM
  T1,
  T2
WHERE
  T1.C1=T2.C1
  AND T1.C1 BETWEEN 1 AND 100000;
ALTER SESSION SET TRACEFILE_IDENTIFIER = 'TEST5';
SELECT /*+ USE_NL(T1 T2) FIND_ME */
  T1.C1,
  T2.C2,
  T1.C3
FROM
  T1,
  T2
WHERE
  T1.C1=T2.C1
  AND T1.C1 BETWEEN 1 AND 100000;
SET AUTOTRACE OFF
ALTER SESSION SET EVENTS '10046 TRACE NAME CONTEXT OFF';
SPOOL OFFTest script output follows (note that the script was executed twice so that statistics related to the hard parse would be excluded):
SQL> SELECT /*+ USE_HASH(T1 T2) */
  2    T1.C1,
  3    T2.C2,
  4    T1.C3
  5  FROM
  6    T1,
  7    T2
  8  WHERE
  9    T1.C2=T2.C2
10    AND T1.C2 BETWEEN 900000 AND 1000000;
100000 rows selected.
Elapsed: 00:00:22.65
Execution Plan
Plan hash value: 488978626                                                                                             
| Id  | Operation                    | Name      | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |                     
|   0 | SELECT STATEMENT             |           | 99999 |    77M|       | 20139   (1)| 00:04:02 |                     
|*  1 |  HASH JOIN                   |           | 99999 |    77M|  1664K| 20139   (1)| 00:04:02 |                     
|*  2 |   TABLE ACCESS FULL          | T2        |   100K|   488K|       |  3435   (1)| 00:00:42 |                     
|   3 |   TABLE ACCESS BY INDEX ROWID| T1        |   100K|    77M|       | 12733   (1)| 00:02:33 |                     
|*  4 |    INDEX RANGE SCAN          | INT_T1_C2 |   100K|       |       |   226   (1)| 00:00:03 |                     
Predicate Information (identified by operation id):                                                                    
   1 - access("T1"."C2"="T2"."C2")                                                                                     
   2 - filter("T2"."C2">=900000 AND "T2"."C2"<=1000000)                                                                
   4 - access("T1"."C2">=900000 AND "T1"."C2"<=1000000)                                                                
Statistics
          0  recursive calls                                                                                           
          0  db block gets                                                                                             
      37721  consistent gets                                                                                           
      25226  physical reads                                                                                            
          0  redo size                                                                                                 
   82555058  bytes sent via SQL*Net to client                                                                          
      73722  bytes received via SQL*Net from client                                                                    
       6668  SQL*Net roundtrips to/from client                                                                         
          0  sorts (memory)                                                                                            
          0  sorts (disk)                                                                                              
     100000  rows processed                                                                                            
STAT lines from the 10046 trace:
STAT #37 id=1 cnt=100000 pid=0 pos=1 obj=0 op='HASH JOIN  (cr=37721 pr=25226 pw=0 time=106305676 us)'
STAT #37 id=2 cnt=100000 pid=1 pos=1 obj=48144 op='TABLE ACCESS FULL T2 (cr=12511 pr=12501 pw=0 time=13403966 us)'
STAT #37 id=3 cnt=100000 pid=1 pos=2 obj=48141 op='TABLE ACCESS BY INDEX ROWID T1 (cr=25210 pr=12725 pw=0 time=103903740 us)'
STAT #37 id=4 cnt=100000 pid=3 pos=1 obj=48143 op='INDEX RANGE SCAN INT_T1_C2 (cr=6877 pr=225 pw=0 time=503602 us)'Elapsed: 00:00:00.01
SQL> SELECT /*+ USE_NL(T1 T2) */
  2    T1.C1,
  3    T2.C2,
  4    T1.C3
  5  FROM
  6    T1,
  7    T2
  8  WHERE
  9    T1.C2=T2.C2
10    AND T1.C2 BETWEEN 900000 AND 1000000;
100000 rows selected.
Elapsed: 00:00:20.17
Execution Plan
Plan hash value: 1773329022                                                                                            
| Id  | Operation                   | Name      | Rows  | Bytes | Cost (%CPU)| Time     |                              
|   0 | SELECT STATEMENT            |           | 99999 |    77M|   303K  (1)| 01:00:43 |                              
|   1 |  TABLE ACCESS BY INDEX ROWID| T1        |     1 |   810 |     3   (0)| 00:00:01 |                              
|   2 |   NESTED LOOPS              |           | 99999 |    77M|   303K  (1)| 01:00:43 |                              
|*  3 |    TABLE ACCESS FULL        | T2        |   100K|   488K|  3435   (1)| 00:00:42 |                              
|*  4 |    INDEX RANGE SCAN         | INT_T1_C2 |     1 |       |     2   (0)| 00:00:01 |                              
Predicate Information (identified by operation id):                                                                    
   3 - filter("T2"."C2">=900000 AND "T2"."C2"<=1000000)                                                                
   4 - access("T1"."C2"="T2"."C2")                                                                                     
       filter("T1"."C2">=900000 AND "T1"."C2"<=1000000)                                                                
Statistics
          0  recursive calls                                                                                           
          0  db block gets                                                                                             
     250219  consistent gets                                                                                           
      25227  physical reads                                                                                            
          0  redo size                                                                                                 
   82555058  bytes sent via SQL*Net to client                                                                          
      73722  bytes received via SQL*Net from client                                                                    
       6668  SQL*Net roundtrips to/from client                                                                         
          0  sorts (memory)                                                                                            
          0  sorts (disk)                                                                                              
     100000  rows processed                                                                                            
STAT lines from the 10046 trace:
STAT #36 id=1 cnt=100000 pid=0 pos=1 obj=48141 op='TABLE ACCESS BY INDEX ROWID T1 (cr=250219 pr=25227 pw=0 time=61410637 us)'
STAT #36 id=2 cnt=200001 pid=1 pos=1 obj=0 op='NESTED LOOPS  (cr=231886 pr=12727 pw=0 time=3000840 us)'
STAT #36 id=3 cnt=100000 pid=2 pos=1 obj=48144 op='TABLE ACCESS FULL T2 (cr=18344 pr=12501 pw=0 time=14103896 us)'
STAT #36 id=4 cnt=100000 pid=2 pos=2 obj=48143 op='INDEX RANGE SCAN INT_T1_C2 (cr=213542 pr=226 pw=0 time=1929742 us)'
SQL> SELECT /*+ USE_HASH(T1 T2) */
  2    T1.C1,
  3    T2.C2,
  4    T1.C3
  5  FROM
  6    T1,
  7    T2
  8  WHERE
  9    T1.C1=T2.C1
10    AND T1.C1 BETWEEN 1 AND 100000;
100000 rows selected.
Elapsed: 00:00:20.35
Execution Plan
Plan hash value: 689276421                                                                                             
| Id  | Operation                    | Name      | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |                     
|   0 | SELECT STATEMENT             |           | 99999 |    77M|       | 20143   (1)| 00:04:02 |                     
|*  1 |  HASH JOIN                   |           | 99999 |    77M|  2152K| 20143   (1)| 00:04:02 |                     
|*  2 |   TABLE ACCESS FULL          | T2        |   100K|   976K|       |  3435   (1)| 00:00:42 |                     
|   3 |   TABLE ACCESS BY INDEX ROWID| T1        |   100K|    76M|       | 12733   (1)| 00:02:33 |                     
|*  4 |    INDEX RANGE SCAN          | INT_T1_C1 |   100K|       |       |   226   (1)| 00:00:03 |                     
Predicate Information (identified by operation id):                                                                    
   1 - access("T1"."C1"="T2"."C1")                                                                                     
   2 - filter("T2"."C1">=1 AND "T2"."C1"<=100000)                                                                      
   4 - access("T1"."C1">=1 AND "T1"."C1"<=100000)                                                                      
Statistics
          0  recursive calls                                                                                           
          0  db block gets                                                                                             
      37720  consistent gets                                                                                           
      25225  physical reads                                                                                            
          0  redo size                                                                                                 
   82555058  bytes sent via SQL*Net to client                                                                          
      73722  bytes received via SQL*Net from client                                                                    
       6668  SQL*Net roundtrips to/from client                                                                         
          0  sorts (memory)                                                                                            
          0  sorts (disk)                                                                                              
     100000  rows processed                                                                                            
STAT lines from the 10046 trace:
STAT #38 id=1 cnt=100000 pid=0 pos=1 obj=0 op='HASH JOIN  (cr=37720 pr=25225 pw=0 time=69225424 us)'
STAT #38 id=2 cnt=100000 pid=1 pos=1 obj=48144 op='TABLE ACCESS FULL T2 (cr=12511 pr=12501 pw=0 time=13204971 us)'
STAT #38 id=3 cnt=100000 pid=1 pos=2 obj=48141 op='TABLE ACCESS BY INDEX ROWID T1 (cr=25209 pr=12724 pw=0 time=66504913 us)'
STAT #38 id=4 cnt=100000 pid=3 pos=1 obj=48142 op='INDEX RANGE SCAN INT_T1_C1 (cr=6876 pr=224 pw=0 time=604405 us)'
SQL> SELECT /*+ USE_NL(T1 T2) */
  2    T1.C1,
  3    T2.C2,
  4    T1.C3
  5  FROM
  6    T1,
  7    T2
  8  WHERE
  9    T1.C1=T2.C1
10    AND T1.C1 BETWEEN 1 AND 100000;
100000 rows selected.
Elapsed: 00:00:28.11
Execution Plan
Plan hash value: 1467726760                                                                                            
| Id  | Operation                   | Name      | Rows  | Bytes | Cost (%CPU)| Time     |                              
|   0 | SELECT STATEMENT            |           | 99999 |    77M|   303K  (1)| 01:00:43 |                              
|   1 |  TABLE ACCESS BY INDEX ROWID| T1        |     1 |   806 |     3   (0)| 00:00:01 |                              
|   2 |   NESTED LOOPS              |           | 99999 |    77M|   303K  (1)| 01:00:43 |                              
|*  3 |    TABLE ACCESS FULL        | T2        |   100K|   976K|  3435   (1)| 00:00:42 |                              
|*  4 |    INDEX RANGE SCAN         | INT_T1_C1 |     1 |       |     2   (0)| 00:00:01 |                              
Predicate Information (identified by operation id):                                                                    
   3 - filter("T2"."C1">=1 AND "T2"."C1"<=100000)                                                                      
   4 - access("T1"."C1"="T2"."C1")                                                                                     
       filter("T1"."C1"<=100000 AND "T1"."C1">=1)                                                                      
Statistics
          0  recursive calls                                                                                           
          0  db block gets                                                                                             
     250218  consistent gets                                                                                           
      25225  physical reads                                                                                            
          0  redo size                                                                                                 
   82555058  bytes sent via SQL*Net to client                                                                          
      73722  bytes received via SQL*Net from client                                                                    
       6668  SQL*Net roundtrips to/from client                                                                         
          0  sorts (memory)                                                                                            
          0  sorts (disk)                                                                                              
     100000  rows processed                                                                                            
STAT lines from the 10046 trace:
STAT #26 id=1 cnt=100000 pid=0 pos=1 obj=48141 op='TABLE ACCESS BY INDEX ROWID T1 (cr=250218 pr=25225 pw=0 time=80712592 us)'
STAT #26 id=2 cnt=200001 pid=1 pos=1 obj=0 op='NESTED LOOPS  (cr=231885 pr=12725 pw=0 time=4601151 us)'
STAT #26 id=3 cnt=100000 pid=2 pos=1 obj=48144 op='TABLE ACCESS FULL T2 (cr=18344 pr=12501 pw=0 time=17704737 us)'
STAT #26 id=4 cnt=100000 pid=2 pos=2 obj=48142 op='INDEX RANGE SCAN INT_T1_C1 (cr=213541 pr=224 pw=0 time=2683089 us)'
SQL> SELECT /*+ USE_NL(T1 T2) FIND_ME */
  2    T1.C1,
  3    T2.C2,
  4    T1.C3
  5  FROM
  6    T1,
  7    T2
  8  WHERE
  9    T1.C1=T2.C1
10    AND T1.C1 BETWEEN 1 AND 100000;
100000 rows selected.
Elapsed: 00:00:17.81
Execution Plan
Plan hash value: 1467726760                                                                                            
| Id  | Operation                   | Name      | Rows  | Bytes | Cost (%CPU)| Time     |                              
|   0 | SELECT STATEMENT            |           | 99999 |    77M|   303K  (1)| 01:00:43 |                              
|   1 |  TABLE ACCESS BY INDEX ROWID| T1        |     1 |   806 |     3   (0)| 00:00:01 |                              
|   2 |   NESTED LOOPS              |           | 99999 |    77M|   303K  (1)| 01:00:43 |                              
|*  3 |    TABLE ACCESS FULL        | T2        |   100K|   976K|  3435   (1)| 00:00:42 |                              
|*  4 |    INDEX RANGE SCAN         | INT_T1_C1 |     1 |       |     2   (0)| 00:00:01 |                              
Predicate Information (identified by operation id):                                                                    
   3 - filter("T2"."C1">=1 AND "T2"."C1"<=100000)                                                                      
   4 - access("T1"."C1"="T2"."C1")                                                                                     
       filter("T1"."C1"<=100000 AND "T1"."C1">=1)                                                                      
Statistics
          0  recursive calls                                                                                           
          0  db block gets                                                                                             
     250218  consistent gets                                                                                           
          0  physical reads                                                                                            
          0  redo size                                                                                                 
   82555058  bytes sent via SQL*Net to client                                                                          
      73722  bytes received via SQL*Net from client                                                                    
       6668  SQL*Net roundtrips to/from client                                                                         
          0  sorts (memory)                                                                                            
          0  sorts (disk)                                                                                              
     100000  rows processed                                                                                            
STAT lines from the 10046 trace:
STAT #36 id=1 cnt=100000 pid=0 pos=1 obj=48141 op='TABLE ACCESS BY INDEX ROWID T1 (cr=250218 pr=0 pw=0 time=6000438 us)'
STAT #36 id=2 cnt=200001 pid=1 pos=1 obj=0 op='NESTED LOOPS  (cr=231885 pr=0 pw=0 time=2401295 us)'
STAT #36 id=3 cnt=100000 pid=2 pos=1 obj=48144 op='TABLE ACCESS FULL T2 (cr=18344 pr=0 pw=0 time=1400071 us)'
STAT #36 id=4 cnt=100000 pid=2 pos=2 obj=48142 op='INDEX RANGE SCAN INT_T1_C1 (cr=213541 pr=0 pw=0 time=2435627 us)'So, what does the above mean? Why would a forced execution plan change the number of consistent gets? Why would not flushing the buffer cache cause the PR statistic to drop to 0, yet not change the CR statistic?
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.

Similar Messages

  • Unable to open pdf created with Acrobat Pro using Adobe Reader X

    Files created with some Adobe Professional applications such as Acrobat Pro ensure the file is small by excluding font information from the file.  Simple pdf creation applications embed the font in the file, which makes for transportability between apps but does make the files big.
    The problem i have experienced is that Adobe Reader X is one of the simple app varieties, so is unable to open, print, or read files created using Adobe Acrobat Pro..
    i'd welcome any help in (a) finding a free app that opens these 'pro pdf' files, OR (b) an option setting in Acrobat Pro which includes the font information in the file - or both!

    There are so many things wrong, around a tiny grain of truth, it really isn't worth examining. Not at this stage if you are more interested in getting things working.  It may be worth asking you though, since Reader doesn't even launch for you, how you came to focus on font embedding being the cause.
    Ok, Reader doesn't launch. Suppose you start Reader FIRST. Then use File > Open on your PDF.

  • Unable for format SD card with HFS using internal Card Reader

    I'm suspecting that this must be a software/driver issue, but I'm stumped... MacBook Air Mid2012 with 10.8 and latest updates.
    The symptom is the following: SanDisk 64GB UHS card in the SD Card slot. Formats fine both FAT and ExFAT. Attempting for format HFS (any combination of encrypted, case sensitive, etc), the card formats but can't mount. Repair fails too.
    Now here's the kicker, put the same card in and external SD Card Reader (via USB), it formats HFS and mounts fine. Still can't mount via the internal reader though. Tried other SD cards, down to 4GB, same deal...
    Hope someone has seen this before! 
    Thanks

    Just a followup, in case others read this thread.
    The problem was a hardware issue, requiring the LogicBoard to be replaced.
    A quick test to verify the problem is to insert a SD Card, run Disk Utility and Erase the SD Card. Any format (FAT, HFS, etc) will be fine.
    Once the Erase is complete, run a Verify Disk. If you have LOTS of errors during the verify, then there is a problem.
    Thanks

  • Single block read for Sort

    I’m creating a temp table with following SQL. Table temp2 is 50GB in size with 120M rows. I noticed during SORT operation , it’s performing lots of single block reads on Temp tablespace. Why it’s doing single block reads on temp??
    Also, Is there any other way to make this quicker?
    I'm on 10gR2 with Auto PGA/SGA. PGA Aggregate is 5GB and SGA is 12GB.
    create table t_temp nologging parallel(degree 4 )
    as
    select /*+ parallel(t1,4) */ * from temp2 partition(P2008)  t1
    order by custkey
        SID Wait State    EVENT                               P1                         P2              P3                    SEQ# % TotTime TEventTime(ms)  DistEvnts Avgtime(ms)/Evnt
       2165 WAITING       direct path read temp               file number= 5001          first dba=      block cnt= 1                     .02           .253          1             .253
                                                                                         88791
       2165 WAITING       direct path read temp               file number= 5001          first dba=      block cnt= 1                     .02           .253          1             .253
                                                                                         412771
       2165 WAITING       direct path read temp               file number= 5001          first dba=      block cnt= 1                     .02           .253          1             .253
                                                                                         421465
       2165 WAITING       direct path read temp               file number= 5001          first dba=      block cnt= 1                     .02           .253          1             .253
                                                                                         691141
       2165 WAITING       direct path read temp               file number= 5001          first dba=      block cnt= 1                     .02           .253          1             .253
                                                                                         1295425
    Here is  Temp table space properties…
    Name                    INITK    NEXTK MINEX MAXEX PCTI CNTS      EXMGMT     ALOCTYPE  SEGMGM STATUS
    TEMP                     1024     1024     1          0 TEMPORARY LOCAL      UNIFORM   MANUAL ONLINEEdited by: user4529833 on Feb 5, 2009 9:05 AM

    user4529833 wrote:
    Thanks Jonathan.
    I will do that and post the results... One questions though, how to correct this unexpected side-effect of asynchronous reads... ( Assuming it's the case )
    If the assumption is correct, then it's not really something that needs to be corrected. Because of the overlapping of I/Os, there may be lots of I/Os that never make it into wait time, so a single process could be going:
    give me 12 blocks
    give me 12 blocks
    give me 12 blocks
    give me 12 blocks
    give me a block
    of which you see only the "give me a block".
    That's why the 10033 is an important diagnostic - it will help you decide whether or not "everything" is a single block read, or whether the single block reads are a very tiny fraction of the total I/O that also happens to become visible for some reason.
    how does oracle perform sort for SQLs I have given..
    1) read & sort the data for custid coulmn with rowids and dump it temp (quite likely)
    2) read the rowids from temp and start loading row to temp table..I'd have to check the execution to give you a definite answer but the basic strategy would be:
    <ul>
    Two sets of PX slaves.
    Set one reads a chunk of the source table picking up all the relevant columns for the result table.
    Because of the ORDER BY clause layer one does a range-based distribution of data to the second set of slaves - along the lines of "slave 1 gets custid less than 1M", "slave 2 gets custid between 1M and 2M" and so on. Because entire rows are passed between the two sets of slaves, you can see a LOT of PQ traffic going on. (People sometimes increase the "PX message size" parameter because of the volume of traffic and the size of the rows).
    Set two slaves accumulate, and sort the incoming data sets. Each sorted row carries ALL the columns, there is no "sort the custkey/rowids only" strategy. The sorting may spill to temp - given your "select *", the amount of temp space used may actually be greater than the size of the source table.
    Each set two slave creates its own "private table" with its results.
    The query coordinator links the "private table" metadata in the data dictionay in the right order to create the final table.
    </ul>
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Unable to open PDF files with Adobe Reader, Mac trying to open files with Quicktime instead, but not succeeding. HELP!

    Unable to open PDF files with Adobe Reader, Mac trying to open files with QuickTime instead, but not succeeding. HELP!

    Hi BDAqua,
    Thanks for the info, I dragged a PDF to desktop ctrl-, get info. change all to open with adobe.
    Problem solved, many thanks for a quick response.
    Barry69

  • I put a new sim card and a new number on this phone but for some reason it is paired with a Lady who can read all my texts how do i fix this

    i put a new sim card and a new number on this phone but for some reason it is paired with a Lady who can read all my texts how do i fix this?

    You bought the phone from this lady right and she did not turn off imessage.  Try turning off imessage and restart the phone. Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for device to restart (no data will be lost).  Wait a few minutes and turn imessage back on

  • Why am I unable to open this file with Adobe Reader?

    I am trying to open the following file,
    http://www.profitableglass.com/profiles/hotglass/files/profitableglassquarterlyspring%
    and an error message says:
    The Adobe Acrobat/Reader that is running cannot be used to
    view PDF files in a web browser. Adobe Acrobat/Reader version
    8 or 9 is neccesary.
    I am running Adobe Reader 9.3 on Windows XP/service pack 3 and
    what does Acrobat have to do with this, if I only want to view file?
    Chris

    This is cbuzz1, with a possible answer to my own question. From some web research and a few phone calls it appears that Adobe Reader 9.3 does not support I.E.8... I uninstalled Adobe Reader 9.3 and installed Adobe Reader 8.2, and no problems whatsoever. It does bother me though that when you go to Adobe Downloads and select Windows XP-sp3 operating system, the first option is to download Adobe Reader 9.3. It doesn't ask which browser you are using...So basically I spent three hours finding out something that I couldn't learn from Adobe Tech Support...

  • Unable to open Adobe Reader with ability to changes PDF to word

    adobe reader with ability to change from pdf to word stopped working I purchased a new year and it does not work?

    John,
    Glad to hear everything is working. I'm surprised, too, though, because these subscriptions are on auto-renewal when you subscribe (unless you cancel before the subscription runs out).
    So....I just double-checked your account.  You had a CreatePDF basic subscription which expired on August 28 (I'm guessing that one wasn't on auto-renewal).
    In any case, I think all is well now!
    Best,
    Sara

  • Unable to sync some apps with my ipod

    I am unable to sync some apps with my ipod touch

    See:
    Identifying iPod models
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • I am unable to sync my iphone with itunes on my windows pc and itunes show that your iphone is not connected?

    i am unable to sync my iphone with itunes on my windows pc and itunes show that your iphone is not connected?

    You have posted to the iTunes Match forum, which your question does not appear to be related to. You will probably get better help by posting in the Using iPhone forum.

  • I am unable to change my credit card number, because my profile shows United States therefore it does not accept the phone area code, and zip number, because I live in Switzerland. Please inform me how to do it. Many thanks.

    I am unable to change my credit card number because my apple profile shows me as a resident of the United States, although I live in Switzerland. Consequently I cannot edit my area code, zip number, State info, etc. Please advise me how to do it. Many thanks.

    Hello Luis,
    To update your billing information, you would need to change your iTunes Store country to be able to enter the information for Switzerland.  I found an article with the steps to update this:
    Change your iTunes Store country
    Sign in to the account for the iTunes Store region you'd like to use. Tap Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region.
    Follow the onscreen process to change your region, agree to the terms and conditions for the region if necessary, and then change your billing information.
    You can find the full article here:
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/ht1311
    Thank you for posting in the Apple Support Communities. 
    Best,
    Sheila M.

  • Designer 7.0  form working with Reader 7.0.5 but not Reader 7.0.8

    Hello everyone,
    I was wondering if anyone has had a problem with a formed created using Designer 7.0 that was working with Reader 7.0.5 but no longer functions with Reader 7.0.8?
    The form consists of a numeric textbox N1 and 2 checkboxes C1[0] and C1[1].
    All code is done using FormCalc.
    Here is the situation: if the number in the numeric box is blank or not greater then zero, then neither check box can be checked. Both check boxes can not be checked at the same time. If the value in the numeric box is greater then zero, the checkboxes may or may not be checked (again both can not be checked at the same time).
    N1 has code the following code in its exit event:
    if (($.isNull) or ($.rawValue le 0)) then
    C1[0].rawValue = 0 //if not positive value, checkboxes must be blank
    C1[1].rawValue = 0
    endif
    C1[0] has the following code in its click and exit event
    if (C1[0].rawValue == 1) then
    C1[1].rawValue = 0 //C1[0] and C1[1] can not both be checked
    endif
    if ((N1.isNull) or (N1.rawValue le 0)) then
    $.rawValue = 0 //uncheck if N1 is not positive
    endif
    C1[1] has the following code in its click and exit event
    if (C1[1].rawValue == 1) then
    C1[0].rawValue = 0 //C1[0] and C1[1] can not both be checked
    endif
    if ((N1.isNull) or (N1.rawValue le 0)) then
    C1[1].rawValue = 0 //uncheck if N1 is not positive
    endif
    The above code worked exactly as described when the form was used in Reader 7.0.5.
    Under Reader 7.0.8 the following happens:
    if N1 is blank or less then or equal to zero, both checkboxes can be checked at the same time (this should not happen at all) but neither can be unchecked
    if N1 is positive the code (and checkboxes) function as described.
    I am not sure if this is a Designer issue or a Professional/Reader issue, so I am posting this here as well as in the other 2 spots.
    Any help is greatly appreciated,
    Ben

    Chris,
    Thank you for the sample you provided. First, I must apologize for not mentioning that there was additional code in the Click event. I thought I had removed it from my form, but apparently I had not.
    I have compare the sample you provided to my form. I noticed several differences between them. First was that you used Designer 7.1 to create your sample, whereas I used Designer 7.0. I do not believe that this will have an impact, although it is possible. Also, in your sample, then click and exit events both need to contain the same "check" code. Your sample has one IF statement in the click event and one IF statement in the exit event. To match my form code, the Click and Exit events together need to contain both IF statements. My form originally contained the code in the Change event also.
    i.e. C1[0] has the following code in both its Click, Exit and Change events
    if (C1[0].rawValue == 1) then
    C1[1].rawValue = 0 //C1[0] and C1[1] can not both be checked
    endif
    if ((N1.isNull) or (N1.rawValue le 0)) then
    $.rawValue = 0 //uncheck if N1 is not positive
    endif
    and similarly for C1[1].
    Based off your sample, I did some more digging and found that the problem is caused by the Change event for the checkboxes. I have removed the code from the Change event and now the form works as desired.
    So, if the Change event has NO code, and if the Click and Exit events for the checkboxes have both IF statements the overall behavior (as specified earlier) is identical (and what I am looking for) for both Reader 7.0.5 and 7.0.8.
    Now, if I add the IF statements to the Change event (without removing them from Click and Exit), the behavior in Reader 7.0.5 does not change (works as specified). In Reader 7.0.8, the checkboxes can not be unchecked if N1 is blank.
    So my questions now become:
    1) What has actually changed between Reader 7.0.5 and 7.0.8 (i.e. more detailed description than the generic release notes)?
    2) Which one actually exhibits the correct behavior?
    3) If this is a change to the event model, is this documented anywhere?
    Thanks again,
    Ben

  • Smsy "Read System Number" customer number unknown for installation

    Hi gurus,
    I 'm configuring SMSY and following the steps outlined in the IMG in the basic settings and trying to configure RFC connections to/from satellite systems. In SMSY, I have 2 systems configured SMA and BIF.
    tcode SMSY-> Systems -> SAP ERP -> SMA , Tab "System Data in SAP Support Portal".
    Click "Read System Number" returns error SAP customer number unknown for installation number 0020179718. <-Why?
    Click "Installation Data" shows data from SMP with correct installation number and correct customer number 706822.
          The S-user listed under "Contact Persons" is not mine, not the correct one. <- Why? How to fix?
          The system number from SMP matches value in System Number field.
    Click "System Data" shows data from SMP also shows correct data.
    Why unable to "Read System Number" when the correct system number is read via "Installation Data" and "System Data"?
    tcode SMSY->Systems->SAP ECC->BIF, Tab "System Data in SAP Support Portal".
    Click "Read System Number" returns error "SAP customer number unknown for installation number 0020472810". <- Why?
    Click "Installation Data" shows data from SMP with correct installation number and correct customer number 706822.
          The S-user listed under "Contact Persons" is correct one.
          The system number from SMP matches value in System Number field.
    Click "System Data" shows data from SMP also shows correct data.
    Why unable to read system number?
    When I login to SMP with same S-user, under System Data Maintenance, the same data is displayed as in "Installation Data" and "System Data" links.

    I don't know what happened. I came into work today and tested the "Read System Number" and it worked. I read thru the 2 notes you mentioned, just read now. The first notes I had already followed before opening this thread. The 2nd notes also talked about turning off BAdI implementation AI_SDK_SP_RFC_RP, of which I did a couple of days ago before opening this thread. I had turned turned off BAdI and simplified the AISUSER table and removed the customer number field, in order to get back to the "single-user number" basic setup in the IMG.
    I had found the problem with the wrong contact info on the SMA system. It was wrong in the SMP system maintenance under installation data.
    Thanks for your help.
    -Don.

  • "Unable to update, log in with account that purchased app"

    Hi
    I get this error: "Unable to update, log in with account that purchased app" more or less, when trying to update apps on my other macbook pro. I *am* logged in with the account that purchased the apps; I ONLY purchase apps from apple's app store (iOS and MacOS) with one account and one set of banking details. I *do not* have more than one account with apple AT ALL.
    Please can someone at apple remedy this bug?
    It seem related to the fact that I upgraded the hard disk on the machine that is complaining; it seems to no longer recognise the machine in question. It allows me to purchase and install new apps, but NOT upgrade/update.

    Ok, here's the latest update on this problem.
    I tried to open an app that had been downloaded and I tried to do an in-app purchase (specifically, the FreeMemory app upgrade). Since it was a new hard disk, the computer asked me to authenticate the app against the app store; in other words, the anti-piracy thing kicked in. Then, when I gave my MAS password, the MAS asked me to verify my billing details. Thereafter, it allowed me not only to run the app and do the in-app purchase, BUT it stopped complaining about updates not being permitted with this account.
    So maybe this is a bug Apple needs to pay attention to: viz., if the hard disk is new and you think the app store details are faked, ask the user to verify billing details straight away rather than leaving them in the dark as to why they think they're logged in, but they're not authenticated fully, and wondering why they can't update.
    I will monitor the situation, and if any further problems come up, I will report them here, but for now, this seems to have fixed it.

  • Unable to connect without specifying port number

    I have a strange situation on the client side.  While connecting to sqlserver remotely, and when the instance is set up on a non-default port (not 1433), I am unable to establish a connection unless I specify the port number.  This might seem normal
    at first, but when my colleagues establish a remote connection (I am in an office) they do not need to specify a port number.  I've seen other questions posted on the forum related to the port number, but the difference is that our DB configuration works
    for everyone except myself, thus it seems like a client side issue.
    For example, "dbserver\instancename" works for everyone else, but fails for me unless I specify "dbserver\instancename,PortNum".  This is true through SQL management studio, through code, or through anything.
    So my question is, what should I look for on my machine as the culprit?  At first glance, there is not much different between my machine and the others.  We're all on Win 7, we use active directory, and we all seem to belong to the same groups
    (give or take).  My machine has much more installed in the way of dev tools (visual studio 2013, all of the dotnet frameworks, etc).  The DB is SQL 2005.
    I have no access to the DB server, nor will the DBAs help me troubleshoot--they claim it's a client side problem.  So I am hoping I can isolate the problem on my end.  Thanks in advance.

    >Do you have any firewall configured on your machine? Here's how the the initial handshake happens
    - when you try to connect to SQL Server named instance without specifying a port number, SQL send the information about port number back on the UDP port 1434 and then the connection succeeds. If your UDP port 1434 on the client is closed, the client connection
    wouldn't know which port to connect to and will fail. 
    I've disabled all antivirus software and stopped the windows firewall service.  No change.

Maybe you are looking for

  • Gettign error when using Adobe interactive UI in WDP ABAP

    Hi Frnds, Am doing an WDP ABAP object where i need to use Adobe interactive Form, its a simple basic level app, when am deploying the Adobe am getting the following error The following error text was processed in the system XYZ : Function module does

  • How to remove the complete ALE configuration for a given system

    Hello everybody, Through ALE ,data is transferred between a number of SAP systems and the necessary ALE setups are in place. Now,a particular SAP system,which used to be a receivor to the central SAP system,is to be retired. Hence,the associated ALE

  • SD Account determination for business partner items

    Hi All! I need to understand how does the account determination works for business partner items. I know that al trx VKOA is where I can customize the account that is gonna be used at the GL items, but I can't find where is the customizing of the acc

  • Airport Extreme With MBPro and iMac

    I'm about to set up a new airport extreme.  Right now I am connected to the internet through an older airport extreme, not mine, so I can't use the wifi because I'm locked out. Can someone please tell me the very first steps to initiating the new air

  • Printing Flash or SWF File

    Hello all, I am attempting to print a page of my flash file from within flash (in the root of the file) and certain things are left out, as they are left out on the actual flash 8 viewing screen. I also tried compiling it and then going to print from