Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews DB Oracle Interviews:Concepts and ArchitectureData AccessDatabase ArchitectureDatabase ManagementDatabase Security OracleDistributed ProcessingFlexfieldForms ReportsGeneral OracleMemory ManagementMTO-SAP Financial AccountingOCIOracle AOLOracle AROracle Backup RecoveryOracle D2KOracle DatabaseOracle Database DeveloperOracle DB OptimizationOracle DBAOracle DeveloperOracle ETLOracle Forms 3.0Oracle Forms 4.0Oracle GLOracle PL-SQLOracle RMANOracle ScenariosOracle SecurityOracle SQLOracle System ArchitectureOracle Technology Network (OTN)Programmatic ConstructsRAC (Real Application Clusters)SQL Plus
Copyright © 2018. All Rights Reserved
Oracle Database Interview Question:
What Happens to the Current Transaction If the Session Is Ended?
Submitted by: AdministratorIf 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/globalguideline
SQL> UPDATE ggl_links SET url = 'globalguideline.COM'
2 WHERE id = 101;
SQL> UPDATE ggl_links SET url = 'globalguideline.COM/html'
2 WHERE id = 110;
SQL> disconnect
SQL> connect HR/globalguideline
SQL> SELECT * FROM ggl_links;
<pre> ID URL NOTES COUNTS CREATED
------- ---------------- ---------- ---------- ---------
101 globalguideline.COM 07-MAY-06
110 globalguideline.COM/html 07-MAY-06
112 oracle.com 07-MAY-06
113 sql.com 07-MAY-06</pre>
Submitted by: Administrator
SQL> connect HR/globalguideline
SQL> UPDATE ggl_links SET url = 'globalguideline.COM'
2 WHERE id = 101;
SQL> UPDATE ggl_links SET url = 'globalguideline.COM/html'
2 WHERE id = 110;
SQL> disconnect
SQL> connect HR/globalguideline
SQL> SELECT * FROM ggl_links;
<pre> ID URL NOTES COUNTS CREATED
------- ---------------- ---------- ---------- ---------
101 globalguideline.COM 07-MAY-06
110 globalguideline.COM/html 07-MAY-06
112 oracle.com 07-MAY-06
113 sql.com 07-MAY-06</pre>
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.