Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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);

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Database Systems Design Implementation And Project Management

Authors: Albert K.W. Yeung, G. Brent Hall

1st Edition

1402053932, 978-1402053931

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago