Professional Documents
Culture Documents
Oracle 3
Oracle 3
SQL> COMMIT;
Commit complete.
SQL> ROLLBACK;
Rollback complete.
SQL> disconnect
SQL> connect HR/fyicenter
Keep the "HR" SQL*Plus window as is, and open another window to run another
instance of SQL*Plus.
>cd (OracleXE home directory)
>.\bin\sqlplus /nolog
SQL> COMMIT;
Commit complete.
Go back to the "HR" SQL*Plus window.
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
SQL> COMMIT;
Commit complete.
(session 2)
SQL> connect HR/fyicenter
SQL> COMMIT;
(lock on row id=101 released)
(ready to run UPDATE)
1 row updated.
SQL> COMMIT;
ORA-00060: deadlock
detected while waiting
for resource
(statement failed)