grid control 11.1.0.1 安装指南

废话少说,进入正题

系统版本号

[root@gridcontrol ~]# lsb_release -a

LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

Distributor ID: RedHatEnterpriseServer

Description:    Red Hat Enterprise Linux Server release 6.5 (Santiago)

Release:        6.5

Codename:       Santiago

软件版本号:版本号须要匹配

jdk:jdk-6u24-linux-x64-rpm.bin

weblogic:wls1032_generic

gridcontrol:GridControl_11.1.0.1.0_Linux_x86-64_1of3 GridControl_11.1.0.1.0_Linux_x86-64_2of3GridControl_11.1.0.1.0_Linux_x86-64_3of3

注意配置/etc/hosts,格式为IP,域名,简称必须是这个格式

[root@gridcontrol rlwrap-0.37]# cat /etc/hosts

127.0.0.1   localhost.localdomain   localhost

192.170.100.8 server8.com           server8

192.170.100.2 server2.com           server2

192.170.100.6 server6.com           server6

192.170.100.12 gridcontrol.com      gridcontrol

1.安装emrep数据库

安装数据,下一步,下一步就能够。这里就不再多说,只是须要改动一下參数的值

ALTER SYSTEM SET log_buffer=10485760 SCOPE=SPFILE;

ALTER SYSTEM SET processes=500 SCOPE=SPFILE;

ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;

alter system set log_archive_dest_1='location=/home/oracle/app/archive' scope=spfile;

SELECT name FROM v$datafile;

ALTER DATABASE DATAFILE '/u01/oracle/oradata/emrep/undotbs01.dbf' RESIZE 200M;

注意开启归档

SQL> shutdown immediate;

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup mount;

ORACLE instance started.

Total System Global Area 4275781632 bytes

Fixed Size                  2235208 bytes

Variable Size             822084792 bytes

Database Buffers         3439329280 bytes

Redo Buffers               12132352 bytes

Database mounted.

SQL> alter database archivelog;

Database altered.

SQL> archive log list;

Database log mode              Archive Mode

Automatic archival             Enabled

Archive destination            /home/oracle/app/archive

Oldest online log sequence     3

Next log sequence to archive   5

Current log sequence           5

SQL> alter database open;

Database altered.

2.安装JDK,注意必须是1.6版本号的。不能是jrocket(唉,在这里翻了大跟头)

已root 用户

chmod 755 jdk-6u24-linux-x64-rpm.bin

./jdk-6u24-linux-x64-rpm.bin

然后将解压处的rpm安装

rpm -ivh *.rpm --force --nodeps

安装完之后环境变量设置

ORACLE_SID=emrep

ORACLE_BASE=/home/oracle/app

ORACLE_HOME=$ORACLE_BASE/product/11.0.2/db_1

export ORACLE_SID ORACLE_BASE ORACLE_HOME

PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

export PATH

export DISPLAY=192.170.100.188:0.0 

stty erase ^h

alias sqlplus='rlwrap sqlplus'

alias rman='rlwrap rman'

export OMS_HOME=$ORACLE_BASE/Middleware/oms11g

export AGENT_HOME=$ORACLE_BASE/Middleware/agent11g

export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/X11R6/lib:$LD_LIBRARY_PATH

export ORACLE_MIDDLEWARE_HOME=$ORACLE_BASE/Middleware

export WLS_HOME=$ORACLE_BASE/Middleware/wlserver_10.3

export WT_HOME=$ORACLE_BASE/Middleware/Oracle_WT

export JAVA_HOME=/usr/java/default

export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH

export CLASSPATH=$JAVA_HOME/lib:$JAVA_HOME/jre/lib

查看一下java 版本号

[oracle@gridcontrol ~]$ java -version

java version "1.6.0_24"

Java(TM) SE Runtime Environment (build 1.6.0_24-b07)

Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

[oracle@gridcontrol ~]$

3.安装weblogic10.3.2,注意必须是这个版本号

 java -d64 -jar wls1032_generic.jar

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2xvdWRzbm93ZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center">

安装完之后不要选择执行run quickstart

4.安装gridcontrol 11.1.0.1

./runInstaller

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2xvdWRzbm93ZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center">

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2xvdWRzbm93ZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center">

安装缺失的包

rpm -q \

glibc \

rng-utils \

make \

binutils \

gcc \

libaio \

glibc-common \

compat-libstdc++-296 \

libstdc++ \

libstdc++-devel \

setarch \

sysstat \

compat-db | grep "not installed"

 [root@gridcontrol ~]# rpm -ivh *.rpm --force --nodeps

warning: compat-db-4.6.21-15.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY

warning: rng-utils-2.0-1.14.1.fc6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 37017186: NOKEY

Preparing...                ########################################### [100%]

   1:setarch                ########################################### [ 20%]

   2:rng-utils              ########################################### [ 40%]

   3:compat-db              ########################################### [ 60%]

   4:compat-db              ########################################### [ 80%]

   5:compat-libstdc++-296   ########################################### [100%]

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2xvdWRzbm93ZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center">

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2xvdWRzbm93ZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center">

删除之前的em

[oracle@gridcontrol 11g_grid_control_linux_x86-64]$ emca -deconfig dbcontrol db -repos drop

STARTED EMCA at Jun 3, 2015 9:00:35 PM

EM Configuration Assistant, Version 11.2.0.3.0 Production

Copyright (c) 2003, 2011, Oracle.  All rights reserved.

Enter the following information:

Database SID: emrep

Listener port number: 1521

Password for SYS user: 

Password for SYSMAN user: 

Password for SYSMAN user: 

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

WARNING : While repository is dropped the database will be put in quiesce mode.

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

Do you wish to continue? [yes(Y)/no(N)]: y

Jun 3, 2015 9:00:45 PM oracle.sysman.emcp.EMConfig perform

INFO: This operation is being logged at /home/oracle/app/cfgtoollogs/emca/emrep/emca_2015_06_03_21_00_34.log.

Jun 3, 2015 9:00:45 PM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly

WARNING: ORA-28000: the account is locked

Jun 3, 2015 9:00:45 PM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl

WARNING: Error initializing SQL connection. SQL operations cannot be performed

Jun 3, 2015 9:00:45 PM oracle.sysman.emcp.EMDBPreConfig performDeconfiguration

WARNING: EM is not configured for this database. No EM-specific actions can be performed. Some of the possible reasons may be:

 1) EM is configured with different hostname then physical host. Set environment variable ORACLE_HOSTNAME=<hostname> and re-run EMCA script

 2) ORACLE_HOSTNAME is set. Unset it and re-run EMCA script

Jun 3, 2015 9:00:45 PM oracle.sysman.emcp.EMReposConfig invoke

INFO: Dropping the EM repository (this may take a while) ...

Jun 3, 2015 9:02:50 PM oracle.sysman.emcp.EMReposConfig invoke

INFO: Repository successfully dropped

Enterprise Manager configuration completed successfully

FINISHED EMCA at Jun 3, 2015 9:02:50 PM

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2xvdWRzbm93ZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center">

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2xvdWRzbm93ZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center">

已root运行脚本

/home/oracle/app/Middleware/oms11g/allroot.sh

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2xvdWRzbm93ZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center">

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2xvdWRzbm93ZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center">

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2xvdWRzbm93ZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center">

至此安装完毕

agent 部署

第一种方式:

将GRID CONTROL主机的agentDownload.linux_x64文件复制到client

GRID CONTROL安装路径中:/home/oracle/app/Middleware/oms11g/sysman/agent_download/11.1.0.1.0/linux_x64

scp
/home/oracle/app/Middleware/oms11g/sysman/agent_download/11.1.0.1.0/linux_x64/agentDownload.linux_x64  server2:/home/u01/app/oracle/agent

在client上运行,(在依照过程中。保证grid进程和所使用的数据库保持online)

chmod +x agentDownload.linux_x64

export  PATH=$ORACLE_HOME/jdk/bin:$ORACLE_HOME/bin:$PATH

./agentDownload.linux_x64 -b /u02/agent -m gridcontrol.com -r 4900-y

将两个数据库的dbsnmp用户改动password并解锁

alter user dbsnmp identified by oracle account unlock;

另外一种方式:

须要配置节点之间的ssh

su - oracle

--创建隐藏文件夹

mkdir ~/.ssh

--仅仅能自己看到

chmod 700 .ssh

cd .ssh

--touch 新建一个空文件

touch authorized_keys

--生成密钥在server2也相同运行

/usr/bin/ssh-keygen -t dsa

--将id_dsa.pub中的内容加入到authorized_keys尾部

cat id_dsa.pub >> authorized_keys

--将server2中的公钥加入到authorized_keys尾部

ssh server2 cat .ssh/id_dsa.pub >> authorized_keys

--复制到server2

scp authorized_keys server2:~/.ssh

watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvQ2xvdWRzbm93ZQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="">

然后下一步下一步完毕

查看agent 状态:注意加上agent文件夹

/home/u01/app/oracle/agent/agent11g/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/u01/app/oracle/agent/agent11g

Agent binaries    : /home/u01/app/oracle/agent/agent11g

Agent Process ID  : 9904

Parent Process ID : 9882

Agent URL         : https://server2.com:4903/emd/main/

Repository URL    :
https://gridcontrol.com:4903/em/upload

Started at        : 2015-06-04 17:37:36

Started by user   : oracle

Last Reload       : 2015-06-04 17:56:31

Last successful upload                       : 2015-06-04 18:08:02

Total Megabytes of XML files uploaded so far :     3.99

Number of XML files pending upload           :        0

Size of XML files pending upload(MB)         :     0.00

Available disk space on upload filesystem    :    43.83%

Last successful heartbeat to OMS             : 2015-06-04 18:08:44

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

Agent is Running and Ready

原创文章。严禁转载,转载必究

grid control 11.1.0.1 安装指南的更多相关文章

  1. Oracle Grid control 11g及Active DataGuard 11g安装部署

    Oracle Grid control 11g及Active DataGuard 11g安装部署(一) 原贴 http://blog.csdn.net/lichangzai/article/detai ...

  2. 为11.2.0.2 Grid Infrastructure添加节点

    转自:http://www.askmaclean.com/archives/add-node-to-11-2-0-2-grid-infrastructure.html 在之前的文章中我介绍了为10g ...

  3. Oracle® Database Patch 19121551 - Database Patch Set Update 11.2.0.4.4 (Includes CPUOct2014) - 傲游云浏览

    Skip Headers Oracle® Database Patch 19121551 - Database Patch Set Update 11.2.0.4.4 (Includes CPUOct ...

  4. HPDL380G8平台11.2.0.3 RAC实施手册

    HPDL380G8平台11.2.0.3 RAC实施手册   1 前言 此文档详细描述了Oracle 11gR2 数据库在HPDL380G上的安装RAC的检查及安装步骤.文档中#表示root用户执行,$ ...

  5. 转 11g Grid Control: Overview of the EMCTL Options Available for Managing the Agent

    1.概念: The Enterprise Manager DBConsole consists of the following components: - A Standalone OC4J Man ...

  6. centos部署oracle rac单实例11.2.0.3数据库(使用asm磁盘)

    部署oracle rac单实例数据库,需要安装grid和datavase两部分,所以首先创建两个用户oracle和grid,因为不能使用root用户进行安装,在安装之前首先需要修改一些系统参数和安装一 ...

  7. Oracle Database 11g Release 2(11.2.0.3.0) RAC On Redhat Linux 5.8 Using Vmware Workstation 9.0

    一,简介 二,配置虚拟机 1,创建虚拟机 (1)添加三块儿网卡:   主节点 二节点 eth0:    公网  192.168.1.20/24   NAT eth0:    公网  192.168.1 ...

  8. 单机Oracle+asm(11.2.0.3.0) Patch Set Update(11.2.0.3.7 )

    之前写过一篇关于PSU升级的案例,参考如下: http://blog.csdn.net/jyjxs/article/details/8983880 但是,感觉有些地方理解的不是很透彻明白,照猫画虎的比 ...

  9. AIX 7.1 RAC 11.2.0.4.0升级至11.2.0.4.6(一个patch跑了3个小时)

    1.环境 DB:两节点RAC 11.2.0.4.0升级至11.2.0.4.6 OS:AIX 7.1(205G内存 16C) 2.节点1.节点2(未建库) 2.1.patch 20420937居然用了3 ...

随机推荐

  1. 我的OI生涯 第四章

    第四章 晚上来机房的人越来越多了,我也注意到一个常年独自坐在一个角落的男人————郝哥. 郝哥为人很安静,只是那时我还不知道他好不好,就没有与他交流过什么,这个优秀的男人以后我们还会提到,这里先不讲. ...

  2. Stirling数,Bell数,Catalan数,Bernoulli数

    组合数学的实质还是DP,但是从通式角度处理的话有利于FFT等的实现. 首先推荐$Candy?$的球划分问题集合: http://www.cnblogs.com/candy99/p/6400735.ht ...

  3. Java 基础总结--反射的基本操作

    一.反射的概念 JAVA反射机制是在运行状态中,对于任意一个类,都能够知道这个类的所有属性和方法:对于任意一个对象,都能够调用它的任意一个方法和属性:这种动态获取的信息以及动态调用对象的方法的功能称为 ...

  4. Java(静态)变量和(静态)代码块的执行顺序

    本文讨论Java中(静态)变量.(静态)代码块的执行顺序 首先创建3个类: 1.Foo类,用于打印变量 public class Foo { public Foo(String word) { Sys ...

  5. [转] Spring MVC 4.1.3 + MyBatis 零基础搭建Web开发框架

    首先感谢一下润和软件,指引我走上了Spring MVC Web开发的道路. 下面进入正题 搭建开发环境: Netbeans8.0.2 + MySql5.6 + JDK1.7 + tomcat8.0.1 ...

  6. android ORM 框架 search

    1. ORMLite 特性: 通过在类上添加注解设置类 强大抽象DAO类 QueryBuilder 可以灵活的构造简单和复杂的查询语句 支持MySQL, Postgres, Microsoft SQL ...

  7. 将dll文件注入到其他进程中的一种新方法

    http://www.45it.com/windowszh/201212/33946.htm http://www.hx95.cn/Article/OS/201212/65095.html 我们知道将 ...

  8. LINQ中的动态排序

    使用Linq动态属性排序 使用反射: public static Func<T,Tkey> DynamicLambda<T, Tkey>(string propertyName ...

  9. bootstrap设计站点中加入�代码高亮插件

    这款插件的名字叫做google-code-prettify 使用该插件之前的效果: 使用插件之后的效果: 接下来说步骤: (1)下载两个文件 http://codecloud.sinaapp.com/ ...

  10. jquery hide和show方法

    html 元素的显示和隐藏hide() 如果被选的元素已被显示,则隐藏该元素. show() 如果被选的元素已被隐藏,则显示该元素. <html> <head> <scr ...