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 7800581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:41:02+00:00 2026-06-02T00:41:02+00:00

DB: Oracle 11g Is there a way to do something like the following: INSERT

  • 0

DB: Oracle 11g

Is there a way to do something like the following:

INSERT INTO T1
    (V1, V2)
COMMIT EVERY X
AS
SELECT (V1, V2) FROM T2;

I know how to loop through cursor, but I’m looking for something more streamlined.

PL/SQL is fine, but no looping.
Using a SQL Hint is good too.

If this is just something that oracle can’t handle, sadness ensues (Mostly I’m just curious since I have another approach working already).

NOTE: The application has hundreds of billions of records. Millions are created per day. INSERT INTO SELECT doesn’t work on such large sets of data. Especially when there are equally large sets running in parallel.

  • 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-02T00:41:04+00:00Added an answer on June 2, 2026 at 12:41 am

    Oracle doesn’t allow a statement to have interim commits, no. Doing so would violate the basic properties of an ACID database. What happens if the statement fails on row N? Oracle wouldn’t be able to roll back the previously committed rows. It wouldn’t know which rows had been processed and which hadn’t been processed. So your statement would be partially successful and your database would be left in an unknown state. One of the major benefits of using a relational database is to avoid exactly that outcome.

    Why do you want to do an interim commit in the first place? That’s going to make your code slower and cause you to use more resources. It’s going to force you write a bunch of code to make your process restartable (i.e. you’d have to track which rows had been processed and which hadn’t so that you could either roll back partially complete changes or restart the process if it fails in the middle). And it’s going to make your code much harder to test. There is almost never a good reason to do an interim commit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to restore an Oracle 11g instance from raw data files
Is there a way to give a subquery in Oracle 11g an alias like:
I would like to convert a string containing dates in SQL select from Oracle
Is there a way to mandate table/column comments in Oracle 11g. Some Database parameters
is there any problem to install different oracle 11g versions. I mean if I
Using .Net and Oracle 11g - I've been returning dataTables from a procedure inside
I am using oracle 11g and have a table with an XMLType. There are
I'm starting studies in Oracle 11g Spatial Databases and I want to know if
I'm using oracle 11g. I'm inserting date and time using function SYSDATE into column
I am using the external table approach with Oracle 11g to load data from

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.