http://iotn.co.kr ¿¬¶ôó: gilho.kr@gmail.com [ The Japanese government should apologize to Japanese Military Sexual Slavery victim. / ìíÜâïÙݤªÏìíÜâÏÚªÎàõîÜÒ¿ÖË?ßåíºªËÞóñªª¹ªÙª. ]
$ db2 list command options | egrep 'Auto-Commit|DB2OPTIONS'
Command options (DB2OPTIONS) =
-c Auto-Commit ON
$ db2set DB2OPTIONS=+c
$ db2 list command options | egrep 'Auto-Commit|DB2OPTIONS'
Command options (DB2OPTIONS) = +c
-c Auto-Commit OFF
$ db2set DB2OPTIONS=
$ db2 list command options | egrep 'Auto-Commit|DB2OPTIONS'
Command options (DB2OPTIONS) =
-c Auto-Commit ON
$ db2
db2 => LIST COMMAND OPTIONS
Command Line Processor Option Settings
Backend process wait time (seconds) (DB2BQTIME) = 1
No. of retries to connect to backend (DB2BQTRY) = 60
Request queue wait time (seconds) (DB2RQTIME) = 5
Input queue wait time (seconds) (DB2IQTIME) = 5
Command options (DB2OPTIONS) =
Option Description Current Setting
------ ---------------------------------------- ---------------
-a Display SQLCA OFF
-c Auto-Commit ON <<<<<<<<<<<
[ current session Auto-Commit OFF ]
db2 => UPDATE COMMAND OPTIONS USING c OFF
DB20000I The UPDATE COMMAND OPTIONS command completed successfully.
or
$ db2 -c
db2 => LIST COMMAND OPTIONS
Command Line Processor Option Settings
Backend process wait time (seconds) (DB2BQTIME) = 1
No. of retries to connect to backend (DB2BQTRY) = 60
Request queue wait time (seconds) (DB2RQTIME) = 5
Input queue wait time (seconds) (DB2IQTIME) = 5
Command options (DB2OPTIONS) =
Option Description Current Setting
------ ---------------------------------------- ---------------
-a Display SQLCA OFF
-c Auto-Commit OFF <<<<<<<<<<<
-d Retrieve and display XML declarations OFF
-e Display SQLCODE/SQLSTATE OFF
-f Read from input file OFF
-i Display XML data with indentation OFF
-l Log commands in history file OFF
-m Display the number of rows affected OFF
-n Remove new line character OFF
-o Display output ON
-p Display interactive input prompt ON
-q Preserve whitespaces & linefeeds OFF
-r Save output to report file OFF
-s Stop execution on command error OFF
-t Set statement termination character OFF
-v Echo current command OFF
-w Display FETCH/SELECT warning messages ON
-x Suppress printing of column headings OFF
-z Save all output to output file OFF