GeekInterview | Geeks Forum | Online Quiz | Learning Center | Privacy | Terms and Conditions | Contact
GeekInterview Code Base
Code Snippets Login Register

Partition Management package

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.
06 November, 2006
jainsourabh2
9
N/A

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.

ers_partition_mgmt_pkg.sql [ Download ]

 

Comments [ Leave Comment ]

Posted by Krawatte at 11 October, 2007
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

 

Tips [ Leave Tip ]

No tips added yet. Be the first one to share tip.

 

Reviews [ Leave Review ]

Posted by Rajesh Shah at 15 November, 2006
A great Utility package for Partition Operations in Oracle
Posted by CT VELU at 22 February, 2007
Great job sir.Very nice utility

 

Tags

StreamConnection

 

Related Items

Removing Duplicate Records
Create shortcuts on Desktop and Start Menu
Finding loop in a link list
Encryt and Decrypt Text messages
Read contents of a file using StreamConnection Class

 

Related Categories

Oracle » Database » PL/SQL
Copyright @GeekInterview.com