《GC资源管理器》
公文:administrator’s Guide->24 Using the Database Resource Manager
用法:在实际生产环境中使用的少
行动:限制使用数据库资源。CPU undo表空间 IO session
场合:当有多个应用使用一个数据库而且资源紧张时可用“资源管理器”调节
实现:可用GC完毕也可用EM完毕。还能够使用程序包完毕
UI方式:简单,快捷,不easy出错
commend方式:设置复杂,命令非常长。失败率高。DBMS_RESOURCE_MANAGER_PRIVS包处理
要求:
1.定义2个资源消耗组(OLTP事务处理资源消耗组和DSS数据仓库资源消耗组)
2.创建一个日程计划schedule
3.对于OLTP资源消耗组。我们最多不能有超过50个活动会话数。假设超过了50个活动会话那么就应该中止120秒后再请求
4.对于DSS资源消耗组,我们最多不能超过10个活动会话数,假设超过了10个活动会话那么就应该中止300秒后再请求
5.设置OLTP DSS OTHER_GROUPS 3个组CPU命中率分别为 50% 30% 20%
6.DSS 资源消耗组最大并行度为20
7.对OLTP会话查询一条DML语句的时间不能超过100秒
8.指定实例默认计划“schedule日程计划”激活
实验
声明:OLTP 事务处理资源消耗组
DSS 数据仓库资源消耗组
OTHER_GROUPS 其它资源消耗组
不同资源消耗组策略不同
登录GC 输入sysman passwordoracle1216
ocm01->Administration->consumer group-> 输入syspasswordsys登陆
Create->OLTP 资源消耗组,点击Add加入ocm01用户将复选框选中,点击OK就可以
Create->DSS 资源消耗组,点击Add加入ocm0102用户将复选框选中。点击OK就可以
Database Instance: ocmdb > Object Type:Resource Plan->create->起一个计划名字schedule_plan
点击Modify加入Consumer Groups (OLTP和DSS)
LEO1->Administration->Plans 创建日程计划
Session Pool 10 300
50 120
在General选项中level 30 50 20
Parallelism选项中设置DSS并行度20
在Idle Time选项中设置“Max Idle Time”设置限制OLTP会话查询一条DML语句的时间不能超过100秒
General中选中“activate this plan”,应用激活就可以,点击OK创建完毕
总结自ocm实验选讲
【登录gc】

【点击targets】

【点击Databases->ocmdb】

【点击administration->Resource Manager->Consumer Groups】

【输入SYSusernamepassword】

【点击Create加入资源用户组】

【加入DSS,和OLTP资源用户组】

【为资源用户组加入用户】

【打勾之后点击Select】
【点击OK】

【点击Resource Manager->Plans加入计划 】

【点击Create加入计划】

【加入计划】
--==
无截图
plan:SCHEDULE_PLAN
description:SCHEDULE_PLAN
第二个选项打勾
--==
【为计划选择资源用户组】
【设置OLTP DSS OTHER_GROUPS 3个组CPU命中率分别为 50% 30% 20%】

【点击编辑】

【DSS 资源消耗组最大并行度为20】

【对OLTP会话查询一条DML语句的时间不能超过100秒】

【点击General->Activate this plan激活计划】

【点击apply】

【完毕 】

版权声明:本文博客原创文章。博客,未经同意,不得转载。
10gocm->session5->数据库管理实验->GC资源管理器的资源消耗组介绍
标签: