Collections:
Transaction Commit When Session Ended in Oracle
What Happens to the Current Transaction If the Session Is Ended in Oracle?
✍: FYIcenter.com
If a session is ended, the current transaction in that session will be committed and ended. All the database changes made in the current transaction will become permanent. This is called an implicit commit when session is ended. The following tutorial exercise shows you that the "disconnect" command forces the current transaction to be committed and ended. When the session is reconnected, you can see the changes made by the UPDATE statements.
SQL> connect HR/fyicenter
SQL> UPDATE fyi_links SET url = 'FYICENTER.COM'
2 WHERE id = 101;
SQL> UPDATE fyi_links SET url = 'CENTERFYI.COM'
2 WHERE id = 110;
SQL> disconnect
SQL> connect HR/fyicenter
SQL> SELECT * FROM fyi_links;
ID URL NOTES COUNTS CREATED
------- ---------------- ---------- ---------- ---------
101 FYICENTER.COM 07-MAY-06
110 CENTERFYI.COM 07-MAY-06
112 oracle.com 07-MAY-06
113 sql.com 07-MAY-06
⇒ Transaction Rollback When Session Killed in Oracle
⇐ Transaction Commit When DDL Statement Executed in Oracle
2019-08-23, 2521🔥, 0💬
Popular Posts:
Is SQL Server Transact-SQL case sensitive? No. Transact-SQL is not case sensitive. Like the standard...
How To Install Oracle Database 10g XE in Oracle? To install 10g universal edition, double click, Ora...
How To Insert New Line Characters into Strings in SQL Server Transact-SQL? If you want to break a st...
How To Format Time Zone in +/-hh:mm Format in SQL Server Transact-SQL? From the previous tutorial, y...
How To Round a Numeric Value To a Specific Precision in SQL Server Transact-SQL? Sometimes you need ...