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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:48:53+00:00 2026-06-10T00:48:53+00:00

I am developing a C++ program using OCI to query some result set from

  • 0

I am developing a C++ program using OCI to query some result set from a Oracle database. I found that the result set is cached even I’ve manually update rows with ‘update table set col=xxx where xxx‘. The OCI calls are still getting old data. How does this caching happen? Is there a way to disable it? How can I check if the caching really happens? By checking execution plan?

  • 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-10T00:48:55+00:00Added an answer on June 10, 2026 at 12:48 am

    When you make changes in a separate session (your SQL*Plus session), those changes only become visible to your current session (your OCI application) when you commit the changes. Until you commit the transaction in SQL*Plus, you will continue to see the current version of the row, not the version that you changed in your SQL*Plus session. Your OCI application is using the default transaction isolation of READ COMMITTED so you can only read committed data.

    One thing to be aware of is that if you open a cursor from your OCI application, the data that is fetched from the cursor handle is the data as it existed at the point in time that the cursor was opened. So if you open a cursor in OCI, commit changes in SQL*Plus, and then fetch the data from OCI, your OCI application will not see the changes that were committed in SQL*Plus. You would have to re-open the cursor in order to see the newly committed rows.

    Technically, this is not caching. Instead, this is how Oracle’s multi-version read consistency works. Assuming the default transaction isolation level, each time a cursor is opened, the current SCN (system change number) is captured and the data that is retrieved is as of that SCN. If a block has changed (whether committed or not) since that SCN, Oracle applies the UNDO vector for that change to the block before returning it to your session.

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

Sidebar

Related Questions

I'm developing a program that I'm using a string( generatedCode ) that contains some
I am developing a program in Python that accesses a MySQL database using MySQLdb.
I am developing some program in C# which will send the mail using outlook
I am developing a program that will bootstrap another program, so as a result
I'm developing a program using Windows 7. There are WCF services (soap, rest) that
I have a C program that I'm developing using Ubuntu 11.10 (Linux version 3.0.0-12-generic-pae
I am developing a Java program using Eclipse that should exit with different codes
I'm developing a program that load webpages using WebBrowser control in VB6. How do
I'm developing a program using App Inventor that will tweet stuff. I've assigned a
I'm trying to start developing a program using ncurses on Linux. I can't even

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.