實驗環境:

1:安裝oracle所需軟件包
Oracle 12c所需的rpm包如下:
binutils-2.20.51.0.2-5.11.el6 (x86_64)compat-libcap1-1.10-1 (x86_64)compat-libstdc++-33-3.2.3-69.el6 (x86_64)compat-libstdc++-33-3.2.3-69.el6 (i686)gcc-4.4.4-13.el6 (x86_64)gcc-c++-4.4.4-13.el6 (x86_64)glibc-2.12-1.7.el6 (i686)glibc-2.12-1.7.el6 (x86_64)glibc-devel-2.12-1.7.el6 (x86_64)glibc-devel-2.12-1.7.el6 (i686)kshlibgcc-4.4.4-13.el6 (i686)libgcc-4.4.4-13.el6 (x86_64)libstdc++-4.4.4-13.el6 (x86_64)libstdc++-4.4.4-13.el6 (i686)libstdc++-devel-4.4.4-13.el6 (x86_64)libstdc++-devel-4.4.4-13.el6 (i686)libaio-0.3.107-10.el6 (x86_64)libaio-0.3.107-10.el6 (i686)libaio-devel-0.3.107-10.el6 (x86_64)libaio-devel-0.3.107-10.el6 (i686)libXext-1.1 (x86_64)libXext-1.1 (i686)libXtst-1.0.99.2 (x86_64)libXtst-1.0.99.2 (i686)libX11-1.3 (x86_64)libX11-1.3 (i686)libXau-1.0.5 (x86_64)libXau-1.0.5 (i686)libxcb-1.5 (x86_64)libxcb-1.5 (i686)libXi-1.3 (x86_64)libXi-1.3 (i686)make-3.81-19.el6sysstat-9.0.4-11.el6 (x86_64)
[root@ser6-51 mongodb]# yum install binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel libaio libaio-devel libXext libXtst libX11 libXau libxcb libXi make sysstat
Loaded plugins: fastestmirror, securityDetermining fastest mirrors * base: mirrors.163.com * extras: mirrors.aliyun.com * updates: mirrors.163.combase | 3.7 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 3.9 MB 00:04 Setting up Install ProcessPackage gcc-4.4.7-11.el6.x86_64 already installed and latest versionPackage gcc-c++-4.4.7-11.el6.x86_64 already installed and latest versionPackage libgcc-4.4.7-11.el6.x86_64 already installed and latest versionPackage libstdc++-4.4.7-11.el6.x86_64 already installed and latest versionPackage libstdc++-devel-4.4.7-11.el6.x86_64 already installed and latest versionPackage libaio-0.3.107-10.el6.x86_64 already installed and latest versionPackage libXau-1.0.6-4.el6.x86_64 already installed and latest versionPackage 1:make-3.81-20.el6.x86_64 already installed and latest versionResolving Dependencies--> Running transaction check---> Package binutils.x86_64 0:2.20.51.0.2-5.36.el6 will be updated---> Package binutils.x86_64 0:2.20.51.0.2-5.42.el6 will be an update---> Package compat-libcap1.x86_64 0:1.10-1 will be installed---> Package compat-libstdc++-33.x86_64 0:3.2.3-69.el6 will be installed---> Package glibc.x86_64 0:2.12-1.132.el6 will be updated--> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-headers-2.12-1.132.el6.x86_64--> Processing Dependency: glibc = 2.12-1.132.el6 for package: glibc-common-2.12-1.132.el6.x86_64---> Package glibc.x86_64 0:2.12-1.149.el6_6.9 will be an update---> Package glibc-devel.x86_64 0:2.12-1.132.el6 will be updated---> Package glibc-devel.x86_64 0:2.12-1.149.el6_6.9 will be an update---> Package ksh.x86_64 0:20120801-21.el6_6.3 will be installed---> Package libX11.x86_64 0:1.5.0-4.el6 will be updated---> Package libX11.x86_64 0:1.6.0-2.2.el6 will be an update--> Processing Dependency: libX11-common = 1.6.0-2.2.el6 for package: libX11-1.6.0-2.2.el6.x86_64---> Package libXext.x86_64 0:1.3.1-2.el6 will be updated---> Package libXext.x86_64 0:1.3.2-2.1.el6 will be an update---> Package libXi.x86_64 0:1.6.1-3.el6 will be updated---> Package libXi.x86_64 0:1.7.2-2.2.el6 will be an update---> Package libXtst.x86_64 0:1.2.1-2.el6 will be updated---> Package libXtst.x86_64 0:1.2.2-2.1.el6 will be an update---> Package libaio-devel.x86_64 0:0.3.107-10.el6 will be installed---> Package libxcb.x86_64 0:1.8.1-1.el6 will be updated---> Package libxcb.x86_64 0:1.9.1-2.el6 will be an update---> Package sysstat.x86_64 0:9.0.4-22.el6 will be updated---> Package sysstat.x86_64 0:9.0.4-27.el6 will be an update--> Running transaction check---> Package glibc-common.x86_64 0:2.12-1.132.el6 will be updated---> Package glibc-common.x86_64 0:2.12-1.149.el6_6.9 will be an update---> Package glibc-headers.x86_64 0:2.12-1.132.el6 will be updated---> Package glibc-headers.x86_64 0:2.12-1.149.el6_6.9 will be an update---> Package libX11-common.noarch 0:1.5.0-4.el6 will be updated---> Package libX11-common.noarch 0:1.6.0-2.2.el6 will be an update--> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================================================================================================= Package Arch Version Repository Size=========================================================================================================================================================================================================Installing: compat-libcap1 x86_64 1.10-1 base 17 k compat-libstdc++-33 x86_64 3.2.3-69.el6 base 183 k ksh x86_64 20120801-21.el6_6.3 updates 758 k libaio-devel x86_64 0.3.107-10.el6 base 13 kUpdating: binutils x86_64 2.20.51.0.2-5.42.el6 base 2.8 M glibc x86_64 2.12-1.149.el6_6.9 updates 3.8 M glibc-devel x86_64 2.12-1.149.el6_6.9 updates 984 k libX11 x86_64 1.6.0-2.2.el6 base 586 k libXext x86_64 1.3.2-2.1.el6 base 35 k libXi x86_64 1.7.2-2.2.el6 base 37 k libXtst x86_64 1.2.2-2.1.el6 base 19 k libxcb x86_64 1.9.1-2.el6 base 110 k sysstat x86_64 9.0.4-27.el6 base 233 kUpdating for dependencies: glibc-common x86_64 2.12-1.149.el6_6.9 updates 14 M glibc-headers x86_64 2.12-1.149.el6_6.9 updates 612 k libX11-common noarch 1.6.0-2.2.el6 base 192 k Transaction Summary=========================================================================================================================================================================================================Install 4 Package(s)Upgrade 12 Package(s) Total download size: 24 MIs this ok [y/N]: yDownloading Packages:(1/16): binutils-2.20.51.0.2-5.42.el6.x86_64.rpm | 2.8 MB 00:02 (2/16): compat-libcap1-1.10-1.x86_64.rpm | 17 kB 00:00 (3/16): compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm | 183 kB 00:00 (4/16): glibc-2.12-1.149.el6_6.9.x86_64.rpm | 3.8 MB 00:05 (5/16): glibc-common-2.12-1.149.el6_6.9.x86_64.rpm | 14 MB 00:13 (6/16): glibc-devel-2.12-1.149.el6_6.9.x86_64.rpm | 984 kB 00:02 (7/16): glibc-headers-2.12-1.149.el6_6.9.x86_64.rpm | 612 kB 00:01 (8/16): ksh-20120801-21.el6_6.3.x86_64.rpm | 758 kB 00:01 (9/16): libX11-1.6.0-2.2.el6.x86_64.rpm | 586 kB 00:01 (10/16): libX11-common-1.6.0-2.2.el6.noarch.rpm | 192 kB 00:00 (11/16): libXext-1.3.2-2.1.el6.x86_64.rpm | 35 kB 00:00 (12/16): libXi-1.7.2-2.2.el6.x86_64.rpm | 37 kB 00:00 (13/16): libXtst-1.2.2-2.1.el6.x86_64.rpm | 19 kB 00:00 (14/16): libaio-devel-0.3.107-10.el6.x86_64.rpm | 13 kB 00:00 (15/16): libxcb-1.9.1-2.el6.x86_64.rpm | 110 kB 00:00 (16/16): sysstat-9.0.4-27.el6.x86_64.rpm | 233 kB 00:00 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 712 kB/s | 24 MB 00:35 Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction Updating : glibc-common-2.12-1.149.el6_6.9.x86_64 1/28 Updating : glibc-2.12-1.149.el6_6.9.x86_64 2/28 Updating : glibc-headers-2.12-1.149.el6_6.9.x86_64 3/28 Updating : libxcb-1.9.1-2.el6.x86_64 4/28 Updating : libX11-common-1.6.0-2.2.el6.noarch 5/28 Updating : libX11-1.6.0-2.2.el6.x86_64 6/28 Updating : libXext-1.3.2-2.1.el6.x86_64 7/28 Updating : libXi-1.7.2-2.2.el6.x86_64 8/28 Updating : libXtst-1.2.2-2.1.el6.x86_64 9/28 Updating : glibc-devel-2.12-1.149.el6_6.9.x86_64 10/28 Installing : compat-libcap1-1.10-1.x86_64 11/28 Updating : sysstat-9.0.4-27.el6.x86_64 12/28 Installing : ksh-20120801-21.el6_6.3.x86_64 13/28 Installing : compat-libstdc++-33-3.2.3-69.el6.x86_64 14/28 Updating : binutils-2.20.51.0.2-5.42.el6.x86_64 15/28 Installing : libaio-devel-0.3.107-10.el6.x86_64 16/28 Cleanup : glibc-devel-2.12-1.132.el6.x86_64 17/28 Cleanup : libXtst-1.2.1-2.el6.x86_64 18/28 Cleanup : glibc-headers-2.12-1.132.el6.x86_64 19/28 Cleanup : libXi-1.6.1-3.el6.x86_64 20/28 Cleanup : libXext-1.3.1-2.el6.x86_64 21/28 Cleanup : libX11-1.5.0-4.el6.x86_64 22/28 Cleanup : libxcb-1.8.1-1.el6.x86_64 23/28 Cleanup : binutils-2.20.51.0.2-5.36.el6.x86_64 24/28 Cleanup : sysstat-9.0.4-22.el6.x86_64 25/28 Cleanup : libX11-common-1.5.0-4.el6.noarch 26/28 Cleanup : glibc-common-2.12-1.132.el6.x86_64 27/28 Cleanup : glibc-2.12-1.132.el6.x86_64 28/28 Verifying : glibc-devel-2.12-1.149.el6_6.9.x86_64 1/28 Verifying : libaio-devel-0.3.107-10.el6.x86_64 2/28 Verifying : libX11-1.6.0-2.2.el6.x86_64 3/28 Verifying : compat-libcap1-1.10-1.x86_64 4/28 Verifying : libXext-1.3.2-2.1.el6.x86_64 5/28 Verifying : glibc-2.12-1.149.el6_6.9.x86_64 6/28 Verifying : sysstat-9.0.4-27.el6.x86_64 7/28 Verifying : ksh-20120801-21.el6_6.3.x86_64 8/28 Verifying : compat-libstdc++-33-3.2.3-69.el6.x86_64 9/28 Verifying : glibc-headers-2.12-1.149.el6_6.9.x86_64 10/28 Verifying : binutils-2.20.51.0.2-5.42.el6.x86_64 11/28 Verifying : libXtst-1.2.2-2.1.el6.x86_64 12/28 Verifying : libXi-1.7.2-2.2.el6.x86_64 13/28 Verifying : glibc-common-2.12-1.149.el6_6.9.x86_64 14/28 Verifying : libxcb-1.9.1-2.el6.x86_64 15/28 Verifying : libX11-common-1.6.0-2.2.el6.noarch 16/28 Verifying : glibc-2.12-1.132.el6.x86_64 17/28 Verifying : glibc-devel-2.12-1.132.el6.x86_64 18/28 Verifying : glibc-headers-2.12-1.132.el6.x86_64 19/28 Verifying : glibc-common-2.12-1.132.el6.x86_64 20/28 Verifying : binutils-2.20.51.0.2-5.36.el6.x86_64 21/28 Verifying : libXi-1.6.1-3.el6.x86_64 22/28 Verifying : libX11-common-1.5.0-4.el6.noarch 23/28 Verifying : sysstat-9.0.4-22.el6.x86_64 24/28 Verifying : libxcb-1.8.1-1.el6.x86_64 25/28 Verifying : libXtst-1.2.1-2.el6.x86_64 26/28 Verifying : libX11-1.5.0-4.el6.x86_64 27/28 Verifying : libXext-1.3.1-2.el6.x86_64 28/28 Installed: compat-libcap1.x86_64 0:1.10-1 compat-libstdc++-33.x86_64 0:3.2.3-69.el6 ksh.x86_64 0:20120801-21.el6_6.3 libaio-devel.x86_64 0:0.3.107-10.el6 Updated: binutils.x86_64 0:2.20.51.0.2-5.42.el6 glibc.x86_64 0:2.12-1.149.el6_6.9 glibc-devel.x86_64 0:2.12-1.149.el6_6.9 libX11.x86_64 0:1.6.0-2.2.el6 libXext.x86_64 0:1.3.2-2.1.el6 libXi.x86_64 0:1.7.2-2.2.el6 libXtst.x86_64 0:1.2.2-2.1.el6 libxcb.x86_64 0:1.9.1-2.el6 sysstat.x86_64 0:9.0.4-27.el6 Dependency Updated: glibc-common.x86_64 0:2.12-1.149.el6_6.9 glibc-headers.x86_64 0:2.12-1.149.el6_6.9 libX11-common.noarch 0:1.6.0-2.2.el6 Complete!
驗證 Oracle 所需要的系統依賴程序包是否完整。
[root@ser6-51 mongodb]# rpm -qa binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel libaio libaio-devel libXext libXtst libX11 libXau libxcb libXi make sysstat
libgcc-4.4.7-11.el6.x86_64libstdc++-4.4.7-11.el6.x86_64gcc-c++-4.4.7-11.el6.x86_64glibc-2.12-1.149.el6_6.9.x86_64libX11-1.6.0-2.2.el6.x86_64glibc-devel-2.12-1.149.el6_6.9.x86_64compat-libstdc++-33-3.2.3-69.el6.x86_64make-3.81-20.el6.x86_64libaio-0.3.107-10.el6.x86_64libXau-1.0.6-4.el6.x86_64libstdc++-devel-4.4.7-11.el6.x86_64libXext-1.3.2-2.1.el6.x86_64libXtst-1.2.2-2.1.el6.x86_64compat-libcap1-1.10-1.x86_64ksh-20120801-21.el6_6.3.x86_64binutils-2.20.51.0.2-5.42.el6.x86_64gcc-4.4.7-11.el6.x86_64libxcb-1.9.1-2.el6.x86_64libXi-1.7.2-2.2.el6.x86_64sysstat-9.0.4-27.el6.x86_64libaio-devel-0.3.107-10.el6.x86_64
2:對OS進行配置
2.1 創建相關用戶和用戶組
groupadd oinstall
groupadd oper
groupadd dba
useradd -g oinstall -G dba,oper oracle
2.2 修改oracle用戶的密碼
passwd oracle
2.3 修改系統參數
vi /etc/sysctl.conf
添加:
fs.aio-max-nr = 1048576fs.file-max = 6815744kernel.shmall = 2097152kernel.shmmax = 536870912kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048586
運行sysctl -p應用以上參數
/sbin/sysctl -p 
 
2.4 修改用戶Limits
vi /etc/security/limits.conf
新增如下內容:
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
oracle stack nproc 10240
oracle stack nproc 10240
 
2.5 創建相關目錄
mkdir -p /u01/app/oracle/product/12c/db_1  
mkdir 
主站蜘蛛池模板:
英德市|
广汉市|
长武县|
奉化市|
呼玛县|
黑龙江省|
巴青县|
北流市|
会宁县|
筠连县|
广元市|
临邑县|
宜黄县|
凤台县|
大石桥市|
池州市|
酒泉市|
阳谷县|
宝应县|
新宁县|
东山县|
邵阳市|
沙雅县|
邓州市|
商丘市|
开封市|
灌阳县|
温泉县|
眉山市|
米林县|
蕉岭县|
揭东县|
辽中县|
赤城县|
巩留县|
南昌市|
通城县|
司法|
司法|
华池县|
宜昌市|