當我們的Oracle伺服器是使用的Linux/Unix系統時,我們從windows或者其他的用戶端想用啟動oracle的EM工具瞭解一些系統系統資訊時
可以採用如下方式:
首先在伺服器端開啟一個視窗,輸入如下命令:emctl start
[oracle@oracle11g ~]$ emctl start
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
Oracle Enterprise Manager 10g Database Control commands:
emctl start | stop dbconsole
emctl status | secure | setpasswd dbconsole
emctl status agent
emctl status agent -secure [-omsurl :/em/*>]
emctl getversion
emctl reload | upload | clearstate | getversion agent
emctl reload agent dynamicproperties [:]....
emctl config agent
emctl config agent updateTZ
emctl config agent getTZ
emctl resetTZ agent
emctl config agent credentials [[:]]
Blackout Usage :
emctl start blackout [-nodeLevel] [[:]].... [-d ]
emctl stop blackout
emctl status blackout [[:]]....
The following are valid options for blackouts
defaults to local node target if not specified.
If -nodeLevel is specified after ,the blackout will be applied to all targets and any target list that follows will be ignored.
Duration is specified in [days] hh:mm
emctl getemhome
emctl ilint
Em Key Commands Usage :
emctl config emkey -emkeyfile [-force] [-sysman_pwd ]
emctl config emkey -emkey [-emkeyfile ] [-force] [-sysman_pwd ]
emctl config emkey -repos [-emkeyfile ] [-force] [-sysman_pwd ]
emctl config emkey -remove_from_repos [-sysman_pwd ]
emctl config emkey -copy_to_repos [-sysman_pwd ]
emctl status emkey [-sysman_pwd ]
Secure DBConsole Usage :
emctl secure dbconsole -sysman_pwd [-passwd_file ]
[-host ] [-sid ] [-reset] [-secure_port ]
[-root_dc ] [-root_country ] [-root_state ] [-root_loc ]
[-root_org ] [-root_unit ] [-root_email ]
emctl secure status dbconsole
該命令的作用是查看EM工具是否已經安裝配置,如果沒有配置可以使用下面的命令來配置:
[oracle@oracle11g ~]$emca -config dbcontrol db -repos recreate
配置完成後,使用如下命令啟動EM控制台:
[oracle@oracle11g ~]$ emctl start dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.1.0.6.0
Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
https://oracle11g:1158/em/console/aboutApplication
Starting Oracle Enterprise Manager 11g Database Control ........................... started.
Logs are generated in directory /u01/oracle/oracle11g_orcl/sysman/log
啟動成功,我們就可以在windows或者別的用戶端使用IE工具進行登陸了.
https://192.168.120.149:1158/em/console
(IP根據自己的實際情況輸入了,1158連接埠也根據實際情況輸入了),然後登陸就OK啦!