User Account Management
User Account Management
LinkedIn: www.linkedln.com/in/stephen-njoroge
Here's a comprehensive guide to creating a user account in Oracle Database, including setting quotas, profiles and
privileges.
sqlplus / as sysdba
2
User Account Management
PASSWORD_LOCK_TIME 1
PASSWORD_GRACE_TIME 7;
Basic privileges:
Additional privileges
GRANT CREATE TABLE, CREATE VIEW, CREATE PROCEDURE, CREATE SEQUENCE TO itop_user;
GRANT UNLIMITED TABLESPACE TO itop_user; -- Alternative to quotas
3
User Account Management
Role-based approach:
SELECT
username, account_status, default_tablespace, temporary_tablespace, profile
FROM dba_users
WHERE username = 'ITOP_USER';
-- Check quotas
SELECT tablespace_name, bytes/1024/1024 MB, max_bytes/1024/1024 max_MB
FROM dba_ts_quotas
WHERE username = 'ITOP_USER';
4
User Account Management
-- Check privileges
SELECT * FROM dba_sys_privs WHERE grantee = 'ITOP_USER';
5
User Account Management
Step 7: Set Password Policies
6
User Account Management
Step 10: Connect as the New User
CONNECT itop_user/newsecure456#@itopuat
7
User Account Management