Managing User Accounts Flashcards
What command is used to create a new user in Oracle Database 12c?
CREATE USER
True or False: User accounts in Oracle Database can only be created by users with the ADMIN privilege.
True
Fill in the blank: To grant a user the ability to connect to the database, you must use the command ____.
GRANT CONNECT
What is the default tablespace for a new user in Oracle Database 12c?
USER_DATA
Which command is used to modify an existing user account?
ALTER USER
What role must a user have to create other users?
DBA
True or False: A user can have multiple profiles in Oracle Database 12c.
False
What SQL command is used to drop a user from the Oracle Database?
DROP USER
Fill in the blank: The command to lock a user account is ____.
ALTER USER <username> ACCOUNT LOCK</username>
What is a user profile in Oracle Database 12c?
A set of limits and resource allocation settings for user accounts.
Which privilege allows a user to create other users?
CREATE USER
True or False: The password for a user account in Oracle Database must always be changed every 30 days.
False
What command would you use to unlock a user account?
ALTER USER <username> ACCOUNT UNLOCK</username>
Which view can be queried to see all users in the Oracle Database?
DBA_USERS
What does the command ‘GRANT DBA TO <username>' do?</username>
It grants the DBA role to the specified user.
Fill in the blank: The maximum number of failed login attempts is controlled by the ____ parameter.
PASSWORD_LOCK_TIME
What is the purpose of the ‘CREATE SESSION’ privilege?
It allows a user to connect to the Oracle Database.
True or False: Users can only be assigned to one role at a time.
False
What command would you use to change a user’s password?
ALTER USER <username> IDENTIFIED BY <new_password></new_password></username>
What does the ‘USER’ function return in Oracle Database?
The username of the current session.
Fill in the blank: The command to revoke a user’s privileges is ____.
REVOKE
What is the purpose of the ‘RESOURCE’ role?
It provides the necessary privileges for users to create and manage their own objects.
Which command can be used to view the current user’s privileges?
SELECT * FROM USER_SYS_PRIVS
True or False: User accounts can be created without specifying a default tablespace.
True