Hi everyone,
I'm currently in the process of migrating all our LONG data to the appropriate LOB. This process is very slow though...
This is the method I am using...
Create a table of the tables PK + the correct LOB
Insert all the data from the original table using TO_LOB on the LONG column.
Drop the LONG of the original table
Re-create it as the correct LOB
do an UPDATE statement to get the info back from the temp table to the original.
My problem is that this last statement can be very VERY slow, I'm talking over an hour to migrate 55K rows, the table is only a few meg in size.
Does anyone have any ideas? I've seen the Oracle documentation on LOB's mention things about deep copies, I think I would like copy just the LOB locator back to the original table on the update statement, but then when I drop the temp table would I drop the actual LOB? I'm finding this all very confusing and don't know where to start!
Help!! Please!
Mike.
I'm currently in the process of migrating all our LONG data to the appropriate LOB. This process is very slow though...
This is the method I am using...
Create a table of the tables PK + the correct LOB
Insert all the data from the original table using TO_LOB on the LONG column.
Drop the LONG of the original table
Re-create it as the correct LOB
do an UPDATE statement to get the info back from the temp table to the original.
My problem is that this last statement can be very VERY slow, I'm talking over an hour to migrate 55K rows, the table is only a few meg in size.
Does anyone have any ideas? I've seen the Oracle documentation on LOB's mention things about deep copies, I think I would like copy just the LOB locator back to the original table on the update statement, but then when I drop the temp table would I drop the actual LOB? I'm finding this all very confusing and don't know where to start!
Help!! Please!
Mike.