....
Is it possible without recreating/dropping the existing table.......I mean just add partition tomorrow onwards?
....The goal here is to converted a non-partitioned table to a partitioned one, without dropping or recreating it.
dbms_redefinition is purely online process, but that is ruled out.
Based on the response provided, How would that convert 'T' into a partitioned Table. ?
demo@ORA12C> select partitioned from user_tables
2 where table_name ='T';
PAR
---
NO
1 row selected.
One way would be switch into 12cR2 and convert non-partitioned table to partitioned one using ALTER statements.
http://docs.oracle.com/database/122/VLDBG/evolve-nopartition-table.htm#VLDBG-GUID-5FDB7D59-DD05-40E4-8AB4-AF82EA0D0FE5 Any options in 12cR1 ?
November 17, 2016 - 2:36 am UTC
For the original poster, this achieves the requirement (ie, existing data becomes one historical partition).
I could have added the final step:
rename t_par to t;
but I thought that was fairly self-evident.