what is the best way to archive a table with huge amount of data say within 1 year to another table and deleting these records from the existing table?
Currently, i did this:
/*insert into archive table */
insert into table_a_archive (select *
from table_a
where last_updated < sysdate - interval '1' year);
/* delete archived data from existing table */
delete from variable_value where last_updated < sysdate - interval '1' month;
Is there a better approach?