Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

So, this assignment is where you take the code shown below (the items highlighte

ID: 3557530 • Letter: S

Question

So, this assignment is where you take the code shown below (the items highlighted in bold). When you run this script, it is supposed to leave you connected as Iggy/oracle.

Next, you start a second instance of Iggy/oracle. Reduce the window size of each instance of sqlplus so that you can view them side by side.


In the LEFT instance, run DELETE FROM child WHERE child_ID=1;
In the RIGHT instance, run DELETE FROM child WHERE child_ID=2;
In the LEFT instance, run DELETE FROM parent WHERE parent_ID=1; (nothing happens in left window.)
In the RIGHT instance, run DELETE FROM parent WHERE parent_ID=2; (nothing happens in right window.)
At this point you will see the error message for the deadlock in the left window.
After creating a deadlock, run SQL Developer and start Tools|Monitor Sessions

Explanation / Answer

Run sqlplus SYSTEM/Oracle11 and START c:S2Script.sql When finished, the script leaves you connected as Iggy/oracle.
Start a second instance of Iggy/oracle. Reduce the window size of each instance of sqlplus so that you can view them side by side.
In the LEFT instance, run DELETE FROM child WHERE child_ID=1;
In the RIGHT instance, run DELETE FROM child WHERE child_ID=2;
In the LEFT instance, run DELETE FROM parent WHERE parent_ID=1; (nothing happens in left window.)
In the RIGHT instance, run DELETE FROM parent WHERE parent_ID=2; (nothing happens in right window.)
At this point you will see the error message for the deadlock in the left window.
After creating a deadlock, run SQL Developer and start Tools|Monitor Sessions

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote