and Real Application Testing options
SQL> execute mgmt_admin.cleanup_agent('codb1.htsc.com.cn:3872');
PL/SQL procedure successfully completed.
接着,我们到监控端服务器上去清理一些文件
进入grid control 的安装目录,执行下列命令。
rm -r ./sysman/emd/state/*
rm -r ./sysman/emd/collection/*
rm -r ./sysman/emd/upload/*
rm ./sysman/emd/lastupld.xml
rm ./sysman/emd/agntstmp.txt
rm ./sysman/emd/blackouts.xml
rm ./sysman/emd/protocol.ini
最后重新配置一下agent
emctl clearstate agent
emctl secure agent
emctl start agent
这一切都执行完成后,检查emctl upload 是不是正常了。
[oracle@codb1 ~]$ emctl upload
Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0
Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
---------------------------------------------------------------
EMD upload completed successfully
执行结果显示已OK 。