如下包已Redhat 爲準,其餘版的操做系統以官方手冊爲準。linux
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) 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)
make-3.81 binutils-2.20 gcc-4.1.1 libaio-0.3.106 glibc-common-2.3.4 libstdc++-4.1.1 sysstat-5.0.5 make-3.81 binutils-2.20 gcc-4.1.1 libaio-0.3.106 glibc-common-2.3.4 libstdc++-4.1.1 sysstat-5.0.5
這裏建議配置好YUM,用yum 來一次安裝。 參考:c++
Linux 平臺下 YUM 源配置 手冊sql
http://www.cndba.cn/dave/article/154數據庫
避免端口被佔用,修改最小端口到11000。網絡
[root@www.cndba.cn ~]# cat /proc/sys/net/ipv4/ip_local_port_range 9000 65000 [root@www.cndba.cn ~]# [root@www.cndba.cn ~]# echo 11000 65000 > /proc/sys/net/ipv4/ip_local_port_range [root@www.cndba.cn ~]# cat /proc/sys/net/ipv4/ip_local_port_range 11000 65000 [root@www.cndba.cn ~]#
修改/etc/sysctl.conf 文件,修改以下內容:session
net.ipv4.ip_local_port_range = 11000 65000
而後重啓網絡服務:oracle
[root@www.cndba.cn ~]# service network restart
若是OMS 和 Management Repository(database) 在不一樣的主機上,那麼OMS的主機kernel.shmmax 參數設置爲小於4G或者4294967295。 直接修改/etc/sysctl.conf
文件修改,而後運行
sysctl –p
生效便可。
app
若是
OMS
和
Management Repository(database) 在同一個主機上,那麼kernel.shmmax 參數以Oracle 數據庫文檔要求的爲準。ide
OEM 13c 只支持12.1.0.2.0 以上的數據庫,因此須要先安裝12的DB。 參考:ui
linux 6.4 平臺下 Oracle 12c 單實例 安裝手冊
http://www.cndba.cn/dave/article/323
安裝DB過程省略,注意:不要安裝EM。
[oracle@www.cndba.cn ~]$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.2.0 Production on Tue Mar 1 15:07:20 2016 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options SQL> alter system set optimizer_adaptive_features=false scope=both sid='*'; alter system set processes=600 scope=spfile; alter system set session_cached_cursors=300 scope=spfile; alter system set sga_target=8g scope=spfile; alter system set shared_pool_size=600m scope=spfile; alter system set pga_aggregate_target=2g scope=spfile; alter system set shared_pool_size=1G scope=spfile; /u01/app/oracle1/oradata/orz/redo01.log 修改Online redo log 大小,單個文件最小600M: SQL> alter database add logfile group 4('/u01/app/oracle/oradata/dave/redo04.log') size 1G; Database altered. SQL> alter database add logfile group 5('/u01/app/oracle/oradata/dave/redo05.log') size 1G; Database altered. SQL> alter database add logfile group 6('/u01/app/oracle/oradata/dave/redo06.log') size 1G; Database altered. SQL> alter database drop logfile group 2; Database altered. SQL> alter database drop logfile group 1; Database altered. SQL> alter system switch logfile; System altered. SQL> alter database clear unarchived logfile group 3; Database altered. SQL> alter database drop logfile group 3; Database altered. -- Restart the instance. SHUTDOWN IMMEDIATE STARTUP
[oracle@www.cndba.cn /]$ mkdir -p /u01/app/oracle/Middleware [oracle@www.cndba.cn /]$ mkdir -p /u01/app/oracle/MiddlewareAgent
[oracle@www.cndba.cn software]$ chmod a+x em13100_linux64.bin [oracle@www.cndba.cn software]$ ll total 6616032 -rw-r--r-- 1 oracle oinstall 1315250699 Feb 29 16:02 em13100_linux64-2.zip -rw-r--r-- 1 oracle oinstall 2145473190 Feb 29 16:06 em13100_linux64-3.zip -rw-r--r-- 1 oracle oinstall 2141357330 Feb 29 16:07 em13100_linux64-4.zip -rw-r--r-- 1 oracle oinstall 331590923 Feb 29 15:54 em13100_linux64-5.zip -rwxr-xr-x 1 oracle oinstall 841114290 Feb 29 15:58 em13100_linux64.bin [oracle@www.cndba.cn software]$ 運行開始安裝: [oracle@www.cndba.cn software]$ ./em13100_linux64.bin 0%...............................................................100% Launcher log file is /tmp/OraInstall2016-03-01_02-07-09PM/launcher2016-03-01_02-07-09PM.log. Starting Oracle Universal Installer Checking if CPU speed is above 300 MHz. Actual 3400.000 MHz Passed Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed Checking swap space: must be greater than 512 MB. Actual 31999 MB Passed Checking if this platform requires a 64-bit JVM. Actual 64 Passed (64-bit not required) Checking temp space: must be greater than 300 MB. Actual 818155 MB Passed Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2016-03-01_02-07-09PM ====Prereq Config Location main=== /tmp/OraInstall2016-03-01_02-07-09PM/stage/prereq EMGCInstaller args -scratchPath EMGCInstaller args /tmp/OraInstall2016-03-01_02-07-09PM EMGCInstaller args -sourceType EMGCInstaller args network EMGCInstaller args -timestamp EMGCInstaller args 2016-03-01_02-07-09PM EMGCInstaller args -paramFile EMGCInstaller args /tmp/sfx_0Utw4M/Disk1/install/linux64/oraparam.ini EMGCInstaller args -nocleanUpOnExit DiskLoc inside SourceLoc/software EMFileLoc:/tmp/OraInstall2016-03-01_02-07-09PM/oui/em/ ScratchPathValue :/tmp/OraInstall2016-03-01_02-07-09PM
[root@www.cndba.cn ~]# /u01/app/oracle/Middleware/allroot.sh Starting to execute allroot.sh ......... Starting to execute /u01/app/oracle/Middleware/root.sh ...... /etc exist Creating /etc/oragchomelist file... /u01/app/oracle/Middleware Finished product-specific root actions. /etc exist Finished execution of /u01/app/oracle/Middleware/root.sh ...... Starting to execute /u01/app/oracle/MiddlewareAgent/agent_13.1.0.0.0/root.sh ...... Finished product-specific root actions. /etc exist Finished execution of /u01/app/oracle/MiddlewareAgent/agent_13.1.0.0.0/root.sh ...... [root@www.cndba.cn ~]#
在以下平臺下安裝費時約3小時:
[root@www.cndba.cn ~]# free -g total used free shared buffers cached Mem: 23 22 0 5 0 15 -/+ buffers/cache: 7 15 Swap: 31 0 31 processor : 3 vendor_id : GenuineIntel cpu family : 6 model : 58 model name : Intel(R) Core(TM) i3-3240 CPU @ 3.40GHz stepping : 9 microcode : 27 cpu MHz : 3400.000 cache size : 3072 KB
zhuan :http://www.cndba.cn/dave/article/324