Hi there,
I'm transferring data from one table to another. The tables are the exact same, I've just created the second table with a larger page size to handle more data.
There is around 60GB of data to be transferred from table 1 to table 2, so I'm doing it in chunks. So my command looks like this:
insert into table2 select * from table1 where key between a and b (where a and b are integer numbers)
And I just have been increasing a and b appropriately (i.e. 1 to 1000, then 1001 to 2000, and so forth). Everything has been going fine, but the transfers have been taking longer and longer as a and b have increased. Now, the last transfer took over 5 hours and now I have a whole bunch of locks on both tables.
Why am I getting locking issues when I'm simply reading the data from one table and putting it into another?
And now that the tables are locked, how do I "unlock" them?
Please help!
VX