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

  • Home
  • SEARCH
  • 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 755563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:08:39+00:00 2026-05-14T15:08:39+00:00

I have an Oracle global temporary table which is ON COMMIT DELETE ROWS. I

  • 0

I have an Oracle global temporary table which is “ON COMMIT DELETE ROWS”.

I have a loop in which I:

  • Insert to global temporary table
  • Select from global temporary table (post-processing)
  • Commit, so that the table is purged before next iteration of the loop

Insertion is done with a call to oci_execute($stmt, OCI_DEFAULT). Retrieval is made through a call to oci_fetch_all($stmt, $result, 0, -1, OCI_FETCHSTATEMENT_BY_ROW | OCI_ASSOC). After that, a commit is made: oci_commit().

The problem is that retrieval sometimes works, and sometime I get one of the following errors:

  • ORA-08103: object no longer exists
  • ORA-01410: invalid ROWID

As if the session cannot “see” the records that it previously inserted.

Do you have any idea what could be causing this?

Thanks.

  • 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-05-14T15:08:39+00:00Added an answer on May 14, 2026 at 3:08 pm

    Are you using connection pooling? If so then it could be that different calls are executing in separate sessions.

    A better solution would be to have a single PL/SQL procedure which populates the temporary table and returns a resultset set in a single call. Which then suggests an even better solution: do away with the temporary table altogether.

    There are few situations in Oracle which demand the use of temporary tables. Most things are solvable with pure SQL or perhaps bulk collecting into nested tables. What actual manipulation of the data in the temporary table do you undertake between the insert and the subsequent select?

    edit

    Temporary tables have a performance hit – the rows are written to disk. PL/SQL collections remain in (session) memory and so are faster. Of course, because they are in session memory they won’t solve the problem you have with connection pooling.

    Is the reason you need to chunk up the data because you don’t want to pass 200,000 rows to your PHP in one fell swoop? I think I need a little more context if I am to help you any further.

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

Sidebar

Ask A Question

Stats

  • Questions 501k
  • Answers 501k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer XCode (to get started on a Mac), compile ruby or… May 16, 2026 at 2:26 pm
  • Editorial Team
    Editorial Team added an answer Check Liquibase. It is a open source Database Change Management… May 16, 2026 at 2:26 pm
  • Editorial Team
    Editorial Team added an answer You can try extending ScrollView and overriding View#onScrollChanged and the… May 16, 2026 at 2:26 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a GLOBAL TEMPORARY table in Oracle. It uses ON COMMIT DELETE ROWS.
I have rows in an Oracle database table which should be unique for a
I have optimized a complex Oracle statement using temporary table like this : original
I have a oracle table which contains char(n) type for several columns. I use
I've never used the Global Temporary Tables however I have some questions how they
I have defined the global nls_date_format on Oracle 10.2 XE as follows: alter system
I have an Oracle table with two columns ID and START_DATE, I want to
I have an oracle function which is given below. when I run this in
I have an Oracle Express 10g database. In my table I have an auto-generated
We have data stored in oracle 10g db which contains french character set. The

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.