Code.GeekInterview.com
  I am new, Sign me up!
 
Code Samples Oracle
 

Partition Management package


Code ResourceAuthor: jainsourabh2  

Difficulty Level:

Published: 6th Nov 2006   Read: 4062 times  

Filed in: Oracle
Add Comment


 


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 Comment


Members Please Login

Name:  Email: (Optional. Used for Notification)

Title:
 
Comment:
Validation Code: <=>  (Enter this code in text box)





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
Hello,
I've a lot of errors when a created.

Package created.
ORA-24344: success with compilation error
136/36 PLS-00201: identifier 'ERS_AUDIT_LOG_API_PKG.PROCESS_TYPE_PKG' must be declared
132/9 PL/SQL: Statement ignored
171/9 PLS-00201: identifier 'ERS_DEBUG_UTILITY_API_PKG.LOG_DEBUG' must be declared
171/9 PL/SQL: Statement ignored
248/13 PLS-00201: identifier 'ERS_DEBUG_UTILITY_API_PKG.LOG_DEBUG' must be declared
248/13 PL/SQL: Statement ignored
379/36 PLS-00201: identifier 'ERS_AUDIT_LOG_API_PKG.PROCESS_TYPE_PKG' must be declared
375/9 PL/SQL: Statement ignored
418/9 PLS-00201: identifier 'ERS_DEBUG_UTILITY_API_PKG.LOG_DEBUG' must be declared
418/9 PL/SQL: Statement ignored
505/13 PLS-00201: identifier 'ERS_DEBUG_UTILITY_API_PKG.LOG_DEBUG' must be declared
505/13 PL/SQL: Statement ignored
637/36 PLS-00201: identifier 'ERS_AUDIT_LOG_API_PKG.PROCESS_TYPE_PKG' must be declared
633/9 PL/SQL: Statement ignored
727/13 PLS-00201: identifier 'ERS_DEBUG_UTILITY_API_PKG.LOG_DEBUG' must be declared
727/13 PL/SQL: Statement ignored
818/36 PLS-00201: identifier 'ERS_AUDIT_LOG_API_PKG.PROCESS_TYPE_PKG' must be declared
814/9 PL/SQL: Statement ignored
842/16 PL/SQL: ORA-02289: sequence does not exist
842/9 PL/SQL: SQL Statement ignored
Errors for PACKAGE BODY ERS_PARTITION_MGMT_PKG

LINE/COL
--------------------------------------------------------------------------------
ERROR
--------------------------------------------------------------------------------
136/36
PLS-00201: identifier 'ERS_AUDIT_LOG_API_PKG.PROCESS_TYPE_PKG' must be declared

132/9
PL/SQL: Statement ignored

171/9
PLS-00201: identifier 'ERS_DEBUG_UTILITY_API_PKG.LOG_DEBUG' must be declared

171/9
PL/SQL: Statement ignored

248/13
PLS-00201: identifier 'ERS_DEBUG_UTILITY_API_PKG.LOG_DEBUG' must be declared

248/13
PL/SQL: Statement ignored

379/36

LINE/COL
--------------------------------------------------------------------------------
ERROR
--------------------------------------------------------------------------------
PLS-00201: identifier 'ERS_AUDIT_LOG_API_PKG.PROCESS_TYPE_PKG' must be declared

375/9
PL/SQL: Statement ignored

418/9
PLS-00201: identifier 'ERS_DEBUG_UTILITY_API_PKG.LOG_DEBUG' must be declared

418/9
PL/SQL: Statement ignored

505/13
PLS-00201: identifier 'ERS_DEBUG_UTILITY_API_PKG.LOG_DEBUG' must be declared

505/13
PL/SQL: Statement ignored

637/36
PLS-00201: identifier 'ERS_AUDIT_LOG_API_PKG.PROCESS_TYPE_PKG' must be declared

LINE/COL
--------------------------------------------------------------------------------
ERROR
--------------------------------------------------------------------------------

633/9
PL/SQL: Statement ignored

727/13
PLS-00201: identifier 'ERS_DEBUG_UTILITY_API_PKG.LOG_DEBUG' must be declared

727/13
PL/SQL: Statement ignored

818/36
PLS-00201: identifier 'ERS_AUDIT_LOG_API_PKG.PROCESS_TYPE_PKG' must be declared

814/9
PL/SQL: Statement ignored

842/16
PL/SQL: ORA-02289: sequence does not exist


LINE/COL
--------------------------------------------------------------------------------
ERROR
--------------------------------------------------------------------------------
842/9
PL/SQL: SQL Statement ignored


Regards
Krawatte
Comment posted by: Krawatte on 2007-10-11T06:07:35

Popular Coders

# Coder NameHits
1. jamesravid16273
2. Jim.Anderson8828
3. krishnaindia20078132
4. Mohit Sharma6752
5. Beena5371
6. jainsourabh24063
7. SriramKrishna1856
8. Satheesh1778

Active Coders

Refined Tags

 

Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact  

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape