You are on page 1of 3

Managing Users 1. Create user Bob with a password of CRUSADER.

Make sure that any objects and temporary segments created by Bob are not created in the system tablespace. Also, ensure that Bob can log in and create objects up to one megabyte in size in USER_ORCL and INDX_ORCL tablespaces. Hint: Ensure that the temporary tablespace temp is assigned. Granct,connect role to Bob to create sessions. Ans)

2. Create a user Emi with a password of MARY. Make sure that any objects and sort segments created by Emi are not created in the system tablespace. Ans)

3. Display the information on Bob and Emi from the data dictionary. Hint: This can be obtained by querying DBA_USERS. Ans)

4. From the data dictionary, display the information on the amount of space that Bob can use in tablespaces. Hint: This can be obtained by querying DBA_TS_QUOTAS Ans)

5.

As user BOB change his temporary tablespace. What happens? Why? As Bob, change his password to SAM. As SYSTEM, remove Bobs quota on his default tablespace. Ans)

6. Remove Emis account from the database. Hint: Because Emi owns tables, you need to use the CASCADE option. Ans) DROP USER <USERNAME> CASCADE; 7. Bob has forgotten his password. Assign him a password of OLINK and require that Bob change his password the next time he logs on. Ans)

You might also like