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 […]

Read More

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 […]

Read More

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 […]

Read More

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 […]

Read More

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. […]

Read More

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. […]

Read More

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 […]

Read More

See ROW Placement in Partitions

We have seen creation of partitions , its benefits , different methods etc. Today we will see method to check the records we are inserting in the partitioning table are placed properly in intended partitions. Let’s create one table using range partitioning method.  Let us insert some random records in table. Now lets query the […]

Read More

Drop Table Partition with Index Maintenance

We can simply add and drop partitions from table as we are dropping and creating a new table. While dropping and adding table partition , we need to take care of the index too.  In previous post we saw simply removing partitions makes index unusable. For Reference Drop Table Partition without Index Maintenance and SKIP_UNUSABLE_INDEXES […]

Read More