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 |
Send this thread to your friend |
|
|
|
|
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 Khokhar | 856 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gitesh Trivedi | 322 |
| Gopu Gopi | 281 |
| neeraj sharma | 254 |
| Ramesh Jois | 245 |
| Bishal Khetan | 207 |
|
|