广告
返回顶部
首页 > 资讯 > 数据库 >profile的resource limits和资源计划resource_manager_plan的limit
  • 953
分享到

profile的resource limits和资源计划resource_manager_plan的limit

2024-04-02 19:04:59 953人浏览 泡泡鱼
摘要

profile 使用参数RESOURCE_LIMIT  RESOURCE_LIMIT determines whether resource limits are enforced in data

profile
使用参数RESOURCE_LIMIT 
RESOURCE_LIMIT determines whether resource limits are enforced in database profiles
RESOURCE_LIMIT决定是否在数据库概要文件中执行资源限制
Resource limits for passWords work even with resource_limit = false
即使resource_limit = false, password的资源限制也会生效
该参数为false的话,发现FaiLED_LOGIN_ATTEMPTS是正常生效的,即输入10次密码就定用户。

resource parameters有16个参数,见如上sql查询的resource_name 
SELECT resource_name FROM dba_profiles where profile='DEFAULT' order by 1;

SESSioNS_PER_USER:pecify the number of concurrent sessions to which you want to limit the user.
限制每个用户所允许建立的最大并发会话数。

CPU_PER_SESSION:Specify the CPU time limit for a session, expressed in hundredth of seconds.
限制每个会话所能使用的CPU 时间。参数值是一个整数,单位是百分之一秒。

CPU_PER_CALL:Specify the CPU time limit for a call (a parse, execute, or fetch), expressed in hundredths of seconds.
用于指定每条SQL 语句可占用的最大CPU 时间,单位是百分之一秒。

CONNECT_TIME:Specify the total elapsed time limit for a session, expressed in minutes.
限制每个会话能连接到数据库的最长时间,超过这个时间会话将自动断开。参数值是一个整数,单位是分钟。

IDLE_TIME:Specify the permitted periods of continuous inactive time during a session, expressed in minutes. Long-running queries and other operations are not subject to this limit.
限制每个会话所允许的最长连续空闲时间,超过这个时间会话将自动断开。参数值是一个整数,单位是分钟。

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 区大小(以字节为单位)。该参数只对共享服务器模式有效。

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 of CPU_PER_SESSION, CONNECT_TIME, LOGICAL_READS_PER_SESSION, and PRIVATE_SGA.
指定以服务单位表示的会话的总资源成本。Oracle数据库将总服务单元计算为CPU_PER_SESSION、CONNECT_TIME、LOGICAL_READS_PER_SESSION和PRIVATE_SGA的加权和。

剩下密码相关的7个
FAILED_LOGIN_ATTEMPTS  
PASSWORD_LIFE_TIME  
PASSWORD_REUSE_TIME
PASSWORD_REUSE_MAX  
PASSWORD_LOCK_TIME  
PASSWORD_GRACE_TIME  
PASSWORD_VERIFY_FUNCTION  





RESOURCE_MANAGER_PLAN,对应包dbms_resource_manager
一个plan里面可以看到哪些consumer groups调用了这个plan
一个consumer groups里面可以看到有哪几个用户

使用参数RESOURCE_MANAGER_PLAN
RESOURCE_MANAGER_PLAN specifies the top-level resource plan to use for an instance.
The resource manager will load this top-level plan along with all its descendants(subplans, directives, and consumer groups). If you do not specify this parameter, the resource manager is off by default.
RESOURCE_MANAGER_PLAN指定要为一个实例使用的top-level资源计划
资源管理器将与它的所有后代一起加载这个top-level计划(子计划、指示和消费者组)。如果不指定此参数,则资源管理器默认是关闭的。
RESOURCE_MANAGER_PLAN = plan_name

主要有如下红色字体的5个参数类,每个参数类有具体的参数配置
Parallelism:Specify a limit on the degree of parallelism for any operation issued by this consumer group, a limit on the total number of parallel servers that can be used by all sessions in this consumer group, and the maximum time a parallel statement can be queued.
Max Degree of Parallelism
Max Percentage of Parallel Servers Target
Parallel Queue Timeout
并行性:指定此消费者组发出的任何操作的并行度的限制、此消费者组中所有会话可以使用的并行服务器的总数的限制,以及并行语句可以排队的最长时间。
主要有如下三个参数
最大并行度
目标服务器的最大并行度百分比
并行队列超时时间

Session Pool:Specify a limit on the maximum number of concurrently active sessions for a consumer group. All other sessions will wait in an activation queue.
Max Number of Active Sessions
Activation Queue Timeout(sec)
会话池:指定消费者组当前活动会话的最大会话数。所有其他会话将在激活队列中等待。
主要有如下两个参数
活动会话的最大数量
激活队列超时时间,单位秒

Undo Pool:Specify the maximum amount of undo that can be active and uncommitted for a consumer group.
Max Undo Space(KB) 
回滚池:指定活动和未提交的消费者组的最大回滚数量。
主要有如下参数
最大回滚空间,单位KB

Thresholds:Specify the time duration or the resource limits under which a session can execute in a consumer group. If any of the limits are exceeded, the session can be switched to another consumer group, the session's SQL operation can be canceled, or the session can be killed.
Execution Time Limit (Sec)
I/O Limit (MB)
I/O Request Limit (Requests)
阈值:指定一个消费者组的会话时间或资源限制。如果超出了任何限制,会话可以切换到另一个使用者组,会话的SQL操作可以被取消,或者会话可以被杀死。
主要参数有如下三个
执行时间限制,单位秒
I/O限制,单位MB
I/O请求限制,单位次数

Idle Time:Specify the maximum time a session in the consumer group can be idle.
Max Idle Time (sec)
Max Idle Time if Blocking Another Session (sec)
空闲时间:指定的消费者组的会话的最大空闲时间。
主要参数有如下两个
最大空闲时间,单位秒
阻塞另一个会话时的最大空闲时间,单位秒


两者相同的地方,只有Idle Time这项。profile针对使用这个profile的用户,RESOURCE_MANAGER_PLAN针对使用这个plan的某个Consumer Group中的用户

您可能感兴趣的文档:

--结束END--

本文标题: profile的resource limits和资源计划resource_manager_plan的limit

本文链接: https://www.lsjlt.com/news/47423.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作