$ORACLE_HOME/bin/lsnrctl start
$ORACLE_HOME/bin/lsnrctl stop
$ORACLE_HOME/bin/lsnrctl status
$ORACLE_HOME/bin/lsnrctl services
SQL> startup
$OMS_HOME/opmn/bin/opmnctl startall
$OMS_HOME/opmn/bin/opmnctl stopall
$OMS_HOME/opmn/bin/opmnctl startproc ias-component=OC4J
$OMS_HOME/opmn/bin/opmnctl stopproc process-type=OC4J_EM
$OMS_HOME/opmn/bin/opmnctl status -l
$OMS_HOME/bin/emctl start oms
$OMS_HOME/bin/emctl stop oms
$OMS_HOME/bin/emctl status oms
$OMS_HOME/bin/emctl start iasconsole
$OMS_HOME/bin/emctl stop iasconsole
$OMS_HOME/bin/emctl status iasconsole
$AGENT_HOME/bin/emctl start agent
$AGENT_HOME/bin/emctl stop agent
$AGENT_HOME/bin/emctl status agent
$AGENT_HOME/bin/emctl upload
$AGENT_HOME/bin/emctl clearstate agent
首先安装GC:
装了一遍又一遍..........
label security
dbca
netca
alter system set sga_target>280m;
alter system set session_cached_cursors=200 scope=spfile;
alter system set aq_tm_processes=1;
alter system set dispatchers='';
alter system register;
@?/rdbms/admin/dbmspool
startup force
1. Apply Patch 8430622 to the Oracle Management Service installation.
export ORACLE_HOME=/u01/app/oracle/OmsHomes/oms10g
./emctl stop oms
opatch apply
2. After applying the patch, stop the Oracle Management Service (oms) process with the following command:
<ORACLE_HOME>/opmn/bin/opmnctl stopall
3. Re-secure Oracle Management Service with the following command:
<OMS_HOME>/bin/emctl secure oms -reset
You will be prompted twice to confirm that the Root key must be overwritten. In both cases, enter upper-case "Y" as the response. Any other response (including lower-case "y") will cause the command to terminate without completing. If this happens, the command can be re-invoked.
4. Re-start Oracle Management Service by executing the following command:
<OMS_HOME>/bin/emctl start oms
<OMS_HOME>/bin/emctl status oms
5. Re-start Oracle Management Service Processes by executing the following command:
<ORACLE_HOME>/opmn/bin/opmnctl startall
<ORACLE_HOME>/opmn/bin/opmnctl status
$OMS_HOME/bin/emctl start/stop iasconsole 应用服务器控制台
http://<OMS hostname>:<AS_port>
more $OMS_HOME/install/portlist.ini得到端口
用户名ias_admin 密码与超用户密码相同
6. Retry the failed step from the error dialog to complete the installation.
7.install the agent
ln –s /usr/bin/wget /usr/local/bin/wget
export PATH=$ORACLE_HOME/jdk/bin:$PATH
Download the agent download script
chmod 755 agentDownload.linux
./agentDownload.linux –b /u01/app/oracle/agent
sudo /u01/app/oracle/agent/agent10g/root.sh
8.install monitoring credentials
=========================================================================================================
Starting the Grid Control Framework:
Start the repository listener:
$ORACLE_HOME/bin/lsnrctl start
Start the repository database:
$ORACLE_HOME/bin/sqlplus "/ as sysdba"
SQL> startup
Start the OMS (including Web Cache):
$OMS_HOME/opmn/bin/opmnctl startall
Start the Agent (on OMS/repository host):
$AGENT_HOME/bin/emctl start agent
Start the agent on the managed servers:
$AGENT_HOME/bin/emctl start agent
Optionally, you may also need to start the Application Server Control if it is not started:
$OMS_HOME/bin/emctl start iasconsole
Stopping the Grid Control Framework:
Stop the agent on the managed servers (optional):$AGENT_HOME/bin/emctl stop
Stop the Agent (on OMS/repository host):$AGENT_HOME/bin/emctl stop
Stop the OMS (including Web Cache):$OMS_HOME/opmn/bin/opmnctl stopall
Stop the repository database:$ORACLE_HOME/bin/sqlplus "/ as sysdba"SQL> shutdown immediate
Stop the repository listener:$ORACLE_HOME/bin/lsnrctl stop
Optionally, you may also need to stop the Application Server Control if it is not started:
$OMS_HOME/bin/emctl stop iasconsole
Keeping Grid Control Healthy:
To keep your Grid Control framework healthy, perform the following tasks:
Check the OMS and repository errors page and resolve the causes of all errors.
Check and resolve all warnings and alerts.
Adjust thresholds when needed to prevent frequent “oscillation” of warnings and alerts.
Check and resolve all metric collection errors.
Agents not configured correctly can stress Grid Control systems.
Watch for monitored targets that are always listed with a down status.
=========================================================================================================
http://blog.csdn.net/tianlesoftware/article/details/5704374
Grid Control 和 Application Server Control