Which three operations can be performed as multipartition operations in Oracle?
A.
Merge partitions of a list partitioned table
B.
Drop partitions of a list partitioned table
C.
Coalesce partitions of a hash-partitioned global index.
D.
Move partitions of a range-partitioned table
E.
Rename partitions of a range partitioned table
F.
Merge partitions of a reference partitioned index
Explanation:
Multipartition maintenance enables adding, dropping, truncate, merge, splitoperations on multiple partitions.
A: Merge Multiple Partitions:
The new “ALTER TABLE … MERGE PARTITIONS ” help merge multiple partitions or
subpartitions with a single statement. When merging multiple partitions, local and global index
operations and semantics for inheritance of unspecified physical attributes are the same for
merging two partitions.
B: Drop Multiple Partitions:
The new “ALTER TABLE … DROP PARTITIONS ” help drop multiple partitions or subpartitions
with a single statement.
Example:
view plaincopy to clipboardprint?
SQL> ALTER TABLE Tab_tst1 DROP PARTITIONS
Tab_tst1_PART5, Tab_tst1_PART6, Tab_tst1_PART7;
Table altered
SQL>
Restrictions :
– You can’t drop all partitions of the table.
– If the table has a single partition, you will get the error: ORA-14083: cannot drop the only partition
of a partitioned.
A B F
“E” is correct:
SQL> CREATE TABLE t1
2 (id NUMBER,
description VARCHAR2( 3 50),
created_date 4 DATE)
PARTITION BY RANGE (created_d 5 ate)
6 (PARTITION part_2014 VALUES LESS THAN (TO_DATE(’01/01/2015′, ‘DD/MM/YYYY’)));
Table created.
SQL> ALTER TABLE t1 RENAME PARTITION part_2014 TO part_2016;
Table altered.
A,B,E
ABE
E
https://docs.oracle.com/database/121/VLDBG/GUID-3CB99D78-9D4B-453D-8FBB-A79BE7FD887E.htm#VLDBG1203