{"id":42570,"date":"2024-10-03T19:01:36","date_gmt":"2024-10-03T11:01:36","guid":{"rendered":"https:\/\/server.hk\/cnblog\/42570\/"},"modified":"2024-10-03T19:01:36","modified_gmt":"2024-10-03T11:01:36","slug":"centos-6-6-%e5%ae%89%e8%a3%9d-oracle-11gr2","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/42570\/","title":{"rendered":"CentOS 6.6 \u5b89\u88dd Oracle 11gR2"},"content":{"rendered":"<h1 id=\"centos-6-6-%e5%ae%89%e8%a3%9d-oracle-11gr2-fobsEmUKnr\">CentOS 6.6 \u5b89\u88dd Oracle 11gR2<\/h1>\n<p>\u5728\u7576\u524d\u7684\u6578\u64da\u7ba1\u7406\u74b0\u5883\u4e2d\uff0cOracle 11gR2 \u4f5c\u70ba\u4e00\u6b3e\u5f37\u5927\u7684\u95dc\u806f\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u5404\u7a2e\u4f01\u696d\u7d1a\u61c9\u7528\u3002\u672c\u6587\u5c07\u6307\u5c0e\u60a8\u5982\u4f55\u5728 CentOS 6.6 \u4e0a\u5b89\u88dd Oracle 11gR2\uff0c\u4e26\u63d0\u4f9b\u8a73\u7d30\u7684\u6b65\u9a5f\u548c\u6ce8\u610f\u4e8b\u9805\u3002<\/p>\n<h2 id=\"%e7%b3%bb%e7%b5%b1%e8%a6%81%e6%b1%82-fobsEmUKnr\">\u7cfb\u7d71\u8981\u6c42<\/h2>\n<p>\u5728\u958b\u59cb\u5b89\u88dd\u4e4b\u524d\uff0c\u78ba\u4fdd\u60a8\u7684\u7cfb\u7d71\u7b26\u5408\u4ee5\u4e0b\u8981\u6c42\uff1a<\/p>\n<ul>\n<li>\u64cd\u4f5c\u7cfb\u7d71\uff1aCentOS 6.6<\/li>\n<li>\u5167\u5b58\uff1a\u81f3\u5c11 1 GB\uff08\u5efa\u8b70 2 GB \u6216\u66f4\u591a\uff09<\/li>\n<li>\u786c\u789f\u7a7a\u9593\uff1a\u81f3\u5c11 5 GB \u7684\u53ef\u7528\u7a7a\u9593<\/li>\n<li>SWAP \u7a7a\u9593\uff1a\u81f3\u5c11 2 GB<\/li>\n<\/ul>\n<h2 id=\"%e5%ae%89%e8%a3%9d%e5%89%8d%e7%9a%84%e6%ba%96%e5%82%99-fobsEmUKnr\">\u5b89\u88dd\u524d\u7684\u6e96\u5099<\/h2>\n<p>\u5728\u5b89\u88dd Oracle 11gR2 \u4e4b\u524d\uff0c\u60a8\u9700\u8981\u9032\u884c\u4e00\u4e9b\u7cfb\u7d71\u914d\u7f6e\uff1a<\/p>\n<h3 id=\"1-%e6%9b%b4%e6%96%b0%e7%b3%bb%e7%b5%b1-fobsEmUKnr\">1. \u66f4\u65b0\u7cfb\u7d71<\/h3>\n<pre><code>sudo yum update<\/code><\/pre>\n<h3 id=\"2-%e5%ae%89%e8%a3%9d%e5%bf%85%e8%a6%81%e7%9a%84%e4%be%9d%e8%b3%b4%e5%8c%85-fobsEmUKnr\">2. \u5b89\u88dd\u5fc5\u8981\u7684\u4f9d\u8cf4\u5305<\/h3>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd Oracle \u6240\u9700\u7684\u4f9d\u8cf4\u5305\uff1a<\/p>\n<pre><code>sudo yum install -y binutils compat-libstdc++-33 gcc gcc-c++ glibc-devel ksh libaio libaio-devel<\/code><\/pre>\n<h3 id=\"3-%e5%89%b5%e5%bb%ba-oracle-%e7%94%a8%e6%88%b6%e5%92%8c%e7%b5%84-fobsEmUKnr\">3. \u5275\u5efa Oracle \u7528\u6236\u548c\u7d44<\/h3>\n<p>\u63a5\u4e0b\u4f86\uff0c\u60a8\u9700\u8981\u5275\u5efa\u4e00\u500b\u5c08\u7528\u7684 Oracle \u7528\u6236\u548c\u7d44\uff1a<\/p>\n<pre><code>sudo groupadd oinstall\nsudo groupadd dba\nsudo useradd -g oinstall -G dba oracle\nsudo passwd oracle<\/code><\/pre>\n<h3 id=\"4-%e8%a8%ad%e7%bd%ae%e5%85%a7%e6%a0%b8%e5%8f%83%e6%95%b8-fobsEmUKnr\">4. \u8a2d\u7f6e\u5167\u6838\u53c3\u6578<\/h3>\n<p>\u7de8\u8f2f \/etc\/sysctl.conf \u6587\u4ef6\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre><code>fs.file-max = 6815744\nkernel.shmall = 2097152\nkernel.shmmax = 4294967295\nkernel.shmmni = 4096\nkernel.sem = 250 32000 100 128\nnet.ipv4.ip_local_port_range = 1024 65000\nnet.core.rmem_default = 262144\nnet.core.rmem_max = 262144\nnet.core.wmem_default = 262144\nnet.core.wmem_max = 262144<\/code><\/pre>\n<p>\u7136\u5f8c\u904b\u884c\u4ee5\u4e0b\u547d\u4ee4\u4f7f\u66f4\u6539\u751f\u6548\uff1a<\/p>\n<pre><code>sudo sysctl -p<\/code><\/pre>\n<h3 id=\"5-%e8%a8%ad%e7%bd%ae%e7%94%a8%e6%88%b6%e7%92%b0%e5%a2%83%e8%ae%8a%e9%87%8f-fobsEmUKnr\">5. \u8a2d\u7f6e\u7528\u6236\u74b0\u5883\u8b8a\u91cf<\/h3>\n<p>\u7de8\u8f2f Oracle \u7528\u6236\u7684 .bash_profile \u6587\u4ef6\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre><code>export ORACLE_HOME=\/u01\/app\/oracle\/product\/11.2.0\/dbhome_1\nexport ORACLE_SID=orcl\nexport PATH=$ORACLE_HOME\/bin:$PATH<\/code><\/pre>\n<h2 id=\"%e5%ae%89%e8%a3%9d-oracle-11gr2-fobsEmUKnr\">\u5b89\u88dd Oracle 11gR2<\/h2>\n<p>\u4e0b\u8f09 Oracle 11gR2 \u7684\u5b89\u88dd\u5305\uff0c\u4e26\u5c07\u5176\u4e0a\u50b3\u5230 CentOS \u4f3a\u670d\u5668\u4e0a\u3002\u7136\u5f8c\uff0c\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<h3 id=\"1-%e8%a7%a3%e5%a3%93%e5%ae%89%e8%a3%9d%e5%8c%85-fobsEmUKnr\">1. \u89e3\u58d3\u5b89\u88dd\u5305<\/h3>\n<pre><code>unzip linux.x64_11gR2_database_1of2.zip\nunzip linux.x64_11gR2_database_2of2.zip<\/code><\/pre>\n<h3 id=\"2-%e9%96%8b%e5%a7%8b%e5%ae%89%e8%a3%9d-fobsEmUKnr\">2. \u958b\u59cb\u5b89\u88dd<\/h3>\n<p>\u5207\u63db\u5230\u89e3\u58d3\u5f8c\u7684\u76ee\u9304\uff0c\u4e26\u904b\u884c\u5b89\u88dd\u7a0b\u5e8f\uff1a<\/p>\n<pre><code>cd database\n.\/runInstaller<\/code><\/pre>\n<h3 id=\"3-%e8%b7%9f%e9%9a%a8%e5%ae%89%e8%a3%9d%e5%90%91%e5%b0%8e-fobsEmUKnr\">3. \u8ddf\u96a8\u5b89\u88dd\u5411\u5c0e<\/h3>\n<p>\u5b89\u88dd\u5411\u5c0e\u5c07\u5f15\u5c0e\u60a8\u5b8c\u6210\u5b89\u88dd\u904e\u7a0b\u3002\u8acb\u6839\u64da\u9700\u8981\u9078\u64c7\u5b89\u88dd\u985e\u578b\u548c\u914d\u7f6e\u9078\u9805\u3002<\/p>\n<h3 id=\"4-%e5%9f%b7%e8%a1%8c%e5%be%8c%e7%ba%8c%e8%85%b3%e6%9c%ac-fobsEmUKnr\">4. \u57f7\u884c\u5f8c\u7e8c\u8173\u672c<\/h3>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u6839\u64da\u63d0\u793a\u57f7\u884c root \u7528\u6236\u7684\u5f8c\u7e8c\u8173\u672c\uff1a<\/p>\n<pre><code>sudo \/u01\/app\/oraInventory\/orainstRoot.sh\nsudo \/u01\/app\/oracle\/product\/11.2.0\/dbhome_1\/root.sh<\/code><\/pre>\n<h2 id=\"%e5%ae%89%e8%a3%9d%e5%be%8c%e7%9a%84%e9%85%8d%e7%bd%ae-fobsEmUKnr\">\u5b89\u88dd\u5f8c\u7684\u914d\u7f6e<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5 Oracle \u6578\u64da\u5eab\uff1a<\/p>\n<pre><code>sqlplus \/ as sysdba\nstartup<\/code><\/pre>\n<h2 id=\"%e7%b8%bd%e7%b5%90-fobsEmUKnr\">\u7e3d\u7d50<\/h2>\n<p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5011\u4ecb\u7d39\u4e86\u5982\u4f55\u5728 CentOS 6.6 \u4e0a\u5b89\u88dd Oracle 11gR2 \u7684\u8a73\u7d30\u6b65\u9a5f\u3002\u9019\u4e9b\u6b65\u9a5f\u5305\u62ec\u7cfb\u7d71\u8981\u6c42\u3001\u5b89\u88dd\u524d\u7684\u6e96\u5099\u3001\u5b89\u88dd\u904e\u7a0b\u53ca\u5b89\u88dd\u5f8c\u7684\u914d\u7f6e\u3002\u82e5\u60a8\u9700\u8981\u9032\u4e00\u6b65\u7684\u652f\u6301\u6216\u5c0b\u627e\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u4ee5\u7372\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to install Oracle 11gR2 on CentOS 6.6 with this step-by-step guide, ensuring a smooth setup for your database environment.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-42570","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=42570"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42570\/revisions"}],"predecessor-version":[{"id":42571,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42570\/revisions\/42571"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=42570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=42570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=42570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}