ITPub博客

首页 > 数字化转型 > ERP > 通过user profile限制管理帐号的资源使用

通过user profile限制管理帐号的资源使用

原创 ERP 作者:cccgw 时间:2009-12-21 11:41:30 0 删除 编辑

通过user profile限制管理帐号的资源使用,

create profile admin_user limit

sessions_per_user 50

cpu_per_session unlimited

cpu_per_call 3000

connect_time 30

idle_time 20

logical_reads_per_session default

logical_reads_per_call 1000;

alter user admin profile admin_user;

alter system set resource_limit=true scope=both;

每个参数的含义如下

[@more@]

How To Calculate The Blocks Used In A Query To Configure LOGICAL_READS_PER_CALL [ID 872133.1]

       Session_per_user:指定限制用户的并发会话的数目。
       Cpu_per_session:指定会话的CPU时间限制,单位为百分之一秒。
       Cpu_per_call:the maximum CPU time for a call, a parse, execute, or fetch, 单位为百分之一秒。
       Connect_time:指定会话的总的连接时间,以分钟为单位。
       Idle_time:指定会话允许连续不活动的总的时间,以分钟为单位,超过该时间,会话将断开。但是长时间运行查询和其他操作的不受此限制。
       Logical_reads_per_session:指定一个会话允许读的数据块的数目,包括从内存和磁盘读的所有数据块。
       Logical_read_per_call:指定一次执行SQL(解析、执行和提取)调用所允许读的数据块的最大数目。
       Private_sga:指定一个会话可以在共享池(SGA)中所允许分配的最大空间,以字节为单位。(该限制只在使用共享服务器结构时才有效,会话在SGA中的私有空间包括私有的SQL和PL/SQL,但不包括共享的SQL和PL/SQL)。
       Composite_limit:指定一个会话的总的资源消耗,以service units单位表示。Oracle数据库以有利的方式计算 cpu_per_session,connect_time,logical_reads_per_session和private-sga总的 service units

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/668365/viewspace-1029854/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-08-27

  • 博文量
    82
  • 访问量
    1035049