User Management in Oracle
User Management in Oracle
md 2024-02-21
4. Creating Users
Create users with minimal or detailed parameters.
1/8
User Management in Oracle.md 2024-02-21
Managing Privileges
I. System Privileges
Creating Users
Grant quotas to users to allocate space for storing data in the database.
This provides access to insert data into databases.
Grant privileges to users with the admin option, allowing them to grant the same privileges to other
users.
GRANT CREATE SESSION, CREATE TABLE TO rupesh, rushme WITH ADMIN OPTION;
Object privileges can be granted by either the DBA or the owner of the object.
Grant select and insert privileges on the hr.employees table to david, rupesh, and rushme.
3/8
User Management in Oracle.md 2024-02-21
Granting the ALL privilege provides full admin privileges on the hr.employees table to david with the
grant option.
Revoking Privileges
I. Revoking System Privileges
Managing Roles
4/8
User Management in Oracle.md 2024-02-21
What is a Role?
A role is a collection of privileges that can be granted to users or other roles.
Roles simplify privilege management by allowing administrators to grant sets of privileges to users or
roles.
Concept of Role
Roles are used to manage and organize privileges in a hierarchical manner.
Roles can be assigned system privileges or object privileges, and they can also be assigned to other
roles.
Creating Roles
Roles are created using the CREATE ROLE statement.
Example:
Viewing Roles
Roles and their associated privileges can be viewed using system views.
Example:
-- Dictionary View
SELECT * FROM dba_role_privs
WHERE granted_role IN ('JR_MANAGER', 'SR_MANAGER','CHIEF_MANAGER')
ORDER BY grantee;
Managing Profiles
6/8
User Management in Oracle.md 2024-02-21
What is a Profile?
A profile is a set of resource limits and password parameters that can be assigned to database users.
Profiles control various aspects of user behavior and resource usage within the database.
Concept of Profile
Profiles are used to enforce security policies and resource management guidelines for database users.
They provide a way to control user access and resource consumption based on predefined criteria.
What it Controls
Profiles control parameters such as session limits, idle time, connect time, password expiration, and
failed login attempts.
These parameters help regulate user activity and resource utilization within the database.
What it Consists of
A profile consists of various limit settings and password parameters that define user behavior and
resource usage.
These settings specify the maximum allowed values for session-related parameters and password
policies.
File Type
Profiles are stored in the database's data dictionary as metadata.
They are managed internally by the database and do not correspond to physical files.
Creating Profile
Profiles are created using the CREATE PROFILE statement.
Example:
7/8
User Management in Oracle.md 2024-02-21
8/8