|
-
Trimming a schema
Hello gurus.
I have a schema with some tables which can grow very large--lots of rows
into the millions. My desire is to create a way (SQL query, procedure, trigger,
etc.) that will act on these tables once a row in a table reaches a certain
date--for example I want to remove all rows greater than 18 months old in
a given table.
What is the best way to proceed?
Any assistance would be greatly appreciated.
Best regards,
G.
-
Re: Trimming a schema
G.,
My advice would be to create an SP or package procedure that either deleted
the appropriate rows or archived them to another table with the same
structure. It could use SYSDATE to determine what rows it needed to
delete/move.
You could then use DBMS_JOBS (one of the system packages) to schedule the
procedure to run nightly.
HTH.
--
Larry Miller
MCSD, Microsoft MVP Visual FoxPro
Bifrost Solutions
"G. Levine" <glevine@serviceware.com> wrote in message
news:3cc83164$1@10.1.10.29...
>
> Hello gurus.
>
> I have a schema with some tables which can grow very large--lots of rows
> into the millions. My desire is to create a way (SQL query, procedure,
trigger,
> etc.) that will act on these tables once a row in a table reaches a
certain
> date--for example I want to remove all rows greater than 18 months old in
> a given table.
>
> What is the best way to proceed?
>
> Any assistance would be greatly appreciated.
>
> Best regards,
>
> G.
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks