Question: Lab02 (30 points) Preliminary Create the following three tables; CREATE TABLE table1 (a int primary key, b int) CREATE TABLE table2 (a int, b int);
Lab02 (30 points) Preliminary Create the following three tables; CREATE TABLE table1 (a int primary key, b int) CREATE TABLE table2 (a int, b int); Open two terminals (e.g., putty or XShell and login Oracle database .Assume that each terminal represents each individual user (ie., User1 and User2). Execute SET AUTOCOMMIT OFF. This command suppresses automatic committing so that you must commit changes manually (Note that # represents the order of execution). User 2 User 1 1SET AUTOCOMMIT OFF SET AUTOCOMMIT OFF TURN ON the spool User 1 User 2 1 SPOOL user SPOOL user2 Execute the SQLs in Section Transaction Processing and Recovery and answer the questions. - Save the spool files and submit both answers and spool files. User 1 User 2 1SPOOL O 2 SPOOL OFF Transaction Processing and Recovery 1. (10 pts) What is the result of STEP 4 in User2? Explain why this result makes sense or why it does not make sense? User 1 User 2 0 DELETE FROM table1 1 COMMIT INSERT INTO table1 (a.b) values (1,1 2 INSERT INTO table1 (a,b) values (1,1 4 COMMIT COMMIT
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
