重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1421|回复: 0
打印 上一主题 下一主题

[安装] EM 13c 无法自动发现集群目标

[复制链接]
跳转到指定楼层
楼主
发表于 2021-4-22 18:50:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
EM 12c, EM 13c: Failed To Discover Clusterware Target From EM console, Error: No Cluster Was Found On The Host (Doc ID 1941647.1)

In this Document
Symptoms
Changes
Cause
Solution
References

APPLIES TO:
Enterprise Manager for Oracle Database - Version 12.1.0.4.0 and later
Information in this document applies to any platform.
SYMPTOMS
Failed to discover clusterware target from EM console, error: No cluster was found on the host




CHANGES


CAUSE
No reference to CRS_HOME in inventory.xml file





SOLUTION
Solution: Open a service request to Oracle Support to fix the inventory and add a relevant entry to the CRS target into inventory.xml

Workaround I: Execute the following commands on all cluster nodes, then try to discover the CRS target from EM console

<AGENT_HOME>/agent_inst/bin/emctl stop agent
export CRS_HOME=<CRS_HOME>
<AGENT_HOME>/agent_inst/bin/emctl start agent
Workaround II: Discovery the cluster target manually by specifying target properties

Setup/add targets/add targets manually
Add Targets Declaratively by Specifying Target Monitoring Properties
Target Type:Cluster
Monitoring Agent: Choose one of the nodes of the cluster
Click on "add manually"
Enter the following details:-

    Target Name: <enter the name of the cluster target*>
    Oracle Home: <oracle home of the cluster*>
    Scan Name: <enter scan name*>
    Scan Port: <enter scan port*>
    ONS Port: <enter ONS port*>

In the section "Cluster Host and High Availability Services Targets" the node which was chosen will be shown.  Click on "add" and choose the other nodes of the cluster.
Click on save

*How to determine the values which need to be supplied:

1) Target Name: The name given to the cluster target.  Get the name of the cluster by running the command "cemutlo -n" .  For example:
$CRS_HOME/bin/cemutlo -n
crs64bitR2
2) Oracle Home: This is the CRS/grid infrastructure home (eg. /u01/app/11.2.0/grid)
3) Scan Name: This can be found by running the command
$CRS_HOME/bin/srvctl config scan
The first line returns the SCAN Name, for example:

$CRS_HOME/bin/srvctl config scan
SCAN name: rachu2-scan, Network: 1/1x.1xx.1xx.x/xxx.xxx.xxx.0/eth0   <<--Look for SCAN name
SCAN VIP name: scan1, IP: /rachu2-scan/xx.xxx.xxx.xx

4) Scan Port: This can be determined by running the command 'srvctl config scan_listener'.  For example:

$CRS_HOME/bin/srvctl config scan_listener
SCAN Listener LISTENER_SCAN1 exists. Port: TCP:1521   <<--Look for TCP:<port #>

5) ONS Port: This can be determined by running the command:

$CRS_HOME/bin/srvctl config nodeapps -s
ONS exists: Local port 6100, remote port 6200, EM port 2016    <<--Look for "EM port"



Example CRS inventory entry on Linux for the 11.2 and later Oracle Database:

$ cat /etc/oraInst.loc | grep inventory_loc
inventory_loc=/home/grid/oraInventory
$ cat /home/grid/oraInventory/ContentsXML/inventory.xml
..
<HOME NAME="Ora11g_gridinfrahome1" LOC="/ocw/grid" TYPE="O" IDX="4" CRS="true">
   <NODE_LIST>
      <NODE NAME="racnode1"/>
      <NODE NAME="racnode2"/>
      <NODE NAME="racnode3"/>
   </NODE_LIST>
</HOME>
..

Note: inventory.xml must not be modified manually to avoid inventory corruption.
Reference: Note 1053393.1 How to Update Inventory to Set/Unset "CRS=true" Flag for Oracle Clusterware Home

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

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

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-18 20:08 , Processed in 0.092962 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

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