emca和emctl常用命令
emca -repos create 創(chuàng)建一個(gè)EM資料庫(kù)
emca -repos recreate 重建一個(gè)EM資料庫(kù)
emca -repos drop 刪除一個(gè)EM資料庫(kù)
emca -config dbcontrol db 配置數(shù)據(jù)庫(kù)的Database Control
emca -deconfig dbcontrol db 刪除數(shù)據(jù)庫(kù)的Database Control配置
emca -reconfig ports 重新配置db control和agent的端口
emctl start console 啟動(dòng)EM console服務(wù),使用前需要先設(shè)置ORACLE_SID環(huán)境變量
emctl stop console 停止EM console服務(wù),使用前需要先設(shè)置ORACLE_SID環(huán)境變量
注:通過(guò)查看$ORACLE_HOME/install/portlist.ini文件可以知道當(dāng)前dbcontrol正在使用的端口,默認(rèn)dbcontrol http端口1158,agent端口3938。如果要重新配置端口,可以使用如下命令:
emca -reconfig ports -dbcontrol_http_port 1159
emca -reconfig ports -agent_port 3939
使用命令行工具emctl可以啟動(dòng)/停止console服務(wù),察看服務(wù)狀態(tài)等。
Oracle社區(qū)PDM中文網(wǎng):http://www.pdmcn.com/bbs,
Oracle 專家QQ群:60618621、60632593