January 2012
Intermediate to advanced
542 pages
11h 28m
English
In this recipe we will see more details on locking and, specifically, on deadlocks .
In this recipe we will use two SQL*Plus sessions, to simulate two users concurrently accessing the database.
This recipe deals wits transactions and concurrency. Follow these steps:
SESSION 1 to the database as SH user:-- SESSION 1 CONNECT sh@TESTDB/sh
CUSTOMERS table in SESSION 1:UPDATE CUSTOMERS SET CUST_FIRST_NAME = 'TEST1-1' WHERE CUST_ID = 26;
SESSION 2 to the database as SH user:-- SESSION 2 CONNECT sh@TESTDB/sh
CUSTOMERS table in SESSION 2, different from the one updated in step 2 by SESSION 1:UPDATE CUSTOMERS SET CUST_FIRST_NAME ...
Read now
Unlock full access