{"id":52146,"date":"2023-06-18T05:57:13","date_gmt":"2023-06-17T21:57:13","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=52146"},"modified":"2023-06-18T05:57:13","modified_gmt":"2023-06-17T21:57:13","slug":"cenntos6-install-oracle11g","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/cenntos6-install-oracle11g.html","title":{"rendered":"\u5728 Cenntos6.8 \u4e0b\u5b89\u88c5 Oracle11g"},"content":{"rendered":"
1. \u4e00\u53f0\u88c5\u6709CentOS 6.8 x64\u7684\u670d\u52a1\u5668\uff08\u865a\u62df\u673a\u4e5f\u53ef\uff09<\/p>\n
2. linux.x64_11gR2_database_1of2.zip<\/p>\n
3. linux.x64_11gR2_database_2of2.zip\"<\/p>\n
1. SWAP\u5206\u533a\u5927\u4e8e3G<\/p>\n
1. Oracle\u5b89\u88c5\u76ee\u5f55\u5269\u4f59\u7a7a\u95f4\u5927\u4e8e20G<\/p>\n
2. Centos6.x \u7cfb\u7edf<\/p>\n
\u9996\u5148\u6211\u4eec\u8981\u5b89\u88c5\u4e00\u4e2a\u5e26X window\u7684\u7248\u672c\u3002<\/p>\n
\u914d\u7f6e\u7cfb\u7edf\u53c2\u6570<\/p>\n
1. \u6dfb\u52a0oracle\u7528\u6237
\n\u4f7f\u7528\u4e00\u4e0b\u547d\u4ee4\uff0c\u521b\u5efa\u7ec4\u548c\u7528\u6237<\/p>\n
root@localhost:~# groupadd oinstall\r\nroot@localhost:~# groupadd dba\r\nroot@localhost:~# groupadd oper\r\nroot@localhost:~# useradd -g oinstall -G dba,oper oracle\r\nroot@localhost:~# passwd oracle<\/pre>\n2. \u914d\u7f6e\u5185\u6838\u53c2\u6570
\n\u5c06\u4e00\u4e0b\u5185\u5bb9\u5199\u5165\/etc\/sysctl.conf<\/p>\nfs.aio-max-nr = 1048576\r\nfs.file-max = 6815744\r\nkernel.shmmni = 4096\r\nkernel.sem = 250 32000 100 128\r\nnet.ipv4.ip_local_port_range = 9000 65500\r\nnet.core.rmem_default = 262144\r\nnet.core.rmem_max = 4194304\r\nnet.core.wmem_default = 262144\r\nnet.core.wmem_max = 1048586<\/pre>\n3. \u914d\u7f6e\u7cfb\u7edf\u53e5\u67c4\u9650\u5236
\n\u5728 \/etc\/security\/limits.conf \u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e0b\u5217\u53c2\u6570
\n\u7528\u4e8e\u4f18\u5316\u5185\u6838\u53ef\u4ee5\u4e0d\u4fee\u6539\uff0c\u4e0d\u4fee\u6539\u53ef\u80fd\u4f1a\u51fa\u73b0\u6ea2\u51fa<\/p>\noracle soft nproc 2047\r\noracle hard nproc 16384\r\noracle soft nofile 1024\r\noracle hard nofile 65536\r\noracle soft stack 10240<\/pre>\n\u5b89\u88c5oracle<\/strong><\/span><\/div>\n\u4f7f\u7528oracle\u7528\u6237\uff0c\u8fd0\u884c\u6b64\u547d\u4ee4\u5f00\u59cb\u5b89\u88c5oracle<\/p>\n
oracle@localhost:~$ \/u01\/app\/database\/runInstaller<\/pre>\n1. Configure Security Updates
\n\u6211\u4eec\u53bb\u6389oracle support password \u7684\uff0cemail\u53ef\u4ee5\u4e0d\u7528\u586b\u5199.\u4e0b\u4e00\u6b65
\n\u63d0\u793a\u6ca1\u6709email
\n\u76f4\u63a5\u70b9yes\u5ffd\u89c6\u5373\u53ef
\n<\/a><\/p>\n2. Select Installation Option
\n\u5b89\u88c5\u548c\u914d\u7f6e\u6570\u636e\u5e93`
\n\u53ea\u5b89\u88c5\u5b9e\u4f8b
\n\u5347\u7ea7\u6570\u636e\u5e93
\n\u6211\u4eec\u9009\u62e9\u5b89\u88c5\u548c\u914d\u7f6e\u6570\u636e\u5e93
\n<\/a>
\n3. System Class
\n\u684c\u9762\u7248\u672c
\n\u670d\u52a1\u5668\u7248\u672c
\n\u6211\u8fd9\u91cc\u9009\u62e9\u670d\u52a1\u5668\u7248\u672c
\n<\/a><\/p>\n4. Node selection
\n\u5355\u5b9e\u4f8b
\n\u96c6\u7fa4\u73af\u5883
\n\u6211\u8fd9\u91cc\u9009\u62e9\u5355\u5b9e\u4f8b\u6a21\u5f0f
\n<\/a><\/p>\n5. Select Install Type
\n\u666e\u901a\u5b89\u88c5
\n\u9ad8\u7ea7\u5b89\u88c5
\n\u6211\u8fd9\u91cc\u9009\u62e9\u9ad8\u7ea7\u5b89\u88c5
\n<\/a><\/p>\n6. Select Product Language
\n\u9009\u62e9\u4f60\u6240\u9700\u8981\u7684\u8bed\u8a00
\n\u6211\u8fd9\u91cc\u53ea\u7528\u5230\u82f1\u8bed\u3002\u6240\u5df2\u53ea\u6709English\u5c31\u53ef\u4ee5
\n\u8981\u7528\u5230\u4e2d\u6587\u5b58\u50a8\u7684\u5f80\u540e\u770b
\n<\/a><\/p>\n7. Select Database Edition
\n\u4f01\u4e1a\u7248
\n\u6807\u51c6\u7248
\n\u6807\u51c6\u72481
\n\u6211\u8fd9\u91cc\u9009\u62e9\u7684\u662f\u4f01\u4e1a\u7248
\n<\/a>
\nPS\uff1a\u9700\u8981\u4e86\u89e3\u5176\u4e2d\u4e0d\u61c2\u7684\u53ef\u4ee5\u53c2\u8003 [Oracle EE SE SE1\u5404\u7248\u672c\u533a\u522b]<\/p>\n8. Specify Installation Location
\n\u8bbe\u7f6eoracle \u5b89\u88c5\u76ee\u5f55\u548chome \u76ee\u5f55
\n\u8fd9\u4e2a\u4f4d\u7f6e\u662f\u83b7\u53d6oracle \u7684 `$ORACLE_BASE` \u548c `$ ORACLE_HOME` \u7684\u503c
\n(\u5c3d\u91cf\u4e0d\u8981\u4fee\u6539\u3002\u5982\u679c\u4fee\u6539\u8bf7\u4e00\u8d77\u4fee\u6539oracle\u7528\u6237\u7684\u53d8\u91cf\u503c)
\n<\/a><\/p>\n9. Create Inventory
\n\u8bbe\u7f6eoracle \u8bb0\u5f55\u6587\u4ef6\u4f4d\u7f6e
\n\u4fdd\u6301\u9ed8\u8ba4\u5373\u53ef
\n<\/a><\/p>\n10. Select Configuration Type
\n<\/a><\/p>\n11. Specify Database Identifiers
\n\u8bbe\u7f6e\u5b9e\u4f8b\u540d
\n<\/a><\/p>\n12. Specify Configuration Options
\n\u914d\u7f6e\u5b9e\u4f8b\u53c2\u6570\uff0c\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u914d\u7f6e\u5185\u5b58\u5360\u7528\u3002\u5c3d\u91cf\u4e0d\u8981\u8d85\u8fc750%
\n<\/a>
\n\u5982\u679c\u6570\u636e\u5e93\u4e2d\u9700\u8981\u5b58\u50a8\u4e2d\u6587\u5728Character sets\u4e2d\u8bbe\u7f6eGBK\u5b57\u7b26\u96c6
\n<\/p>\n13. Specify Management Options
\n\u8bbe\u7f6e\u6570\u636e\u5e93\u7ba1\u7406\u9009\u9879
\n\u76f4\u63a5\u4e0b\u4e00\u6b65\uff0c\u6682\u65f6\u4e0d\u9700\u8981\u3002
\n<\/a><\/p>\n14. Specify Database Storage Options
\n\u77e5\u9053\u6570\u636e\u5e93\u5b58\u50a8\u9009\u9879
\n\u8fd9\u91cc\u9009\u62e9\u6587\u4ef6\u7cfb\u7edf\uff0c\u4e0d\u4f7f\u7528asm\u7ba1\u7406\u6587\u4ef6<\/p>\n15. Specify Recovery Options
\n\u6570\u636e\u5e93\u6062\u590d\u9009\u9879
\n\u8fd9\u91cc\u4e0d\u5f00\u542f\u81ea\u52a8\u5907\u4efd\u6570\u636e\u5e93
\n\u5982\u679c\u6709\u9700\u8981\u53ef\u4ee5\u81ea\u884c\u8c03\u6574
\n<\/a><\/p>\n16. Specify Schema Passwords
\n\u8bbe\u7f6e\u6570\u636e\u5e93\u5bc6\u7801
\n\u6309\u7167\u9700\u8981\u8bbe\u7f6e\u6570\u636e\u5e93\u5bc6\u7801
\n<\/a><\/p>\n17. Privileged Operating System Groups
\n\u8bbe\u7f6e\u6570\u636e\u5e93\u6743\u9650\u7ec4\uff0c\u7528\u4e8e\u548c\u672c\u673a\u7528\u6237\u7ed1\u5b9a\u3002
\n<\/a><\/p>\n18. Perform Prerequisite Checks
\n\u6548\u9a8c\u6570\u636e\u5e93\u5b89\u88c5\u73af\u5883
\n<\/a>
\nPS\uff1a\u51fa\u73b0\u4ee5\u4e0b\u8fd9\u4e9b\u5305\u672a\u5b89\u88c5\u3002
\n<\/a>
\n\u9700\u8981\u5b89\u88c5\u5305<\/p>\ngcc.x86_64\r\nlibaio.i686\r\nglibc.i686\r\ncompat-libstdc++-33.i686\r\ncompat-libstdc++-33.x86_64\r\nelfutils-libelf-devel\r\ngcc-c++\r\nlibaio-devel.x86_64\r\nlibaio-devel.i686\r\nlibstdc++.i686\r\nunixODBC.i686\r\nunixODBC.x86_64\r\nunixODBC-devel.x86_64\r\nunixODBC-devel.i686<\/pre>\n\u5148\u5b89\u88c5 epel\u6e90<\/p>\n
root@localhost:~# yum install epel-release -y<\/pre>\n\u7136\u540e\u4e0b\u8f7dpdksh-5.2.14<\/p>\n
root@localhost:~# wget ftp:\/\/rpmfind.net\/linux\/centos\/5.11\/os\/x86_64\/CentOS\/pdksh-5.2.14-37.el5_8.1.x86_64.rpm<\/pre>\n\u6700\u540e\u5728\u5b89\u88c5\u5176\u4ed6\u5305<\/p>\n
\u5b89\u88c5\u5b8c\u6210\u540e\u70b9\u51fb `Check Again` \u91cd\u65b0\u6548\u9a8c
\n <\/a>
\n\u5269\u4e0b\u7684\u8fd9\u4e9b\u5305\u662f\u56e0\u4e3aOracle 11G \u9700\u8981\u7684\u662fi386\u7248\u672c\u800ccentos6\u5f00\u59cb\u4f7f\u7528i686\u6807\u51c6\u5bfc\u81f4\u7684\uff0c\u52fe\u9009\u53f3\u4e0a\u89d2\u7684`Ignore All`\u3002 PS: [i386\u548ci686\u533a\u522b]<\/p>\n19. Summary \u6570\u636e\u5b89\u88c5\u7684\u914d\u7f6e\u6587\u672c\u3002\u6709\u9700\u8981\u7684\u53ef\u4ee5\u4fdd\u6301\u914d\u7f6e\u6587\u672c
\n<\/a><\/p>\n20. Install Product \u5f00\u59cb\u5b89\u88c5\uff0c\u7b49\u5f85\u3002\u3002\u3002\u3002\u3002
\n<\/a>
\n\u5b89\u88c5\u5757\u7ed3\u675f\u65f6\u4f1a\u5f39\u51fa\u4e00\u4e2a\u5bf9\u8bdd\u6846\u3002 <\/p>\n<\/a>
\n\u8fd9\u91cc\u6211\u4eec\u70b9\u51fb\u53f3\u4e0b\u89d2\u7684`Password Management` \u4fee\u6539\u5bc6\u7801\uff0c\u6709\u9700\u8981\u7684\u53ef\u4ee5\u5f00\u542fsocct\u7528\u6237
\n<\/a>
\n\u8fd9\u4e2a\u5f39\u6846\u63d0\u793a\u6211\u4eec\u9700\u8981\u7528root\u6743\u9650\u8fd0\u884c\u8fd9\u4e24\u811a\u672c\u3002
\n<\/a>
\n\u5207\u6362\u5230root\u7528\u6237\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4<\/p>\nroot@localhost:~# \/u01\/app\/oraInventory\/orainstRoot.sh\r\nroot@localhost:~# \/u01\/app\/oracle\/product\/11.2.0\/dbhome_1\/root.sh<\/pre>\n\u70b9\u51fbok\u5b8c\u6210\u5b89\u88c5<\/p>\n