Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What Happens to the Current Transaction If the Session Is Ended
What Happens to the Current Transaction If the Session Is Ended? - Oracle DBA FAQ - Understanding SQL Transaction Management
✍: 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
2007-04-18, 4676👍, 0💬
Popular Posts:
How To Merge Values of Two Arrays into a Single Array? - PHP Script Tips - PHP Built-in Functions fo...
How To Control White Spaces between Table Cells? - XHTML 1.0 Tutorials - Understanding Tables and Ta...
Can you explain project life cycle ? Figure :- 12.2 Life cycle of a project There are five stages of...
What is the benefit of using an enum rather than a #define constant? The use of an enumeration const...
What is effort variance? Effort Variance = (Actual effort – Estimated Effort) / Estimated Effort.