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 >> Join update in Oracle

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: Join update in Oracle
 snehotosh  Posted: Dec 16, 2007 01:58:31 AM

 Total Post: 2
 Joined: Dec, 2007






 Hi,

I am using join updation in oracle using two tables containing nearly 3 millions records.The updation is taking long hours.
Can anybody suggest a best method in oracle to do such updation with huge data?

Thanks.

 Mohammed Taj
Posted: Dec 16, 2007 09:37:20 AM  

 Total Post: 746
 Joined: Jul, 2007






 
Index is there on update tables if yes then disable index , update your database and rebuild indexes.

hope this help


 Murtuja
Posted: Dec 17, 2007 05:14:21 AM  

 Total Post: 856
 Joined: Jan, 2006






 
If you need update millions of rows then you need to consider CTAS (create table as select ) method

create table newtable
as select old/updated columns
from oldtable nologging
/

drop table oldtable
/

rename newtable to oldtable

and then create all required indexes , constraints etc.
this should be quite fast , try this out.

 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 Khokhar856
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi281
  neeraj sharma254
  Ramesh Jois245
  Bishal Khetan207






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