ITPub博客

首页 > 数据库 > Oracle > 11g OCM备考7——GC搭建

11g OCM备考7——GC搭建

原创 Oracle 作者:woods_su 时间:2016-04-17 17:39:46 0 删除 编辑
1. 环境介绍
OMS端:已经存在woods数据库实例的一台虚拟机
AGENT端:已经存在orcl1数据库实例的一台虚拟机
两边都要关掉防火墙
/etc/hosts配置如下

192.168.1.190 oms.com oms

192.168.1.190 age


(注意OMS端的要带个域名,不然后面会有问题)

2. 安装weblogic
[oracle@oms soft]$ ./wls1032_linux32.bin




就默认一直下一步即可。

3. 安装OMS
上传三个安装介质,解压

unzip GridControl_11.1.0.1.0_Linux_1of3.zip

2

3









这个错误是因为之前有EM,要删掉EM
emca -deconfig dbcontrol db -repos drop


修改相应参数
并重启数据库

 

alter system set session_cached_cursors=200 scope=spfile;

alter system set log_buffer=10485760 scope=spfile;

alter system set processes=500 scope=spfile;

shutdown immediate;

startup;

alter database datafile '/u01/app/oracle/oradata/woods/undotbs01.dbf' resize 200m;





所有的口令最好一样,方便记忆


验证OMS端的安装状态:

 

[oracle@oms bin]$ ./emctl status oms

Oracle Enterprise Manager 11g Release 1 Grid Control 

Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.

WebTier is Up

Oracle Management Server is Up

 

[oracle@oms bin]$ ./emctl status agent

Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0

Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.

---------------------------------------------------------------

Agent Version     : 11.1.0.1.0

OMS Version       : 11.1.0.1.0

Protocol Version  : 11.1.0.0.0

Agent Home        : /home/oracle/Oracle/Middleware/agent11g

Agent binaries    : /home/oracle/Oracle/Middleware/agent11g

Agent Process ID  : 20740

Parent Process ID : 20687

Agent URL         :

Repository URL    :

Started at        : 2016-04-16 20:08:53

Started by user   : oracle

Last Reload       : 2016-04-16 20:11:46

Last successful upload                       : 2016-04-16 20:28:53

Total Megabytes of XML files uploaded so far :    27.06

Number of XML files pending upload           :        0

Size of XML files pending upload(MB)         :     0.00

Available disk space on upload filesystem    :    16.01%

Last successful heartbeat to OMS             : 2016-04-16 20:29:30

---------------------------------------------------------------

Agent is Running and Ready


4. 安装agent

oms

cd /home/oracle/Oracle/Middleware/oms11g/sysman/agent_download/11.1.0.1.0/linux

scp agentDownload.linux oracle@age:/home/oracle

 

age

chmod 775 agentDownload.linux

输入口令

安装后执行脚本

/u01/app/oracle/agent11g/root.sh


安装完,验证状态

 

[oracle@age bin]$ ./emctl status agent

Oracle Enterprise Manager 11g Release 1 Grid Control 11.1.0.1.0

Copyright (c) 1996, 2010 Oracle Corporation.  All rights reserved.

---------------------------------------------------------------

Agent Version     : 11.1.0.1.0

OMS Version       : 11.1.0.1.0

Protocol Version  : 11.1.0.0.0

Agent Home        : /u01/app/oracle/agent11g

Agent binaries    : /u01/app/oracle/agent11g

Agent Process ID  : 8844

Parent Process ID : 8825

Agent URL         :

Repository URL    :

Started at        : 2016-04-16 21:44:26

Started by user   : oracle

Last Reload       : 2016-04-16 21:44:26

Last successful upload                       : 2016-04-16 21:46:14

Total Megabytes of XML files uploaded so far :    18.34

Number of XML files pending upload           :        0

Size of XML files pending upload(MB)         :     0.00

Available disk space on upload filesystem    :    46.85%

Last successful heartbeat to OMS             : 2016-04-16 21:46:42

---------------------------------------------------------------

Agent is Running and Ready

 

5. 登录GC,开始管理

sysman用户登录



配置数据库:

alter user dbsnmp identified by oracle account unlock;

选择要配置的库=>configure=>输入刚才修改的口令





简单的管理,少数截图:


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30935525/viewspace-2082871/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2016-02-29

  • 博文量
    41
  • 访问量
    67689