ITPUB??ì3
12月微软Hyper-V虚拟化沙龙主题征集
ITPUB论坛 » Oracle新技术/11g » Tip: How to use 10G Grid Control & DB control

标题: [Tips] Tip: How to use 10G Grid Control & DB control
本帖已经被作者加入个人空间
离线 LoveWinter
版主


精华贴数 6
个人空间 0
技术积分 4356 (327)
社区积分 65 (4365)
注册日期 2002-12-23
论坛徽章:4
管理团队成员管理团队2006纪念徽章会员2006贡献徽章授权会员  
      

发表于 2007-3-28 15:05 
Tip 11: Interesting query

Tip 11. For Grid control, How to get the following results

Group Name     Target Name       Host Name
------------------------------------------------------------------
Grp1                       db1                       host1
Grp1                      db2                       host 1
Grp1                      db3                       host2
Grp2                      db4                       host2
Grp3                     +ASM1                 host1
....


A11:  This comes from mail list, I replied one approach.

A single group can include many members(targets), they can be
same target type or different target type. Some targets have
relationship with hosts(e.g. database instance, rac instance,
ASM instance,Listeners,,etc) others have not. So, user should
first understand the relationship between group,target and
associate target.


Let's see an example.

First you should know the relationship between these tables:
"MGMT_TARGETS", "MGMT_TARGET_TYPES",
"MGMT_TARGET_ASSOCS".

Then build single queries, Finally combine them.

For example:

(Optional) Step 1: Get the target type definition

select target_type from mgmt_target_types where NLS_UPPER(type_display_name)=NLS_UPPER('group')


Step 2: Get the target guid, group name of your created groups

select rawtohex(target_guid),target_name from mgmt_targets where target_type
in (select target_type from mgmt_target_types where NLS_UPPER(type_display_name)=NLS_UPPER('group'))


Step 3: Get the relationship between source and accoc targets

select T2.target_name,Rawtohex(T1.ASSOC_TARGET_GUID)
from MGMT_TARGET_ASSOCS T1, MGMT_TARGETS T2
where T2.target_guid=T1.source_target_guid
and T1.source_target_guid in
(select target_guid from mgmt_targets where target_type='composite')


Step 4: Get the relationship between host and specified targets

select target_name, host_name from mgmt_targets
where target_guid in (Q3) ...


Step 5: Combine these queries, using self-join on tables:

select T2.target_name as "Group Name",
T3.target_name as "Target Name" ,T3.host_name as "Host Name" from
MGMT_TARGET_ASSOCS T1, MGMT_TARGETS T2,
(select target_guid,target_name, host_name from mgmt_targets) T3
where T2.target_guid=T1.source_target_guid
and T1.source_target_guid in
(select target_guid from mgmt_targets where target_type='composite')
and T3.target_guid=T1.ASSOC_TARGET_GUID


__________________
快乐的秘诀:   不是去做自己喜欢的事, 而是去喜欢自己做的事. Do  you  feel  happy  now ?
只看该作者    顶部
离线 vongates
开门


精华贴数 3
个人空间 0
技术积分 19522 (49)
社区积分 10046 (162)
注册日期 2002-11-28
论坛徽章:86
现任管理团队成员生肖徽章:马生肖徽章:马生肖徽章:马生肖徽章:马生肖徽章:马
生肖徽章:马生肖徽章:马生肖徽章:马生肖徽章:马生肖徽章:马生肖徽章:马

发表于 2007-3-28 19:18 



__________________
只看该作者    顶部
在线/呼叫 wgz7747
版主


精华贴数 0
个人空间 0
技术积分 2723 (585)
社区积分 14 (9133)
注册日期 2003-1-3
论坛徽章:10
现任管理团队成员ITPUB元老会员2007贡献徽章授权会员生肖徽章2007版:兔2008北京奥运纪念徽章:篮球
2008北京奥运纪念徽章:赛艇2008北京奥运纪念徽章:排球生肖徽章2007版:鼠生肖徽章2007版:鸡  

发表于 2007-4-7 09:34 
lovewinter对oracle10g的em研究很深了
我最近一周左右吧,一直在捣鼓gridcontrol 10.2.0.2在windows2003 sp1上的安装。中间遇到了很多的问题。最后呢,也算是达到了自己的目的吧,gridcontrol 10.2.0.2在windows2003 sp1也算是可以正常使用了
我会在今天写一下在安装过程中的排措过程,表达非常混乱,不过这也是我这种水平的人能表达出来的了。
以后还得对gridcontrol做更深的研究。
lovewinter这个帖子我是研究过多遍的。
但没有真正的全部试验过,只是有了问题,来查找看有没有处理办法。
有时候,总是再想。做oracle也算年数不少了。几乎有时间就研究oracle,oracle给自己带来什么了?发财了?没有。每天还在为生计犯愁。


__________________
概念上清楚 理论上了解 操作上熟练
只看该作者    顶部
离线 jchunlin
初级会员



精华贴数 0
个人空间 0
技术积分 72 (21408)
社区积分 2 (25443)
注册日期 2004-7-8
论坛徽章:0
      
      

发表于 2007-5-17 16:23 
up,先增加点分数


只看该作者    顶部
离线 warehouse
自由职业



来自 大连
精华贴数 4
个人空间 0
技术积分 18509 (51)
社区积分 783 (1133)
注册日期 2002-8-16
论坛徽章:62
现任管理团队成员生肖徽章2007版:猴2008北京奥运纪念徽章:篮球2008北京奥运纪念徽章:举重生肖徽章2007版:兔 
      

发表于 2007-5-18 01:49 
继续



__________________
只看该作者    顶部
离线 mugen
10g OCM



精华贴数 4
个人空间 0
技术积分 9853 (124)
社区积分 6113 (253)
注册日期 2002-4-5
论坛徽章:13
ITPUB元老ITPUB北京九华山庄2008年会纪念徽章参与2007年甲骨文全球大会(中国上海)纪念ITPUB北京香山2007年会纪念徽章会员2007贡献徽章会员2006贡献徽章
铁扇公主授权会员ITPUB新首页上线纪念徽章生肖徽章:马生肖徽章:蛇生肖徽章:虎

发表于 2007-5-21 15:36 
in my laptop, there are 2 databases,  one is ora10, another is test,
how to configure DB control to manage both of then,
db control , not grid control.....?


__________________

-----------------
你就是一道风景,没必要在别人风景里面仰视
男人三十不言愁
CEIBS MBA CANDIDATE
ORACLE 11G OCM CANDIDATE
只看该作者    顶部
离线 kickster
资深会员



精华贴数 0
个人空间 0
技术积分 1451 (1194)
社区积分 357 (1756)
注册日期 2007-2-28
论坛徽章:6
2008年新春纪念徽章生肖徽章2007版:鼠生肖徽章2007版:鸡   
      

发表于 2007-5-21 15:54 


QUOTE:
最初由 mugen 发布
in my laptop, there are 2 databases,  one is ora10, another is test,
how to configure DB control to manage both of then,
db control , not grid control.....?


DB control 是针对每个DB的,可以指定不同的port来进入不同的管理介面呀。


__________________
Oracle EM 10g DB & Grid Control
Oracle 9i & 10g RAC
Oracle 9i & 10g DG
只看该作者    顶部
离线 mugen
10g OCM



精华贴数 4
个人空间 0
技术积分 9853 (124)
社区积分 6113 (253)
注册日期 2002-4-5
论坛徽章:13
ITPUB元老ITPUB北京九华山庄2008年会纪念徽章参与2007年甲骨文全球大会(中国上海)纪念ITPUB北京香山2007年会纪念徽章会员2007贡献徽章会员2006贡献徽章
铁扇公主授权会员ITPUB新首页上线纪念徽章生肖徽章:马生肖徽章:蛇生肖徽章:虎

发表于 2007-5-21 19:28 
how? use command  or edit some cfg files?


__________________

-----------------
你就是一道风景,没必要在别人风景里面仰视
男人三十不言愁
CEIBS MBA CANDIDATE
ORACLE 11G OCM CANDIDATE
只看该作者    顶部
离线 vongates
开门


精华贴数 3
个人空间 0
技术积分 19522 (49)
社区积分 10046 (162)
注册日期 2002-11-28
论坛徽章:86
现任管理团队成员生肖徽章:马生肖徽章:马生肖徽章:马生肖徽章:马生肖徽章:马
生肖徽章:马生肖徽章:马生肖徽章:马生肖徽章:马生肖徽章:马生肖徽章:马

发表于 2007-5-21 23:27 
maybe you can try to use EMCA command.


__________________
只看该作者    顶部
离线 LoveWinter
版主


精华贴数 6
个人空间 0
技术积分 4356 (327)
社区积分 65 (4365)
注册日期 2002-12-23
论坛徽章:4
管理团队成员管理团队2006纪念徽章会员2006贡献徽章授权会员  
      

发表于 2008-5-21 21:01 
回复 #38 mugen 的帖子

db control 是针对instance的,每个instance对应一个db console 服务
grid control 是典型的三层结构,先安装OMS和repository, 然后在各个站点上安装agent进行管理.

至于你说的两个数据库需要管理,最好是安装grid control,然后在各个节点安装agent即可.
在一个站点上启动两个db console 服务是很费资源的,就算内存足够,cpu的调度也是个问题.

agent 可以discover and manage 节点上的许多资源(database,listener,rac instance,
application server and third party products).

[ 本帖最后由 LoveWinter 于 2008-5-21 21:03 编辑 ]


__________________
快乐的秘诀:   不是去做自己喜欢的事, 而是去喜欢自己做的事. Do  you  feel  happy  now ?
只看该作者    顶部
相关内容


CopyRight 1999-2006 itpub.net All Right Reserved.
北京皓辰广域网络信息技术有限公司. 版权所有
E-mail:Webmaster@itpub.net
京ICP证:010037号 联系我们 法律顾问