Академический Документы
Профессиональный Документы
Культура Документы
Directions : Perform the following activity Managing roles by applying different type of privileges.
: Copy and paste the DEPARTMENTS table included in this activity.
: In each number add the PL/SQL used.
: Answer the questions ask in each number.
: Skipping a number would cause different output consider as incorrect answer.
1. What privilege should a user be given to log on to the Oracle server? Is this a system or an object
privilege?
__________________________________________________________________
2. What privilege should a user be given to create tables?
_____________________________________________________________________
3. If you create a table, who can pass along privileges to other users on your table?
_____________________________________________________________________
4. You are the DBA. You are creating many users who require the same system privileges.
What should you use to make your job easier?
_____________________________________________________________________
5. What command do you use to change your password?
_____________________________________________________________________
6. Connect
To iqlplus* using the following session:
Username: SYTEM
Password: oracle
7. Populate the given DEPARTMENTS table as shown below: Before proceedings to the next number
make sure to double check you should have 8 rows of values.
CS352-DBMS2-MAS Page 1
NAME: COURSE:
TITLE: Manage role and apply privileges USN ID:
MACHINE ACTIVITY NO. DATE:
CS352-DBMS2-MAS Page 2
NAME: COURSE:
TITLE: Manage role and apply privileges USN ID:
MACHINE ACTIVITY NO. DATE:
Is adding the new values when log-on as CLERK is possible? Why and why not?
_________________________________________________________________________________
18. Log-on as System then revoke all the object privilege given to SUPERVISOR.
ADD THE PL/SQL used here:
19. Log-on as Supervisor.
Create a report that will display all the DEPARTMENT_NAME whose location_id is equal to 1700.
Is creating a report possible? Why and why not?
Log-on as Clerk.
Create a report that will display all the manager_id whose location_id is equal to 2500.
Is creating a report possible? Why and why not?
20. Log-on as SYSTEM then delete all the users created to free-up some memory space.
ADD THE PL/SQL used here:
CS352-DBMS2-MAS Page 3