Docsity

database documents of study, Lab Reports of Database Management Systems (DBMS)

Partial preview of the text

Download database documents of study and more Lab Reports Database Management Systems (DBMS) in PDF only on Docsity!

DCL

DCL (Data Control Language)

Commands

  • (^) The rights or permissions assigned to user(s) to use some or all of Oracle objects are known as privileges.
  • (^) Granting Privileges:
  • (^) It is used to assigning permissions to users. (Only DBA can assign)
  • (^) Syntax: grant โ€˜ select, insert, delete, update
  • (^) on <object_name>
  • (^) to ;
  • (^) Eg. grant insert on emp to user1; โ€˜ only user1 can insert
  • (^) grant all on emp to public; โ€˜ assign all permissions to all users.

Create DB

Login as DBA User name=./sysdba **>>create user use_name identified by user_password; e.g create user ali identified by pwd;

Grant connect,resource to ali; Conn ali; Now start creating tables in your DB**