Bo's Oracle Station

查看: 1809|回复: 0

资源消费者组,课程第65次(2017-03-17星期五)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-3-17 23:35:27 | 显示全部楼层 |阅读模式
上完1Z0-053第16章(资源消费者组)
1Z0-052共19章(上完19章),1Z0-053共21章(上完21章),1Z0-063多租户部分共9章(上完0章)
总共上完全部49章中的40章
  1. begin
  2.    dbms_resource_manager.create_simple_plan('plan2','group1',60,'group2', 40 );
  3. end;

  4.    select  * from dba_rsrc_plans  d
  5.     where d.plan in ('PLAN1', 'PLAN2','PLAN3') ;
  6.   

  7. BEGIN
  8. dbms_resource_manager.clear_pending_area();
  9. dbms_resource_manager.create_pending_area();
  10. dbms_resource_manager.create_plan(plan => 'plan3',comment => 'plan3',cpu_mth => 'RATIO');
  11. dbms_resource_manager.create_plan_directive(
  12.     plan => 'plan3',
  13.     group_or_subplan => 'group1',
  14.     comment => 'group1',
  15.     mgmt_p1 => 10
  16. );
  17. dbms_resource_manager.create_plan_directive(
  18.     plan => 'plan3',
  19.     group_or_subplan => 'group2',
  20.     comment => 'group2',
  21.     mgmt_p1 => 5
  22. );
  23. dbms_resource_manager.create_plan_directive(
  24.     plan => 'plan3',
  25.     group_or_subplan => 'sys_group',
  26.     comment => 'sys_group',
  27.     mgmt_p1 => 8
  28. );
  29. dbms_resource_manager.create_plan_directive(
  30.     plan => 'plan3',
  31.     group_or_subplan => 'other_groups',
  32.     comment => 'other_groups',
  33.     mgmt_p1 => 2
  34. );

  35. dbms_resource_manager.create_plan_directive(
  36.     plan => 'plan3',
  37.     group_or_subplan => 'low_group',
  38.     comment => 'low_group',
  39.     mgmt_p1 => 1
  40. );

  41. dbms_resource_manager.submit_pending_area();
  42. end;

  43. end;

  44. begin
  45.    dbms_resource_manager.create_simple_plan('plan2','group1',60,'group2', 40 );
  46. end;  

  47. select  * from dba_rsrc_plans  d
  48.     where d.plan in ('PLAN1', 'PLAN2') ;

  49. select  d.GROUP_OR_SUBPLAN,  d.PARALLEL_DEGREE_LIMIT_P1 from dba_rsrc_plan_directives d
  50.   where d.plan ='PLAN1';
  51.   
  52.   select  resource_consumer_group
  53.     from v$session
  54.          where terminal='pts/1';
复制代码




回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-25 16:47 , Processed in 0.027381 second(s), 24 queries .

快速回复 返回顶部 返回列表