## 这里的 targetNames 要写被纳管的数据库实例名称 [oracle@emcc:/home/oracle]$ emcli modify_collection_schedule -targetType="oracle_database" -targetNames="lucifer01" -collectionName="rac_global_cache_10i" -collectionStatus=Disabled -preview="N" Collection Name : rac_global_cache_10i lucifer01 : Collection Schedule updated successfully. The collection schedule of the following metrics might be affected : rac_global_cache
[oracle@emcc:/home/oracle]$ emcli modify_collection_schedule -targetType="oracle_database" -targetNames="lucifer02" -collectionName="rac_global_cache_10i" -collectionStatus=Disabled -preview="N" Collection Name : rac_global_cache_10i lucifer02 : Collection Schedule updated successfully. The collection schedule of the following metrics might be affected : rac_global_cache
如果遇到报错:
1 2
[oracle@emcc:/home/oracle]$ emcli modify_collection_schedule -targetType="oracle_database" -targetNames="lucifer" -collectionName="rac_global_cache_10i" -collectionStatus=Disabled -preview="N" oracle_database : Collection Name not valid.
一般就是数据库实例名写错了,这个数据库实例要么没有配置 rac_global_cache_10i,要么是单实例数据库,需要通过在被纳管主机执行 emctl status agent scheduler 进行检查,确认正确的数据库实例,再进行修改。