Home » RDBMS Server » Server Administration » Recyling records in a large table.
Recyling records in a large table. [message #63532] Wed, 13 October 2004 12:12 Go to next message
Tariq
Messages: 11
Registered: July 2003
Junior Member
Anyone has any script or procedure to recycle records in a huge table.

We have a table, which has couple of millions of records every day. I dont know if its possible or not to overwrite the old records with new ones say every 100,000 records.

Partioning is not an option....

BTW we have Oracle 8.1.7 & solaris 8

Thanks in advance!

--tariq  

 
Re: Recyling records in a large table. [message #63568 is a reply to message #63532] Sat, 16 October 2004 21:13 Go to previous messageGo to next message
Balaji
Messages: 102
Registered: October 2000
Senior Member
hi tariq ,

please tell me what does ur term overwrite the old records mean. do you need to update all the columns except a column that identifies that the record is old , or do you need to replace the entire row which is identified as old with current data .

an easy option is to move the data which u feel as old to a repository outside your production database.then delete those rows to make way for new ones.

with best wishes
balaji
Re: Recyling records in a large table. [message #63580 is a reply to message #63568] Mon, 18 October 2004 10:15 Go to previous messageGo to next message
Tariq
Messages: 11
Registered: July 2003
Junior Member
I need to replace entire row with new data.

It would be better if we could rewrite the old record with a new record every n records.

hope that makes sense.

Appreciate your help.
Re: Recyling records in a large table. [message #63583 is a reply to message #63580] Mon, 18 October 2004 18:06 Go to previous message
jack
Messages: 123
Registered: September 2000
Senior Member
You can add two columns for that table. Both are numbers. One is used to remeber the number of the rows. Another used to mark the last recycled record. When the table reachs a certain number, you can use a trigger or outside sql clause to update the oldest one in the table.
Hope it can help you!

Jack
Previous Topic: Database Configuration Assistant hangs up and services.exe on 100%
Next Topic: Intallation of Oracle Application
Goto Forum:
  


Current Time: Fri Jan 24 18:25:33 CST 2025