Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> Delete Milions of record in database

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Delete Milions of record in database
 Ratnaker  Posted: May 02, 2007 05:35:11 AM

 Total Post: 136
 Joined: Apr, 2007






 We have 100 million data in one table i want to delete 50 mollion record from the table. How we can delete? What will be the effect in database?

Ratnaker

 sm_ahmeds
Posted: May 02, 2007 08:38:51 AM  

 Total Post: 53
 Joined: Apr, 2007






 
Hi Retnaker....u can use delete from table where rownum<5000000

 Ratnaker
Posted: May 03, 2007 01:31:19 AM  

 Total Post: 136
 Joined: Apr, 2007






 
Hi ahemad,
It will delete from table but it is taking log time.some times its trgoughing error.

Ratnaker

 poonam
Posted: May 08, 2007 09:11:29 AM  

 Total Post: 7
 Joined: May, 2007






 
hi,

as its large no. of records you want to delete,
why dont u try..........
TRUNCATE table...

if u want to delete all data from table.its much faster and generate less undo.its useful if u dont want to use ROLLBACK......


regards...........

 Bubun
Posted: Jul 10, 2007 02:36:06 AM  

 Total Post: 4
 Joined: Jul, 2007






 

Hi,

Its a part of my job also to delete millions of records from a table and I delete from offshore. Try below method which will fulfill ur need.

Make a Pl/sql block which will delete atleast 50000 records at a time and after delete script commit the record , so that it won't throw any error
during deletion. If you didn't get my point , inform me , so that I will
mention one example as template.

Subhra

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi239
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software