测试环境:
操作系统:Centos6.5
数据库:Oracle 12.1.0.2
一.软件介质准备:
Oracle database 12c(12.1.2.0) for Linux 64:
Enterprise Manager 13c(13.2.0.0) for Linux 64:
Database Template for EM OMR:
(根据自己的平台版本选择数据库模板,在这里,我们选择Linux x86-64”)
注:您也可以手动安装数据库,而无需下载模板。
二、安装准备工作
以下包以Redhat其他版本的操作系统以官方首次为准。
官方安装文件:
1. Oracle Management Service 依赖如下包
For example, if you run the command on a 64-bit system, you should see something similar to the following:
glibc-common-2.3.4-2.43(x86_64)
glibc-devel-2.3.4-2.43(x86_64)
glibc-profile-2.3.4-2.43(x86_64)
glibc-headers-2.3.4-2.43(x86_64)
glibc-utils-2.3.4-2.43(x86_64)
glibc-2.3.4-2.43(x86_64)
2. Oracle Management Agent 依赖如下包|
make-3.81
binutils-2.20
gcc-4.4.4
libaio-0.3.107
glibc-common-2.12-1
libstdc -4.4.4
libXtst-1.0.99 (x86_64)
sysstat-9.0.4
glibc-devel-2.12-1.7 (i686) (This is a 32-bit package)
glibc-devel-2.12-1.7 (x86_64) (This is a 64-bit package)
(Applicable only for Oracle Linux 6.2, which includes RH6.2 and UEK 6.2) glibc-2.12-1.47.0.2
3.修改系统参数
避免占用端口,将最小端口修改到11000。
[root@oracle 13c]# cat /proc/sys/net/ipv4/ip_local_port_range
9000
65500
[root@oracle 13c]# echo 11000 65000 > /proc/sys/net/ipv4/ip_local_port_range
[root@oracle 13c]# cat /proc/sys/net/ipv4/ip_local_port_range
11000
65000
修改/etc/sysctl.conf 文件,修改以下内容
[root@oracle 13c]# vi /etc/sysctl.conf
net.ipv4.ip_local_port_range = 11000 65000
[root@oracle 13c]#sysctl -p
然后重启网络。
[root@oracle 13c]# service network restart
4.修改kernel.shmmax内核参数
如果OMS 和 Management Repository(database) 在不同的主机上,所以OMS的主机kernel.shmmax 参数设置小于4G或者4294967295。 直接修改/etc/sysctl.conf 修改文件,然后运行sysctl –p 生效即可。
如果OMS和Management Repository(database) 在同一个主机上,那么kernel.shmmax 参数以Oracle 以数据库文档要求为准。
这里我们将OMS 和OMR都放在机器上。
5.根据数据库修改相应的参数:
OEM 13c 只支持12.1.0.2.0 上述数据库需要先安装12个DB。这里就不赘述具体的安装过程了。
注:不要安装EM。
数据库安装完毕后,应对相应的参数进行一定的修改,否则在安装过程中会报错,具体的报错信息将在以下内容给出:
修改参数:
SQL> alter system set parallel_min_servers=0;
SQL> alter system set session_cached_cursors=400 scope=spfile;
SQL> alter system set log_buffer=8M scope=spfile;
SQL> alter system set memory_max_target=7G scope=spfile;
SQL> alter system set memory_target=7G scope=spfile;
SQL> alter system set open_cursors=600 scope=spfile;
SQL> alter system set pga_aggregate_target=2G scope=spfile;
SQL> alter system set processes=800 scope=spfile;
SQL> alter system set session_cached_cursors=400 scope=spfile;
SQL> alter system set sga_max_size=5G scope=spfile;
SQL> alter system set sga_target=5G scope=spfile;
SQL> alter system set shared_pool_size=1G scope=spfile;
修改online redo log 大小,至少4组redo log
修改之前
SQL> select group#,thread#,bytes/1024/1024 from v$log;
GROUP# THREAD# BYTES/1024/1024
---------- ---------- ---------------
1
1
50
2
1
50
3
1
50
4
1
50
SQL>
修改之后:
SQL> select group#,thread#,bytes/1024/1024 from v$log;
GROUP# THREAD# BYTES/1024/1024
---------- ---------- ---------------
1
1
300
2
1
300
3
1
300
4
1
300
6.创建OEM安装目录
bishuo:/home/oracle@oracle>mkdir -p /home/oracle/middleware
bishuo:/home/oracle@oracle>mkdir -p /home/oracle/middlewareagent
三、安装 Enterprise Manager Cloud Control
bishuo:/home/oracle/software@oracle>chmod a x em13200p1_linux64.bin
bishuo:/home/oracle/software@oracle>ll
总用量 8330984
-rw-r--r-- 1 oracle dba 2123211088 12月 21 09:32 em13200p1_linux64-2.zip
-rw-r--r-- 1 oracle dba 741526563 12月 21 09:32 em13200p1_linux64-3.zip
-rw------- 1 oracle dba 2084231936 12月 21 09:33 em13200p1_linux64-4.zip
-rw-r--r-- 1 oracle dba 109191154 12月 21 09:33 em13200p1_linux64-5.zip
-rw-r--r-- 1 oracle dba 2146696423 12月 21 09:34 em13200p1_linux64-6.zip
p>-rw-r--r-- 1 oracle dba 771426157 12月 21 09:34 em13200p1_linux64-7.zip-rwxr-xr-x 1 oracle dba 554606940 12月 21 09:34 em13200p1_linux64.bin
运行安装:
bishuo:/home/oracle/software@oracle>export DISPLAY=192.168.1.98:0.0
bishuo:/home/oracle/software@oracle>./em13200p1_linux64.bin
0%...............................................................................100%
启动程序日志文件为/tmp/OraInstall2017-12-21_11-22-35AM/launcher2017-12-21_11-22-35AM.log。
启动 Oracle Universal Installer
检查 CPU 速度是否大于 300 MHz。 实际为 2397.246 MHz 通过
检查监视器: 必须配置为至少显示 256 种颜色。 实际为16777216 通过
检查交换空间: 必须大于 512 MB。 实际为 7919 MB 通过
检查此平台是否需要 64 位 JVM。 实际为64 通过 (不需要 64 位)
......
上面有一步骤是修改数据库的参数和修改redo log 大小以及组数,如果不修改的话,则在在这一步骤会出现以下的报错信息:
执行脚本:
[root@oracle u01]# /home/oracle/middleware/allroot.sh
Starting to execute allroot.sh .........
Starting to execute /home/oracle/middleware/root.sh ......
/etc exist
Creating /etc/oragchomelist file...
/home/oracle/middleware
Finished product-specific root actions.
/etc exist
Finished execution of /home/oracle/middleware/root.sh ......
Starting to execute /home/oracle/middlewareagent/agent_13.2.0.0.0/root.sh ......
Finished product-specific root actions.
/etc exist
Finished execution of /home/oracle/middlewareagent/agent_13.2.0.0.0/root.sh ......
到此安装结束,下面我们登陆访问一下:
原文:https://blog.csdn.net/shiyu1157758655/article/details/78863063