Baza Oracle pytanie

0

Witam

Mam takie nietypowe pytanie: co się tak naprawdę stanie kiedy po wykonaniu jakiegoś skryptu na bazie oraclowej nie damy ani COMMIT (zatwierdzenie wprowadzonych zmian) ani ROOLBACK (wycofanie tych zmian) tylko po prostu wyjdziemy z sqlplus-a. Zmian które wprowadzał skrypt nie będzie w bazie (skoro nie zatwierdziliśmy zmian commitem) ??

Pozdrawiam
pako1007

0
Yogesh_Yadav napisał(a)

Hi,
Oky. Lets talk case wise :

Case 1:
When you write "EXIT" command at SQL prompt.
Then there will be a commit before exiting the current session.

Case 2:
When you just click on "X" button on upper-right corner of window.
Then there will be rollback automatically.

Case 3:
When the session is terminated abnormally by any means like power-failure etc.
Then there will be again rollback.

You can check teh above cases easily. Just perform some DML on any table and apply the above cases. Now when you again login back to SQL plus session look what happens to your DML operation on the table.

I hope that this will clear all your doubts.

Regards
Yogesh Yadav
(OCP)

1 użytkowników online, w tym zalogowanych: 0, gości: 1