%Total DB time ?calculation
Hi All
What is the formula to calculate %Total DB Time in AWR
thanks
Google is your Friend
http://oracledoug.com/serendipity/index.php?/archives/1429-Time-Matters-DB-Time.html
http://www.dba-oracle.com/t_table_to_display_db_time_from_awr.htm
Similar Messages
-
PO with Total Price amount calculated is incorrect at the time of printing.
Hi Experts,
I have one PO with Total Price amount calculated is incorrect at the time of printing.
When my user took the first print out the PO shows the incorrect Total amount.
After 10 mins my user taken the printout again,that time it shows the Toatal Price value is correct amount.
How i can analysis this type of BUG..!!!
I am thinking it might be BUG...???
Please advice with you valuable inputs.
Best Regards,
RKHi,
Are you using the standard programm and print form or are you using your own?. Most of the printing issues happens because of own programms. Try with the standard and then you will be able to see why is this happening.
Best Regards,
Arminda Jack -
Execution time calculation issue
Hi,
I have a proceudre which update the tables data and it will capture the execution time for each and every table.
For that i am using below procedure and its giving incorrect values. i.e., its giving end_time<start_time
PFB code(Line nos 25,26,33,73,7679,80 code for exeution time calculation) and output.
1 CREATE OR REPLACE PROCEDURE my_proc
2 IS
3 CURSOR c
4 IS
5 SELECT tablename, TYPE
6 FROM table_list;
7
8 TYPE emp_record IS RECORD (
9 empkey tab1.pkey%TYPE,
10 rid ROWID,
11 ID tab_join.ID%TYPE,
12 dt tab_join.dt%TYPE
13 );
14
15 TYPE emp_type IS TABLE OF emp_record
16 INDEX BY BINARY_INTEGER;
17
18 v_emp emp_type;
19
20 TYPE emp_type_rowid IS TABLE OF ROWID
21 INDEX BY BINARY_INTEGER;
22 tab_no Number:=0;
23 emp_rowid emp_type_rowid;
24 r_cur sys_refcursor;
25 v_start_time TIMESTAMP; /** Added for time calculation*/
26 v_end_time TIMESTAMP; /** Added for time calculation*/
27 string1 VARCHAR2 (1000) := 'SELECT b.empkey, b.ROWID rid, a.id id, a.dt dt FROM emp_base a,';
28 string2 VARCHAR2 (1000) := ' b WHERE a.empkey = b.empkey';
29 rowcnt Number;
30BEGIN
31 FOR c1 IN c
32 LOOP
33 tab_no:=tab_no+1;
34 v_start_time := SYSTIMESTAMP; /** Added for time calculation*/
35 BEGIN
36 string_d := string1 || c1.tablename || string2;
37
38 OPEN r_cur FOR string_d;
39
40 LOOP
41 FETCH r_cur
42 BULK COLLECT INTO v_emp LIMIT 50000;
43
44 IF v_emp.COUNT > 0
45 THEN
46 FOR j IN v_emp.FIRST .. v_emp.LAST
47 LOOP
48 emp_rowid (j) := v_emp (j).rid;
49 END LOOP;
50
51 upd_string := ' UPDATE ' || c1.tablename || ' SET id = ' || v_emp (1).ID || 'WHERE ROWID = :emp_rowid';
52 FORALL i IN emp_rowid.FIRST .. emp_rowid.LAST
53 EXECUTE IMMEDIATE upd_string
54 USING emp_rowid (i);
55 rowcnt := rowcnt + emp_rowid.COUNT;
56 END IF;
57
58 EXIT WHEN v_emp.COUNT < 50000;
59 v_emp.DELETE;
60 emp_rowid.DELETE;
61 END LOOP;
62
63 v_emp.DELETE;
64 emp_rowid.DELETE;
65
66 CLOSE r_cur;
67 EXCEPTION
68 WHEN OTHERS
69 THEN
70 DBMS_OUTPUT.put_line (SQLERRM);
71 END;
72
73 v_end_time := SYSTIMESTAMP; /** Added for time calculation*/
74
75 INSERT INTO exec_time
76 VALUES (tab_no||' '||c1.tablename, v_start_time, v_end_time, v_end_time - v_start_time, rowcnt); /** Added for time calculation*/
77
78 COMMIT;
79 v_start_time := NULL; /** Added for time calculation*/
80 v_end_time := NULL; /** Added for time calculation*/
81 rowcnt := 0;
82 END LOOP;
83END;
Output :
TableName: exec_time
"TABLE_NAME" "START_TIME" "END_TIME" "EXCUTION_TIME" "NO_OF_RECORDS_PROCESSED"
TAB7 5/29/2013 10:52:23.000000 AM 5/29/2013 10:52:24.000000 AM +00 00:00:00.521707 773
TAB5 5/29/2013 10:52:18.000000 AM 5/29/2013 10:52:15.000000 AM -00 00:00:03.381468 56525
TAB6 5/29/2013 10:52:15.000000 AM 5/29/2013 10:52:23.000000 AM +00 00:00:08.624420 49078
TAB2 5/29/2013 10:51:54.000000 AM 5/29/2013 10:51:42.000000 AM -00 00:00:11.932558 529
TAB4 5/29/2013 10:51:47.000000 AM 5/29/2013 10:52:18.000000 AM +00 00:00:31.208966 308670
TAB1 5/29/2013 10:51:45.000000 AM 5/29/2013 10:51:54.000000 AM +00 00:00:09.124238 65921
TAB3 5/29/2013 10:51:42.000000 AM 5/29/2013 10:51:47.000000 AM +00 00:00:04.502432 12118
Issue: I am getting execution time in negitive values because end_time<start_time coming.
Please suggest me how to resolve this.
Thanks.Welcome to the forum!!
Please read {message:id=9360002} from the FAQ to know the list of details (WHAT and HOW) you need to specify when asking a question.
I primarily hate 3 things in your code
1. The way you have used BULK update which is totally unnecessary
2. COMMIT inside LOOP
3. The use of WHEN OTHERS exception.
Your code can be simplified like this
create or replace procedure my_proc
is
v_start_time timestamp;
v_end_time timestamp;
v_rowcnt integer;
begin
for c1 in (
select rownum tab_no
, tablename
, type
from table_list
loop
sql_string := q'[
merge into #tablename# a
using (
select id, dt
from emp_base
) b
on (
a.empkey = b.empkey
when matched then
update set a.id = b.id;
sql_string := replace(sql_string, '#tablename#', c1.tablename);
v_start_time := systimestamp;
execute immediate sql_string;
v_end_time := systimestamp;
v_rowcnt := sql%rowcount;
insert into exec_time
values
c1.tab_no || ' ' || c1.tablename
, v_start_time
, v_end_time
, v_end_time - v_start_time
, v_rowcnt
end loop;
commit;
end; In the INSERT statement on the table EXEC_TIME try to include the column list.
NOTE: The above code is untested. -
How is Processing time calculated in Simulation
Hi,
How is processing time calculated for every simulation-relevant object?
say for example,
i have 2 objects of person type (p1 and p1)
4 human tasks (T1, T2, T3, T4)
T1 assigned to p1, processing time 2hrs
T2 assigned to p1, processing time 2hrs
T3 assigned to p2, processing time 2hrs
T4 assigned to p2, processing time 2hrs
start --> T1(p1) --> T2(p1) --> T3(p2) --> T4(p2) --> end
Have not set any other simualtion parameters. now,
* Duration for simulation is set to 6hrs,
T1, T2, and T3 are getting processes once, but start event is getting processed twice
# Why is start event getting processed second time?
# Will this take any processing time..
* Duration for simulation set to 7hrs,
start event and T1 gets processed 2 times, T2 and T3 once..
and the total processing time becomes *8hrs*..
# At wht point of time does the second processing of T1 start.
# If it is not after after the completion of one full process cycle, in this case, why not the second processing start at the end # of 2nd hour, or 4th hour.
Thanks,
VishnupriyaHi Vishnupriya,
"Why is start event getting processed second time?"Can you check the "Frequency" attribute of your start event? There you can specify how often the process will be triggered.
"At wht point of time does the second processing of T1 start."You should be able to check it in the Processes (det.). It provides an overview regarding the process instances started during the simulation run. Furthermore you can check the Events (det.) category.
Best regards,
Danilo -
'%Total Call Time ' in AWR report
Hi.
I have a quick question here,
For the awr report, the ‘Top 5 Timed Events’ section, does anybody knows how the ‘%Total Call Time ‘ is calculated for each event listed there?
Top 5 Timed Events Avg %Total
~~~~~~~~~~~~~~~~~~ wait Call
Event Waits Time (s) (ms) Time Wait Class
PX Deq Credit: send blkd 5,682,600 3,816 1 39.8 Other
db file scattered read 91,236 1,681 18 17.5 User I/O
CPU time 1,347 14.0
log file sync 99,426 752 8 7.8 Commit
log file parallel write 97,921 523 5 5.4 System I/O
Thanks,
Lei922884 wrote:
Hi,
Db version is 10.2.0.4.0
What is meaning of waits and % Total Call Time in Top 5 Timed Events in AWR report? Waits is the number of times a session waited on a particular call
% Total Call Time is the total time spent in this event divided by the db time, converted to a percentage.
It gives you some idea of how signifcant this event was in the total time spent waiting by the user. Unfortunately the SQLNet times are excluded in the calculations, so there is a component of time that (from the end-users' perspective) is lost.
How to read AWR report?Where i have to start from it?
The best place to start is probably still the white paper about statspack produced by Oracle 11 years ago: http://www.oracle.com/technetwork/database/focus-areas/performance/statspack-opm4-134117.pdf
How the values are calculated in awr? For example db time is 556.15 and elapsed time is 1,439.73 .
elapsed time is the clock time between the start and end time of the snapshots, reportedin in minutes - in your case your report covers 24 hours which is generally far too long to be useful.
db time is the time your sessions were active "inside" the database - again in minutes - and it's a measure of how much time you spent working. It is the sum of wait time and CPU time.
Regards
Jonathan Lewis -
Find total processing time from routing
Hi,
I'm writing specs for creating a production scheduling report for sales orders. I'm stuck at finding the relevant tables and fields for this particular calc. I want to find the processing time from routing.
Total Processing Time (if Procurement type = u201CEu201D, then all operations from tasklist/Routing Operations for the material number) = Setup Time + (Machine time * Operation Quantity) + (Labor time * Operation Quantity)
Any suggestions??
ThanksHi
Check with any one of the following table:
EAPL Allocation of task lists to pieces of equipment
EINA Purchasing Info Record: General Data
EINE Purchasing Info Record: Purchasing Organization Data
ESKL Account Assignment Specification: Service Line
ESLH Service Package Header Data
ESLL Lines of Service Package
INOB Link between Internal Number and Object
KALC Material Quantity Calculation - Formulas
KALT Material Quantity Calculation: Header
KOCLU Cluster for conditions in purchasing and sales
KSSK Allocation Table: Object to Class
LFA1 Vendor Master (General Section)
MAPL Assignment of Task Lists to Materials
MLST Milestone
MLTX Milestone Description
PLAB Relationships
PLAS Task list - selection of operations/activities
PLFH Task list - production resources/tools
PLFL Task list - sequences
PLFT Process Instructions
PLFV PI Characteristics/Sub-Operation Parameter Values
PLKO Task list - header
PLKZ Task list: main header
PLMK Inspection plan characteristics
PLMW MAPL-Dependent Charac. Specifications (Inspection Plan)
PLMZ Allocation of bill of material items to operations
PLPH CAPP: Sub-operations
PLPO Task list - operation/activity
Thanks
Saravana
Reward if useful -
How to get the total execution time from a tkprof file
Hi,
I have a tkprof file. How can I get the total execution time. Going through the file i guess the sum of "Total Waited" would give the total time in the section "Elapsed times include waiting on following events:"
. The sample of tkprof is given below.
SQL ID: gg52tq1ajzy7t Plan Hash: 3406052038
SELECT POSTED_FLAG
FROM
AP_INVOICE_PAYMENTS WHERE CHECK_ID = :B1 UNION ALL SELECT POSTED_FLAG FROM
AP_PAYMENT_HISTORY APH, AP_SYSTEM_PARAMETERS ASP WHERE CHECK_ID = :B1 AND
NVL(APH.ORG_ID, -99) = NVL(ASP.ORG_ID, -99) AND
(NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'ALWAYS' OR
(NVL(ASP.WHEN_TO_ACCOUNT_PMT, 'ALWAYS') = 'CLEARING ONLY' AND
APH.TRANSACTION_TYPE IN ('PAYMENT CLEARING', 'PAYMENT UNCLEARING')))
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 442 0.08 0.13 0 0 0 0
Fetch 963 0.22 4.72 350 16955 0 521
total 1406 0.31 4.85 350 16955 0 521
Misses in library cache during parse: 1
Optimizer mode: ALL_ROWS
Parsing user id: 173 (recursive depth: 1)
Number of plan statistics captured: 1
Rows (1st) Rows (avg) Rows (max) Row Source Operation
1 1 1 UNION-ALL (cr=38 pr=3 pw=0 time=139 us)
1 1 1 TABLE ACCESS BY INDEX ROWID AP_INVOICE_PAYMENTS_ALL (cr=5 pr=0 pw=0 time=124 us cost=6 size=12 card=1)
1 1 1 INDEX RANGE SCAN AP_INVOICE_PAYMENTS_N2 (cr=4 pr=0 pw=0 time=92 us cost=3 size=0 card=70)(object id 27741)
0 0 0 NESTED LOOPS (cr=33 pr=3 pw=0 time=20897 us)
0 0 0 NESTED LOOPS (cr=33 pr=3 pw=0 time=20891 us cost=12 size=41 card=1)
1 1 1 TABLE ACCESS FULL AP_SYSTEM_PARAMETERS_ALL (cr=30 pr=0 pw=0 time=313 us cost=9 size=11 card=1)
0 0 0 INDEX RANGE SCAN AP_PAYMENT_HISTORY_N1 (cr=3 pr=3 pw=0 time=20568 us cost=2 size=0 card=1)(object id 27834)
0 0 0 TABLE ACCESS BY INDEX ROWID AP_PAYMENT_HISTORY_ALL (cr=0 pr=0 pw=0 time=0 us cost=3 size=30 card=1)
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
db file sequential read 350 0.15 4.33
Disk file operations I/O 3 0.00 0.00
latch: shared pool 1 0.17 0.17
********************************************************************************user13019948 wrote:
Hi,
I have a tkprof file. How can I get the total execution time.
call count cpu elapsed disk query current rows
total 1406 0.31 4.85 350 16955 0 521TOTAL ELAPSED TIME is 4.85 seconds from line above -
Kindly refer to Case Id No. 525700065 in India.I have talked to various people on my case for more than 5 hours ( Total talk time) The people give various different answers and aim really fed up now. What do i do?
Many apple phone users are especially fed up with RSGI Communication , Erandwana, Pune, Maharashtra, India.
Their service report No. 36679.
Allthough Mr Punit ( Technical Dept. Apple.) had requested RSGI to chance the device, still RSGI said they do not have the device ( I phone 5, white ,16GB) in stock.
Today when we contacted them they said they won't be able to replace OR order to Apple unless and until we do not keep the device with them for 3 days.
Mr Deepak of Technical Dept Apple was contacted who's telephonic Transript as proof is available with us.Who exactly are you addressing your screed to
There are no Apple Staff on this forum ,it is User to User -
Running Total of a Calculated Member
Hi Friends ,
Need help in calculating the Running Total of a calculated member . I am using the below Query to calculate but it is not showing correct Values.
Query :
WITH
set
[FUNCTIONAL BENEFITS]
as
ORDER(
[FUNCTIONAL BENEFITS].[FUNCTIONAL BENEFITS].children,[Measures].[ANNUAL UNIT CASES WEIGHTED VALUE]
,DESC)
member AUCWEIGHT as
[Measures].[ANNUAL UNIT CASES WEIGHTED VALUE],
FORMAT_STRING='##0.0'
member
[Running Total]
AS
SUM({null:[FUNCTIONAL BENEFITS].[FUNCTIONAL BENEFITS].CurrentMember},[Measures].[ANNUAL UNIT CASES WEIGHTED VALUE]),
FORMAT_STRING='##0.0'
MEMBER [Measures].[AUCWV_PRCT] AS
([Running Total]/[Measures].[TotalSuM])*100,
FORMAT_STRING='##0.0'
member [CummalativePercent] as
(SUM({null:[FUNCTIONAL BENEFITS].[FUNCTIONAL BENEFITS].currentmember},[Measures].[AUCWV_PRCT]))
SELECT {
AUCWEIGHT,[Running Total],
[Measures].[TotalSuM],[Measures].[AUCWV_PRCT],[CummalativePercent]}on columns,
NON EMPTY ([FUNCTIONAL BENEFITS])
DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON rows
FROM [RRMiningDS1_CUBE]
Output :
DiMENSION
AUCWEIGHT
RunningTotal
TotalSum
AUCWV_PRCT
CUMMULATIVEPERCENT
CORRECTCUMMULATIVEPERCENT
A
62605.4
661634.6
1345632.2
49.2
1271.2
49.2
B
38587.9
425278.7
1345632.2
31.6
545.5
80.8
C
35894.5
370057.9
1345632.2
27.5
485.2
108.3
D
30246.4
48345.3
1345632.2
3.6
4.9
111.9
The CUMMALITIVEPERCENT is coming wrong .
I have mentioned the Correct CummulativePercent. as it should be the Running sum of AUCWV_PRCT i.e
49.2+31.6+27.5+3.6=111.9
Please help . where i am making the mistake
Thanks
Rakesh k DharHi R,
It might be as simple as adding solve_order = 99 to the cumulative calc. This tells the formula engine to do the cumulative calculation after the %.
Richard -
Grand total on a calculated item
Hi,
I have a crosstab report in discoverer plus 10g. I need to show total at the bottom for two calculated columns, report looks something like below
COMPANY Beginning Bal Ending Bal Net Amount
1457 $35,467.90 $39,875.87 $359
- - - $453
- - - $564
- - - $347
- - - $234
1568 $65,893.56 $76,594.87 $674
- - - $564
- - - $536
- - - $538
- - - $364
- - - $392
Grand Total
Net amount is a datapoint, but the beginning balance and ending balance are the calculated items in the report. is it possible to show the total for these calculated items? Please let me know if this is possible.
Thanks,
Nivas.Hi,
Thanks for the reply.
I have tried with cell sum but it is not displaying any total.
beginning balance is a calculated item which is not based on any aggregated function
beginning balance =
CASE WHEN "ROW NUM" = "Max Row Num" THEN "worksheet".Beg Bal ELSE TO_NUMBER('') END
same is the calculation for ending balance.
I have account, company, beg bal, end bal, net amount to be displayed in the report.
when I do cell sum by company every thing is fine, i get the totals displayed, but when i try with account then no totals are displayed in the report.
please let me know if I am missing some thing.
Thanks,
Nivas. -
Can we get subtotal and grand total by own calculation in a hierarchy ALV?
Can we get subtotal and grand total by own calculation in a hierarchy ALV? I can get them by setting DO_SUM = 'X' by standard summation, but now I need to do my own summation on subtotal and total, can I?
Can we get subtotal and grand total by own calculation in a hierarchy ALV? I can get them by setting DO_SUM = 'X' by standard summation, but now I need to do my own summation on subtotal and total, can I?
-
Ess Leave Request -Change in Time calculation without changing work schedu
Hi All,
We are implementing a ESS Leave Request in EP6 with backend HR ECC5.0.
The time calculation is taken from the Work schedule rule in
HR backend which is 24*7.
For example if the leave taken is for 2 days-systems calculates as 24*2=48 hrs
but in actual the requirement is to calculate 2*8 =16 hrs without changing
the Work Schedule in 2001 infotype in HR Backend.
Can we do this change through
1.Validation in portal itself
2.Changing the RFC PT_ARQ_REQUEST_CHECK
3.Changing the Absence Types
Regards
Anand.Hello,
Please use:
programming
but without the spaces before and after } and {
Testing:
programming
regards
Rick Bakker
Hanabi Technology -
hi -
using v 9.2
I'm wondering about the Total Wait Time (s) in the Top 5 wait Events list.
I took a snapshot for 10.55(min) but some of the Time (s) exceeds this, so i'm clearly interpreting something incorrectly:
Top 5 Timed Events
~~~~~~~~~~~~~~~~~~ % Total
Event Waits Time (s) Ela Time
db file scattered read 587,895 1,464 37.24
CPU time 1,205 30.66
SQL*Net message from dblink 22,597 609 15.49
db file sequential read 478,006 554 14.11
log file parallel write 6,335 28 .72
-------------------------------------------------------------For example the db file scattered read is 1,464(s) which is more than the 10.55(min) of the snapshot.
how correlate this Time(s) to clock time?
My assumption is that multiple sessions are added and this number can exceed snapshot time?
Edited by: stg on Oct 17, 2008 9:50 AMrocr wrote:
the time is per processor so if you have 8 processors and the clock time of the report is 6 minutes but 5 cpus use 3 minutes of processing each then the total time is 15 minutes.rocr,
You're thinking of the "CPU time" component only.
The wait time can be much greater than "snapshot interval * CPU_count". It can be as large as "snapshot interval * number of sessions".
For example:
I lock a table in exclusive mode for 15 minutes.
100 other users try to update that table, and have to wait for me to release my lock.
Elapsed time = 15 minutes
Wait time = 100 * 15 minutes = 1,500 minutes.
Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge." Stephen Hawking. -
How to view data in total elapsed time while recording in LabVIEW signalexpress
Im trying to record temperature over time and would like to view the data over the total elapsed time. It would be a great help if anyone could help me out with this.
Much thanks,
DanielThis is the LabVIEW board. You need to post your question to the SignalExpress board.
-
Hi,
I am trying to calculate total processing time of the BPM. I am capturing start and the end time in BPM.Now the issue is that how di I get the difference between these two times Plesae let me know if you have any ideas on this. Also let me know is there any other standard way to acheive the same.
Thanks
AnandHi,
the standard way would be to use PMI (performance monitoring)
but as far as I remember you cannot select a BPM name to monitor... only loose messsages
BTW
it even gives you the opportunity to save to data in a file... for audit for instance
so the only way would be to try to create a report
this data has to be stored somewhere...
no other idea - sorry
Regards,
michal
Message was edited by: Michal Krawczyk
Maybe you are looking for
-
HAVING INSTALL TROUBLE? Large list of suggestions/info/solutions in here.
This thread is about installing Leopard and includes information related to install only - not running Leopard after install. It includes information about preparing to install, and some stories of successful installs using a variety of methods. Feel
-
I need help trouble shooting my 2 apple TV set up in home.
I have 2 Apple TVs in my home. One Gen1 and 1 Gen2. The gen1 is working fine with home sharing and finding the movies, etc. But the gen 2 is not showing up in iTunes under devices and I can't get it to pull down the content (movies, songs, etc).
-
If I type statement "import r_track from memory id 'IRTRACKNO' ", how do I browse the object "IRTRACKNO" value. Thanks
-
Dear All, i have configure for EWA report but the report still not give reported for each satellite system in Solman. one week ago we receive msg from SAP that give us Red Alert for our Production systems, this mean that solution manager for EWA is w
-
Need detailed instructions on how to receive company emails on iPhone
I'm not extremely technical savvy but can work my way through most things. I would like to set up my wife's iPhone email so she can receive (and respond to) her company emails on her iPhone. What options do I have and how do I do it? Thank you.