On the Third Day of 12.2, my DBA gave to me…

Partitioning New Features

Partitioning

With more than 500 new features in the Oracle Database 12.2, Oracle delivers new functionality and features that customers had been asking for on Cloud Computing, Big Data, and Security for their database platform. One of the major enhancements, is the Very Large Database (VLDB) on database partitioning. Below are the commonly used features with Oracle database partitioning and the list of all Oracle Database 12.2.

Convert Non-Partitioned Table to a Partitioned Table

Starting with Oracle Database 12.2, you can now convert a non-partitioned table to a partitioned table online. To make this change, use the ALTER TABLE with MODIFY clause and ONLINE keyword to enable parallel/concurrent DML for the conversion. Indexes are also maintained and can be converted to partitions as part of the process. During the conversation process, all DML transactions continue as normal. For VLDB database customers who want to adopt a partitioning strategy, they can convert to partitioned tables without any downtime.

ALTER TABLE mytable MODIFY
PARTITION BY RANGE (tab_id) INTERVAL (25) ( PARTITION p1 VALUES LESS THAN (100),
PARTITION p2 VALUES LESS THAN (1000))
ONLINE
UPDATE INDEXES
( IDX1_tab_id LOCAL (PARTITION ip1 VALUES LESS THAN (MAXVALUE)));
Read-Only Partitions
Now, we can set partitions and sub-partitions to read-only for historical protection of unintentional DML. You can leverage the CREATE TABLE and ALTER TABLE with the read-only clause. By making the partition/subpartition read-only, all DML operations will be disabled.
CREATE TABLE mytable (
tab_id NUMBER(10) NOT NULL,
tab_desc VARCHAR2(20)) READ WRITE PARTITION BY RANGE (tab_id)
( PARTITION mytable_p1 VALUES LESS THAN (100),
PARTITION mytable_p2 VALUES LESS THAN (1000) READ ONLY)
);

Multi-Column List Partition

Oracle's enhanced list partitioning functionality allows multiple key columns. Allowing partition criteria for list partitioned tables to be multiple columns, extends…

To receive a full version emailed copy of this document, including 3 more pages of Partitioning New Features, please complete the download form provided.

 

Complete this form for an auto-emailed full version copy:

Full Name (required)

Your Email (required)

Company (required)

Phone number (required)

Job Title (required)