Tải bản đầy đủ (.ppt) (25 trang)

Managing Password Security and Resources pot

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (152.48 KB, 25 trang )

14
Copyright © Oracle Corporation, 2002. All rights reserved.
Managing Password Security
and Resources
14-2
Copyright © Oracle Corporation, 2002. All rights reserved.
Objectives
After completing this lesson, you should be able to do
the following:

Manage passwords using profiles

Administer profiles

Control use of resources using profiles

Obtain password and resource limit information
14-3
Copyright © Oracle Corporation, 2002. All rights reserved.
Profiles

A profile is a named set of password and resource
limits.

Profiles are assigned to users by the CREATE USER
or ALTER USER command.

Profiles can be enabled or disabled.

Profiles can relate to the DEFAULT profile.
14-5


Copyright © Oracle Corporation, 2002. All rights reserved.
User
Password
expiration
and aging
Password
verification
Password
history
Account
locking
Setting up
profiles
Password Management
14-6
Copyright © Oracle Corporation, 2002. All rights reserved.

Set up password management by using profiles and
assigning them to users.

Lock, unlock, and expire accounts using the CREATE
USER or ALTER USER command.

Password limits are always enforced.

To enable password management, run the
utlpwdmg.sql script as the user SYS.
Enabling Password Management
14-7
Copyright © Oracle Corporation, 2002. All rights reserved.

Password Account Locking
Parameter
Number of failed login attempts
before lockout of the account
Number of days the account is
locked after the specified number
of failed login attempts
FAILED_LOGIN_ATTEMPTS
PASSWORD_LOCK_TIME
Description
14-8
Copyright © Oracle Corporation, 2002. All rights reserved.
Parameter
Lifetime of the password in days
after which the password expires
Grace period in days for changing
the password after the first
successful login after the password
has expired
PASSWORD_LIFE_TIME
PASSWORD_GRACE_TIME
Parameter
Password Expiration and Aging
14-9
Copyright © Oracle Corporation, 2002. All rights reserved.
Password History
Parameter
Number of days before a
password can be reused
Maximum number of changes

required before a password
can be reused
PASSWORD_REUSE_TIME
PASSWORD_REUSE_MAX
Description
14-10
Copyright © Oracle Corporation, 2002. All rights reserved.
Password Verification
Parameter
PL/SQL function that performs a
password complexity check
before a password is assigned
PASSWORD_VERIFY_FUNCTION
Description
14-11
Copyright © Oracle Corporation, 2002. All rights reserved.
User-Provided Password Function
This function must be created in the SYS schema and
must have the following specification:
function_name(
userid_parameter IN VARCHAR2(30),
password_parameter IN VARCHAR2(30),
old_password_parameter IN VARCHAR2(30))
RETURN BOOLEAN
14-12
Copyright © Oracle Corporation, 2002. All rights reserved.
Password Verification Function
VERIFY_FUNCTION

Minimum length is four characters.


Password should not be equal to username.

Password should have at least one alphabetic, one
numeric, and one special character.

Password should differ from the previous password
by at least three letters.
14-13
Copyright © Oracle Corporation, 2002. All rights reserved.
CREATE PROFILE grace_5 LIMIT
FAILED_LOGIN_ATTEMPTS 3
PASSWORD_LOCK_TIME UNLIMITED
PASSWORD_LIFE_TIME 30
PASSWORD_REUSE_TIME 30
PASSWORD_VERIFY_FUNCTION verify_function
PASSWORD_GRACE_TIME 5;
Creating a Profile:
Password Settings
14-17
Copyright © Oracle Corporation, 2002. All rights reserved.
ALTER PROFILE default LIMIT
FAILED_LOGIN_ATTEMPTS 3
PASSWORD_LIFE_TIME 60
PASSWORD_GRACE_TIME 10;
Altering a Profile: Password Setting
Use ALTER PROFILE to change password limits.
14-19
Copyright © Oracle Corporation, 2002. All rights reserved.
DROP PROFILE developer_prof;

DROP PROFILE developer_prof CASCADE;
Dropping a Profile: Password Setting

Drop the profile using DROP PROFILE command.

DEFAULT profile cannot be dropped.

CASCADE revokes the profile from the user to whom
it was assigned.
14-21
Copyright © Oracle Corporation, 2002. All rights reserved.
Resource Management

Resource management limits can be enforced at the
session level, the call level, or both.

Limits can be defined by profiles using the CREATE
PROFILE command.

Enable resource limits with the:

RESOURCE_LIMIT initialization parameter

ALTER SYSTEM command
14-22
Copyright © Oracle Corporation, 2002. All rights reserved.
Enabling Resource Limits

Set the initialization parameter RESOURCE_LIMIT to
TRUE.


Enforce the resource limits by enabling the
parameter with the ALTER SYSTEM command.
ALTER SYSTEM SET RESOURCE_LIMIT=TRUE;
14-23
Copyright © Oracle Corporation, 2002. All rights reserved.
Resource
CPU_PER_SESSION
SESSIONS_PER_USER
CONNECT_TIME

IDLE_TIME
LOGICAL_READS_PER
_SESSION
PRIVATE_SGA
Description
Total CPU time measured in
hundredths of seconds
Number of concurrent sessions
allowed for each username
Elapsed connect time measured
in minutes
Periods of inactive time measured
in minutes
Number of data blocks (physical
and logical reads)
Private space in the SGA
measured in bytes (for Shared
Server only)
Setting Resource Limits

at Session Level
14-24
Copyright © Oracle Corporation, 2002. All rights reserved.
Resource
CPU_PER_CALL
LOGICAL_READS_PER_CALL
Description
CPU time per call in
hundredths of seconds
Number of data blocks that
can be read per call
Setting Resource Limits
at Call Level
14-25
Copyright © Oracle Corporation, 2002. All rights reserved.
CREATE PROFILE developer_prof LIMIT
SESSIONS_PER_USER 2
CPU_PER_SESSION 10000
IDLE_TIME 60
CONNECT_TIME 480;
Creating a Profile:
Resource Limit
14-28
Copyright © Oracle Corporation, 2002. All rights reserved.
Managing Resources Using the
Database Resource Manager

Provides the Oracle server with more control over
resource management decisions


Elements of the Database Resource Manager:

Resource consumer group

Resource plan

Resource allocation method

Resource plan directives

Uses the DBMS_RESOURCE_MANAGER package to create
and maintain elements

Requires ADMINISTER_RESOURCE_MANAGER privilege
14-29
Copyright © Oracle Corporation, 2002. All rights reserved.
Managing Resources Using the
Database Resource Manager

Resource plans specify the resource consumer
groups belonging to the plan.

Resource plans contain directives for how to allocate
resources among consumer groups.
14-31
Copyright © Oracle Corporation, 2002. All rights reserved.
Resource Plan Directives
The Database Resource Manager provides several
means of allocating resources:


CPU method

Active session pool and queuing

Degree of parallelism limit

Automatic consumer group switching

Maximum estimated execution time

Undo quota
14-33
Copyright © Oracle Corporation, 2002. All rights reserved.
Obtaining Password and
Resource Limit Information
Information about password and resource limits can be
obtained by querying the following views:

DBA_USERS

DBA_PROFILES
14-35
Copyright © Oracle Corporation, 2002. All rights reserved.
Summary
In this lesson, you should have learned how to:

Administer passwords

Administer profiles


Obtain password and resource limit information
14-36
Copyright © Oracle Corporation, 2002. All rights reserved.
Practice 14 Overview
This practice covers the following topics:

Enabling password management

Defining profiles and assigning to users

Disabling password management

×