Oracle Study 之--Oracle 11g Grid control安装(OMS)

2023-10-14 19:59

本文主要是介绍Oracle Study 之--Oracle 11g Grid control安装(OMS),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

Oracle Study 之--Oracle 11g Grid control安装(OMS)

系统环境:
操作系统:          Oracle Linux 5.6(64)
 Oracle:              Oracle 11.2.0.3
 Weblogic:           Wls 10.3.2(32)
 Grid Control:   Grid Control 11.1.0.1 (64)
       由于此次安装,Weblogic没有下载到64位(10.3.2)的版本,以32位版本代替,安装成功。在使用10.3.6的版本安装时,多次在OMS configuration阶段会“failed”,所以采用10.3.2版本安装,问题解决。

一、GC系统架构
包括
Oracle Management Service(OMS), Oracle Management Agent, Oracle Management Repository, GridControl Console四个组成部分. 系统架构如下:


二、安装准备工作

 1)、对于OMS安装,需要卸载系统原有的dbcontrol,以下为卸载步骤:

[oracle@ocm1 soft]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0 
Copyright (c) 1996, 2011 Oracle Corporation.  All rights reserved.
https://ocm1:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is not running. 
------------------------------------------------------------------
Logs are generated in directory /u01/app/oracle/product/11.2.0/db_1/ocm1_enmoedu/sysman/log 
[oracle@ocm1 soft]$ emctl stop dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0 
Copyright (c) 1996, 2011 Oracle Corporation.  All rights reserved.
https://ocm1:1158/em/console/aboutApplication
Stopping Oracle Enterprise Manager 11g Database Control ... 
 ...  Stopped. 
[oracle@ocm1 soft]$ emctl status dbconsole
Oracle Enterprise Manager 11g Database Control Release 11.2.0.3.0 
Copyright (c) 1996, 2011 Oracle Corporation.  All rights reserved.
https://ocm1:1158/em/console/aboutApplication
Oracle Enterprise Manager 11g is not running.
卸载dbcontrol:
[oracle@ocm1 soft]$ emca -deconfig dbcontrol db -repos drop

STARTED EMCA at Sep 20, 2016 2:33:47 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: enmoedu
Listener port number: 1521
Password for SYS 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
Sep 20, 2016 2:38:46 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/enmoedu/emca_2016_09_20_14_38_31.log.
Sep 20, 2016 2:38:47 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) ...
Sep 20, 2016 2:38:49 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) ...
Sep 20, 2016 2:41:10 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Sep 20, 2016 2:41:14 PM

2)、配置数据库参数

14:42:46 SYS@ enmoedu>ALTER SYSTEM SET log_buffer=10485760 SCOPE=SPFILE;
System altered.
14:43:00 SYS@ enmoedu>ALTER SYSTEM SET processes=500 SCOPE=SPFILE;
System altered.
14:43:14 SYS@ enmoedu>ALTER SYSTEM SET session_cached_cursors=200 SCOPE=SPFILE;
System altered.
14:44:39 SYS@ enmoedu>alter database datafile 3 resize 200m;
Database altered.

调整redo logfile的size,每个日志组大小为200m。

3)、配置Oracle用户环境变量

[oracle@ocm1 ~]$ cat .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export ORACLE_SID=emrp
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_MIDDLEWARE_HOME_LOCATION=/u01/app/Oracle/Middleware
export OMS_HOME=/u01/app/Oracle/gc_inst

三、安装OMS

 1)、首先安装JDK要求版本在1.6以上(可以从OTN下载)

[root@ocm1 soft]# rpm -ivh jdk-8u101-linux-x64.rpm 
Preparing...                ########################################### [100%]
   1:jdk1.8.0_101         ########################################### [100%]
Unpacking JAR files...
        tools.jar...
        plugin.jar...
        javaws.jar...
        deploy.jar...
        rt.jar...
        jsse.jar...
        charsets.jar...
        localedata.jar...

2)安装Weblogic

    由于OTN现在只提供10.3.6版本以上版本的下载,多次使用10.3.6(32或64位),在OMS configuration阶段总是“failed”;根据多方面建议,选择10.3.2版本,由于系统、数据库、GC都是64位版本,建议Weblogic也使用64位版本。本次安装没有能获得10.3.2的64位版本,故用32位代替。

[oracle@ocm1 soft]$ export DISPLAY=192.168.8.254:0.0
[oracle@ocm1 soft]$ chmod  +x    wls1032_linux32

[oracle@ocm1 soft]$ ./wls1032_linux32
Launcher log file is /tmp/OraInstall2016-09-20_02-15-34PM/launcher2016-09-20_02-15-34PM.log.
Extracting files..........
Starting Oracle Universal Installer












Weblogic安装完后,不选择“quick start”;不需要配置Weblogic的domain,在安装GC时会配置。

3)安装Grid Control (Version:11.1.0.1 ,64位)

对于Grid Control的安装,注意配置主机名,需要有域名支持

[root@ocm1 soft]# cat /etc/hosts

127.0.0.1    localhost

192.168.8.200   ocm1.enmoedu.com   ocm1

[root@ocm1 soft]# ls -l gc
total 4328832
-rwxr--r-- 1 oracle oinstall 1430649530 Sep 20 12:00 GridControl_11.1.0.1.0_Linux_x86-64_1of3.zip
-rwxr--r-- 1 oracle oinstall 1589671704 Sep 20 10:43 GridControl_11.1.0.1.0_Linux_x86-64_2of3.zip
-rwxr--r-- 1 oracle oinstall 1408054645 Sep 20 11:52 GridControl_11.1.0.1.0_Linux_x86-64_3of3.zip

[oracle@ocm1 soft]$ export DISPLAY=192.168.8.254:0.0

[oracle@ocm1 gc]$./runInstaller






注意:GC的安装要求主机物理内存在3G以上


注意:图中Middleware Home Location:应该为 ‘/u01/app/Oracle/Middleware'




注意:图中SID根据数据实际情况应该为:emrp


注意:图中路径中的“enmoedu”按照实际安装路径应该是“emrp”








注意:以“root”用户的身份运行脚本


注意:在weblogic使用10.3.6版本(32或64),在OMS configuration阶段总是“failed”;在使用10.3.2后,安装成功!

Failed 日志:

weblogic 10.3.6 安装gc 错误:
OMS configuration:
[oracle@ocm1 ~]$ tail -f /u01/app/Oracle/Middleware/oms11g/cfgtoollogs/omsca/omsca_20160921043159.log
Sep 21, 2016 4:38:54 AM oracle.sysman.omsca.adapter.wls.OMSWLSAdapter adapterDeleteOMS
FINE: Cleaning up instance home directory: /u01/app/Oracle/gc_inst/em
Sep 21, 2016 4:38:54 AM oracle.sysman.omsca.adapter.wls.OMSWLSAdapter adapterDeleteOMS
FINE: Succesfully deleted the oms
Sep 21, 2016 4:38:54 AM oracle.sysman.omsca.adapter.wls.OMSWLSAdapter adapterCleanup
FINE: The value of infra setup completion is :false
Sep 21, 2016 4:38:54 AM oracle.sysman.omsca.framework.OMSCAFreshInstall execute
SEVERE: ERROR:  Infrastructure setup  of EM failed.
Sep 21, 2016 4:38:54 AM oracle.sysman.omsca.framework.OMSConfigAssistantDriver main
FINE: Got resultfalse


Congratulations: Grid Control Install 终于Success !

三、安装后的验证

1)、查看OMS服务端口

[oracle@ocm1 gc]$ netstat -an |grep 7799
tcp        0      0 0.0.0.0:7799                0.0.0.0:*                   LISTEN      
[oracle@ocm1 gc]$ netstat -an |grep 7101
tcp        0      0 192.168.8.200:7101          0.0.0.0:*                   LISTEN      
tcp        0      0 192.168.8.200:7101          192.168.8.200:55547         ESTABLISHED 
tcp        0      0 192.168.8.200:7101          192.168.8.200:55566         ESTABLISHED 
tcp        0      0 192.168.8.200:55555         192.168.8.200:7101          ESTABLISHED 
2)、查看OMS Server状态
[oracle@ocm1 gc]$ cd /u01/app/Oracle/Middleware/oms11g/bin

[oracle@ocm1 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
3)、查看OMS agent状态
[oracle@ocm1 bin]$ pwd
/u01/app/Oracle/Middleware/agent11g/bin
[oracle@ocm1 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/Middleware/agent11g
Agent binaries    : /u01/app/Oracle/Middleware/agent11g
Agent Process ID  : 31988
Parent Process ID : 31928
Agent URL            : https://ocm1.enmoedu.com:3872/emd/main/
Repository URL    : https://ocm1.enmoedu.com:4900/em/upload

Started at        : 2016-09-21 09:53:36
Started by user   : oracle
Last Reload       : 2016-09-21 09:54:29
Last successful upload                       : 2016-09-21 10:03:12
Total Megabytes of XML files uploaded so far :    26.37
Number of XML files pending upload           :        0
Size of XML files pending upload(MB)         :     0.00
Available disk space on upload filesystem    :    28.48%
Last successful heartbeat to OMS             : 2016-09-21 10:02:47
---------------------------------------------------------------
Agent is Running and Ready
[oracle@ocm1 bin]$ 

4)、通过console访问OMS
 对于OMS通过浏览器访问的https端口是7799,http访问是7202
[oracle@ocm1 bin]$ netstat -an |grep 7202

tcp        0      0 192.168.8.200:7202          0.0.0.0:*                   LISTEN      
tcp        0      0 192.168.8.200:27800         192.168.8.200:7202          ESTABLISHED 
tcp        0      0 192.168.8.200:7202          192.168.8.200:61800         TIME_WAIT   
tcp        0      0 192.168.8.200:7202          192.168.8.200:27792         ESTABLISHED 

通过http访问连接到OMS,访问成功!

总结:

      对于Oracle 11g Grid Control安装过程并不复杂,但是必须保证Weblogic版本和Grid Control版本匹配,才能保证安装顺利进行!

后续:Oracle 11g Grid Control Agent install














这篇关于Oracle Study 之--Oracle 11g Grid control安装(OMS)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/212809

相关文章

gitlab安装及邮箱配置和常用使用方式

《gitlab安装及邮箱配置和常用使用方式》:本文主要介绍gitlab安装及邮箱配置和常用使用方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录1.安装GitLab2.配置GitLab邮件服务3.GitLab的账号注册邮箱验证及其分组4.gitlab分支和标签的

MySQL MCP 服务器安装配置最佳实践

《MySQLMCP服务器安装配置最佳实践》本文介绍MySQLMCP服务器的安装配置方法,本文结合实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下... 目录mysql MCP 服务器安装配置指南简介功能特点安装方法数据库配置使用MCP Inspector进行调试开发指

在Windows上使用qemu安装ubuntu24.04服务器的详细指南

《在Windows上使用qemu安装ubuntu24.04服务器的详细指南》本文介绍了在Windows上使用QEMU安装Ubuntu24.04的全流程:安装QEMU、准备ISO镜像、创建虚拟磁盘、配置... 目录1. 安装QEMU环境2. 准备Ubuntu 24.04镜像3. 启动QEMU安装Ubuntu4

Python UV安装、升级、卸载详细步骤记录

《PythonUV安装、升级、卸载详细步骤记录》:本文主要介绍PythonUV安装、升级、卸载的详细步骤,uv是Astral推出的下一代Python包与项目管理器,主打单一可执行文件、极致性能... 目录安装检查升级设置自动补全卸载UV 命令总结 官方文档详见:https://docs.astral.sh/

Nexus安装和启动的实现教程

《Nexus安装和启动的实现教程》:本文主要介绍Nexus安装和启动的实现教程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、Nexus下载二、Nexus安装和启动三、关闭Nexus总结一、Nexus下载官方下载链接:DownloadWindows系统根

Java SWT库详解与安装指南(最新推荐)

《JavaSWT库详解与安装指南(最新推荐)》:本文主要介绍JavaSWT库详解与安装指南,在本章中,我们介绍了如何下载、安装SWTJAR包,并详述了在Eclipse以及命令行环境中配置Java... 目录1. Java SWT类库概述2. SWT与AWT和Swing的区别2.1 历史背景与设计理念2.1.

Oracle修改端口号之后无法启动的解决方案

《Oracle修改端口号之后无法启动的解决方案》Oracle数据库更改端口后出现监听器无法启动的问题确实较为常见,但并非必然发生,这一问题通常源于​​配置错误或环境冲突​​,而非端口修改本身,以下是系... 目录一、问题根源分析​​​二、保姆级解决方案​​​​步骤1:修正监听器配置文件 (listener.

安装centos8设置基础软件仓库时出错的解决方案

《安装centos8设置基础软件仓库时出错的解决方案》:本文主要介绍安装centos8设置基础软件仓库时出错的解决方案,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐... 目录安装Centos8设置基础软件仓库时出错版本 8版本 8.2.200android4版本 javas

Pytorch介绍与安装过程

《Pytorch介绍与安装过程》PyTorch因其直观的设计、卓越的灵活性以及强大的动态计算图功能,迅速在学术界和工业界获得了广泛认可,成为当前深度学习研究和开发的主流工具之一,本文给大家介绍Pyto... 目录1、Pytorch介绍1.1、核心理念1.2、核心组件与功能1.3、适用场景与优势总结1.4、优

conda安装GPU版pytorch默认却是cpu版本

《conda安装GPU版pytorch默认却是cpu版本》本文主要介绍了遇到Conda安装PyTorchGPU版本却默认安装CPU的问题,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的... 目录一、问题描述二、网上解决方案罗列【此节为反面方案罗列!!!】三、发现的根本原因[独家]3.1 p