Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> How to reduce the Execution Time of a job?

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: How to reduce the Execution Time of a job?
 Priya  Posted: Aug 29, 2007 05:11:55 AM

 Total Post: 19
 Joined: Jul, 2007






 Hi,

I have a Procedure which does the insertion into a table and the execution time is very high... How can i reduce the execution time? Can anybody help me?

This is the code...

IF X.EXCP_EXCEPTION_TYPE <> '3' THEN

FOR Z IN CUR_EXP_SLOTS(X.EXCP_ID) LOOP

INSERT INTO TBL_APT_ELEAVE(EXCP_ID,VAR_OHRID,INT_SHIFTID,DT_INTIME,DT_OUTTIME,EXCEPTION_ID, SLOT_ID, DT_DATADATE, TNT_EXCEPTIONTYPE)


VALUES(SEQ_APT_ELEAVE.NEXTVAL, X.EXCP_OHR_ID,X.EXCP_SHIFT_ID, GETLOGINTIME@DB_GTH(X.EXCP_OHR_ID, X.EXCP_GENERATION_DATE), GETLOGOUTTIME@DB_GTH(X.EXCP_OHR_ID, X.EXCP_GENERATION_DATE), X.EXCP_ID, Z.EXCP_SLOT_ID, X.EXCP_GENERATION_DATE, '1');

END LOOP;
END IF;

Thanks in advance...

Regards,
Priya

 Mohammed Taj
Posted: Aug 29, 2007 11:58:51 AM  

 Total Post: 746
 Joined: Jul, 2007






 
Hi,
can you post execution plan , tkprof report.


Regards
Taj

 Dipu
Posted: Aug 30, 2007 06:26:39 AM  

 Total Post: 8
 Joined: Nov, 2006






 
Hi Priya,
It looks like you have use Bulk Bind and Bulk Collect together to reducs your execution time.Means for looing and insertion you have to use Bulk Bind and for fetching you have to use Bulk Collect as well.

Regards,
Dip


 Priya
Posted: Aug 30, 2007 06:38:25 AM  

 Total Post: 19
 Joined: Jul, 2007






 
Hi Dip,

I am not clear about the bulk bind and bulk collect concept. Can you explain that concept and how it can be used for the scenario i explained?

Regards,
Priya

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi327
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software