Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Tkprof output
Apologies for the
length of the mail.
This query is
running for a mad amount of time, anyone any ideas.
<SPAN
class=078354714-30082001>
Code and tkprof out
put shown below.
<SPAN
class=078354714-30082001>
Huge
TIA
<SPAN
class=078354714-30082001>
Lee (who must learn
more about such things !!!)
<SPAN
class=078354714-30082001>
DECLARE CURSOR
TEMP_CDS ISSELECT
ACXIOM_CUSTOMER_KEY,
VERSION_NO,
ADDRESS_OCCUPANCY_KEYFROM CUSTOMER_DETAIL_SOURCEWHERE
VISIBLE=1;
COUNTER
NUMBER(8);
<SPAN
class=078354714-30082001>BEGIN COUNTER:=0; FOR I
IN TEMP_CDS LOOP
<SPAN
class=078354714-30082001> UPDATE
&SCHEMA..SINGLE_CUSTOMER
SC SET
VISIBLE =
1 WHERE
ACXIOM_CUSTOMER_KEY=I.ACXIOM_CUSTOMER_KEY
AND VERSION_NO
=I.VERSION_NO;
<SPAN
class=078354714-30082001> UPDATE
&SCHEMA..SINGLE_CUSTOMER_HISTORY
SCH SET
VISIBLE =
1 WHERE
ACXIOM_CUSTOMER_KEY=I.ACXIOM_CUSTOMER_KEY
AND VERSION_NO
=I.VERSION_NO;
<SPAN
class=078354714-30082001> UPDATE
&SCHEMA..ADDRESS_OCCUPANCY
AO SET
VISIBLE =
1 WHERE
ADDRESS_OCCUPANCY_KEY = I.ADDRESS_OCCUPANCY_KEY;
<SPAN
class=078354714-30082001> COUNTER := COUNTER +
1; IF (COUNTER = 50000) THEN
********************************************************************************count= number of times OCI procedure was
call********************************************************************************
count cpu elapsed disk query current
0 0.00 0.00 0 0 0 0Execute 39562 15.51 398.98 56555
39562Fetch 0 0.00 0.00 0 0
----------total 39562 15.51 398.98 56555 181085
---------------------------------------------------0 UPDATE STATEMENT GOAL:
class=078354714-30082001>********************************************************************************
count cpu elapsed disk query current
0 0.00 0.00 0 0 0 0Execute 39562 12.57 186.88 57285
39562Fetch 0 0.00 0.00 0 0
----------total 39562 12.57 186.88 57285 124038
---------------------------------------------------0 UPDATE STATEMENT GOAL:
class=078354714-30082001>********************************************************************************
count cpu elapsed disk query current
0 0.00 0.00 0 0 0 0Execute 39562 4.55 7.22 10897 118687
1Fetch 0 0.00 0.00 0 0
4.55 7.22 10897 118687 1
---------------------------------------------------0 UPDATE STATEMENT GOAL:
class=078354714-30082001>********************************************************************************
count cpu elapsed disk query current
0 0.00 0.00 0 0 0 0Execute 0 0.00 0.00 0 0 0 0Fetch 39562 1.51 2.04 392
1.51 2.04 392 39618 0 39562
class=078354714-30082001>********************************************************************************
count cpu elapsed disk query current
0 0.00 0.00 0 0 0 0Execute 0 0.00 0.00 0 0
0Fetch 0 0.00 0.00 0 0
0 0.00 0.00 0 0 0
count cpu elapsed disk query current
0 0.00 0.00 0 0 0 0Execute 118686 32.63 593.08 124737
1.51 2.04 392 39618 0 39562------- ------ --------
34.14 595.12 125129 463428 81399 118687
session.********************************************************************************Tracefile: ora_349778.trcTrace file compatibility: 7.03.02Sort options: prsela exeela fchela
file. 4 SQL statements in trace file. 4 unique SQL statements in trace file. 3 SQL statements
The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system. Received on Thu Aug 30 2001 - 10:28:12 CDT
![]() |
![]() |