TRANSACTION CONTROL LANGUAGE (TCL) and DATA CONTROL LANGUAGE (DCL)
35 programming challenges to help you master the fundamentals of DATABASE MANAGEMENT SYSTEM USING ORACLE.
Grant SELECT and INSERT privileges on EMP table to USER2.
(GRANT – MULTIPLE PRIVILEGES)
Grant SELECT privilege on EMP table to USER4 with GRANT OPTION.
(GRANT – WITH GRANT OPTION)
Grant UPDATE privilege only on SAL column of EMP table to USER5.
(GRANT – COLUMN LEVEL)
Grant INSERT privilege on EMP table to USER8 with the ability to grant further.
(GRANT – WITH GRANT OPTION)
Revoke INSERT and UPDATE privileges on EMP table from USER2.
(REVOKE – MULTIPLE PRIVILEGES)
Delete employees with salary less than 1000 and commit the transaction.
(COMMIT – DELETE)
Insert multiple records into DEPT table and commit them together.
(COMMIT – MULTIPLE OPERATIONS)
Perform multiple operations (INSERT, UPDATE, DELETE) and rollback all changes.
(ROLLBACK – MULTIPLE OPERATIONS)
Insert a new employee, update salary, and commit only after verifying results.
(TRANSACTION – COMMIT CONTROL)
Insert multiple employees, rollback one operation using SAVEPOINT, then commit remaining.
(TRANSACTION – SAVEPOINT + COMMIT)
Create a transaction where some operations are committed and others are rolled back.
(TRANSACTION – PARTIAL CONTROL)
Perform update on EMP table and rollback to a specific SAVEPOINT.
(TRANSACTION – ROLLBACK TO SAVEPOINT)
Grant privileges to a user, perform DML operations, and commit changes.
(GRANT + TRANSACTION)
Revoke privileges and verify access restrictions using EMP table.
(REVOKE – PRACTICAL SCENARIO)