Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C:\Program Files\IBM\SQLLIB\BIN>db2 +c "select * from mytable"
- KEY COL2 COL3 NEWCOLUMN
- ----------- ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- -----------
- 1 first record -
- 2 second string -
- 3 third usefull text data -
- 3 record(s) selected.
- C:\Program Files\IBM\SQLLIB\BIN>db2 +c "insert into mytable(col2) values('.')"
- DB20000I The SQL command completed successfully.
- C:\Program Files\IBM\SQLLIB\BIN>db2 +c "select * from mytable"
- KEY COL2 COL3 NEWCOLUMN
- ----------- ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- -----------
- 1 first record -
- 2 second string -
- 3 third usefull text data -
- 21 . - -
- 4 record(s) selected.
- C:\Program Files\IBM\SQLLIB\BIN>db2 +c "rollback"
- DB20000I The SQL command completed successfully.
- C:\Program Files\IBM\SQLLIB\BIN>db2 +c "select * from mytable"
- KEY COL2 COL3 NEWCOLUMN
- ----------- ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- -----------
- 1 first record -
- 2 second string -
- 3 third usefull text data -
- 3 record(s) selected.
- C:\Program Files\IBM\SQLLIB\BIN>db2 get db cfg for newdb01
- Currently Committed (CUR_COMMIT) = ON
- C:\Program Files\IBM\SQLLIB\BIN>db2 change isolation to cs
- DB21027E Isolation level may not be changed while connected to a database.
- C:\Program Files\IBM\SQLLIB\BIN>db2 terminate
- DB20000I The TERMINATE command completed successfully.
- C:\Program Files\IBM\SQLLIB\BIN>db2 change isolation to cs
- DB21053W Automatic escalation will occur when you connect to a database that
- does not support CS.
- DB20000I The CHANGE ISOLATION command completed successfully.
- C:\Program Files\IBM\SQLLIB\BIN>db2 connect to newdb01
- C:\Program Files\IBM\SQLLIB\BIN>db2 +c "insert into mytable(col2) values('.')"
- DB20000I The SQL command completed successfully.
- C:\Program Files\IBM\SQLLIB\BIN>db2 +c "select * from mytable"
- KEY COL2 COL3 NEWCOLUMN
- ----------- ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- -----------
- 1 first record -
- 2 second string -
- 3 third usefull text data -
- 41 . - -
- 4 record(s) selected.
- C:\Program Files\IBM\SQLLIB\BIN>db2 +c "commit"
- DB20000I The SQL command completed successfully.
- C:\Program Files\IBM\SQLLIB\BIN>db2 terminate
- DB20000I The TERMINATE command completed successfully.
- C:\Program Files\IBM\SQLLIB\BIN>db2 change isolation to UR
- DB21053W Automatic escalation will occur when you connect to a database that
- does not support UR.
- DB20000I The CHANGE ISOLATION command completed successfully.
- C:\Program Files\IBM\SQLLIB\BIN>db2 connect to newdb01
- C:\Program Files\IBM\SQLLIB\BIN>db2 +c "insert into mytable(col2) values('..')"
- DB20000I The SQL command completed successfully.
- C:\Program Files\IBM\SQLLIB\BIN>db2 +c "select * from mytable"
- KEY COL2 COL3 NEWCOLUMN
- ----------- ---------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------- -----------
- 1 first record -
- 2 second string -
- 3 third usefull text data -
- 41 . - -
- 42 .. - -
- 5 record(s) selected.
- C:\Program Files\IBM\SQLLIB\BIN>db2 +c "rollback"
- DB20000I The SQL command completed successfully.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement