DBA Hub

📋Steps in this guide1/1

Non-partitioned to partitioned online(12CR2 only)

-- In Oracle 12cR2, we can convert non partitioned table to partitioned online using alter table command.

oracle configurationintermediate
by OracleDba
12 views
1

Non-partitioned to partitioned online(12CR2 only)

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
-- In Oracle 12cR2, we can convert non partitioned table to partitioned online using alter table command.
alter table BSSTDBA.ORDER_TAB modify
PARTITION BY RANGE (CREATED)
(partition created_2105_p8 VALUES LESS THAN (TO_DATE('01/09/2015', 'DD/MM/YYYY')),
partition created_2105_p9 VALUES LESS THAN (TO_DATE('01/10/2015', 'DD/MM/YYYY')),
partition created_2105_p10 VALUES LESS THAN (TO_DATE('01/11/2015', 'DD/MM/YYYY')),
partition created_2105_p11 VALUES LESS THAN (TO_DATE('01/12/2015', 'DD/MM/YYYY')),
partition created_2105_p12 VALUES LESS THAN (TO_DATE('01/01/2016', 'DD/MM/YYYY')),
PARTITION Created_MX VALUES LESS THAN (MAXVALUE)) ONLINE;

Comments (0)

Please to add comments

No comments yet. Be the first to comment!