Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g76FZ1Q10306
 for <oracle-l@naude.co.za>; Tue, 6 Aug 2002 11:35:01 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id IAA77287;
 Tue, 6 Aug 2002 08:34:52 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b71/bab) via UUCP id 004AC2BF; Tue, 06 Aug 2002 08:08:26 -0800
Message-ID: <F001.004AC2BF.20020806080826@fatcity.com>
Date: Tue, 06 Aug 2002 08:08:26 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Igor Neyman" <ineyman@perceptron.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Igor Neyman" <ineyman@perceptron.com>
Subject: Re: Rolling partitions
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 71; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain;	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

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@perceptron.com



----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L@fatcity.com>
Sent: Tuesday, August 06, 2002 11:18 AM


> 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@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@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@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@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).

