Professional Documents
Culture Documents
Grand Assignment
Grand Assignment
Program BS(SE)/BS(CS)
Semester Fall 2022
Assignment
Q1) Make a new user named after your name and set your id as password. (Hint: user: ali
password:12345)
Q2) Grant necessary privileges to the user you’ve created. (Hint: create table, create session etc
don’t use grant all command)
Q3) Now connect to the user you’ve have created and make tables with following structure.
Student_info (s_id , s_name , s_semester );
Departments ( dept _no , dept_ name , dept_location,s_id );
Subjects ( sbj_id , sbj_name , sjb_CrHrs,s_id );
Note: s_id, dept_no and Sbj_id are primary keys, s_id is a foreign key in other tables. No
attribute is allowed to take NULL values.
Q5) Insert records into the tables you’ve created (Atleast 5 rows in each).
Q7) Take back the schema to the savepoint you have created.
Q9) Create a public synonym and insert data into tables using another user.(i.e ali1
password:12345)
Q11) Revoke all the privileges you have granted to user and then delete the user as well but
before that show all the privileges granted to that user.