|
|
Re: to find out time taken [message #345252 is a reply to message #344978] |
Tue, 02 September 2008 13:56 |
macdba
Messages: 27 Registered: May 2005 Location: US
|
Junior Member |
|
|
Also you can trace a session using
undef sid serial flg
exec sys.dbms_system.set_ev(&&sid,&&serial,10046,12,'');
prompt Trace will run for 5 minutes
exec dbms_lock.sleep(300);
exec sys.dbms_system.set_ev(&&sid,&&serial,10046,0,'');
prompt Trace is off
Go to the server, check the udump directory and read the trace file using tkprof
regards
--Mak
|
|
|
|
|
Re: to find out time taken [message #345867 is a reply to message #345865] |
Fri, 05 September 2008 02:54 |
trupti111
Messages: 29 Registered: August 2008 Location: navi mumbai
|
Junior Member |
|
|
my procedure is having following stmt
INSERT INTO ams_lts_lead_summary
SELECT * FROM ams_lts_agent_hierarchy ;
is there any way to imperformance of above query
it is takiing 1 min to insert records.
|
|
|
Re: to find out time taken [message #345893 is a reply to message #345867] |
Fri, 05 September 2008 04:05 |
dwarak.k
Messages: 61 Registered: June 2008 Location: Hyderabad
|
Member |
|
|
Post explain plan.
Tell us how many records are u trying to insert. There are lot of things that impact insert performance. Index used,Number of free lists..
|
|
|
Re: to find out time taken [message #345899 is a reply to message #345893] |
Fri, 05 September 2008 04:10 |
trupti111
Messages: 29 Registered: August 2008 Location: navi mumbai
|
Junior Member |
|
|
it is inserting near about 2,90,000 records......
like this many inserts are there in loop inside procedure
that is why procedure is taking time
|
|
|
|
|
Re: to find out time taken [message #346359 is a reply to message #346296] |
Mon, 08 September 2008 06:03 |
trupti111
Messages: 29 Registered: August 2008 Location: navi mumbai
|
Junior Member |
|
|
I tried using bulk collect for
INSERT INTO ams_lts_lead_summary
SELECT * FROM ams_lts_agent_hierarchy ;
but there is no much performance improvement
this insert is not in loop
|
|
|
Re: to find out time taken [message #346452 is a reply to message #345899] |
Mon, 08 September 2008 10:49 |
dwarak.k
Messages: 61 Registered: June 2008 Location: Hyderabad
|
Member |
|
|
trupti111 wrote on Fri, 05 September 2008 14:40 | it is inserting near about 2,90,000 records......
like this many inserts are there in loop inside procedure
that is why procedure is taking time
|
I suggested Bulk insert as you said the statements are inside a loop:)
insert into .. Select * is bulk insert by itself
|
|
|
|
Re: to find out time taken [message #346633 is a reply to message #344978] |
Tue, 09 September 2008 03:31 |
tanyaa
Messages: 1 Registered: September 2008
|
Junior Member |
|
|
On occasion you meet a developer who seems like a solid programmer. They know their theory, they know their language. They can have a reasonable conversation about programming. But once it comes down to actually producing code they just don’t seem to be able to do it well.
---------
Tanyaa
[Edit MC: Don't put your "Message Marketing" here, there is a Marketplace forum for this]
[Updated on: Tue, 09 September 2008 04:28] by Moderator Report message to a moderator
|
|
|