重庆思庄Oracle、Redhat认证学习论坛
标题:
基于 CentOS7 或者 RHEL7 搭建 EMCC
[打印本页]
作者:
傅宣铭
时间:
2020-5-27 19:45
标题:
基于 CentOS7 或者 RHEL7 搭建 EMCC
Install ORACLE EMCC
This document was created by Fu Xuanming in 2020, thanks for your reading
ORACLE
数据库的集群结构
ORACLE 数据库的集群结构示意如下
登录/注册后可看大图
277975ece520c97b1b.png
(14.22 KB, 下载次数: 287)
下载附件
2020-5-27 19:42 上传
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
在以上集群示意图中, 请注意:
• EMCC 即企业云管理平台是 ORACLE 12c 版本开始出现的新功能, 可以被看作为数据库实例本身所具有的 EM Express 工具的增强版产品
• EMCC 是构建数据库集群结构的关键, 通常会单独占据一个集群节点的运算资源
• 我们准备访问某个节点上的数据库实例时, 可以使用 SQL*Plus / SQL Developer 等工具
• 访问 EMCC 平台时, 则使用浏览器和 HTTP / HTTPS 协议
ORACLE
数据库
EMCC
工具的搭建演示
EMCC host: 5 核心 | 10GB 内存 | 10GB 交换空间 | 100GB 存储 | 172.16.0.200 (emcc.boat.com)
EMCC 工具在搭建过程中需要使用到的软件资源都已经提前放置在主机的 /srv 目录下, 这些软件资源有
em12105_linux64_disk1.zip
em12105_linux64_disk2.zip
em12105_linux64_disk3.zip
>>>>>>>>> 升级主机的各项软件包, 调整主机的基础运行环境
[root ~]# yum clean all && yum makecache && yum upgrade -y
[root ~]# yum install -y bash-argsparse.noarch bash-completion.noarch bash-completion-extras.noarch
[root ~]# yum groups install -y "X Window System" "GNOME Desktop"
[root ~]# systemctl set-default graphical.target
[root ~]# init 5
[root ~]# hostnamectl set-hostname "emcc.boat.com"
[root ~]# echo "172.16.0.200 emcc.boat.com" >> /etc/hosts
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ✻
>>>>>>>>> 关闭主机的防火墙服务和 SELinux 防护
[root ~]# sed -i -r 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/sysconfig/selinux
[root ~]# sed -i -r 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
[root ~]# setenforce 0
[root ~]# systemctl stop firewalld.service
[root ~]# systemctl disable firewalld.service
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ✻
>>>>>>>>> 准备安装 EMCC 软件所需的用户体系
[root ~]# groupadd oinstall
[root ~]# groupadd dba
[root ~]# groupadd oper
[root ~]# useradd -g oinstall -G dba,oper oracle
[root ~]# echo "my_password" | passwd --stdin oracle
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ✻
>>>>>>>>> 为 EMCC 软件的安装用户配置免密码的 sudo 权限, 以及合适的系统资源限制参数, 随后重启主机
[root ~]# echo "%oinstall ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
[root ~]# echo "umask 022" >> ~oracle/.bash_profile
[root ~]# cat >> /etc/security/limits.conf << EOF
> @oinstall soft nproc 65536
> @oinstall hard nproc 65536
> @oinstall soft nofile 65536
> @oinstall hard nofile 65536
> @oinstall soft stack 65536
> @oinstall hard stack 65536
> @oinstall soft core -1
> @oinstall hard core -1
> @oinstall soft rss -1
> @oinstall hard rss -1
> EOF
[root ~]# reboot
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ✻
>>>>>>>>> 准备安装 EMCC 软件所需要的环境依赖
[root ~]# yum groups install -y "Development Tools" "Server Platform Development"
[root ~]# yum install -y compat-libcap1.x86_64 \
> compat-libstdc++-33.x86_64 \
> gcc-c++.x86_64 \
> glibc.x86_64 \
> glibc.i686 \
> glibc-devel.i686 \ | 如果 EMCC 和 Oracle 数据库是一体机结构,注意要补充安装这个包
> ksh.x86_64 \
> libXi.x86_64 \
> libXtst.x86_64 \
> libaio.x86_64 \
> libaio-devel.x86_64 \
> libgcc.x86_64 \
> libstdc++-devel.x86_64 \
> sysstat.x86_64
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ✻
>>>>>>>>> 解压缩 EMCC 软件的安装包, 并在 X11 通道或控制台内进行图形化的软件安装
[root ~]# mkdir -p /u01/{app,setup}
[root ~]# chown -R :oinstall /u01/{app,setup} && chmod 3775 /u01/{app,setup}
[root ~]# su - oracle
oracle:~$ mkdir -p /u01/setup/emcc
oracle:~$ unzip /srv/em12105_linux64_disk1.zip -d /u01/setup/emcc
oracle:~$ unzip /srv/em12105_linux64_disk2.zip -d /u01/setup/emcc
oracle:~$ unzip /srv/em12105_linux64_disk3.zip -d /u01/setup/emcc
oracle:~$ /u01/setup/emcc/runInstaller
Starting ORACLE Universal Installer ... | 使用根用户登录到主机终端, 以在软件安装过程中根据提示执行某些脚本
Checking Temp space: must be greater than 500MB. Actual 16618 MB Passed
Checking Swap space: must be greater than 150MB. Actual 8084 MB Passed
Preparing to launch ORACLE Universal Installer from /tmp/OraInstall2019-12-01_12_01_01PM. Please wait ...
... ... | EMCC 的基目录可以设置为 /u01/app/oracle/product/middleware
Error: in invoking target 'install' of makefile '/u01/app/oracle/product/middleware/Oracle_WT/.../ins_calypso.mk'
oracle:~$ echo "-ldms2" >> /u01/app/oracle/product/middleware/Oracle_WT/lib/sysliblist
... ... | 使用 root 用户执行 /u01/app/oracle/product/middleware/oms/allroot.sh
This information is also available at: /u01/app/oracle/product/middleware/oms/install/setupinfo.txt
Use the following URL to access:
1. Enterprise Manager Cloud Control URL:
https://emcc.boat.com:7803/em
2. Admin Server URL:
https://emcc.boat.com:7102/console
使用用户 sysman/password 访问
https://emcc.boat.com:7803/em
获取 ORACLE EMCC 服务
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ✻
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/)
Powered by Discuz! X3.2