Problem in "Top Activity"
Hi all.
I have following problem on displaying data in GC "Top Activity" section:
No activity of the relevant type occurred in the chosen interval for drop list "*Real Time:15 seconds refresh*" and from "*Real Time: Manual Refrersh*". And finally for "*Historical*" all right, all data have displayed correctly. Please point me to the right way of root cause.
Thanks/
Was there any relevant activity in this database you are monitoring ? Try running this on sqlplus and check again:
select /*+PARALLEL 4*/ * from dba_objects a, dba_objects b order by 1;
Similar Messages
-
This SQL statement always in Top Activity, with PX Deq Credit: send blkd
Hi gurus,
The following SQL statement is always among the Top Activity. I can see the details in Enerprise manager that it suffers from PX Deq Credit: send blkd
This is the statement:
SELECT S.Product, S.WH_CODE, S.RACK, S.BATCH, S.EXP_DATE, FLOOR(Qty_Beg) QtyBeg_B,
ROUND(f_convert_qty(S.PRODUCT, Qty_Beg-FLOOR(Qty_Beg), P.UOM_K ), 0) QtyBeg_K,
FLOOR(Qty_In) QtyIn_B, ROUND(f_convert_qty(S.PRODUCT, Qty_In-FLOOR(Qty_In), P.UOM_K), 0) QtyIn_K,
FLOOR(Qty_Out) QtyOut_B, ROUND(f_convert_qty(S.PRODUCT, Qty_Out-FLOOR(Qty_Out), P.UOM_K ), 0) QtyOut_K,
FLOOR(Qty_Adj) QtyAdj_B, ROUND(f_convert_qty(S.PRODUCT, Qty_Adj-FLOOR(Qty_Adj), P.UOM_K ), 0) QtyAdj_K,
FLOOR(Qty_End) QtyEnd_B, ROUND(f_convert_qty(S.PRODUCT, Qty_End-FLOOR(Qty_End), P.UOM_K ), 0) QtyEnd_K,
S.LOC_CODE
FROM V_STOCK_DETAIL S
JOIN PRODUCTS P ON P.PRODUCT = S.PRODUCT
WHERE S.Product = :pProduct AND S.WH_CODE = :pWhCode AND S.LOC_CODE = :pLocCode;The statement is invoked by our front end (web based app) for a browse table displayed on a web page. The result can be 10 to 8000. It is used to display the current stock availability for a particular product in a particular warehouse. The stock availability it self is kept in a View : V_Stock_Detail
These are the parameters relevant to the optimizer:
SQL> show parameter user_dump_dest
user_dump_dest string /u01/app/oracle/admin/ITTDB/udump
SQL> show parameter optimizer
_optimizer_cost_based_transformation string OFF
optimizer_dynamic_sampling integer 2
optimizer_features_enable string 10.2.0.3
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 100
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean TRUE
SQL> show parameter db_file_multi
db_file_multiblock_read_count integer 16
SQL> show parameter db_block_size column sname format a20 column pname format a20
db_block_size integer 8192Here is the output of EXPLAIN PLAN:
SQL> explain plan for
SELECT S.Product, S.WH_CODE, S.RACK, S.BATCH, S.EXP_DATE, FLOOR(Qty_Beg) QtyBeg_B,
ROUND(f_convert_qty(S.PRODUCT, Qty_Beg-FLOOR(Qty_Beg), P.UOM_K ), 0) QtyBeg_K,
FLOOR(Qty_In) QtyIn_B, ROUND(f_convert_qty(S.PRODUCT, Qty_In-FLOOR(Qty_In), P.UOM_K), 0) QtyIn_K,
FLOOR(Qty_Out) QtyOut_B, ROUND(f_convert_qty(S.PRODUCT, Qty_Out-FLOOR(Qty_Out), P.UOM_K ), 0) QtyOut_K,
FLOOR(Qty_Adj) QtyAdj_B, ROUND(f_convert_qty(S.PRODUCT, Qty_Adj-FLOOR(Qty_Adj), P.UOM_K ), 0) QtyAdj_K,
FLOOR(Qty_End) QtyEnd_B, ROUND(f_convert_qty(S.PRODUCT, Qty_End-FLOOR(Qty_End), P.UOM_K ), 0) QtyEnd_K,
S.LOC_CODE
FROM V_STOCK_DETAIL S
JOIN PRODUCTS P ON P.PRODUCT = S.PRODUCT
WHERE S.Product = :pProduct AND S.WH_CODE = :pWhCode AND S.LOC_CODE = :pLocCode
Explain complete.
Elapsed: 00:00:00:31
SQL> select * from table(dbms_xplan.display)
PLAN_TABLE_OUTPUT
Plan hash value: 3252950027
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | TQ |IN-OUT| PQ
Distrib |
| 0 | SELECT STATEMENT | | 1 | 169 | 6 (17)| 00:00:01 | | |
|
| 1 | PX COORDINATOR | | | | | | | |
|
| 2 | PX SEND QC (RANDOM) | :TQ10003 | 1 | 169 | 6 (17)| 00:00:01 | Q1,03 | P->S | QC
(RAND) |
| 3 | HASH GROUP BY | | 1 | 169 | 6 (17)| 00:00:01 | Q1,03 | PCWP |
|
| 4 | PX RECEIVE | | 1 | 169 | 6 (17)| 00:00:01 | Q1,03 | PCWP |
|
| 5 | PX SEND HASH | :TQ10002 | 1 | 169 | 6 (17)| 00:00:01 | Q1,02 | P->P | HA
SH |
| 6 | HASH GROUP BY | | 1 | 169 | 6 (17)| 00:00:01 | Q1,02 | PCWP |
|
| 7 | NESTED LOOPS OUTER | | 1 | 169 | 5 (0)| 00:00:01 | Q1,02 | PCWP |
|
| 8 | MERGE JOIN CARTESIAN | | 1 | 119 | 4 (0)| 00:00:01 | Q1,02 | PCWP |
|
| 9 | SORT JOIN | | | | | | Q1,02 | PCWP |
|
| 10 | NESTED LOOPS | | 1 | 49 | 4 (0)| 00:00:01 | Q1,02 | PCWP |
|
| 11 | BUFFER SORT | | | | | | Q1,02 | PCWC |
|
| 12 | PX RECEIVE | | | | | | Q1,02 | PCWP |
|
| 13 | PX SEND BROADCAST | :TQ10000 | | | | | | S->P | BR
OADCAST |
|* 14 | INDEX RANGE SCAN | PRODUCTS_IDX2 | 1 | 25 | 2 (0)| 00:00:01 | | |
|
| 15 | PX BLOCK ITERATOR | | 1 | 24 | 2 (0)| 00:00:01 | Q1,02 | PCWC |
|
|* 16 | MAT_VIEW ACCESS FULL | MV_CONVERT_UOM | 1 | 24 | 2 (0)| 00:00:01 | Q1,02 | PCWP |
|
| 17 | BUFFER SORT | | 1 | 70 | 2 (0)| 00:00:01 | Q1,02 | PCWP |
|
| 18 | BUFFER SORT | | | | | | Q1,02 | PCWC |
|
| 19 | PX RECEIVE | | 1 | 70 | 4 (0)| 00:00:01 | Q1,02 | PCWP |
|
| 20 | PX SEND BROADCAST | :TQ10001 | 1 | 70 | 4 (0)| 00:00:01 | | S->P | BR
OADCAST |
|* 21 | TABLE ACCESS BY INDEX ROWID| STOCK | 1 | 70 | 4 (0)| 00:00:01 | | |
|
|* 22 | INDEX RANGE SCAN | STOCK_PK | 1 | | 2 (0)| 00:00:01 | | |
|
|* 23 | TABLE ACCESS BY INDEX ROWID | MV_TRANS_STOCK | 1 | 50 | 3 (0)| 00:00:01 | Q1,02 | PCWP |
|
|* 24 | INDEX RANGE SCAN | MV_TRANS_STOCK_IDX1 | 1 | | 2 (0)| 00:00:01 | Q1,02 | PCWP |
|
Predicate Information (identified by operation id):
14 - access("P"."PRODUCT"=:PPRODUCT)
16 - filter("CON"."PRODUCT"=:PPRODUCT)
21 - filter("STOCK"."LOC_CODE"=:PLOCCODE)
22 - access("STOCK"."PRODUCT"=:PPRODUCT AND "STOCK"."WH_CODE"=:PWHCODE)
23 - filter("STS"(+)='N')
24 - access("PRODUCT"(+)=:PPRODUCT AND "WH_CODE"(+)=:PWHCODE AND "LOC_CODE"(+)=:PLOCCODE AND "RACK"(+)="STOCK"."RACK" AND
"BATCH"(+)="STOCK"."BATCH" AND "EXP_DATE"(+)="STOCK"."EXP_DATE")
42 rows selected.
Elapsed: 00:00:00:06Here is the output of SQL*Plus AUTOTRACE including the TIMING information:
SQL> SELECT S.Product, S.WH_CODE, S.RACK, S.BATCH, S.EXP_DATE, FLOOR(Qty_Beg) QtyBeg_B,
ROUND(f_convert_qty(S.PRODUCT, Qty_Beg-FLOOR(Qty_Beg), P.UOM_K ), 0) QtyBeg_K,
FLOOR(Qty_In) QtyIn_B, ROUND(f_convert_qty(S.PRODUCT, Qty_In-FLOOR(Qty_In), P.UOM_K), 0) QtyIn_K,
FLOOR(Qty_Out) QtyOut_B, ROUND(f_convert_qty(S.PRODUCT, Qty_Out-FLOOR(Qty_Out), P.UOM_K ), 0) QtyOut_K,
FLOOR(Qty_Adj) QtyAdj_B, ROUND(f_convert_qty(S.PRODUCT, Qty_Adj-FLOOR(Qty_Adj), P.UOM_K ), 0) QtyAdj_K,
FLOOR(Qty_End) QtyEnd_B, ROUND(f_convert_qty(S.PRODUCT, Qty_End-FLOOR(Qty_End), P.UOM_K ), 0) QtyEnd_K,
S.LOC_CODE
FROM V_STOCK_DETAIL S
JOIN PRODUCTS P ON P.PRODUCT = S.PRODUCT
WHERE S.Product = :pProduct AND S.WH_CODE = :pWhCode AND S.LOC_CODE = :pLocCode
Execution Plan
0 SELECT STATEMENT Optimizer Mode=ALL_ROWS 1 169 6
1 0 PX COORDINATOR
2 1 PX SEND QC (RANDOM) SYS.:TQ10003 1 169 6 :Q1003 P->S QC (RANDOM)
3 2 HASH GROUP BY 1 169 6 :Q1003 PCWP
4 3 PX RECEIVE 1 169 6 :Q1003 PCWP
5 4 PX SEND HASH SYS.:TQ10002 1 169 6 :Q1002 P->P HASH
6 5 HASH GROUP BY 1 169 6 :Q1002 PCWP
7 6 NESTED LOOPS OUTER 1 169 5 :Q1002 PCWP
8 7 MERGE JOIN CARTESIAN 1 119 4 :Q1002 PCWP
9 8 SORT JOIN :Q1002 PCWP
10 9 NESTED LOOPS 1 49 4 :Q1002 PCWP
11 10 BUFFER SORT :Q1002 PCWC
12 11 PX RECEIVE :Q1002 PCWP
13 12 PX SEND BROADCAST SYS.:TQ10000 S->P BROADCAST
14 13 INDEX RANGE SCAN ITT_NEW.PRODUCTS_IDX2 1 25 2
15 10 PX BLOCK ITERATOR 1 24 2 :Q1002 PCWC
16 15 MAT_VIEW ACCESS FULL ITT_NEW.MV_CONVERT_UOM 1 24 2 :Q1002 PCWP
17 8 BUFFER SORT 1 70 2 :Q1002 PCWP
18 17 BUFFER SORT :Q1002 PCWC
19 18 PX RECEIVE 1 70 4 :Q1002 PCWP
20 19 PX SEND BROADCAST SYS.:TQ10001 1 70 4 S->P BROADCAST
21 20 TABLE ACCESS BY INDEX ROWID ITT_NEW.STOCK 1 70 4
22 21 INDEX RANGE SCAN ITT_NEW.STOCK_PK 1 2
23 7 TABLE ACCESS BY INDEX ROWID ITT_NEW.MV_TRANS_STOCK 1 50 3 :Q1002 PCWP
24 23 INDEX RANGE SCAN ITT_NEW.MV_TRANS_STOCK_IDX1 1 2 :Q1002 PCWP
Statistics
570 recursive calls
0 physical write total IO requests
0 physical write total multi block requests
0 physical write total bytes
0 physical writes direct temporary tablespace
0 java session heap live size max
0 java session heap object count
0 java session heap object count max
0 java session heap collected count
0 java session heap collected bytes
83 rows processed
Elapsed: 00:00:03:24
SQL> disconnect
Commit complete
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining optionsThe TKPROF output for this statement looks like the following:
TKPROF: Release 10.2.0.3.0 - Production on Thu Apr 23 12:39:29 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Trace file: ittdb_ora_9566_mytrace1.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 S.Product, S.WH_CODE, S.RACK, S.BATCH, S.EXP_DATE, FLOOR(Qty_Beg) QtyBeg_B,
ROUND(f_convert_qty(S.PRODUCT, Qty_Beg-FLOOR(Qty_Beg), P.UOM_K ), 0) QtyBeg_K,
FLOOR(Qty_In) QtyIn_B, ROUND(f_convert_qty(S.PRODUCT, Qty_In-FLOOR(Qty_In), P.UOM_K), 0) QtyIn_K,
FLOOR(Qty_Out) QtyOut_B, ROUND(f_convert_qty(S.PRODUCT, Qty_Out-FLOOR(Qty_Out), P.UOM_K ), 0) QtyOut_K,
FLOOR(Qty_Adj) QtyAdj_B, ROUND(f_convert_qty(S.PRODUCT, Qty_Adj-FLOOR(Qty_Adj), P.UOM_K ), 0) QtyAdj_K,
FLOOR(Qty_End) QtyEnd_B, ROUND(f_convert_qty(S.PRODUCT, Qty_End-FLOOR(Qty_End), P.UOM_K ), 0) QtyEnd_K,
S.LOC_CODE
FROM V_STOCK_DETAIL S
JOIN PRODUCTS P ON P.PRODUCT = S.PRODUCT
WHERE S.Product = :pProduct AND S.WH_CODE = :pWhCode AND S.LOC_CODE = :pLocCode
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.04 0.12 0 10 4 0
Fetch 43 0.05 2.02 0 73 0 83
total 45 0.10 2.15 0 83 4 83
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 164
Rows Row Source Operation
83 PX COORDINATOR (cr=83 pr=0 pw=0 time=2086576 us)
0 PX SEND QC (RANDOM) :TQ10003 (cr=0 pr=0 pw=0 time=0 us)
0 HASH GROUP BY (cr=0 pr=0 pw=0 time=0 us)
0 PX RECEIVE (cr=0 pr=0 pw=0 time=0 us)
0 PX SEND HASH :TQ10002 (cr=0 pr=0 pw=0 time=0 us)
0 HASH GROUP BY (cr=0 pr=0 pw=0 time=0 us)
0 NESTED LOOPS OUTER (cr=0 pr=0 pw=0 time=0 us)
0 MERGE JOIN CARTESIAN (cr=0 pr=0 pw=0 time=0 us)
0 SORT JOIN (cr=0 pr=0 pw=0 time=0 us)
0 NESTED LOOPS (cr=0 pr=0 pw=0 time=0 us)
0 BUFFER SORT (cr=0 pr=0 pw=0 time=0 us)
0 PX RECEIVE (cr=0 pr=0 pw=0 time=0 us)
0 PX SEND BROADCAST :TQ10000 (cr=0 pr=0 pw=0 time=0 us)
1 INDEX RANGE SCAN PRODUCTS_IDX2 (cr=2 pr=0 pw=0 time=62 us)(object id 135097)
0 PX BLOCK ITERATOR (cr=0 pr=0 pw=0 time=0 us)
0 MAT_VIEW ACCESS FULL MV_CONVERT_UOM (cr=0 pr=0 pw=0 time=0 us)
0 BUFFER SORT (cr=0 pr=0 pw=0 time=0 us)
0 BUFFER SORT (cr=0 pr=0 pw=0 time=0 us)
0 PX RECEIVE (cr=0 pr=0 pw=0 time=0 us)
0 PX SEND BROADCAST :TQ10001 (cr=0 pr=0 pw=0 time=0 us)
83 TABLE ACCESS BY INDEX ROWID STOCK (cr=78 pr=0 pw=0 time=1635 us)
83 INDEX RANGE SCAN STOCK_PK (cr=4 pr=0 pw=0 time=458 us)(object id 135252)
0 TABLE ACCESS BY INDEX ROWID MV_TRANS_STOCK (cr=0 pr=0 pw=0 time=0 us)
0 INDEX RANGE SCAN MV_TRANS_STOCK_IDX1 (cr=0 pr=0 pw=0 time=0 us)(object id 143537)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
PX Deq: Join ACK 17 0.00 0.00
PX qref latch 2 0.00 0.00
PX Deq Credit: send blkd 72 1.95 2.00
PX Deq: Parse Reply 26 0.01 0.01
SQL*Net message to client 43 0.00 0.00
PX Deq: Execute Reply 19 0.00 0.01
SQL*Net message from client 43 0.00 0.04
PX Deq: Signal ACK 12 0.00 0.00
enq: PS - contention 1 0.00 0.00
********************************************************************************The DBMS_XPLAN.DISPLAY_CURSOR output:
SQL> select * from table(dbms_xplan.display_cursor(null, null, 'ALLSTATS LAST'))
PLAN_TABLE_OUTPUT
SQL_ID 402b8st7vt6ku, child number 2
SELECT /*+ gather_plan_statistics */ S.Product, S.WH_CODE, S.RACK, S.BATCH, S.EXP_DATE, FLOOR(Qty_Beg) QtyBeg_B,
ROUND(f_convert_qty(S.PRODUCT, Qty_Beg-FLOOR(Qty_Beg), P.UOM_K ), 0) QtyBeg_K, FLOOR(Qty_In) QtyIn_B, ROUND(f_convert_qty(S.P
RODUCT,
Qty_In-FLOOR(Qty_In), P.UOM_K), 0) QtyIn_K, FLOOR(Qty_Out) QtyOut_B, ROUND(f_convert_qty(S.PRODUCT, Qty_Out-FLOOR(Qty_Out), P
.UOM_K ),
0) QtyOut_K, FLOOR(Qty_Adj) QtyAdj_B, ROUND(f_convert_qty(S.PRODUCT, Qty_Adj-FLOOR(Qty_Adj), P.UOM_K ), 0) QtyAdj_K,
FLOOR(Qty_End) QtyEnd_B, ROUND(f_convert_qty(S.PRODUCT, Qty_End-FLOOR(Qty_End), P.UOM_K ), 0) QtyEnd_K, S.LOC_CODE FROM
V_STOCK_DETAIL S JOIN PRODUCTS P ON P.PRODUCT = S.PRODUCT WHERE S.Product = :pProduct AND S.WH_CODE = :pWhCode AND S.LOC
_CODE =
:pLocCode
Plan hash value: 3252950027
| Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | OMem |
1Mem | Used-Mem |
| 1 | PX COORDINATOR | | 1 | | 83 |00:00:02.25 | 83 | |
| |
| 2 | PX SEND QC (RANDOM) | :TQ10003 | 0 | 21 | 0 |00:00:00.01 | 0 | |
| |
| 3 | HASH GROUP BY | | 0 | 21 | 0 |00:00:00.01 | 0 | |
| |
| 4 | PX RECEIVE | | 0 | 21 | 0 |00:00:00.01 | 0 | |
| |
| 5 | PX SEND HASH | :TQ10002 | 0 | 21 | 0 |00:00:00.01 | 0 | |
| |
| 6 | HASH GROUP BY | | 0 | 21 | 0 |00:00:00.01 | 0 | |
| |
| 7 | NESTED LOOPS OUTER | | 0 | 21 | 0 |00:00:00.01 | 0 | |
| |
| 8 | MERGE JOIN CARTESIAN | | 0 | 21 | 0 |00:00:00.01 | 0 | |
| |
| 9 | SORT JOIN | | 0 | | 0 |00:00:00.01 | 0 | 73728 |
73728 | |
| 10 | NESTED LOOPS | | 0 | 1 | 0 |00:00:00.01 | 0 | |
| |
| 11 | BUFFER SORT | | 0 | | 0 |00:00:00.01 | 0 | 73728 |
73728 | |
| 12 | PX RECEIVE | | 0 | | 0 |00:00:00.01 | 0 | |
| |
| 13 | PX SEND BROADCAST | :TQ10000 | 0 | | 0 |00:00:00.01 | 0 | |
| |
|* 14 | INDEX RANGE SCAN | PRODUCTS_IDX2 | 1 | 1 | 1 |00:00:00.01 | 2 | |
| |
| 15 | PX BLOCK ITERATOR | | 0 | 1 | 0 |00:00:00.01 | 0 | |
| |
|* 16 | MAT_VIEW ACCESS FULL | MV_CONVERT_UOM | 0 | 1 | 0 |00:00:00.01 | 0 | |
| |
| 17 | BUFFER SORT | | 0 | 21 | 0 |00:00:00.01 | 0 | 73728 |
73728 | |
| 18 | BUFFER SORT | | 0 | | 0 |00:00:00.01 | 0 | 73728 |
73728 | |
| 19 | PX RECEIVE | | 0 | 21 | 0 |00:00:00.01 | 0 | |
| |
| 20 | PX SEND BROADCAST | :TQ10001 | 0 | 21 | 0 |00:00:00.01 | 0 | |
| |
|* 21 | TABLE ACCESS BY INDEX ROWID| STOCK | 1 | 21 | 83 |00:00:00.01 | 78 | |
| |
|* 22 | INDEX RANGE SCAN | STOCK_PK | 1 | 91 | 83 |00:00:00.01 | 4 | |
| |
|* 23 | TABLE ACCESS BY INDEX ROWID | MV_TRANS_STOCK | 0 | 1 | 0 |00:00:00.01 | 0 | |
| |
|* 24 | INDEX RANGE SCAN | MV_TRANS_STOCK_IDX1 | 0 | 1 | 0 |00:00:00.01 | 0 | |
| |
Predicate Information (identified by operation id):
14 - access("P"."PRODUCT"=:PPRODUCT)
16 - access(:Z>=:Z AND :Z<=:Z)
filter("CON"."PRODUCT"=:PPRODUCT)
21 - filter("STOCK"."LOC_CODE"=:PLOCCODE)
22 - access("STOCK"."PRODUCT"=:PPRODUCT AND "STOCK"."WH_CODE"=:PWHCODE)
23 - filter("STS"='N')
24 - access("PRODUCT"=:PPRODUCT AND "WH_CODE"=:PWHCODE AND "LOC_CODE"=:PLOCCODE AND "RACK"="STOCK"."RACK" AND "BATCH"="STOCK"."B
ATCH" AND
"EXP_DATE"="STOCK"."EXP_DATE")
53 rows selected.
Elapsed: 00:00:00:12I'm looking forward for suggestions how to improve the performance of this statement.
Thank you very much,
xtantoxtanto wrote:
Hi sir,
How to prevent the query from doing parallel query ?
Because as you see actually I am not issuing any Parallel hints in the query.
Thank you,
xtantoKristanto,
there are a couple of points to consider:
1. Your SQL*Plus version seems to be outdated. Please use a SQL*Plus version that corresponds to your database version. E.g. the AUTOTRACE output is odd.
2. I would suggest to repeat your exercise using serial execution (the plan, the autotrace, the tracing). You can disable parallel queries by issuing this in your session:
ALTER SESSION DISABLE PARALLEL QUERY;
This way the output of the tools is much more meaningful, however you might get a different execution plan, therefore the results might not be representative for your parallel execution.
3. The function calls might pose a problem. If they are, one possible damage limitation has been provided by hoek. Even better would be then to replace the PL/SQL function with equivalent plain SQL. However since you say that it generates not too many rows it might not harm here too much. You can check the impact of the functions by running a similar query but omitting the function calls.
4. The parallel execution plan contains a MERGE JOIN CARTESIAN operation which could be an issue if the estimates of the optimizer are incorrect. If the serial execution still uses this operation the TKPROF and DBMS_XPLAN.DISPLAY_CURSOR output will reveal whether this is a problem or not.
5. The execution of the statement seems to take on 2-3 seconds in your tests. Is this in the right ballpark? If yes, why should this statement then be problematic? How often does it get executed?
6. The statement uses bind variables, so you might have executions that use different execution plans depending on the bind values passed when the statement got optimized. You can use DBMS_XPLAN.DISPLAY_CURSOR using NULL as "child_number" parameter or DBMS_XPLAN.DISPLAY_AWR (if you have a AWR license) to check if you have multiple execution plans for the statement. Please note that older versions might have already been aged out of the shared pool, so the AWR repository might be a more reliable source (but only if the statement has been sampled).
7. You have disabled cost based transformations: "_optimizer_cost_based_transformation" = OFF. Why?
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/ -
Many problems with software activation with software purchased online
All:
In the last few weeks, I have had a lot of problems with software activation.
I purchased 10 copies of Office. 5 would not activate. I took the software back to the local as suggested by customer service, but was denied an exchange.
I purchased 7 copies of Adobe Photoshop elements. 3 activated, the rest did not.
What is going on? Can I get these replaced, refunded, or activated?
Thanks.Greetings captainkeys,
That’s quite the amount of software to purchase! I’m sure you were quite disappointed to find that not all of the software codes seemed to be activated, delaying your use of the software. I’m glad you’ve reached out to us in multiple ways to see what options are available to you, and I apologize if we have been unable to find a resolution for you.
Using the email address you registered with the forum, I was only able to locate eight copies of Microsoft Office, and couldn’t locate any copies of the Adobe Photoshop Elements. That being said, I was able to see that some of the codes did fail to process through the activation process. I would be happy to look into getting these activated for you.
That being said, I am sending you a private message to gather further information from you. You may check your private messages by signing into the forum and clicking the envelope icon in the top right corner of the page.
Sincerely,
Tasha|Social Media Specialist | Best Buy® Corporate
Private Message -
Top activity on enterprise manager
Hi
I am using grid control.
When I check one of my database, I notice that there is no graph in top activity page !!!!! , the top sql and the top sessions parts are also empty. Nothing is shown...
There was no problem before...
Other than top activity everything is normal.
What is the reason for this? and Any suggestion
Oracle Database Version: 10.1.0.5.0
Grid Control agent version: 10.2.0.1.0
I tried restarting the agent, it didnt solve the problem..Check the agent status and see if the metrics XML files are pending upload.
Check in OEM to see the status of the agent.
Try to run "emctl clearstate agent"
Upgrade the OEM agent to a higher version - e.g. 10.2.0.5 -
Email settings problem; error sending activation email
Hi there
Hope everyone is doing well
I am having some problems with my latest user registration pages for my site
I am havving problems sending the
activation email
I have set up my server to relay emails and it works ok I use a linux server and cpenel and outlook expres as my mail client...... I configured an email account in my cpanel called admin @mysite.com I used the automatic configure outlook express to configure outlook
I can send and recieve emails to and from my Yahoo account using my yahoo adress to [email protected] and I can send emails from outlook ex using [email protected] to my yahoo email
I then created the user registration pages for my site with email activation .........
All wen well then I tried to test and got the following error ....
Developer Details:
E-mail couldn't be sent. Error returned: Failed to connect to mail.mysite.com:25 [SMTP: Failed to connect socket: Connection timed out (code: -1, response: )]. (EMAIL_FAILED)
So I looked at my email settings in my control panel........ I have tried every possible combination of information to get it to work and I still get the same error
I have tried
mail server mail.mysite.com This is the same info that is described in the manual settings for my email config in cpanel
port 25
username [email protected] This is the email account I set up in cpanel web mail
password **********
default sender [email protected]
This is the same info that is described in the manual settings for my email config in cpanel
This is the email account I set up in cpanel web mail
I have changed all the information Mannnnnnny times for hours and hours and still no luck
I have tried mail server = mail.mysite.com , my mail server IP address , www.mysite.com . etc etc etc
I have tried to username / paassword the cpanel username & password / my email account username and password ... etc etc etc
nothing works
I can find nothing to help at all on the net
I did read that the settings should be exactly the same as the working settings from outlook express....... so I checked the settings in outlook express, that work, and put all the same settings in my email settings in ADDT control panel .....
And it still does not work
I still get the same error
The strange thing is that I can send and recieve email from outlook using the email [email protected] , using the mail server mail.mysite.com
but when I use exactly the same info in addt I get the error
Is driving me crazy
Can someone please tell me the correct information to fill in on my email settings ......? in detail ........
I have read the help documentation and is no help at all
I am lost
Any help would be great
Have a great day
oh one thing........ any idea why you cannot search withing forum topics anymore ...... ?
CheersSo Mysite is your ISP. They should be able to describe on their website what settings you need.
(1) Mail Server - the name of their mail server ([email protected]?)
(2) Port - you may need to specify the actual port to be used, I know I do.
(3) Username - The user name you use when you log into your Mysite account
(4) Password - The password you use
Both username and password are case sensitive.
This information should be on one of their admin pages for explanation.
Sorry, this may not help you much. -
Problem with ODS activation -- Urgent
Hi All,
I have a problem with ODS activations, when I trying to activate ODS data automatically/ Manually. It is going to short dump.
Could you anybody pls help me in this issue.
Thanks in Advance
NarendraSorry for delay,
I raised an OSS messsage and waiting from reply.
The ODS fetch the data from 6 sources. all the 5 sources data is correctly updating in the ODS. I have ODS activation problem with only one soure data.
The error is
RSMO
Inserted records 1-; Changed records 1-; Deleted records 1-
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000001 not correct
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000003 not correct
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000002 not correct
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000001 not correct
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000002 not correct
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000001 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000003 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000002 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000001 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000003 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000002 incorrect with status 4 in rsodsacstreq
No confirmation for request ODSR_49Y5D1HMEA9OOGJD9VS1XTXY9 when activating the ODS object ZPMPRCST
Activation of data records from ODS object ZPMPRCST terminated
SM37 Job log
Error Message from Job log (SM37) (Highlights of the Job log)
SIDs determined successfully for request REQU_49Y4VOQEDO6H73KDE354JNDB5 from ODS object ZPMPRCST
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000002 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000003 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000001 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000002 not correct
Inserted records 1-; Changed records 1-; Deleted records 1-
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000003 not correct
Inserted records 1-; Changed records 1-; Deleted records 1-
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000001 not correct
Inserted records 1-; Changed records 1-; Deleted records 1-
No confirmation for request ODSR_49Y5D1HMEA9OOGJD9VS1XTXY9 when activating the ODS object ZPMPRCST
SID assignment started at 07:41:12
SID assignment finished at 07:42:22
Activation started at 07:42:22
Activation finished at 08:12:28
Errors occured when carrying out activation
Analyze errors and reactivate if necessary
Activation of data records from ODS object ZPMPRCST terminated
Activation is running: Data target ZPMPRCST, from 1.397.204 to 1.397.204
Data to be activated successfully checked against archiving objects
SIDs determined successfully for request REQU_49Y4VOQEDO6H73KDE354JNDB5 from ODS object ZPMPRCST
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000002 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000003 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000001 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000002 not correct
Inserted records 1-; Changed records 1-; Deleted records 1-
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000003 not correct
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000001 not correct
No confirmation for request ODSR_49Y5D1HMEA9OOGJD9VS1XTXY9 when activating the ODS object ZPMPRCST
SID assignment started at 07:41:12
SID assignment finished at 07:42:22
Activation started at 07:42:22
Activation finished at 08:12:28
Errors occured when carrying out activation
Analyze errors and reactivate if necessary
Activation of data records from ODS object ZPMPRCST terminated
Activation is running: Data target ZPMPRCST, from 1.397.204 to 1.397.204
Data to be activated successfully checked against archiving objects
SIDs determined successfully for request REQU_49Y4VOQEDO6H73KDE354JNDB5 from ODS object ZPMPRCST
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000002 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000003 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000001 incorrect with status 4 in rsodsacstreq
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000002 not correct
Inserted records 1-; Changed records 1-; Deleted records 1-
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000003 not correct
Request REQU_49Y4VOQEDO6H73KDE354JNDB5, data package 000001 not correct
No confirmation for request ODSR_49Y5D1HMEA9OOGJD9VS1XTXY9 when activating the ODS object ZPMPRCST
SID assignment started at 07:41:12
SID assignment finished at 07:42:22
Activation started at 07:42:22
Activation finished at 08:12:28
Errors occured when carrying out activation
Analyze errors and reactivate if necessary
Activation of data records from ODS object ZPMPRCST terminated
Report RSODSACT1 ended with errors
Job cancelled after system exception ERROR_MESSAGE
RSODSACTREQ Table Entries
Table: RSODSACTREQ
Displayed Fields: 10 of 10 Fixed Columns: 3 List Width 1000
InfoCube Request ID Data packet number Boolean Boolean Request ID ODS operation Activ. status
ZPMPRCST REQU_49Y4VOQEDO6H73KDE354JNDB5 000000 X X ODSR_49Y5D1HMEA9OOGJD9VS1XTXY9 A 0
ZPMPRCST REQU_49Y4VOQEDO6H73KDE354JNDB5 000001 X ODSR_49Y5D1HMEA9OOGJD9VS1XTXY9 A 4
ZPMPRCST REQU_49Y4VOQEDO6H73KDE354JNDB5 000002 X ODSR_49Y5D1HMEA9OOGJD9VS1XTXY9 A 4
ZPMPRCST REQU_49Y4VOQEDO6H73KDE354JNDB5 000003 X ODSR_49Y5D1HMEA9OOGJD9VS1XTXY9 A 4 -
User-defined alert based on Top Activity screen?
Does anyone know the query used to populate the Top Activity screen in Grid Control? I want to make a user-defined alert that will page me if the Top Activity is over a certain amount.
Hi Bishal,
Rather than using an alert, you could put validation code in the SBO_SP_TransactionNotification stored procedure to check for the same job number before the document is added. This is a permitted solution as SAP allow users to add their own sql code to this proc (provided it's not inserting or updating data in SBO system tables).
To set up this solution (on a test system):
1) Open SQL Studio Management
2) In the Object Explorer expand the company database, expand Programmability and Stored Procedures
3) Right-click the SBO_SP_TransactionNotification stored procedure and choose Modify. This will create an update script in the main window.
4) Look for the following section in the script:
-- ADD YOUR CODE HERE
5) Underneath the above section, paste the following code:
if @OBJECT_TYPE = '17' and @TRANSACTION_TYPE in ('U', 'A')
if exists(select DocEntry from ORDR where DocEntry <> cast(@LIST_OF_COLS_VAL_TAB_DEL as int)
and U_Jobnumber is not null and U_Jobnumber <> ''
and U_Jobnumber = (select U_Jobnumber from ORDR where DocEntry = cast(@LIST_OF_COLS_VAL_TAB_DEL as int)) )
begin
set @ERROR = '9999' -- Set your own error code here
set @ERROR_MESSAGE = 'The Job Number entered has already been used on a previous sales order.'
end
6) Click on Execute and you should get a message stating that the update was successful
7) Test adding a new sales order
The above script will raise an error when the user clicks on Add if a job number has been specified on the sales order and that number has already been used. It will not check if a job number has not been specified
Kind Regards,
Owen -
Problem with the active version of the transfer rule ABAP program with sour
Hi,
I have a problem with the active version of the transfer rule ABAP program with source system EXCEL.
The system does not react to changes done in the transfer rule coding. For FISCPER I have hardcoded the result 'BABABA' and still the results delivered are those from the CSV.
Resetting the system buffers does not help. The problem is systematic in combination with source system EXCEL (i.e. not only 1 InfoSource). Checking the active program Extras->Display Program shows the coding (result='BABABA') being there, but
as stated, the system does not produce the result BABABA, but instead the result of the CSV.
It seems as if the original version from the very first activation of the transfer rule program remains somewhere and continues to be used. Does anybody know how to flush it out and get the system to actually use the coding appearing as the active program.
I have posted an OSS note, but SAP takes it time to answer and I am under time pressure so I figured that maybe one of you know who to solve it before SAP does.
Greetings and thanks,
MartinHi martin,
just try to go out the RSA1 and then return to your infopac. ...
sometimes there some "cache" trouble -
REAL problems with iMessage activation same with Face Time
I'm having real problems with IMessage activation same with FaceTime, the phone shows the activation is being made but it does not activate!
Apple ID and password is OK, it's working with other applications
Any ideas guys?!My daughters had the same problem with both of their iPod Touches. One logged back into iMessage and FaceTime, the other consistently would not login with the same error, "An error occurred during activation. Try again."
Check your date and time. Its likely incorrect. Once the date is corrected. Restart the device.
For what ever reason, some devices lose track of the date. In my case, apparently, my daughters change the date to affect a particular game by advancing the date. Little cheaters. (LOL)
Hope this helps! -
Top activity chart on Enterprise manager
Hi,
The Top activity chart is not empty on the Enterprise manager of a 2 node 11gR2 RAC DB,
the statistics_level is set to "typical".
NAME TYPE VALUE
optimizer_use_pending_statistics boolean FALSE
statistics_level string TYPICAL
timed_os_statistics integer 0
timed_statistics boolean TRUE
$emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
https://xx.xx.xx:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is running.
Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/xxx01_orcl/sysman/log
$emctl status agent
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0
Copyright (c) 1996, 2011 Oracle Corporation. All rights reserved.
Agent Version : 10.2.0.4.4
OMS Version : 10.2.0.4.4
Protocol Version : 10.2.0.4.4
Agent Home : /u01/app/oracle/product/11.2.0/db_1/xxx01_orcl
Agent binaries : /u01/app/oracle/product/11.2.0/db_1
Agent Process ID : 815
Parent Process ID : 801
Agent URL : https://xxx.xx.xx:3938/emd/main
Repository URL : https://xx.xx.xx:1158/em/upload/
Started at : 2013-09-20 06:39:57
Started by user : oracle
Last Reload : 2013-12-09 19:37:51
Last successful upload : 2013-12-26 09:47:31
Total Megabytes of XML files uploaded so far : 3257.08
Number of XML files pending upload : 0
Size of XML files pending upload(MB) : 0.00
Available disk space on upload filesystem : 54.07%
Data channel upload directory : /u01/app/oracle/product/11.2.0/db_1/xxxx01_orcl/sysman/recv
Last successful heartbeat to OMS : 2013-12-26 09:49:41
Agent is Running and Ready
How can I enable the Top Activity chart on the Enterprise manager console.
Thanks in advance.There is no pending upload in the EM Agent,
STATISTICS_NAME ACTIVATION_LEV SYSTEM_STATUS STATISTICS_VIEW_NAME SESSIO
Buffer Cache Advice TYPICAL ENABLED V$DB_CACHE_ADVICE NO
MTTR Advice TYPICAL ENABLED V$MTTR_TARGET_ADVICE NO
Timed Statistics TYPICAL ENABLED YES
Timed OS Statistics ALL DISABLED YES
Segment Level Statistics TYPICAL ENABLED V$SEGSTAT NO
PGA Advice TYPICAL ENABLED V$PGA_TARGET_ADVICE NO
Plan Execution Statistics ALL DISABLED V$SQL_PLAN_STATISTICS YES
Shared Pool Advice TYPICAL ENABLED V$SHARED_POOL_ADVICE NO
Modification Monitoring TYPICAL ENABLED NO
Longops Statistics TYPICAL ENABLED V$SESSION_LONGOPS NO
Bind Data Capture TYPICAL ENABLED V$SQL_BIND_CAPTURE NO
Ultrafast Latch Statistics TYPICAL ENABLED NO
Threshold-based Alerts TYPICAL ENABLED NO
Global Cache Statistics TYPICAL ENABLED NO
Active Session History TYPICAL ENABLED V$ACTIVE_SESSION_HISTORY NO
Undo Advisor, Alerts and Fast TYPICAL ENABLED V$UNDOSTAT NO
Ramp up
Streams Pool Advice TYPICAL ENABLED V$STREAMS_POOL_ADVICE NO
Time Model Events TYPICAL ENABLED V$SESS_TIME_MODEL YES
Plan Execution Sampling TYPICAL ENABLED V$ACTIVE_SESSION_HISTORY YES
Automated Maintenance Tasks TYPICAL ENABLED NO
SQL Monitoring TYPICAL ENABLED V$SQL_MONITORING YES
Adaptive Thresholds Enabled TYPICAL ENABLED NO
V$IOSTAT_* statistics TYPICAL ENABLED NO
23 rows selected. -
Top Activity page on DB 11g OEM always show as one CPU.
I have my development 11g (11.2.0.4.0) database run under Oracle Linux 6.3 (2.6.39-200.24.1.el6uek.x86_64) run in VMware Workstation VM.
I have allocated 4 x vCPUs to the VM and try monitoring performance with OEM. I have found that "CPU Cores" show on "Performance" tab is 4 but show as 1 on "Top Activity" page.
Do anybody know why is different?Responding to direct message, the result of "select * from FROM v$license;" is as below.
SESSIONS_MAX
SESSIONS_WARNING
SESSIONS_CURRENT
SESSIONS_HIGHWATER
USERS_MAX
CPU_COUNT_CURRENT
CPU_CORE_COUNT_CURRENT
CPU_SOCKET_COUNT_CURRENT
CPU_COUNT_HIGHWATER
CPU_CORE_COUNT_HIGHWATER
CPU_SOCKET_COUNT_HIGHWATER
0
0
22
43
0
4
0
0
4
0
0 -
How to change top activity interval
Hello,
I would like to see the top activity (waits) for a whole week, not just day by day, with enterprise manager 10g. Can that be done? If yes, then how?
Thank you.You would need something other than the free Adobe Reader.
Best to do it in the original document and create a new PDF. -
I have a problem with software activation of dedicated channel partners.
I have a problem with software activation of dedicated channel partners.
I find in the portal software and serial number for activation, but when I enter the serial (after you log in with the adobe id) tells me that the serial number is not correct.
Tednto contact Customer Support directly (via chat) but nothing ever done offline.
my adobe id is: [email protected]Error "The serial number is not valid for this product" | Creative Suite
or contact adobe support by clicking here and, when available, click 'still need help', https://helpx.adobe.com/contact.html
i know you've tried adobe support, but if they can't help you no one here can help you unless there's some problem support can but won't handle. -
I have a iPhone 4S 16 gb and I am having problem with sim activation please tell me what to do
I have a iPhone 4S and I am having problem with its.activation plz tell me. The solution of this problem?
Did you already try these steps?
Restart the iPhone.
Try another means of reaching the activation server and attempt to activate.
Try connecting to a known-good Wi-Fi network if you're unable to activate using a cellular data connection.
Try connecting to iTunes if you're unable to activate using Wi-Fi.
Restore the iPhone.
If you receive an alert message when you attempt to activate your iPhone, try to place the iPhone in recovery mode and perform a restore. If you're still unable to complete the setup assistant due to an activation error, contact Apple for assistance.
copied from iOS: Troubleshooting activation issues -
Top activity (red bar) enterprise manager
Hi I am new to oracle 10g and performance tuning;
When I look at the top activity from enterprise manager, I notice that one person has red bar(which is making update).The activity is around %65, and the user said that the system hangs, it takes too long to finish the operation.
Does the red bar occurs in update statements? What can be solutionNo one reading this has even the slightest idea of what red bar on what page and how it might or might not relate to any DML statement.
Drill down and find out what is happening for that specific user having the issue. What were they doing? What SQL statement. Does it correspond with top SQL in OEM Grid?
Then run ADDM and Explain Plan and if you can't figure out what is happening post the SQL statement and the explain plan (created using DBMS_XPLAN) and any relevant index information and we'll take a look.
Maybe you are looking for
-
3d Z-space transform bug?
I'm noticing that if I have an object, let's say a white rectangle, and want to transform it in Z-space with the 3d transform tool sected, the little blue dot control in the middle of the rectangle has no effect. The red X-axis and green Y-axis con
-
Wht are the function modules for download upload excel files in bdc.
hi all, this question seems to be silly but i had open office excel files i am getting problems to upload or down loading. can you tell which function modules can upload or down load open office excel files. another dought this is not need full but
-
Ok to update to iOS 5 from 4.2?
Hello. I have an iPhone 4 and would like to iOS 5. I am currentyl running 4.2.1 and have nerver updated to any of the 4.3 versions for whatever reason. Is it ok to skip 4.3 and update directly from 4.2 to 5? Are there any known issues of skipping ver
-
Print Pop-up on transmitting PO form
Hi, I have 2 PO types using the same print program and message type for the PO form. But 1 form have the print-pop up when transmitting the message and the other doesnu2019t. What might be causing the inconsistencies? I need both PO types to have
-
hi, i read from forum that no cost element is needed for cogs. "certain expense accounts are not meant to flow to Cost Accounting. Examples include Price difference accounts, variance accounts, and COGS or COS." 1) i still can see price difference ac