473,395 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Session level auto-commit

Hello!

I'm relatively new to oracle, so i hope I use the correct terminology. Please let me know if my question doesn't make sense!
I'm trying to figure out how to turn off the session level auto-commit feature in my oracle oci.

I'm working in a linux environment, using c++. The problem I'm having is this:

when the connection to a database is severed (because the db object goes out of scope) the data written to any tables in that db is automatically committed, even if commit is not explicitly called.

Notice that this is different from transaction-level auto-commit. We are manually committing at the transaction level, that works fine. The problem is that data is being committed implicitly by the oci (i believe).

First Solution Idea: My first response was to call Rollback in the destructor to my oci. The problem with this is it only solves the problem when the program runs to completion. If, say, an impatient developer enters "ctrl+c" in the middle of a run, and the objects are not destructed properly, my problem will not be solved.

Thanks for your help,

Andrew
Jul 26 '07 #1
1 3827
I've been reading through the OCI manual, and it looks like the reason we autocommit is because we call: OCISessionEnd() in our destructor. This function calls commit implicitly. The documentation is here:
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96584/oci15r14.htm#556681

It doesn't mention how to suppress this feature, does anyone have insights?

thanks
Jul 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Al Jones | last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate group would you point me toward one that is. Basically, I seem to be losing session data part way though preparing an...
14
by: Paul Yanzick | last post by:
Hello, I am trying to develop a book tracking application for my capstone in school, and am running into a problem. The application is an ASP.Net application written in C#. The first page you...
14
by: dale zhang | last post by:
Hi groups, Can anyone give me the equivalent C# sharp code for this VB.ET code, :: VB.NET :: Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) _ Handles...
5
by: PJ | last post by:
I posted a few days ago concerning requests being blocked from a main window after a popup window had initiated a file download. Apparently this has to do with the fact that asp.net or iis...
2
by: George Birbilis | last post by:
Hi all, I'd like to have an error handler proc installed that can grab unhandled errors during a Session before the Session object goes down. I mainly want to log some info kept at the session...
8
by: Joe Abou Jaoude | last post by:
hi, I have a web app with forms authentication and a timeout session of 20 mins for security reasons. I recently added a feature that allows users (if they want to) to automatically log in...
5
by: Chris Ochs | last post by:
It doesn't currently seem possible to switch between different users using SET SESSION AUTHORIZATION. If I log in as the superuser and switch to another user that works, but if I then switch to a...
8
by: cyberbless | last post by:
I'm creating a basic page like the on below. Problem is evertime I refresh the page or spawn a "child window" out of the pre-existing browser the Session object is recreated with a new sessionID. ...
1
SHOverine
by: SHOverine | last post by:
Recently my web host decided to "upgrade". This change rendered many of my pages useless and I am scrambling to fix the issues, so you may see several posts from me in the coming days. My first...
4
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asdp.net app which is form auth. There is a problem, The user logins and uses the app, sometimes user will be redirect to the default login page, why? Is the session timeout(default...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.