概述
下面是创建概要文件的语法:
create_profile::=
- CREATE PROFILE profile
- LIMIT { resource_parameters
- | password_parameters
- }...
- ;
- { { SESSIONS_PER_USER
- | CPU_PER_SESSION
- | CPU_PER_CALL
- | CONNECT_TIME
- | IDLE_TIME
- | LOGICAL_READS_PER_SESSION
- | LOGICAL_READS_PER_CALL
- | COMPOSITE_LIMIT
- }
- { integer | UNLIMITED | DEFAULT }
- | PRIVATE_SGA
- { size_clause | UNLIMITED | DEFAULT }
- }
- { { FAILED_LOGIN_ATTEMPTS
- | PASSWORD_LIFE_TIME
- | PASSWORD_REUSE_TIME
- | PASSWORD_REUSE_MAX
- | PASSWORD_LOCK_TIME
- | PASSWORD_GRACE_TIME
- }
- { expr | UNLIMITED | DEFAULT }
- | PASSWORD_VERIFY_FUNCTION
- { function | NULL | DEFAULT }
- }
1.限制数据库系统相关资源的参数( resource_parameters)
SESSIONS_PER_USER : Specify the number of concurrent sessions to which you want to limit the user(指定你想限制的并发用户的数量). CPU_PER_SESSION : CPU_PER_CALL : CONNECT_TIME : IDLE_TIME : LOGICAL_READS_PER_SESSION Specify the permitted number of data blocks read in a session, including blocks read from memory and disk.(指定每个会话可以读取的最大数据块数量,数据块包括逻辑块和物理块) LOGICAL_READS_PER_CALL Specify the permitted number of data blocks read for a call to process a SQL statement (a parse, execute, or fetch). (每次执行一个SQL语句最大可以调用的数据块数量) PRIVATE_SGA Specify the amount of private space a session can allocate in the shared pool of the system global area (SGA). Refer to size_clause for information on that clause.(在SGA的共享池中为每个会话指定私有空间的最大容量) Note: This limit applies only if you are using shared server architecture. The private space for a session in the SGA includes private SQL and PL/SQL areas, but not shared SQL and PL/SQL areas.COMPOSITE_LIMIT Specify the total resource cost for a session, expressed in service units. Oracle Database calculates the total service units as a weighted sum ofCPU_PER_SESSION, CONNECT_TIME, LOGICAL_READS_PER_SESSION, and PRIVATE_SGA.(每个会话的资源成本限制) |
2. 数据库用户口令及验证的相关参数(password_parameters)
Use the following clauses to set password parameters. Parameters that set lengths of time—that is, all the password parameters exceptFAILED_LOGIN_ATTEMPTS and PASSWORD_REUSE_MAX—are interpreted in number of days. For testing purposes you can specify minutes (n/1440) or even seconds (n/86400) for these parameters. You can also use a decimal value for this purpose (for example .0833 for approximately one hour). The minimum value is 1 second. The maximum value is 24855 days. For FAILED_LOGIN_ATTEMPTS and PASSWORD_REUSE_MAX, you must specify an integer. FAILED_LOGIN_ATTEMPTS Specify the number of consecutive failed attempts to log in to the user account before the account is locked. If you omit this clause, then the default is 10 times. PASSWORD_LIFE_TIME Specify the number of days the same password can be used for authentication. If you also set a value for PASSWORD_GRACE_TIME, then the password expires if it is not changed within the grace period, and further connections are rejected. If you omit this clause, then the default is 180 days. See Also: Oracle Database Security Guide for information on setting PASSWORD_LIFE_TIME to a low value PASSWORD_REUSE_TIME and PASSWORD_REUSE_MAX These two parameters must be set in conjunction with each other. PASSWORD_REUSE_TIME specifies the number of days before which a password cannot be reused. PASSWORD_REUSE_MAX specifies the number of password changes required before the current password can be reused. For these parameter to have any effect, you must specify a value for both of them.
PASSWORD_LOCK_TIME Specify the number of days an account will be locked after the specified number of consecutive failed login attempts. If you omit this clause, then the default is 1 day. PASSWORD_GRACE_TIME Specify the number of days after the grace period begins during which a warning is issued and login is allowed. If you omit this clause, then the default is 7 days. PASSWORD_VERIFY_FUNCTION The PASSWORD_VERIFY_FUNCTION clause lets a PL/SQL password complexity verification script be passed as an argument to the CREATEPROFILE statement. Oracle Database provides a default script, but you can create your own routine or use third-party software instead.
|
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30150152/viewspace-1537418/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30150152/viewspace-1537418/
最后
以上就是淡淡煎蛋为你收集整理的ORACLE概要文件PROFILE的全部内容,希望文章能够帮你解决ORACLE概要文件PROFILE所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复