EM 12c show multiple Top Activity Graph
Hi,
i'ver em 12c with 4 db monitored.
I would like to create a page with 4 Top Activity Graph, 1 for db.
It's possible?
Not quite... Your best best is to put them in a group together and play with the charts/group page...
Similar Messages
-
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 -
Can crosstab show multiple objects in top header?
can crosstab show multiple objects in top header?
for example, the data showed as :
customer city name city value product name product value
A Paris 1 food N
A London 2 milk T
B London 3 food E
B Paris 4 milk M
C London 6 food W
C Paris 3 milk Q
D London 1 food E
D Paris 2 milk R
i want show these data in crosstab, and customer is the left header, city name and product name are the top header, and city value and product value are measures in the crosstab,
and i want show the data as below:
London Paris food milk
A 2 1 N T
B 3 4 E M
C 6 3 W Q
D 1 2 E R
but actually i got below result in crosstab:
London food London milk Paris food Paris milk
A 2 T 1 N
B 3 E 4 M
C 6 W 3 Q
D 1 E 2 R
anyone can help me on this?
thanks.Can you see this image?
https://weblogs.sdn.sap.com/weblogs/images/252123862/trick2.JPG
The steps I did to get it were:
1. Insert a crosstab. In the first column put this formula
=[customer]
2. In the blue row cell do not put the city name directly but this formula:
="*London*"
3. Add 3 columns. In each blue cell (header cells) put this formulas: ="Paris", ="food"
, ="*milk*"
4. Now, in the white cells:
In the first column put this formula:
=Max([city_value] Where ([city_name]="London"))
In the second
=Max([city_value] Where ([city_name]="Paris"))
In the third column:
=Max([product value] Where ([product_name]="food"))
In the fourth column:
=Max([product value] Where ([product_name]="milk"))
Sadly this is not dynamic as you can see, but is the only way to achieve what you want to display.
Otherwise better follow the advice by the other posters.
Edited by: PadawanGirl on Mar 2, 2011 5:48 PM -
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/ -
Database Top activity - cluster activity is more
We have a three node RAC database. The graph of top activity under grid control is showing more activity with cluster when we run any DML transactions. Could someone explain why is it so and how to resolve it?.
user12183454 wrote:
I think by just querying ASH you can come up with the %activity (or %load). There is no need to make a trace.
please post SQL that meets your requirments
are you licensed to actually use ASH? -
AssignedTo showing multiple times on report
I was tasked with creating some reports from Service Manager using the cubes. My boss wanted a report that showed all active tickets, showing from high to low the analyst, then the category, then the user.
I used the following Fields:
IncidentStatusValue in the Column Label
IncidentDimCount in the Values
AssignedToUserDim.DisplayName, IncidentClassificationValue, and AffectedUserDim.DisplayName in the Row Labels.
The report looks exactly as I want it to.
The problem is that the data is wrong on several levels.
Issue 1: It shows multiple entries for the AssignedToUserDim.DisplayName
I changed the names, but if I click on the number 1 next to Joe User(Affected User) for either Analyst1 or 2 a tab open with IR48005. Basically the two analyst both show an active ticket assigned to them, when only one of them should.
Issue 2: The Grand Total that is calculated by the PivotTable is incorrect. I copy and paste the same numbers into the cells next to the PivotTable and the total is something completely different.
The weird thing about this also is that when I did this 20 minutes ago before writing this post, the Autocalc showed 130.
The first issue is more important than the second issue. It is not just this report and I have tried using many different values only to get the same duplication. Its almost like the DataWarehouse is not actually deleting the previous AssignedTo
user. The history in the actual ticket shows that it should be, but the reports show something different.
This then throws off every report I try to make. I made one for totals tickets per analyst and I noticed that I got credit for closed tickets that I had previously reassigned, as did the person who the ticket was reassigned to.
Can anyone offer any suggestions?
Thanks.
MattUnfortunately no. But I think I found a pattern in regards to this: it seems the current assigned to user is always the one listed the last.
I guess this is because the stored procedure behind the AssignedToUserDim doesn't filter if the relationship is still active. This is quite easy to "reproduce" via PowerShell.
Lets say you have an IR with ID IR1234 which has been re-assigned multiple times.
If you run this small query now in PowerShell you'll see that all the AssignedToUser relationships still exists, but only one of them has the property "IsDeleted" set to False.
Import-Module SMlets
$IRO = Get-SCSMObject -Class (Get-SCSMClass System.WorkItem.Incident$) -Filter "Id -eq IR1234"
Get-SCSMRelationshipObject -BySource $IRO | where {$_.RelationshipID -eq "15e577a3-6bf9-6713-4eac-ba5a5b7c4722"}
So, in the DB those AssignedToUser relationships (actually it applies to all relationships) won't be "overwritten" or the old one deleted as soon as you re-assign an incident for example. Instead, new relationshipobjects will be generated and the old ones
changes the "IsDeleted" attribute to True.
Perhaps it would be possible to create a new Dim for the Data Warehouse, re-use the stored procedure for the AssignedToUserDim and modify it slightly to filter only for the active AssignedToUser relationship. Then you could use your newly created dim to
display the current Assigned To User. I haven't tested this though, probably it's more complex than I assume :)
Cheers
Alex -
I'm running OSX 10.9.1 (13B42)
My problem is that occasionally my Mac wont boot properly. It gets to the background picture where the dock should open but it freezes there. The little apple shows up top left but nothing else and the cursor shows as the little spinning wheel that wont do anything. I can't click on the apple to restart, I have to switch off in back and then start up again. It usally boots all the way after that but I'm worried there's something up since this seems to be happeneing more frequently. Also I'm worried that having to manually shut down like that will somehow damage the software in time?
I tried a disk verify but there were no repairs needed. I repaired disk permissions too just in case but it still seems to happen every once in a while.
I've noticed recently that it happens the next reboot after I've been streaming movies online if that helps. Is there any reason for this and anything i can do to stop it in the future?Thanks Paul, just ran the etrecheck you recommended and got this:
Hardware Information:
iMac (21.5-inch, Mid 2011)
iMac - model: iMac12,1
1 2.5 GHz Intel Core i5 CPU: 4 cores
4 GB RAM
Video Information:
AMD Radeon HD 6750M - VRAM: 512 MB
System Software:
OS X 10.9.1 (13B42) - Uptime: 0 days 0:45:16
Disk Information:
ST3500418AS disk0 : (500.11 GB)
EFI (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) /: 499.25 GB (350.35 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
OPTIARC DVD RW AD-5690H
USB Information:
Apple Inc. FaceTime HD Camera (Built-in)
Samsung SCX-4600 Series
Apple Inc. BRCM2046 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Internal Memory Card Reader
Apple Computer, Inc. IR Receiver
FireWire Information:
Thunderbolt Information:
Apple Inc. thunderbolt_bus
Kernel Extensions:
com.sophos.kext.sav (8.0.14)
Startup Items:
MobileBrServ: Path: /Library/StartupItems/MobileBrServ
Problem System Launch Daemons:
Problem System Launch Agents:
Launch Daemons:
[loaded] com.adobe.fpsaud.plist 3rd-Party support link
[loaded] com.adobe.SwitchBoard.plist 3rd-Party support link
[loaded] com.anchorfree.ajaxserver.plist 3rd-Party support link
[loaded] com.microsoft.office.licensing.helper.plist 3rd-Party support link
[loaded] com.sophos.autoupdate.plist 3rd-Party support link
[loaded] com.sophos.intercheck.plist 3rd-Party support link
[loaded] com.sophos.notification.plist 3rd-Party support link
Launch Agents:
[not loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
[loaded] com.adobe.CS5ServiceManager.plist 3rd-Party support link
[loaded] com.sophos.uiserver.plist 3rd-Party support link
User Launch Agents:
[loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
[failed] com.apple.CSConfigDotMacCert-[...]@me.com-SharedServices.Agent.plist 3rd-Party support link
[loaded] com.divx.agent.postinstall.plist 3rd-Party support link
[loaded] com.google.keystone.agent.plist 3rd-Party support link
User Login Items:
iTunesHelper
BitTorrent
Internet Plug-ins:
Flip4Mac WMV Plugin: Version: 2.4.4.2 3rd-Party support link
FlashPlayer-10.6: Version: 12.0.0.38 - SDK 10.6 3rd-Party support link
OVSHelper: Version: 1.1 3rd-Party support link
Flash Player: Version: 12.0.0.38 - SDK 10.6 3rd-Party support link
Default Browser: Version: 537 - SDK 10.9
DivXBrowserPlugin: Version: 2.2 3rd-Party support link
QuickTime Plugin: Version: 7.7.3
SharePointBrowserPlugin: Version: 14.0.0 3rd-Party support link
JavaAppletPlugin: Version: 14.9.0 - SDK 10.7 Outdated! Update
Audio Plug-ins:
BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
AirPlay: Version: 1.9 - SDK 10.9
AppleAVBAudio: Version: 2.0.0 - SDK 10.9
iSightAudio: Version: 7.7.3 - SDK 10.9
3rd Party Preference Panes:
DivX 3rd-Party support link
Flash Player 3rd-Party support link
Flip4Mac WMV 3rd-Party support link
Growl 3rd-Party support link
Bad Fonts:
None
Old Applications:
/Library/Sophos Anti-Virus
SophosAntiVirus: Version: 8.0.8.1 - SDK 10.5 3rd-Party support link
SophosAutoUpdate: Version: 8.0.15 - SDK 10.5 3rd-Party support link
SophosUIServer: Version: 8.0.21 - SDK 10.5 3rd-Party support link
InterCheck: Version: 8.0.8.1 - SDK 10.5 3rd-Party support link
VLC: Version: 2.0.1 - SDK 10.5 3rd-Party support link
Sophos Anti-Virus: Version: 8.0.21 - SDK 10.5 3rd-Party support link
Spotify: Version: 0.8.4.93.gd9f49c35 - SDK 10.5 3rd-Party support link
Install Spotify: Version: 1.0 - SDK 10.5 3rd-Party support link
/Users/[redacted]/Downloads/Programs/Install Spotify.app
Time Machine:
Time Machine not configured!
Top Processes by CPU:
2% WindowServer
2% EtreCheck
0% Google Chrome
0% hidd
0% SophosUIServer
Top Processes by Memory:
438 MB firefox
139 MB InterCheck
119 MB com.apple.IconServicesAgent
106 MB Google Chrome
78 MB mds_stores
Virtual Memory Information:
370 MB Free RAM
1.59 GB Active RAM
1.25 GB Inactive RAM
813 MB Wired RAM
397 MB Page-ins
0 B Page-outs
I have no idea what all the means, lol. -
How to show only legend in graph?
Is there any way to show only legend in graph? I tried to look in XML of request but I didn't find anything. Please help. :)
Just add a custom graph with
<Graph Name='graph' Top='0' Left='0' Visible='False' Evaluation='Yes' Type='Bar' SubType='Basic'>
<ValueScale Position='Left' MinorFont='Size:10;'/>
<CategoryScale MinorFont='Size:10;'/>
<Legend Name='legend_graph' Top='0' Left='0' Width='300' Height='100' Anchor='BottomRight' ZIndex='1'>
<Properties AutoSizeMarkers='False' BorderType='Medium' BorderColor='#e5e5e5' UseTransparentFill='False' FillColor='#b999b9' GrowVerticalMaxHeight='64' MinimumFontSize='0' Font='Style:Italic; Color:#4c4c4c;'/>
</Legend>
</Graph>see also:
http://obiee101.blogspot.com/2008/08/obiee-date-time-scatter-graph.html
regards
John
http://obiee101.blogspot.com -
Show Multiple Filter Values in a Web Template
Hello
I have a Web Template based on a query. On this Web Template I can set multiple single filter values for one characteristic.
Now I want to show these filtered values for this characteristic on the web item. This is possible for ONE filter value when you use the XML path (f.e. DATA_PROVIDER:DP1?/BICS_VIEW/SELECTION_STATE/SELECTION/CHARACTERISTICS/CHARACTERISTIC[@name='CHARNAME']/SELECTIONS/SELECTION[1]/MEMBER/@text)
Is there a possibility to show MULTIPLE filter values for one characteristics in a text or input field? I don't want to use a drop down box or the info field.
Kind Regards,
AndreasHI,
the best ay to do is create a query with same variable parameters as of the main query and place filter Characters on rows.
Use this query in one analysis item and use it on top row of the template as Filters information.This will give better look and feel as well solve your requirement -
Using lookup function but to show multiple returns?
Okay so I have been talked through how to use a lookup function to show which student in my class has scored the highest grade. The formula used displays there name in one column and the score they achieved in another column which I have set up in a small seperate table. However as suggested in my intial lookup function search it was suggested that I would encounter a problem if two students both achieved the same highest score. However in the results table I have created it only shows one student. Is it possible to have a function or formula that will simply show the top scores and the students that scored it when they are tied?
Thanks
MarcusThe easiest way to accomplish this, Marcus, is by simply sorting all rows by grade. Sure, you can click on the column tab and hit "sort ascending", but I'm guessing you want something a little more dynamic than that.
So I've set up a class of 20 students and gave them all random grades btwn 40 - 99. (That's how it was done when I was in high school. ) I added a third column which takes that grade, multiplies it by 1000, and adds the row number of the student. This creates a unique identifier based on a possibly-non-unique grade:
Now it's simply a matter of using the LARGE function to rank these new identifiers, and then using LOOKUP to get the actual grade and name for that identifier. (Note that the grades changed; changing the focus from one cell to another creates new random values for the grades.)
The formula for columns b and c for this Ranking table are standard Lookup functions:
=LOOKUP($A1,Grades :: $C,Grades :: $B) to get the grades ($A2 for 2nd column, etc.), and
=LOOKUP($A1,Grades :: $C,Grades :: $A) to get the names.
I'd suggest hiding these identifier columns.
Now, to limit this display to the "X" highest grades, I'm going to continue this into another reply.
Vince -
Turn off a single plot of a multiple plot waveform graph
I have a multiple plot waveform graph (4 plots). I want to turn off one of the plots, say plot 2. Is this posible from the graphs property node? The property node seems to only give a reference to plot 0. I am using labview 7.
Cheers,
WayneI think you can use "active plot" together with "plot.visible"
property node to control which one you'd like to display. By default,
the property node refers to plot 0, but you can change to plot 1 or
other plots by changing active plot property node. You can search
"Plot" in LabVIEW Help if you'd like to know details.
Good luck,
Jian
On 18 Feb 2004 03:28:49 GMT, [email protected] (Computerman74)
wrote:
>>
>>I have a multiple plot waveform graph (4 plots). I want to turn off
>>one of the plots, say plot 2. Is this posible from the graphs
>>property node? The property node seems to only give a reference to
>>plot 0. I am using labview 7.
>>Cheers,
>>Wayne
>>
>>
>>
>>
>>
>>
>
>I would love to know if this is possible. I have been trying to figure i
t out
>myself.
>There is a way to turn a single array off and that is what I am doing for now
>untill this is possible. The plot is still there but reads zero when tunred
>off. It would be cool to have the abillty to turn off a single plot.
>I have tryed all the property nodes with no luck. The answer may be in the
>array size but I can't seem to control that either.
>For now you can use wire all 4 channels using the comparison select. Use a
>constant of 0 And wire up a swtich. When the input is false the output is zero
>in effect making the plot inactive but it still there. -
Programmatically add multiple scales to graph
On the front panel, I can choose "duplicate scale" "delete scale" to add/remove multiple scales a Graph control. Can I do this programmatically,i.e., use the VI to adjust the number of scales on the graph? The purpose is to have variable number of plots on the same graph, each having a different scale.
I use this: Add the maximum number of needed scales per hand. You can swap sides to get a better look.
To switch on/off a scale use the property "Active Y Scale" to select the scale and "yscale.visible" to switch on/off.
I've written a small demo. I hope it's usefull.
Attachments:
add_multiple_scales_to_graph.vi 24 KB -
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 -
Ok, here's the situation. I have 32 channels, not all active unless checked and I want to have them all graphed, with different tabs. But I only want to display the active graphs. I can check which channels are active from the front panel, and would like to ONLY have those graphs be available so I don't have to tab through 32 graphs to find the active channels. Is this possible? Or, could I just have the tabs of the active graphs highlighted so I can quickly see which ones are active? Thanks to all those more proficient in labview then I.
Hello Dr. Octagon,
I've noticed that your icon does not show up. It is just a red X on a white sheet, the typical image not found icon. It looks like you have it pointing to "http://files.ofmirroreye.net/images/2006/anticon.jpg" which most people probably cannot access. If you really want to use your icon, post a message in this thread with the .jpg file as an attachment. This will put the file on the NI forums which everyone can access. Then have your profile point to the attachment in the message that you posted.
As for your question. Do you have 32 tabs with one graph on each? Do you have some array or cluster that keeps track of what channels are active and which aren't? Perhaps a screenshot of your front panel (preferably in .png) or the actual .vi itself would help. I think what you would need to do is use property nodes. Create a property node for your tab control called Pages and set it for read. This gives an array of references for each page in the tab control. Use a For loop to iterate through the references and feed them into a property node for the Page called PageVis (page visible). Write a true or false to that node based on whether you want it to show or not. Or use the property node called Page Enabled where you write a constant to either Enable, Disable, or Disable and Grey. You would just need to devise the code to correlate your array of "Active Channels" to the page reference array. The property node for PageLabel might help to determine which page the reference refers to.
Attached is an image to show the property nodes I referred to. You'll have to figure out the logic.
Message Edited by Ravens Fan on 10-19-2007 10:33 PM
Attachments:
Example_BD.png 4 KB -
I'm wondering how to configure the activity graph engine so I can schedule the run on hourly basis. when I log on to the "activitygraph" engine at
http://host:port/activitygraph-engines where http://host:port is the URL for the WC_Utilities managed server.
It gives me options to schedule, however, the only option provided allows to schedule by days 1 or 2 or 3 etc....my requirement is to schedule it by the hour and not days.As I understand your question, I see similar / same issue is fixed in WebCenter Portal 11.1.1.8.7 Bundle Patch (yet to be released) OR request for a patch for Bug 20009407 might resolve your issue. Applying patch shows the recommendations as expected instead of showing "No connection or recommendations available".
I hope it helps!
Maybe you are looking for
-
Satellite M50-159: What is the part number of the origanal AC power adapter
My power adapter has broken and up until now i have been using a universal adapter but the connection is loose and takes a while for the orange light to turn on. My question is what is the part number of the original AC adapter that came with this la
-
How to see the changes made in tx code MN05
Hi all, Do you know how can I see the changes made in tx code MN05? I need to know when was The output condition updated? Do you have a change record on this change? Thanks and regards
-
Rank Function taking a long time to execute in SAP HANA
Hi All, I have a couple of reports with rank function which is timing out/ or taking a really long time to execute, Is there any way to get the result in less time when rank functions are involved? the following is a sample of how the Query looks, SQ
-
Html5 video: http range request spec??
i am implementing a java servlet, serving html5 videos. implementing the range protocol for safari is very difficult. 1) missing tool support safaris built in tools (resource view) shows all http requests (request and response headers) for all kind o
-
70 photos that aren't there, but iPhoto and Bridge say they are
I have an iPhone (first gen) that has a problem. When I plug the iPhone into the computer that it always syncs with, I am unable to get the photos to display correctly in iPhoto. The computer thinks there are 70 photos on the iPhone that are no longe