在10g 中,我们可能会经常遇到OEM不能正常使用的问题,但导致问题的原因不尽相同,最后绝大多数问题可以通过emca 这个命令来解决,详细的说明可以查看连机帮助,下面给出一些常用的命令,及实例步骤。 中国网管论坛bbs.bitsCN.com
创建一个EM资料库
54com.cn
emca -repos create网管网bitsCN_com
重建一个EM资料库 网管网bitsCN.com
emca -repos recreate中国网管联盟www、bitsCN、com
删除一个EM资料库 中国网管联盟
emca -repos drop
54ne.com
配置数据库的 Database Control 54ne.com
emca -config dbcontrol db中国网管联盟
删除数据库的 Database Control配置
54ne.com
emca -deconfig dbcontrol db
网管网bitsCN.com
重新配置db control的端口,默认端口在1158 feedom.net
emca -reconfig ports
emca -reconfig ports -dbcontrol_http_port 1160
emca -reconfig ports -agent_port 3940
feedom.net
注:查看端口号可查如下路径。54ne.com
先设置ORACLE_SID环境变量后,启动EM console服务
网管联盟
emctl start dbconsole网管网bitsCN.com
先设置ORACLE_SID环境变量后,停止EM console服务
网管网bitsCN.com
emctl stop dbconsole中国网管联盟www_bitscn_com
先设置ORACLE_SID环境变量后,查看EM console服务的状态
54ne.com
emctl status dbconsole
中国网管联盟
配置dbconsole的步骤
54com.cn
emca -repos create
emca -config dbcontrol db
emctl start dbconsole中国网管联盟
重新配置dbconsole的步骤
中国网管论坛bbs.bitsCN.com
emca -repos drop
emca -repos create
emca -config dbcontrol db
emctl start dbconsole