90 likes | 349 Views
OLTP. Lecture No. 18. Tuesday, November 1, 2000 “Transaction processing”. OLTP. CONTENTS Concurrency control Transactions and schedules Serializability Anomalies due to concurrency Locking/ Time stamping. Concurrency. User SYTEM and SYS users. Authority. Role Connect
E N D
OLTP Lecture No. 18 Tuesday, November 1, 2000 “Transaction processing”
OLTP CONTENTS • Concurrency control • Transactions and schedules • Serializability • Anomalies due to concurrency • Locking/ Time stamping
Concurrency User • SYTEM and SYS users
Authority Role • Connect (select, insert, update, delete, create tables) • Resource (Create tables, SP, triggers, indexes and clusters) • DBA (All system privileges, grant privileges, unlimited space quota )
Authority Grant • Granting system privileges grant role to user; grant CONNECT, RESOURCE to ARUL; • Granting object privileges grant priv on object to user; grant select on customerTable to ARUL;
Authority Guidelines 1. You cannot grant a privilege that you do not have 2. You cannot grant privileges on objects that you do not own. 3. You cannot grant privileges on objects for which you don’t have the authority to grant. 4. You cannot access objects for which you have not been granted privileges.
Authority Creating roles 1. Create role Create role CLERK; 2. Grant privileges to role grant create session to clerk; 3. Grant a role to users; grant clerk to ARUL; Teaser: Why should we create such roles
Dictionary Data dictionary • Stores information that is used to manage the objects in the database. • USER, ALL and DBA prefixes. • DICTIONARY table
Dictionary Examples • USER_OBJECTS • USER_TABLES • USER_VIEWS • USER_CONSTRAINTS • USER_INDEXES • USER_SOURCE • USER_USERS