bulk insert & rebuild indexes
I have a table in db1 with 20 million records & 4 indexes.
We are not using partioning.
In db2 i have the same table with some additional columns .
Now i want all the rows from table in db1 to table in db2
along with the 4 indexes . after this i would be updating the
new columns in db2.
What would be the best approach . shall i go for sqlldr option
Kindly give suggestions
Do an export from db1 and import into db2 with ignore=y.
You could create the indexes fresh in db2 after the import.
BTW, do not forget to analyze the schema.
SQL*LOADER is faster than import, but the data should be in flat file.
Click Here to Expand Forum to Full Width