data purge [message #332208] |
Mon, 07 July 2008 21:38 |
caprikar
Messages: 226 Registered: March 2007
|
Senior Member |
|
|
Hi,
I have a table with 30 million records and i want to delete 50% of data ie 15million records. I dont want to fragment or consume resource by deleting those records instead am thinking of creating temp table and insert the records i want and then rename the table. can anyone tell me whats the best way of doing this?
Thanks
|
|
|
Re: data purge [message #332217 is a reply to message #332208] |
Mon, 07 July 2008 23:21 |
kamkan
Messages: 27 Registered: April 2007 Location: Chennai, INDIA
|
Junior Member |
|
|
Hi,
You shall export required data if you could able to refine using WHERE clause. Truncate table and import from dump. Otherwise quick option is create another table, insert required data with commit every n rows using PLSQL block.
|
|
|
|
|