How do you view users granted permission in the password file?
Identify the users who have SYSDBA or SYSOPER privileges by querying the V$PWFILE_USERS view
How do you expand the number of users that can be contained in the password file?
Recreate the file with a larger users parameter and re-grant privs to users.
What does the password file grant access to?
The password file maintains a secure list of who has been granted the SYSDBA or SYSOPER privilege and allows them to connect as those users.
How to add users to password file:
GRANT SYSDBA (or SYSOPER) to username; User who is granting must be connected as SYSDBA.
How to create a password file.
Use orapwd, like”orapwd file=pswdfile entries=30”.
Set REMOTE_LOGIN_PASSWORDFILE to “None”, “Exclusive” (just this instance) or “Shared” for use across a RAC.
External authentication
Global Authentication
User Tablespaces
User Quotas
Default accounts
SYS and SYSTEM are created by default and are the only ones unlocked at DB creation if using DBCA.
- If not using DBCA, be sure to manually lock and expire all the other accounts at DB creation.
Kinds of Privileges
Table object privs
- ALTER, DEBUG, INDEX, REFERENCES
View object privs
SELECT, INSERT, UPDATE, DELETE, DEBUG, REFERENCES
Sequence object privs
SELECT (CURRVAL or NEXTVAL), ALTER
Code object privs
DEBUG, EXECUTE
Database sys privs
ALTER DATABASE, ALTER SYSTEM, AUDIT SYSTEM, AUDIT ANY, CREATE PLUGGABLE DATABASE
GRANT and REVOKE
GRANT priv1, priv2, privN TO user [WITH AMIN OPTION];
REVOKE priv1, privN FROM user;
Role Mgmt
Enforcing Least Privilege
Use the DBMS_PRIVILEGE_CAPTURE package to identify user privileges that have not been used so you can revoke them.
Controlling CPU and Memory Usage with Profiles
Controlling Password Security with Profiles
FAILED_LOGIN_ATTEMPTS [#] PASSWORD_LOCK_TIME [# days to lock after max login failures] PASSWORD_LIFE_TIME [# days] PASSWORD_GRACE_TIME [# days] PASSWORD_REUSE_TIME [# days] PASSWORD_REUSE_MAX [#] PASSWORD_VERIFY_FUNCTION [my_function]
Auditing (standard)