Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Rolling partitions
No generic (oracle-provided) procedures.
I wrote two scripts (stored procedures), scheduled to run every day.
First one ("add_partitions") checks if partitions for CURRENT and NEXT month
exist, and if not - it creates them.
Second ("drop_partitions") checks the amount of free space in the
tablespace, and if it's below some threshold, it drops the oldest partitions
(keeping in mind referential integrity between tables involved).
Igor Neyman, OCP DBA
ineyman_at_perceptron.com
> I am finally looking to implement partitioning and have some issues with
> rolling partitions by date. (Ie add partion p0802 and drop p0801) Does
> anybody have or know of a generic procedure/process that will allow the
> automation of this? I envision a number of parameters being passed in.
For
> example, time period & table ... Or is there an alternative that I need
to
> consider? (other than manual)
>
> Thanks
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Tracy Rahmlow
> INET: tracy.rahmlow_at_aexp.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Igor Neyman INET: ineyman_at_perceptron.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Aug 06 2002 - 11:08:26 CDT