5. Available Partitioning Types:
Range Partitioning (introduced in Oracle 8)
Hash Partitioning (introduced in Oracle 8i)
Composite Partitioning (introduced in Oracle 8i)
List Partitioning (introduced in Oracle 9i)
Interval Partitioning (introduced in Oracle 11g)
System Partitioning (introduced in Oracle 11g)
Reference Partitioning (introduced in Oracle 11g)
5
6. Range-hash partitioning was introduced in Oracle 8i
Range-list partitioning was introduced in Oracle 9i
Range-range partitioning was introduced in Oracle 11g
List-range partitioning was introduced in Oracle 11g
List-hash partitioning was introduced in Oracle 11g
List-list partitioning was introduced in Oracle 11g
Interval-range partitioning was introduced in Oracle 11g
Interval-list partitioning was introduced in Oracle 11g
Interval-hash partitioning was introduced in Oracle 11g
7. Available Partitioning Types:
Range Partitioning (introduced in Oracle 8)
Hash Partitioning (introduced in Oracle 8i)
Composite Partitioning (introduced in Oracle 8i)
List Partitioning (introduced in Oracle 9i)
Interval Partitioning (introduced in Oracle 11g)
System Partitioning (introduced in Oracle 11g)
Reference Partitioning (introduced in Oracle 11g)
7
8. Interval partitioning is a partitioning method introduced in
Oracle 11g. This is a helpful addition to range partitioning where
Oracle automatically creates a partition when the inserted value
exceeds all other partition ranges.
The following restrictions apply:
You can only specify one partitioning key column, and it must be
of NUMBER or DATE type.
Interval partitioning is NOT supported for index-organized tables.
You can NOT create a domain index on an interval-partitioned
table.
9. 1 Identify Tables
5 Determine # of Partitions
2 Discuss with Business
6 Run a Script to identify the
Upper Key Limit
Generate CREATE TABLE
3 Determine Partition Key 7 Statement
Run SQL Statement
4 Group BY &
8 Load data into Partitioned Table
Order BY
10. • SELECT <KEY_1>,<KEY_2> …<KEY_N>, Count(*)
• FROM <TABLE>
• GROUP BY <KEY_1>, <KEY_2>,<KEY_3>
• ORDER BY <KEY_1>, <KEY_2>,<KEY_3>
10
12. 1 Identify Tables
5 Determine # of Partitions
2 Discuss with Business
6 Run a Script to identify the
Upper Key Limit
Generate CREATE TABLE
3 Determine Partition Key 7 Statement
Run SQL Statement
4 Group BY &
8 Load data into Partitioned Table
Order BY
15. 1 Identify Tables
5 Determine # of Partitions
2 Discuss with Business
6 Run a Script to identify the
Upper Key Limit
Generate CREATE TABLE
3 Determine Partition Key 7 Statement
Run SQL Statement
4 Group BY &
8 Load data into Partitioned Table
Order BY
16. CREATE TABLE "/BIC/B0000252000_NEW"
PARTITION BY RANGE
("REQUEST") (PARTITION P1 VALUES LESS THAN
('ODSR_4IR2HPAGY9GBAE2NNIO2BQJ6A')
PCTFREE 10 PCTUSED 40 INITRANS 1
MAXTRANS 255 STORAGE(INITIAL 30M NEXT 1048576 MINEXTENTS 1
FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "PSAPSR3FACT",
16
17. 1 Identify Tables
5 Determine # of Partitions
2 Discuss with Business
6 Run a Script to identify the
Upper Key Limit
Generate CREATE TABLE
3 Determine Partition Key 7 Statement
Run SQL Statement
4 Group BY &
8 Load data into Partitioned Table
Order BY