资源管理器之资源计划

该博客介绍了如何在Oracle数据库中配置和激活资源计划`GISINFO_DAYTIME_PLAN`,用于公司业务中图形处理的资源分配。通过创建计划指令,为不同的资源组如AUTH_GROUP, DB_GROUP, OTHER_GROUPS, SDE_GROUP, SYS_GROUP设置了CPU使用率、并行度限制和最大空闲时间等参数,以优化系统性能。" 104721922,9195780,ES6 标签模板与 String.raw 使用详解,"['es6', 'javascript', '模板字符串', '字符串方法']
摘要由CSDN通过智能技术生成

BEGIN
--清除挂起内存区域
dbms_resource_manager.clear_pending_area();
--开辟挂起内存区域
dbms_resource_manager.create_pending_area();
--创建白天资源计划
dbms_resource_manager.create_plan('GISINFO_DAYTIME_PLAN','公司业务侧重图形');
--创建资源计划指令
dbms_resource_manager.create_plan_directive(
    plan=>'GISINFO_DAYTIME_PLAN',
    group_or_subplan=>'AUTH_GROUP',
    comment=>'',
    cpu_p1=>NULL,cpu_p2=>NULL,cpu_p3=>NULL,cpu_p4=>100,
    cpu_p5=>NULL,cpu_p6=>NULL,cpu_p7=>NULL,cpu_p8=>NULL,--CPU资源限制
   
parallel_degree_limit_p1=>NULL,--并行度限制
    active_sess_pool_p1=>NULL,--活动会话池限制
    queueing_p1=>NULL,--队列限制
    switch_group=>NULL,
    switch_time=>NULL,
    switch_estimate=>false,
    max_est_exec_time=>NULL,
    undo_pool=>NULL,--回滚池限制
    max_idle_time=>60,--最大空闲时间限制
    max_idle_blocker_time=>NULL,
    switch_time_in_call=>NULL
);
dbms_resource_manager.create_plan_directive(
    plan=>'GISINFO_DAYTIME_PLAN',
    group_or_subplan=>'DB_GROUP',
    comment=>'',
    cpu_p1=>NULL,cpu_p2=>NULL,cpu_p3=>100,cpu_p4=>NULL,
    cpu_p5=>NULL,cpu_p6=>NULL,cpu_p7=>NULL,cpu_p8=>NULL,
    parallel_degree_limit_p1=>NULL,
    active_sess_pool_p1=>NULL,
    queueing_p1=>NULL,
    switch_group=>NULL,
    switch_time=>NULL,
    switch_estimate=>false,
    max_est_exec_time=>NULL,
    undo_pool=>NULL,
    max_idle_time=>600,
    max_idle_blocker_time=>NULL,
    switch_time_in_call=>NULL
);
dbms_resource_manager.create_plan_directive(
    plan=>'GISINFO_DAYTIME_PLAN',
    group_or_subplan=>'OTHER_GROUPS',
    comment=>'',
    cpu_p1=>NULL,cpu_p2=>NULL,cpu_p3=>NULL,cpu_p4=>NULL,
    cpu_p5=>100,cpu_p6=>NULL,cpu_p7=>NULL,cpu_p8=>NULL,
    parallel_degree_limit_p1=>NULL,
    active_sess_pool_p1=>NULL,
    queueing_p1=>NULL,
    switch_group=>NULL,
    switch_time=>NULL,
    switch_estimate=>false,
    max_est_exec_time=>NULL,
    undo_pool=>NULL,
    max_idle_time=>600,
    max_idle_blocker_time=>NULL,
    switch_time_in_call=>NULL
);
dbms_resource_manager.create_plan_directive(
    plan=>'GISINFO_DAYTIME_PLAN',
    group_or_subplan=>'SDE_GROUP',
    comment=>'',
    cpu_p1=>NULL,cpu_p2=>100,cpu_p3=>NULL,cpu_p4=>NULL,
    cpu_p5=>NULL,cpu_p6=>NULL,cpu_p7=>NULL,cpu_p8=>NULL,
    parallel_degree_limit_p1=>NULL,
    active_sess_pool_p1=>NULL,
    queueing_p1=>NULL,
    switch_group=>NULL,
    switch_time=>NULL,
    switch_estimate=>false,
    max_est_exec_time=>NULL,
    undo_pool=>NULL,
    max_idle_time=>600,
    max_idle_blocker_time=>NULL,
    switch_time_in_call=>NULL
);
dbms_resource_manager.create_plan_directive(
    plan=>'GISINFO_DAYTIME_PLAN',
    group_or_subplan=>'SYS_GROUP',
    comment=>'',
    cpu_p1=>100,cpu_p2=>NULL,cpu_p3=>NULL,cpu_p4=>NULL,
    cpu_p5=>NULL,cpu_p6=>NULL,cpu_p7=>NULL,cpu_p8=>NULL,
    parallel_degree_limit_p1=>NULL,
    active_sess_pool_p1=>NULL,
    queueing_p1=>NULL,
    switch_group=>NULL,
    switch_time=>NULL,
    switch_estimate=>false,
    max_est_exec_time=>NULL,
    undo_pool=>NULL,
    max_idle_time=>NULL,
    max_idle_blocker_time=>NULL,
    switch_time_in_call=>NULL
);
--提交
dbms_resource_manager.submit_pending_area();
--激活资源计划
dbms_resource_manager.switch_plan(plan_name=>'GISINFO_DAYTIME_PLAN',sid=>'orcl');
END;

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值