Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9120129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:33:33+00:00 2026-06-17T05:33:33+00:00

I have a delete query like: delete from table1 where dataA between Date1 and

  • 0

I have a delete query like:

delete from table1 where dataA between Date1 and Date2

I receive an error:

Caused by: java.sql.SQLException: ORA-01628: max # extents (10100) reached 
for rollback segment.

I would like to fix the delete statement by adding

AND ROWNUM < 200 

Is this the correct way to resolve the problem (table contains blob columns — for this reason I suppose rollback segment is small)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:33:35+00:00Added an answer on June 17, 2026 at 5:33 am

    I do data warehouse bulk processing in Oracle and your method is perfectly fine. I would like to tell the dba to say hey add a ton of rollback/tmp space so we never run into this… but as with many clients… resources are many times outside of our control.

    What i do in any repetitive delete operation that you just want to delete in chunks is the following (Oracle Pl/sql example but will port to any language) Keep in mind this solution is only for a delete from without conditional where expression(your example)… if you had a where condition i would recommend fetching rowid’s/keys into array first in bulk and the looping deleting in chunks…

    //psuedo code
    Create procedure (iCommit In Integer) 
       Loop
          Delete From Table where rownum < iCommit + 1;
          if SQL%ROWCOUNT < iCommit then
             exit loop;
          end if
          // incremental commit
          commit;
       End Loop;
       // final commit
       commit;
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a query like DELETE from tablename where colname = value; which takes
This code is what i have tried to process the query, either delete or
I have a grid view utilizing sql data source. Now I want to delete
Ok, so you have something like this working. You Insert into a table from
I have a query that strips data from a XML string, inserts it into
I use a form where i have listed the data from database like title,
I have a code like this where user selects field1 from a list box
I have this table : I would like to delete same rows. For example
I have a button that will delete all users that fits into this query:
i have function which is something like this function multiple_delete($entity1,$entity2,$entity2) { $query = SELECT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.