Welcome Guest ( Log In | Register )


 
 
 
 
 
 

 
Oracle performance tuning 

software
 
Oracle 

performance Tuning 10g reference poster
 
Oracle training in Linux 

commands
 
Oracle training 

Excel
 
Easy Oracle Jumpstart
 
Oracle training & performance tuning books
 
Burleson Consulting Remote DB Administration
 
 
> Insert with a select, Insert with a select
avdba_22
post Aug 29 2005, 12:26 PM
Post #1


Advanced Member
***

Group: Members
Posts: 110
Joined: 25-February 05
Member No.: 1,517



We are using 10g. I have to load about 15million records or more from staging table into another table. It is a OLTP environment. And it is taking about 1 hrs to do this.

I am doing :

insert into t_so(SO_ID,
FIRST_NAME,
LAST_NAME,
ADDRESS1,
ADDRESS2,
MIDDLE_INITIAL,
CITY_STATE_ZIP_ID)
SELECT seq_So.nextval,
PCFIRST,
PCLAST,
substr(PCMINIT, 1,1) PCMINIT,
PCPADDR,
PCSADDR,
pkg_so.fn_get_city_state_zip_id ( PCCITY , PCSTATE, PCZIP5)
FROM t_stage;

I optimized the function and there is lot of improvement . Could any of you suggest anything more I could do to improve performance in 10g. Please let me know .

Thanks
Go to the top of the page
 
+Quote Post



Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 8th September 2010 - 04:55 PM