I have table with huge data and which is in production at client side. I have to do online partitionig of it means I can halt the production and the table should be partitioned. I have got the script to do it. But I dont know how to do it online. Is their any way by which I can achieve this. Please suggest..
Share
Follow the below steps,
Create temporary table in the same structure as the main table (for example TABLE_P for TABLE) and partition this temporary table on the required column. Don’t add primary keys and other indexes of the main table to this temporary table.
Create an index to this table with the required column.
Run the below scripts for redifinition. Replace with the actual schema name.
Note that this will make the dependant objects to go INVALID in the schema, so be prepared for some downtime to clear these invalids.