Code.GeekInterview.com
 
Code Samples Oracle
 

Partition Management package


Code ResourceAuthor: jainsourabh2  

Difficulty Level:

Published: 6th Nov 2006   Read: 8631 times  

Filed in: Oracle
Add Comment


 

 

Sponsored Links


 

 

This PL/SQL Package allows partition management operation on an Oracle Table.

It provides various features such as:                                       

1)Creating Monthly partition.                                               
2)Creating Daily partitions.                                                
3)Removing Date Partitions                                                  
4)Convert a non-partitioned table to a partitioned table                    
5)Splitting of MAXVALUE partition.

The parameter that needs to be passed and their description are as follows:

Creating monthly partition procedure accepts the following input parameters:

a)Name of the table.

b)Table Alias. 

c)Date from which the partition needs to be created. 

d)Date upto which the partition needs to be created. 

e)Tablespace for the specified table.

Creating daily partition procedure accepts the following input parameters:

 a)Name of the table.

b)Table Alias.

c)Date from which the partition needs to be created. 

d)Date upto which the partition needs to be created.  

e)Tablespace for the specified table. 

Removing date partition from a table. 

a)Name of the table. 

b)Table Alias. 

c)Date upto which the partition needs to be created. 

Converting a non-partitioned table to a partitioned table.

 a)Name of the table. 

b)Schema in which the table resides. 

c)Column on which the partition needs to be created.

 d)Partition alias. 

e)Date from which the partition needs to be created. 

f)Date upto which the partition needs to be created. 

g)Temporary table drop option.

 

Next Article: Encryt and Decrypt Text messages


 

Latest Code Samples

 

Popular Code Samples

 

Related Code Samples

 

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    



Comments

A great Utility package for Partition Operations in Oracle
Comment posted by: Rajesh Shah on 2006-11-15T06:09:00
Great job sir.Very nice utility
Comment posted by: CT VELU on 2007-02-22T13:37:09
Thanks
Comment posted by: debby on 2010-11-12T03:07:29
How to download this package ..

Thanks
Comment posted by: Ravinder on 2011-03-10T07:14:58

Popular Coders

# Coder NameHits
1. jamesravid37417
2. krishnaindia200731184
3. Jim.Anderson27783
4. Mohit Sharma20050
5. Beena13463
6. jainsourabh28632
7. Satheesh5677
8. SriramKrishna4771

Active Coders

Refined Tags