Oracle 10g网格控制器安装指南

简介:

Oracle的网格控制器可以用来集中管理oracle数据库和中间件等,用处很多,还可以在网格控制器上简单化rac和dg的管理,唐sir有句名言:“没有网格控制器的rac,基本不能用!” oracle的网格控制器 gridcontrol,简称gc,主要由OMR,OMS和OMA三大部件组成。OMR主要指存放gc数据的资料档案库,OMS主要指应用服务器,在10g中oracle使用的是oc4j,11g则使用j2ee,因而安装11g的网格控制器,需要先安装jdk和weblogic;OMA主要指被管理对象上的agent程序,OMA将收集来的数据返回给OMS,OMS将数据存储在OMR中,用户通过访问OMS来进行管理和控制!

gc下载地址:
http://www.oracle.com/technetwork/cn/oem/grid-control/downloads/index.html

p8430622_10203_GENERIC.zip补丁下载地址:
http://www.itpub.net/forum.php?mod=viewthread&tid=1481854&page=1#pid18320282

一:环境介绍:
gc版本:10.2.0.3  64位
os版本:centos4.8 64位

二:准备工作,这部分的内容参考oracle 10g数据库快速安装手册
1.安装以下的rpm包
binutils-2.15.92.0.2-10.EL4
compat-db-4.1.25-9
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.EL4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2

2.修改内核参数,/etc/sysctl.conf文件,sysctl -p使其生效
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

3.修改/etc/security/limct.conf文件
oracle           soft    nproc   2047
oracle           hard    nproc   16384
oracle           soft    nofile  1024
oracle           hard    nofile  65536

4.修改/etc/pam.d/login文件
session    required     pam_limits.so

5.修改/etc/profile文件
if [ $USER = "oracle" ]; then
        if [ $SHELL = "/bin/ksh" ]; then
              ulimit -p 16384
              ulimit -n 65536
        else
              ulimit -u 16384 -n 65536
        fi
fi

6.创建oinstall,dba组和oracle用户,设置用户环境变量
[oracle@grid ~]$ vi .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/db10g
export AGENT_HOME=$ORACLE_BASE/product/agent10g
export OMS_HOME=$ORACLE_BASE/product/oms10g
export ORACLE_HOSTNAME=grid.yang.com
export ORACLE_SID=grid
export ORACLE_TERM=xterm
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
[oracle@grid ~]$ mkdir -p $ORACLE_BASE 
[oracle@grid ~]$ mkdir -p $ORACLE_HOME 
[oracle@grid ~]$ mkdir -p $OMS_HOME 
[oracle@grid ~]$ mkdir -p $AGENT_HOME

三:开始安装,这里为了简单选择使用新库安装
[oracle@grid ~]$ cd /u01/10203/Disk1/
[oracle@grid Disk1]$ ls
dcommon  doc  index.htm  install  oms  rdbms  response  runInstaller  stage
[oracle@grid Disk1]$ ./runInstaller

 

 

提示内存不够,直接无视!

 

 

 

 

 

 

执行脚本:
[root@grid ~]# /u01/app/oracle/oraInventory/orainstRoot.sh 
[root@grid ~]# /u01/app/oracle/product/db10g/allroot.sh

执行完脚本后点击“OK”按钮继续安装,接下来会进行建库操作,在配置OMS的时候会出现下图中的错误OUI-25031!

 

错误日志信息如下:

 
  1. [root@grid ~]# tail -f /u01/app/oracle/oraInventory/logs/installActions2011-09-19_12-00-21-PM.log   
  2. INFO: The backed up file name is /u01/app/oracle/product/agent10g/cfgtoollogs/configToolFailedCommands.bak  
  3. INFO: Created a new file /u01/app/oracle/product/oms10g/cfgtoollogs/configToolFailedCommands  
  4. INFO: Since the option is to overwrite the existing /u01/app/oracle/product/oms10g/cfgtoollogs/configToolFailedCommands file, backing it up  
  5. INFO: The backed up file name is /u01/app/oracle/product/oms10g/cfgtoollogs/configToolFailedCommands.bak  
  6. SEVERE: OUI-25031:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. 
  7. Not successfully running any "Recommended" assistants means your system will not be correctly configured.  
  8. 1. Check the Details panel on the Configuration Assistant Screen to see the errors resulting in the failures.  
  9. 2. Fix the errors causing these failures.  
  10. 3. Select the failed assistants and click the 'Retry' button to retry them.  
  11. INFO: User Selected: Yes/OK 

这个时候需要进行打补丁操作,否则gc安装将会失败!

 
  1. [oracle@grid u01]$ unzip Linux\ x64.zip   
  2. Archive:  Linux x64.zip  
  3.    creating: 8430622/  
  4.    creating: 8430622/files/  
  5.    creating: 8430622/files/sysman/  
  6.    creating: 8430622/files/sysman/jlib/  
  7.    creating: 8430622/files/sysman/jlib/emagentSDK.jar/  
  8.    creating: 8430622/files/sysman/jlib/emagentSDK.jar/oracle/  
  9.    creating: 8430622/files/sysman/jlib/emagentSDK.jar/oracle/sysman/  
  10.    creating: 8430622/files/sysman/jlib/emagentSDK.jar/oracle/sysman/eml/  
  11.    creating: 8430622/files/sysman/jlib/emagentSDK.jar/oracle/sysman/eml/sec/  
  12.    creating: 8430622/files/sysman/jlib/emagentSDK.jar/oracle/sysman/eml/sec/util/  
  13.   inflating: 8430622/files/sysman/jlib/emagentSDK.jar/oracle/sysman/eml/sec/util/RootCert.class    
  14.   inflating: 8430622/README.txt        
  15.    creating: 8430622/etc/  
  16.    creating: 8430622/etc/xml/  
  17.   inflating: 8430622/etc/xml/ShiphomeDirectoryStructure.xml    
  18.   inflating: 8430622/etc/xml/GenericActions.xml    
  19.    creating: 8430622/etc/config/  
  20.   inflating: 8430622/etc/config/inventory    
  21.   inflating: 8430622/etc/config/actions    
  22.     
  23. [oracle@grid u01]$ cd $OMS_HOME   
  24. [oracle@grid oms10g]$ cd bin/  
  25. [oracle@grid bin]$ ./emctl stop oms  
  26. Oracle Enterprise Manager 10g Release 3 Grid Control    
  27. Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.  
  28. Oracle Management Server is Down  
  29. [oracle@grid bin]$ cd /u01/8430622/  
  30. [oracle@grid 8430622]$ export ORACLE_HOME=/u01/app/oracle/product/oms10g/  
  31. [oracle@grid 8430622]$ /u01/app/oracle/product/oms10g/OPatch/opatch apply  
  32. Invoking OPatch 10.2.0.3.0  
  33.  
  34. Oracle interim Patch Installer version 10.2.0.3.0  
  35. Copyright (c) 2005, Oracle Corporation.  All rights reserved..  
  36.  
  37.  
  38. Oracle Home       : /u01/app/oracle/product/oms10g  
  39. Central Inventory : /u01/app/oracle/oraInventory  
  40.    from           : /etc/oraInst.loc  
  41. OPatch version    : 10.2.0.3.0  
  42. OUI version       : 10.2.0.3.0  
  43. OUI location      : /u01/app/oracle/product/oms10g//oui  
  44. Log file location : /u01/app/oracle/product/oms10g/cfgtoollogs/opatch/opatch2011-09-19_12-46-38PM.log  
  45.  
  46. ApplySession applying interim patch '8430622' to OH '/u01/app/oracle/product/oms10g'  
  47.  
  48. OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.  
  49.  
  50. Backing up files and inventory (not for auto-rollback) for the Oracle Home  
  51. Backing up files affected by the patch '8430622' for restore. This might take a while...  
  52. Backing up files affected by the patch '8430622' for rollback. This might take a while...  
  53.  
  54. Patching component oracle.sysman.top.oms, 10.2.0.3.0...  
  55. Updating jar file "/u01/app/oracle/product/oms10g/sysman/jlib/emagentSDK.jar" with "/sysman/jlib/emagentSDK.jar/oracle/sysman/eml/sec/util/RootCert.class"  
  56. ApplySession adding interim patch '8430622' to inventory  
  57.  
  58. Verifying the update...  
  59. Inventory check OK: Patch ID 8430622 is registered in Oracle Home inventory with proper meta-data.  
  60. Files check OK: Files from Patch ID 8430622 are present in Oracle Home.  
  61. OPatch succeeded.  
  62.  
  63.  
  64. [oracle@grid 8430622]$ cd /u01/app/oracle/product/oms10g/opmn/bin/  
  65. [oracle@grid bin]$ ./opmnctl stopall  
  66. opmnctl: stopping opmn and all managed processes...  
  67.  
  68.  
  69. [oracle@grid 8430622]$ cd $ORACLE_HOME/bin  
  70. [oracle@grid bin]$ pwd  
  71. /u01/app/oracle/product/oms10g/bin  
  72. [oracle@grid bin]$ ./emctl secure oms -reset  
  73. Oracle Enterprise Manager 10g Release 3 Grid Control    
  74. Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.  
  75. Enter Enterprise Manager Root Password :   
  76. Enter Agent Registration password :   
  77. [oracle@grid bin]$ ./emctl secure oms -reset  
  78. Oracle Enterprise Manager 10g Release 3 Grid Control    
  79. Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.  
  80. Enter Enterprise Manager Root Password :   
  81. Enter Agent Registration password :   
  82. OPMN processes already stopped...   Done.  
  83. Securing central oms...   Started.  
  84. Checking Repository...   Done.  
  85. Checking Em Key...   Done.  
  86. Checking Repository for an existing Enterprise Manager Root Key...  
  87. WARNING! An Enterprise Manager Root Key already exists in  
  88. the Repository. This operation will replace your Enterprise  
  89. Manager Root Key.  
  90. All existing Agents that use HTTPS will need to be  
  91. reconfigured if you proceed. Do you wish to continue and  
  92. overwrite your Root Key  
  93. (Y/N) ?  
  94. Y  
  95. Are you sure ? Reset of the Enterprise Manager Root Key  
  96. will mean that you will need to reconfigure each Agent  
  97. that is associated with this OMS before they will be  
  98. able to upload any data to it. Monitoring of Targets  
  99. associated with these Agents will be unavailable until  
  100. after they are reconfigured.  
  101. (Y/N) ?  
  102. Y  
  103. Generating Enterprise Manager Root Key (this takes a minute)...   Done.  
  104. Fetching Root Certificate from the Repository...   Done.  
  105. Generating Registration Password Verifier in the Repository...   Done.  
  106. Generating Oracle Wallet Password for Enterprise Manager OMS...   Done.  
  107. Generating Oracle Wallet for Enterprise Manager OMS...   Done.  
  108. Generating Oracle Wallet for iAS HTTP Server...   Done.  
  109. Updating HTTPS port in emoms.properties file...   Done.  
  110. Generating HTTPS Virtual Host for Enterprise Manager OMS...   Done.  
  111. Securing central oms...   Ended.  
  112.  
  113.  
  114. [oracle@grid u01]$ cd $OMS_HOME   
  115. [oracle@grid oms10g]$ cd bin/  
  116. [oracle@grid bin]$./emctl start oms  
  117. Oracle Enterprise Manager 10g Release 3 Grid Control    
  118. Copyright (c) 1996, 2007 Oracle Corporation.  All rights reserved.  
  119. opmnctl: opmn is already running  
  120. Starting HTTP Server ...  
  121. Oracle Management Server Already Started. 

打完补丁后,点击retry按钮,可以看到OMS的配置已经完成

 

10g的gc https方式访问的端口是1159,http方式访问端口为4889,至此安装gc工作基本完成

四:访问gc,尽量使用域名来访问!

 

参考文档:http://kamranagayev.wordpress.com/2011/05/17/solving-the-error-oui-25031-during-oracle-10g-r2-grid-control-10-2-0-3-installation/

本文转自斩月博客51CTO博客,原文链接http://blog.51cto.com/ylw6006/674890如需转载请自行联系原作者


ylw6006

相关文章
|
2天前
|
SQL Oracle 关系型数据库
Win10下安装Oracle 18c
Win10下安装Oracle 18c
|
2天前
|
Oracle 关系型数据库 数据库
如何利用 Docker 安装 Oracle 数据库
【2月更文挑战第14天】
120 0
|
2天前
|
SQL Oracle 关系型数据库
实验一 安装和使用Oracle数据库
实验一 安装和使用Oracle数据库
11 1
|
2天前
|
Oracle 关系型数据库 Linux
SuSE linux server 11通过SAP来安装oracle11g
SuSE linux server 11通过SAP来安装oracle11g
|
2天前
|
Linux 数据安全/隐私保护 Docker
在centos7虚拟机上安装docker oracle11g
在centos7虚拟机上安装docker oracle11g
15 0
|
2天前
|
Oracle 关系型数据库 数据库
Oracle 11gR2学习之一(安装篇)
Oracle 11gR2学习之一(安装篇)
|
2天前
|
存储 Oracle 关系型数据库
手把手教你安装Oracle——以oracle 11g为例
手把手教你安装Oracle——以oracle 11g为例
手把手教你安装Oracle——以oracle 11g为例
|
2天前
|
Oracle 关系型数据库 数据安全/隐私保护
Docker安装oracle11g
Docker安装oracle11g步骤
|
2天前
|
Oracle 关系型数据库
oracle rac 手工安装补丁,不适用auto
oracle rac 手工安装补丁,不适用auto
28 3
|
2天前
|
Oracle 关系型数据库 Linux
RHEL7.9系统下一键脚本安装Oracle 11gR2单机版本
RHEL7.9系统下一键脚本安装Oracle 11gR2单机版本
85 1