This is my alter statement:
alter table demo_table
split partition PART_35 values('9999') into (partition PART_35, partition PART_36)
The table already consists of a list partition on emp_id,where PART_35 is the last partition created and it is having the default value used in ORACLE and PART_36 is the new partition which I have created.
The procedure will take two arguments:
- Table name
- Emp_id(in the above code 9999 is the emp_id which I want to create the partition, basically I am
creating the partition on emp_id)
The point where I am getting stuck is how to consider part_35 and part_36 as generalized one. So that for every partition if the user pass emp_id and table name a new partition will be created making part_35 for emp_id 9999 and part_36 as the partition for default value in oracle. Note: The partition having the default value will be the last partition every table.
Thanks :)