Here we will see examples to add partition in all different types of partitioning methods. 1.Add Partition in Range-Partitioned table 2.Add Partition in Hash-Partitioned table 3.Add Partition in List-partitioned table 4.Add Partition in Interval-Partitioned table We can’t simply add partition in interval-partitioned table. But to add partition we can LOCK the last partition that will […]
All posts by Jagruti Jasleniya
Merging Table Partitions in Oracle
In previous post I wrote about splitting single partition into two or more partitions. In this post we will see how we can merge two or more partitions into single partition and can reduce the overhead of managing multiple partitions. To read split partitions Here we will see example of merging different types of partiitons. […]
Split Partition in Oracle
Oracle split partition feature allows you to split partition which are already created. We can take benefit of this feature when in specific partition lots of records are inserted and its tough to maintain it individually. In this post we will see how can we partition different types of partition. 1.Splitting a partition of range-partitioned […]
Export and Import of Partition
In this post we will see export and import operation of a table partition. Let’s see step by step. Step 1 : Create a directory Step 2 : Run expdp command to take partition backup We can see in above output I have defined tables=TRANSACTIONS_MAIN:Y_2015 clause which will export Y_2015 partition of TRANSACTIONS_MAIN table. We […]
Load a Partition with SQL*Loader
In this post we will see how we can insert records in specific partition using sql*loader. Step 1 : Create a .dat file which contains records Step 2 : Create .ctl file In above output we can see I am trying to insert records in L1 partition of TEST_LOADER table. Step 3 : Prepare a […]
Renaming Partitions and Subpartitions
Rename operations in partitions and subpartitions are as easy as renaming tables we just need to take care of syntax. Rename Partitions : We can see in above steps I have renamed Y_2013 partition of transaction table to Y_1_2013. Rename Subpartition : Same way we can rename a subpartition too. Let us see how. We […]
Exchange Partition in Oracle
Exchanging Partitions is something new. And it provides a huge benefits. By exchanging partition you can actually get data quickly in or out of partitioned table. The data that resides in the partition is exchanged with given non partitioned or partitioned table without deletion and insertion operation. Things to be taken care of while performing […]
Modify Non-Partitioned Table to Partitioned
After seeing many articles about types or partitions , benefits of partitions , different operation on partitions , the one question which will surely arise in DBA’s brain is what about my existing table. I am not going to drop my existing partition and create new partitioned table and insert records to those partitioned table. […]
Truncate Partition Operation
Just like we do truncate operation on table , we can truncate partition too. Here we will see 3 types of truncate operations. 1.Truncate Single Partition 2.Truncate Subpartition 3.Truncate Multiple Partitions together. This post will made your DBA maintenance activity easier as all truncate operations we will see. Let’s move to the first one topic. […]
Coalesce Partition and Subpartition
As we saw in previous posts by just defining number of partitions we can create partitions in HASH partition or *-hash subpartitions paritioning type. Now to remove some partition we can use coalesce partition feature of oracle. After we apply coalescing function one hash partition is removed and data are redistributed among the partitions which […]