About Oracle's profiles

Source: Internet
Author: User
Tags database issues sessions

First, about Oracle's profiles

The profiles file is a configuration collection of password and resource restrictions, including CPU time, I/O usage, idle time, connection time, number of concurrent sessions, password policy, and so on resource usage profile can control session level or statement invocation level. Oracle's own default is much more unrestricted, and the profile is specified when the user is created.

Ii. Detailed profile parameters

  1. Sql> SELECT * from dba_profiles where profile=' DEFAULT ';
  2. Profile Resource_name Resource_type LIMIT
  3. ------------------------------ -------------------------------- ------------- ------------------------------------ ----
  4. DEFAULT Composite_limit KERNEL UNLIMITED
  5. DEFAULT Sessions_per_user KERNEL UNLIMITED
  6. DEFAULT cpu_per_session KERNEL UNLIMITED
  7. DEFAULT Cpu_per_call KERNEL UNLIMITED
  8. DEFAULT logical_reads_per_session KERNEL UNLIMITED
  9. DEFAULT Logical_reads_per_call KERNEL UNLIMITED
  10. DEFAULT idle_time KERNEL UNLIMITED
  11. DEFAULT connect_time KERNEL UNLIMITED
  12. DEFAULT PRIVATE_SGA KERNEL UNLIMITED
  13. DEFAULT failed_login_attempts PASSWORD
  14. DEFAULT password_life_time PASSWORD
  15. DEFAULT password_reuse_time PASSWORD UNLIMITED
  16. DEFAULT Password_reuse_max PASSWORD UNLIMITED
  17. DEFAULT password_verify_function PASSWORD NULL
  18. DEFAULT password_lock_time PASSWORD 1
  19. DEFAULT password_grace_time PASSWORD 7
  20. rows Selected
Sql> SELECT * from Dba_profiles where profile= ' DEFAULT '; Profile resource_name Resource_type LIMIT-------------------------------------- -----------------------------------------------------------------------------DEFAULT composite_li        MIT KERNEL Unlimiteddefault Sessions_per_user KERNEL                        Unlimiteddefault cpu_per_session KERNEL Unlimiteddefault        Cpu_per_call KERNEL Unlimiteddefault logical_reads_per_session                        KERNEL Unlimiteddefault Logical_reads_per_call KERNEL unlimiteddefault                     Idle_time KERNEL Unlimiteddefault Connect_time  KERNEL Unlimiteddefault PRIVATE_SGA                    KERNEL Unlimiteddefault failed_login_attempts PASSWORD 1 0DEFAULT password_life_time PASSWORD 180DEFAULT password_      Reuse_time PASSWORD Unlimiteddefault Password_reuse_max PASSWORD                        Unlimiteddefault password_verify_function PASSWORD Nulldefault Password_lock_time PASSWORD 1DEFAULT password_grace_time passwor D 716 Rows selected
Resource_parameter section (Resource_type=kernel):
1.session_per_user: Specifies the number of concurrent sessions that limit the user.
2.cpu_per_session: Specifies the Cpu time limit for the session, in 1% seconds.
3.cpu_per_call: Specifies the Cpu time limit for one invocation (parse, execute, and fetch) in 1% seconds.
4.connect_time: Specifies the total connection time, in minutes, for the session.
5.idle_time: Specifies the total time, in minutes, that the session is allowed to be continuously inactive, and the session will be disconnected.
6.logical_reads_per_session: Specifies the number of blocks of data that a session allows to read, including all blocks of data read from memory and disk.
7.logical_read_per_call: Specifies the maximum number of data blocks that are allowed to be read by the Execute SQL (parse, execute, and fetch) call at one time.
8.PRIVATE_SGA: Specifies the maximum amount of space, in bytes, that a session can allow to allocate in the shared pool (SGA).
9.composite_limit: Specifies the total resource consumption for a session, expressed in service units units. Password_parameter section (Resource_type=password):
1.failed_login_attempts: Specifies the maximum number of times that an attempt to log in is allowed before the account is locked out.
2.password_life_time: Specifies the number of days that the same password is allowed to use.
3.password_reuse_time and Password_reuse_max: These two parameters must be associated with each other, password_reuse_time specifies the number of days before the password cannot be reused.
The Password_reuse_max specifies the number of times the password has changed before the current password is reused. Two parameters must be set to an integer.
4.password_lock_time: Specifies the lockout time, in days, for the number of failed login attempts to reach payback.
5.password_grace_time: Specifies the number of days to expire, and the database issues a warning to the number of days before the login expires. If the database password is not modified in the middle, the expiration is invalidated.
6.password_verify_function: This field allows complex PL/SQL password validation scripts to be passed as parameters to the Create profile statement. The Oracle database provides a default script that
However, you can create your own validation rules or use third-party software validation. For a function name, specifying the name of the password validation rule, which is specified as NULL, means that the password verification feature is not used.


Iii. ExamplesCreate a custom profile
  1. CREATE Profile My_profile LIMIT
  2. Sessions_per_user UNLIMITED
  3. Cpu_per_session UNLIMITED
  4. Cpu_per_call 6000
  5. Connect_time 60
  6. Logical_reads_per_session DEFAULT
  7. Logical_reads_per_call 6000
  8. Composite_limit 6000000
  9. PRIVATE_SGA 66K
  10. Failed_login_attempts 6
  11. Password_life_time 60
  12. Password_reuse_time 60
  13. Password_reuse_max 5
  14. Password_lock_time 1/24
  15. Password_grace_time 10
CREATE profile My_profile limitsessions_per_user unlimitedcpu_per_session unlimitedcpu_per_call 6000CONNECT_TIME 60logical_reads_per_session defaultlogical_reads_per_call 6000composite_limit 6000000PRIVATE_SGA 66K   FAILED_ Login_attempts 6 Password_life_time 60password_reuse_time Password_reuse_max 5   
You can specify the profiles you want to use when you create a user
  1. Sql> Create user cancer identified by cancer default tablespace test temporary tablespace Temp  Profile My_profile;
  2. User created
  3. Sql> Select Username,profile from dba_users where username=' cancer ';
  4. USERNAME profile
  5. ------------------------------ ------------------------------
  6. Cancer My_profile
Sql> create user cancer identified by cancer default tablespace test temporary tablespace temp profile my_profile; User createdsql> Select Username,profile from dba_users where username= ' cancer '; USERNAME profile                       ------------------------------------------------------------cancer                         my_profile
or change its profiles for a user who has already created it
  1. sql> alter user cancer profile default;
  2. User Altered
  3. Sql> Select Username,profile from dba_users where username=' cancer ';
  4. USERNAME profile
  5. ------------------------------ ------------------------------
  6. Cancer DEFAULT

About Oracle's profiles

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.