473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DELETING Millions of rows from a table

I need help deleting 300 Millions of rows from a table and then reclaim the space in the table after completing the delete process. The database needs to be online and available to the users. There is one bitmapped index on the field which is the criteria field used for selecting which records to delete. That field is TIME_ID There is one trigger. There is one public synonym

It is a narrow table.

IOSEQ NUMBER(6),
A VARCHAR2(8 BYTE),
B VARCHAR2(8 BYTE),
C VARCHAR2(8 BYTE),
D VARCHAR2(8 BYTE),
E VARCHAR2(20 BYTE),
F VARCHAR2(3 BYTE),
G VARCHAR2(10 BYTE),
TIME_ID NUMBER(10) NOT NULL

The operating system is Solaris 5.9
The database is Oracle 9.2.0.6.0
E3500 configured as follows:
========================= CPUs =========================
Run Ecache CPU CPU
Brd CPU Module MHz MB Impl. Mask
--- --- ------- ----- ------ ------ ----
3 6 0 336 4.0 US-II 2.0
3 7 1 336 4.0 US-II 2.0
5 10 0 336 4.0 US-II 2.0
5 11 1 336 4.0 US-II 2.0

========================= Memory =========================
Intrlv. Intrlv.
Brd Bank MB Status Condition Speed Factor With
--- ----- ---- ------- ---------- ----- ------- -------
3 0 1024 Active OK 60ns 2-way A
5 0 1024 Active OK 60ns 2-way A

There is a 2 gig datafile in the UNDOTBS01

I believe that the database or at least the tablespace will have to be offline at some point as the initial source table against which I am wanting to execute deletes will have to be truncated. The table has 470 million rows and will therefore have 170 million rows when this process is complete. I know that I can use the /+APPEND+/ hint on the insert statement into a temporary table, and it will do a direct path insert. ( For speed). I need help with putting it all together.
Apr 13 '07 #1
1 2827
untill I saw that 170m will remain, TRUNC was my first thought. Perhaps a parameter driven delete on a timed sequence trigger. However, the rollback will need to be disabled for this, and not sure about 300M in a LOCK EXCLUSIVE MODE.

I'd like to know the final outcome
Apr 18 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: rishi | last post by:
Looking for tips on how to improve performance on deleting records. In our database we do dataloads daily that require us to purge millions of records a day so any improvement in speed would be...
2
by: Mathieu Pagé | last post by:
Hi, I already found on the MySQL web site that some users did have good results with tables of some millions records. But, what I want to do is store some hundreds millions records in a...
19
by: Christian Fowler | last post by:
I have a VERY LARGE pile of geographic data that I am importing into a database (db of choice is postgres, though may hop to oracle if necessary). The data is strictly hierarchical - each node has...
2
by: Simon Gilbert | last post by:
Hi all, I have a database with a table containing millions of rows (3600000). When I do a select on this table, the performance decreased due to big volume of data. Does someone knows the...
2
by: Zak McGregor | last post by:
Hi all I have a table, for simplicity's sake containing one field, called unid. for example, select unid, oid from table gives me something like this: unid | oid ---------+---------
9
by: Hamed | last post by:
Hello I have a DataGrid that a is bound to a DataTable. Some of the rows in the DataTable should not be deleted. How can I prohibit deleting of some identified rows? The problem could be...
4
by: Federico | last post by:
Hi everybody, I'm evaluating the possibility of using MySQL 5.0 as a database backend for an application we are doing and I'd like to have hardware requirements rough estimates and/or real world...
0
by: anchiang | last post by:
Hi All, I need to do bulk processing several tables that contain few millions records to generate report. there is 4 tables say A, B, C, D A is the transaction table, I need to retrieve data...
4
by: MiziaQ | last post by:
Hey, I'm using the following code to write entries to a data file and then read them in an msflexgrid. I now would like to add code under a delete button to use the table(grid) to delete rows from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.