Oracle Database 12c Administrator (OCA)
1 Introduction to Oracle Database 12c
1-1 Overview of Oracle Database 12c
1-2 Oracle Database Architecture
1-3 Oracle Database Components
1-4 Oracle Database Installation
2 Oracle Database Administration
2-1 Database Creation and Configuration
2-2 Managing Tablespaces and Datafiles
2-3 Managing Users and Security
2-4 Managing Privileges and Roles
2-5 Managing Profiles
2-6 Managing Auditing
3 Oracle Database Storage Structures
3-1 Understanding Oracle Database Storage Structures
3-2 Managing Oracle Database Storage
3-3 Managing Oracle Database Segments
3-4 Managing Oracle Database Extents
3-5 Managing Oracle Database Blocks
4 Oracle Database Backup and Recovery
4-1 Introduction to Oracle Database Backup and Recovery
4-2 Oracle Database Backup Strategies
4-3 Oracle Database Recovery Strategies
4-4 Oracle Database Backup and Recovery Tools
4-5 Oracle Database Backup and Recovery Procedures
5 Oracle Database Performance Tuning
5-1 Introduction to Oracle Database Performance Tuning
5-2 Oracle Database Performance Tuning Tools
5-3 Oracle Database Performance Tuning Techniques
5-4 Oracle Database Performance Tuning Best Practices
6 Oracle Database High Availability
6-1 Introduction to Oracle Database High Availability
6-2 Oracle Database High Availability Features
6-3 Oracle Database High Availability Tools
6-4 Oracle Database High Availability Best Practices
7 Oracle Database Security
7-1 Introduction to Oracle Database Security
7-2 Oracle Database Security Features
7-3 Oracle Database Security Tools
7-4 Oracle Database Security Best Practices
8 Oracle Database Monitoring and Maintenance
8-1 Introduction to Oracle Database Monitoring and Maintenance
8-2 Oracle Database Monitoring Tools
8-3 Oracle Database Maintenance Tasks
8-4 Oracle Database Monitoring and Maintenance Best Practices
9 Oracle Database Cloud Services
9-1 Introduction to Oracle Database Cloud Services
9-2 Oracle Database Cloud Services Features
9-3 Oracle Database Cloud Services Tools
9-4 Oracle Database Cloud Services Best Practices
10 Oracle Database SQL and PLSQL
10-1 Introduction to Oracle Database SQL and PLSQL
10-2 Oracle Database SQL and PLSQL Syntax
10-3 Oracle Database SQL and PLSQL Functions
10-4 Oracle Database SQL and PLSQL Best Practices
11 Oracle Database Data Management
11-1 Introduction to Oracle Database Data Management
11-2 Oracle Database Data Management Tools
11-3 Oracle Database Data Management Techniques
11-4 Oracle Database Data Management Best Practices
12 Oracle Database Application Development
12-1 Introduction to Oracle Database Application Development
12-2 Oracle Database Application Development Tools
12-3 Oracle Database Application Development Techniques
12-4 Oracle Database Application Development Best Practices
Managing Profiles in Oracle Database 12c

Managing Profiles in Oracle Database 12c

1. Understanding Profiles

In Oracle Database 12c, a profile is a set of resource limits and password management rules that can be assigned to database users. Profiles help in controlling the use of system resources and enforcing password policies, ensuring that users adhere to predefined limits and security standards.

2. Key Concepts

Resource Limits

Resource limits define the maximum amount of CPU time, logical reads, and other system resources that a user can consume. These limits help prevent any single user from monopolizing the database resources, ensuring fair usage across all users.

Example: If you set a CPU time limit of 10 seconds for a user profile, any query executed by a user with that profile will automatically terminate if it exceeds 10 seconds, preventing it from hogging the CPU resources.

Password Management

Password management rules in profiles include settings for password complexity, expiration, and lockout policies. These rules enhance security by ensuring that users create strong passwords and change them periodically.

Example: A profile might require users to create passwords with at least 8 characters, including uppercase, lowercase, numbers, and special characters. It might also mandate that passwords expire every 90 days and lock the account after 3 failed login attempts.

3. Creating and Assigning Profiles

Creating a Profile

To create a profile, you use the CREATE PROFILE statement. This statement allows you to specify resource limits and password management rules for the profile.

Example: The following SQL statement creates a profile named "UserProfile" with a CPU time limit of 10 seconds and a password expiration of 90 days:

CREATE PROFILE UserProfile LIMIT
    CPU_PER_SESSION 10000
    PASSWORD_LIFE_TIME 90;
        

Assigning a Profile to a User

Once a profile is created, it can be assigned to a user during the user creation process or later using the ALTER USER statement.

Example: The following SQL statement assigns the "UserProfile" to a user named "JohnDoe":

ALTER USER JohnDoe PROFILE UserProfile;
        

4. Monitoring and Managing Profiles

Monitoring Profile Usage

Oracle provides several dynamic performance views and data dictionary views to monitor profile usage. These views help in tracking resource consumption and ensuring that profiles are effectively managing user activities.

Example: You can use the V$SESSION view to monitor the current session resource usage and verify if any sessions are approaching their resource limits.

Modifying and Dropping Profiles

Profiles can be modified using the ALTER PROFILE statement to update resource limits or password rules. If a profile is no longer needed, it can be dropped using the DROP PROFILE statement.

Example: The following SQL statement modifies the "UserProfile" to increase the CPU time limit to 20 seconds:

ALTER PROFILE UserProfile LIMIT
    CPU_PER_SESSION 20000;
        

To drop the profile, you would use:

DROP PROFILE UserProfile;
        

By understanding and effectively managing profiles, you can ensure that your Oracle Database 12c environment is secure, resource-efficient, and compliant with organizational policies.