Presentation is loading. Please wait.

Presentation is loading. Please wait.

Profile A profile is used to control the amount of system resources that the user is allowed to consume in the Oracle Database.

Similar presentations


Presentation on theme: "Profile A profile is used to control the amount of system resources that the user is allowed to consume in the Oracle Database."— Presentation transcript:

1 Profile A profile is used to control the amount of system resources that the user is allowed to consume in the Oracle Database.

2 CREATE PROFILE profile_name
[SESSIONS_PER_USER {INTEGER|UNLIMITED|DEFUALT}] [CPU_PER_SESSION {INTEGER|UNLIMITED|DEFUALT}] [CONNECT_TIME {INTEGER|UNLIMITED|DEFUALT}] [IDEL_TIME {INTEGER|UNLIMITED|DEFUALT}] [LOGICAL_READS_PER_SESSIONS [INTEGER|UNLIMITED|DEFUALT}] [LOGICAL_READS_PER_ CALL {INTEGER|UNLIMITED|DEFUALT}] [PRIVATE_SGA {INTEGER [K|M] | UNLIMITED|DEFUALT}] [FAILED_LOGIN_ATTEMPTS {INTEGER|UNLIMITED|DEFUALT}] [PASSWORD_LIFE_TIME {INTEGER|UNLIMITED|DEFUALT}] [PASSWORD_LOCK_TIME {INTEGER|UNLIMITED|DEFUALT}] [PASSWORD_GRACE_TIME {INTEGER|UNLIMITED|DEFUALT}] [PASSWORD_REUSE_TIME {INTEGER|UNLIMITED|DEFUALT}] [PASSWORD_REUSE_MAX {INTEGER|UNLIMITED|DEFUALT}]

3 Profile Note: If we specify default then limit specified in the DEFUALT profile will be used. For example, CREATE PROFILE TEST SESSIONS_PER_USER 2 IDEL_TIME 10 In above example, TEST profile defines a limit of 2 concurrent users and 10 minutes of inactivity to the profile.

4 Profile SESSIONS_PER_USER limits the number of concurrent users for a user. CPU_PER_SESSION limits the amount of CPU time that can be used in session (time is in milliseconds) CONNECT_TIME limits the total elapsed time (minutes) for a session IDEL_TIME limits the amount of continuous inactive time (minutes) during a session.

5 Profile LOGICAL_READS_PER_SESSIONS Limits the number of database blocks read in a session, including those read from memory and disk. LOGICAL_READS_PER_ CALL limits the number of database blocks read for a parse, execute, or fetch call. PRIVATE_SGA limits the amount of memory (in bytes) a session can allocate in the shared pool of SGA.

6 Profile FAILED_LOGIN_ATTEMPTS limits the number of failed login attempts allowed before the account is locked. PASSWORD_LIFE_TIME limits the lifetime of the password. The values specified in fractions of a day PASSWORD_LOCK_TIME specifies the number of days for which the account will be locked after failed login attempts.

7 Profile PASSWORD_GRACE_TIME specifies the number of days after the password has expired within which the user must change the password. PASSWORD_REUSE_TIME specifies the minimum number of days before same password can be reused. PASSWORD_REUSE_MAX specifies the number of password changes that must occur before the same password can be reused.

8 Prerequisites To create a profile, you must have the CREATE PROFILE system privilege

9 CREATE PROFILE app_user LIMIT
SESSIONS_PER_USER UNLIMITED CPU_PER_SESSION UNLIMITED CPU_PER_CALL CONNECT_TIME LOGICAL_READS_PER_SESSION DEFAULT LOGICAL_READS_PER_CALL PRIVATE_SGA K

10 If you assign the app_user profile to a user, the user is subject to the following limits in subsequent sessions: The user can have any number of concurrent sessions. In a single session, the user can consume an unlimited amount of CPU time. A single call made by the user cannot consume more than 30 seconds of CPU time. A single session cannot last for more than 45 minutes. In a single session, the number of data blocks read from memory and disk is subject to the limit specified in the DEFAULT profile. A single call made by the user cannot read more than 1000 data blocks from memory and disk. A single session cannot allocate more than 15 kilobytes of memory in the SGA. Since the app_user profile omits a limit for IDLE_TIME and for password limits, the user is subject to the limits on these resources specified in the DEFAULT profile.


Download ppt "Profile A profile is used to control the amount of system resources that the user is allowed to consume in the Oracle Database."

Similar presentations


Ads by Google