How to change the setting AutoCommit to 0 in the procedure or default login

[tttest@host1 ~] $ ttisql "dsn = ana_tt1122".

Copyright (c) 1996-2011, Oracle. All rights reserved.
Type? or 'aid' help, type "exit" to leave the ttIsql.



Connect "dsn = ana_tt1122";

20000 WARNING: Use of a deprecated feature: authenticate (ignored)

Successful login: DSN = ana_tt1122; UID = tttest; DataStore = / timesten/TimesTen/tt1122/info/ana/ana; DatabaseCharacterSet = ZHS16GBK; ConnectionCharacterSet=ZHS16GBK;DRIVER=/timesten/TimesTen/tt1122/lib/libtten.so;OracleId=ABCD; PermSize = 1200; TempSize = 500; TypeMode = 0; OracleNetServiceName = ABCD;
(Default AutoCommit = 1).

"Default AutoCommit = 1", I can change it only later to help:
Command > autocommit 0;

But I want to know: I put the "default AutoCommit = 0"? When I connect the DSN? or I can put 'default AutoCommit = 0' in a procedure? Maybe because sometimes I want to change in the procedure.


Very thanks.

As you pointed out, ttisql session, you can use AUTOCOMMIT to 0 to turn off the automatic validation feature.

In the same way in ODBC applications, run the function SQLSetConnectOption with SQL_AUTOCOMMIT_OFF.

For applications JDBC, Connection.setAutoCommit (false) method to disable the automatic validation feature.

Tags: Database

Similar Questions

Maybe you are looking for

  • My disk utility has no encryption option.

    I'm trying to format a USB key that I can encrypt.  But my disk utility does not have the drop down option for encryption. Can I have a utility obsolete? OS X El Capitan 10.11.5 In the Finder, when you attempt to encrypt, I get an error message sayin

  • scanning to a pdf indexed using HP 5525?

    How can I scan a document and send / save it in searchable pdf format on my computer (windows 7)?

  • open session visa

    What is the best practice? Start the program -open session visa -do stuff -Close session visa end program OR Start the program -REPEAT -do stuff -open session visa -do stuff -Close session visa -do stuff -REPEAT END end program

  • system recovery fails with the C++ runtime error

    My Compaq CQ610-410US Windows 7 running is unusable. When you use the system recovery, either from CD or recovery, it fails with C++ runtime library program not found contact HP support. Whatever it is, Windows is loaded and the system restore screen

  • How can I save image transparent

    I would like to save an image with transparency, but it shows a gray background. It looks like all the information of the image are lost when I rebuilt the image on the table (table IMAGE to image.vi). For more information, I have attached the vi. Th