Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Massive Delete Operation

This is a discussion on Massive Delete Operation within the Oracle forums, part of the Databases category; Hi, i need some help regarding massive delete operation. One table is having million of rows and 9 indexes on it. It's running on production. But it seeems the deletion ...

Go Back   Geeks Talk > Databases > Oracle
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read

Oracle Oracle 9i & Oracle 10g Knowledge Base Learn and Share Oracle Technology related articles, white papers, tutorials / study materials, example codes, FAQ's, Tips and Tricks.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-11-2008
Junior Member
 
Join Date: May 2008
Location: BANGALORE
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
arunabha_datta is on a distinguished road
Massive Delete Operation

Hi, i need some help regarding massive delete operation. One table is having million of rows and 9 indexes on it. It's running on production. But it seeems the deletion of records using bulk binds and using rowid is also very slow. It's not possible io increase the rb segment in the db. We're getting snapshot too old error also thats because of this frequent commit i guess. It's not possible to make partition in the table. Is there any flaw in teh below written code which can be rectified provided all teh restriction i discussed before are met. Many thanks in advance. Sample code::
Code:
declare type xxx is table of rowid index by binary_integer; 
yyy xxx; 
cursor cur_del_prm is select rowid as person_id from prem_od where person_id in (select person_id from person_t where run_id =  ); 
begin 
open cur_del_prm; 
loop fetch cur_del_prm bulk collect into yyy limit < global variable g_prem_bulk_del_limit ... Currently set to 50k > ; 
if yyy.count = 0 then exit; 
end if; 
forall idx in yyy.first..yyy.last delete from prem_od where rowid = yyy(idx); 
commit; 
end loop; 
close cur_del_prm; 
yyy.delete; 
end;

Last edited by debasisdas; 06-11-2008 at 10:00 AM. Reason: formatted
Reply With Quote
Sponsored Links
Reply

  Geeks Talk > Databases > Oracle

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Active Screen Operation Geek_Guest QTP 1 12-27-2007 09:01 AM
array of string operation shivaram.cunchala C and C++ 8 11-29-2007 05:50 AM
Delete values in single a row without using DELETE keyword. Geek_Guest SQL 22 10-25-2007 06:50 AM
Object operation failed Geek_Guest Rational Robot 0 04-16-2007 09:05 AM
How to make sure that the operation on database is successful? sivaprasademani SQL Server 2 04-04-2007 02:03 AM


All times are GMT -4. The time now is 04:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved