Grid control日常维护

来源:互联网 发布:淘宝卖银饰怎么样 编辑:程序博客网 时间:2024/06/06 05:05

在此文的基础上整理:http://hi.baidu.com/edeed/blog/item/6d6e2834e20bcc3c5bb5f5b9.html

 

1 独立Agent安装和起停(装于被监控主机dbatwo,可以不是linux平台)

$ unzip Linux_Grid_Control_agent_download_10_2_0_2_0.zip
$ chmod -R u+x *
$ cd linux/agent
$ ./runInstaller
查看状态信息:
Agent URL         : https://dbatwo:3872/emd/main/
Repository URL    : https://dbaone:1159/em/upload
注意如果在Windows里登陆, 记得在 C:\WINDOWS\system32\drivers\etc\hosts 文件里增加服务器ip和主机名的对应关系.

安装完后agent服务已经自动启动.

Agent端的另一种安装方式(适合有大量被监控主机的情况下):
solaris下需要添加wget环境变量:/usr/sfw/bin:

A. 下载脚本:  wget http://dbserver2:4889/agent_download/10.2.0.1.0/linux/agentDownload.linux

B. chmod 755 agentDownload.linux

C.添加JAVA环境变量

export JAVA_HOME=$ORACLE_HOME/jdk

export PATH=$JAVA_HOME/bin:$ORACLE_HOME/bin:$PATH
C. 执行./agentDownload.linux -b /opt/oracle/OracleHomes
D. 执行安全认证 $AGENT_HOME/bin/emctl secure agent
E. 修改几个配置文件: vi config/emd.properties
修改所有的mmdb 为mmDB。
F. 重新启动agent:
$AGENT_HOME/bin/emctl stop agent
$AGENT_HOME/bin/emctl start agent
G. 手工执行upload
$AGENT_HOME/bin/emctl upload
$AGENT_HOME/bin/emctl status agent
OK,代理部署完成。

2 起停EMGrid全部进程

--Start everything
$ $ORACLE_HOME/bin/lsnrctl start
SQL> startup;
$ $OMS_HOME/opmn/bin/opmnctl startall
$ $AGENT_HOME/bin/emctl start agent

--单独起

如果有status是down的状态,则手动启动(以LogLoader举例)

$opmnctl startproc ias-component=”LogLoader”

--Stop everything
$ $AGENT_HOME/bin/emctl stop agent
$ $OMS_HOME/opmn/bin/opmnctl stopall
$ $ORACLE_HOME/bin/lsnrctl stop
SQL> shutdown immediate;

3 OMS进程单独管理

--Start the Management Service
$ $OMS_HOME/bin/emctl start oms

--Stop the Management Service
$ $OMS_HOME/bin/emctl stop oms

--Verify status of the Management Service
$ $OMS_HOME/bin/emctl status oms

--Start all components of the Application Server, including the Management Service and WebCache
$ $OMS_HOME/opmn/bin/opmnctl startall

--Stop all components of the Application Server, including the Management Service and WebCache
$ $OMS_HOME/opmn/bin/opmnctl stopall

4 Agent进程单独管理

--Start the Management Agent
$ $AGENT_HOME/bin/emctl start agent

--Stop the Management Agent
$ $AGENT_HOME/bin/emctl stop agent

--Verify status of the Management Agent
$ $AGENT_HOME/bin/emctl status agent

--view log
$ cd $AGENT_HOME/sysman/log/
$ ll

--手工执行upload(如果本地TZ变量未设置则可能无法自动upload)
$ $AGENT_HOM/bin/emctl upload
...
EMD upload completed successfully

5.查看端口:

/apps/home/oracle/OracleHomes/oms10g/install
dbserver2->more portlist.ini



 

原创粉丝点击