Profile Management
Profile Management
Profile Management
================================
http://www.orafaq.com/wiki/Profiles_and_password_management
http://www.siue.edu/~dbock/cmis565/module13-profile_resource.htm
1 What is Profile
2 Benefits of Profile
3 Resource Parameters
4 Creating Profile
5 Assigning Profile
6 Altering Profile
7 Dropping Profile
8 Password Management
9 Password Parameters
10 Enabling Password Management
11 Restrictions on password parameters
12 How profiles are stored
13 Examples
What is Profile ?
Restrict database usage by a system user – profiles restrict users from performing
operations that exceed reasonable resource utilization. Examples of resources that
need to be managed:
Enforce password practices – how user passwords are created, reused, and
validated.
Profiles are assigned to users as part of the CREATE USER or ALTER USER
commands.
alter profile
create profile
drop profile
Benefits of Profile
===================
You can enforce a limit on resource utilization using resource limit parameters.
Also you can maintain database security by using password management feature.
Resource Parameters
===================
Creating Profile
================
Profiles only take effect when resource limits are "turned on" for the database as
a whole.
RESOURCE_LIMIT = TRUE
Profile created.
NOTE:
Now I'm creating a test user to check the functionality of this profile.
User created.
User altered.
With the above statement i assigned the profile my_profile to user Michel.
I already opened 2 sessions with the user name Michel but when i tried for third
session it throws this error.
sqlplus Michel
SQL*Plus: Release 11.1.0.6.0 - Production on Mon Nov 26 15:57:23 2007
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Enter password:
ERROR:
ORA-02391: exceeded simultaneous SESSIONS_PER_USER limit
Because i was idle more than 5 min so thats why Oracle server kill mine session.
Assigning Profile
=================
Profile can be assign in two ways either during USER creation or by using ALTER
statement.
Case 1:
USERNAME PROFILE
------------------------------ --------------
ORAFAQ MY_PROFILE
CASE 2:
Altering Profile
================
Profiles can be altered with the ALTER PROFILE command. • A DBA must have the ALTER
PROFILE system privilege to use this command. • When a profile limit is adjusted,
the new setting overrides the previous setting for the limit, but these changes do
not affect current sessions in process. See the example below
Dropping Profile
================
Profiles no longer required can be dropped with the DROP PROFILE command.
ERROR at line 1:
ORA-02382: profile ACCOUNTANT has users assigned, cannot drop without CASCADE
Password Management
===================
Password Parameters
===================
Profiles can be viewed via the DBA_PROFILE views (available only with DBA role):
There are only two RESOURCE TYPEs, "KERNEL" and "PASSWORD"; and 16 RESOURCE NAMEs
which can be given a limit; the limit in the DEFAULT profile is written in the 3rd
column (as of 11gR2):
FAILED_LOGIN_ATTEMPTS PASSWORD 10
PASSWORD_GRACE_TIME PASSWORD 7
PASSWORD_LIFE_TIME PASSWORD UNLIMITED
PASSWORD_LOCK_TIME PASSWORD 1
PASSWORD_REUSE_MAX PASSWORD UNLIMITED
PASSWORD_REUSE_TIME PASSWORD UNLIMITED
PASSWORD_VERIFY_FUNCTION PASSWORD NULL