楼主: LoveWinter

[Tips] Tip: How to use 10G Grid Control & DB control

[复制链接]
论坛徽章:
19
授权会员
日期:2005-10-30 17:05:33马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52
31#
 楼主| 发表于 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.

[B]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.[/B]


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) [B]Step 1: Get the target type definition[/B]

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


[B]Step 2: Get the target guid, group name of your created groups[/B]

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'))


[B]Step 3: Get the relationship between source and accoc targets[/B]

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')


[B]Step 4: Get the relationship between host and specified targets[/B]

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


[B]Step 5: Combine these queries, using self-join on tables:[/B]

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

使用道具 举报

回复
论坛徽章:
124
生肖徽章:马
日期:2007-09-26 12:36:24生肖徽章:马
日期:2007-09-26 17:03:45生肖徽章:马
日期:2007-09-26 17:03:35生肖徽章:马
日期:2007-09-26 17:02:38生肖徽章:马
日期:2007-09-26 17:02:07生肖徽章:马
日期:2007-09-26 17:02:01生肖徽章:马
日期:2007-09-26 17:02:00生肖徽章:马
日期:2007-09-26 17:01:53生肖徽章:马
日期:2007-09-26 12:38:07生肖徽章:马
日期:2007-09-26 12:37:55
32#
发表于 2007-3-28 19:18 | 只看该作者

使用道具 举报

回复
招聘 : 软件工程师
论坛徽章:
51
ITPUB元老
日期:2007-09-25 14:45:26现代
日期:2014-02-10 13:35:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有对象
日期:2014-02-19 11:55:14马上加薪
日期:2014-02-19 11:55:14马上有车
日期:2014-08-25 08:54:25
33#
发表于 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给自己带来什么了?发财了?没有。每天还在为生计犯愁。

使用道具 举报

回复
论坛徽章:
0
34#
发表于 2007-5-17 16:23 | 只看该作者
up,先增加点分数

使用道具 举报

回复
论坛徽章:
150
蓝锆石
日期:2011-11-16 22:31:22萤石
日期:2011-11-17 13:05:31祖母绿
日期:2008-06-14 15:23:26海蓝宝石
日期:2011-11-16 22:25:15紫水晶
日期:2011-11-16 22:31:22红宝石
日期:2011-10-09 08:54:30蓝锆石
日期:2009-01-31 15:20:54萤石
日期:2008-12-22 15:22:00祖母绿
日期:2011-11-17 13:13:26海蓝宝石
日期:2008-07-05 14:52:18
35#
发表于 2007-5-18 01:49 | 只看该作者
继续

使用道具 举报

回复
论坛徽章:
20
ITPUB元老
日期:2005-04-12 20:54:27授权会员
日期:2005-10-30 17:05:33ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11
36#
发表于 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.....?

使用道具 举报

回复
论坛徽章:
8
生肖徽章2007版:鸡
日期:2008-01-02 17:35:53生肖徽章2007版:鼠
日期:2008-01-02 17:35:532008新春纪念徽章
日期:2008-02-13 12:43:03ITPUB元老
日期:2011-12-24 20:32:592012新春纪念徽章
日期:2012-01-04 11:53:29
37#
发表于 2007-5-21 15:54 | 只看该作者
最初由 mugen 发布
[B]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.....? [/B]


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

使用道具 举报

回复
论坛徽章:
20
ITPUB元老
日期:2005-04-12 20:54:27授权会员
日期:2005-10-30 17:05:33ITPUB新首页上线纪念徽章
日期:2007-10-20 08:38:44ITPUB十周年纪念徽章
日期:2011-11-01 16:19:412012新春纪念徽章
日期:2012-01-04 11:49:54ITPUB 11周年纪念徽章
日期:2012-10-09 18:03:322013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11
38#
发表于 2007-5-21 19:28 | 只看该作者
how? use command  or edit some cfg files?

使用道具 举报

回复
论坛徽章:
124
生肖徽章:马
日期:2007-09-26 12:36:24生肖徽章:马
日期:2007-09-26 17:03:45生肖徽章:马
日期:2007-09-26 17:03:35生肖徽章:马
日期:2007-09-26 17:02:38生肖徽章:马
日期:2007-09-26 17:02:07生肖徽章:马
日期:2007-09-26 17:02:01生肖徽章:马
日期:2007-09-26 17:02:00生肖徽章:马
日期:2007-09-26 17:01:53生肖徽章:马
日期:2007-09-26 12:38:07生肖徽章:马
日期:2007-09-26 12:37:55
39#
发表于 2007-5-21 23:27 | 只看该作者
maybe you can try to use EMCA command.

使用道具 举报

回复
论坛徽章:
19
授权会员
日期:2005-10-30 17:05:33马上有对象
日期:2014-02-19 11:55:14马上有钱
日期:2014-02-19 11:55:14马上有房
日期:2014-02-19 11:55:14马上有车
日期:2014-02-19 11:55:142012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52
40#
 楼主| 发表于 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 编辑 ]

使用道具 举报

回复

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

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表