{"id":44188,"date":"2024-10-06T13:37:13","date_gmt":"2024-10-06T05:37:13","guid":{"rendered":"https:\/\/server.hk\/cnblog\/44188\/"},"modified":"2024-10-06T13:37:13","modified_gmt":"2024-10-06T05:37:13","slug":"centos-%e4%b8%8b%e5%ae%89%e8%a3%9d-oracle-11g-%e8%b3%87%e6%96%99%e5%ba%ab%e7%ae%a1%e7%90%86%e7%b3%bb%e7%b5%b1","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/44188\/","title":{"rendered":"CentOS \u4e0b\u5b89\u88dd Oracle 11g \u8cc7\u6599\u5eab\u7ba1\u7406\u7cfb\u7d71"},"content":{"rendered":"<h1 id=\"centos-%e4%b8%8b%e5%ae%89%e8%a3%9d-oracle-11g-%e8%b3%87%e6%96%99%e5%ba%ab%e7%ae%a1%e7%90%86%e7%b3%bb%e7%b5%b1-qRqlGSWdMq\">CentOS \u4e0b\u5b89\u88dd Oracle 11g \u8cc7\u6599\u5eab\u7ba1\u7406\u7cfb\u7d71<\/h1>\n<p>Oracle 11g \u662f\u4e00\u6b3e\u529f\u80fd\u5f37\u5927\u7684\u8cc7\u6599\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u4f01\u696d\u7d1a\u61c9\u7528\u4e2d\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 CentOS \u7cfb\u7d71\u4e0a\u5b89\u88dd Oracle 11g\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%e9%9c%80%e6%b1%82-qRqlGSWdMq\">\u7cfb\u7d71\u9700\u6c42<\/h2>\n<p>\u5728\u5b89\u88dd Oracle 11g \u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u78ba\u4fdd\u60a8\u7684 CentOS \u7cfb\u7d71\u7b26\u5408\u4ee5\u4e0b\u8981\u6c42\uff1a<\/p>\n<ul>\n<li>\u64cd\u4f5c\u7cfb\u7d71\uff1aCentOS 5 \u6216\u66f4\u9ad8\u7248\u672c<\/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>\u8655\u7406\u5668\uff1a\u652f\u6301 64 \u4f4d\u7684\u8655\u7406\u5668<\/li>\n<\/ul>\n<h2 id=\"%e5%ae%89%e8%a3%9d%e5%89%8d%e7%9a%84%e6%ba%96%e5%82%99-qRqlGSWdMq\">\u5b89\u88dd\u524d\u7684\u6e96\u5099<\/h2>\n<p>\u5728\u958b\u59cb\u5b89\u88dd\u4e4b\u524d\uff0c\u60a8\u9700\u8981\u9032\u884c\u4e00\u4e9b\u6e96\u5099\u5de5\u4f5c\uff1a<\/p>\n<ol>\n<li>\u66f4\u65b0\u7cfb\u7d71\uff1a<\/li>\n<pre><code>sudo yum update<\/code><\/pre>\n<li>\u5b89\u88dd\u5fc5\u8981\u7684\u4f9d\u8cf4\u5305\uff1a<\/li>\n<pre><code>sudo yum install -y binutils compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel libaio libaio-devel libXrender libXtst make<\/code><\/pre>\n<li>\u5275\u5efa Oracle \u7528\u6236\u548c\u7d44\uff1a<\/li>\n<pre><code>sudo groupadd oinstall<\/code><\/pre>\n<pre><code>sudo groupadd dba<\/code><\/pre>\n<pre><code>sudo useradd -g oinstall -G dba oracle<\/code><\/pre>\n<li>\u8a2d\u7f6e Oracle \u7528\u6236\u7684\u5bc6\u78bc\uff1a<\/li>\n<pre><code>sudo passwd oracle<\/code><\/pre>\n<\/ol>\n<h2 id=\"%e4%b8%8b%e8%bc%89-oracle-11g-%e5%ae%89%e8%a3%9d%e5%8c%85-qRqlGSWdMq\">\u4e0b\u8f09 Oracle 11g \u5b89\u88dd\u5305<\/h2>\n<p>\u524d\u5f80 Oracle \u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09 Oracle 11g \u7684\u5b89\u88dd\u5305\u3002\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u5c07\u5176\u4e0a\u50b3\u81f3 CentOS \u7cfb\u7d71\u4e2d\uff0c\u4e26\u89e3\u58d3\u7e2e\uff1a<\/p>\n<pre><code>unzip oracle11g.zip<\/code><\/pre>\n<h2 id=\"%e9%85%8d%e7%bd%ae%e7%92%b0%e5%a2%83%e8%ae%8a%e9%87%8f-qRqlGSWdMq\">\u914d\u7f6e\u74b0\u5883\u8b8a\u91cf<\/h2>\n<p>\u5728\u5b89\u88dd\u4e4b\u524d\uff0c\u9700\u8981\u914d\u7f6e Oracle \u7528\u6236\u7684\u74b0\u5883\u8b8a\u91cf\u3002\u7de8\u8f2f Oracle \u7528\u6236\u7684 .bash_profile \u6587\u4ef6\uff1a<\/p>\n<pre><code>sudo vi \/home\/oracle\/.bash_profile<\/code><\/pre>\n<p>\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u5167\u5bb9\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<p>\u4fdd\u5b58\u4e26\u9000\u51fa\u7de8\u8f2f\u5668\uff0c\u7136\u5f8c\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\u4f7f\u8b8a\u66f4\u751f\u6548\uff1a<\/p>\n<pre><code>source \/home\/oracle\/.bash_profile<\/code><\/pre>\n<h2 id=\"%e5%89%b5%e5%bb%ba%e5%ae%89%e8%a3%9d%e7%9b%ae%e9%8c%84-qRqlGSWdMq\">\u5275\u5efa\u5b89\u88dd\u76ee\u9304<\/h2>\n<p>\u63a5\u4e0b\u4f86\uff0c\u5275\u5efa Oracle \u7684\u5b89\u88dd\u76ee\u9304\u4e26\u8a2d\u7f6e\u6b0a\u9650\uff1a<\/p>\n<pre><code>sudo mkdir -p \/u01\/app\/oracle\/product\/11.2.0\/dbhome_1\nsudo chown -R oracle:oinstall \/u01\nsudo chmod -R 775 \/u01<\/code><\/pre>\n<h2 id=\"%e9%96%8b%e5%a7%8b%e5%ae%89%e8%a3%9d-oracle-11g-qRqlGSWdMq\">\u958b\u59cb\u5b89\u88dd Oracle 11g<\/h2>\n<p>\u4ee5 Oracle \u7528\u6236\u8eab\u4efd\u767b\u9304\uff0c\u7136\u5f8c\u9032\u5165\u89e3\u58d3\u7e2e\u7684\u5b89\u88dd\u76ee\u9304\uff1a<\/p>\n<pre><code>su - oracle\ncd \/path\/to\/extracted\/oracle11g<\/code><\/pre>\n<p>\u904b\u884c\u5b89\u88dd\u7a0b\u5e8f\uff1a<\/p>\n<pre><code>.\/runInstaller<\/code><\/pre>\n<p>\u6839\u64da\u5b89\u88dd\u5411\u5c0e\u7684\u6307\u793a\u9032\u884c\u64cd\u4f5c\uff0c\u9078\u64c7\u9069\u5408\u7684\u5b89\u88dd\u9078\u9805\u3002\u5b89\u88dd\u904e\u7a0b\u4e2d\uff0c\u7cfb\u7d71\u53ef\u80fd\u6703\u63d0\u793a\u60a8\u57f7\u884c\u4e00\u4e9b\u8173\u672c\uff0c\u8acb\u6839\u64da\u63d0\u793a\u5728\u7d42\u7aef\u4e2d\u57f7\u884c\u3002<\/p>\n<h2 id=\"%e5%ae%89%e8%a3%9d%e5%be%8c%e7%9a%84%e9%85%8d%e7%bd%ae-qRqlGSWdMq\">\u5b89\u88dd\u5f8c\u7684\u914d\u7f6e<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u9700\u8981\u914d\u7f6e Oracle \u8cc7\u6599\u5eab\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5275\u5efa\u8cc7\u6599\u5eab\uff1a<\/p>\n<pre><code>dbca<\/code><\/pre>\n<p>\u6839\u64da\u5411\u5c0e\u7684\u6307\u793a\u5b8c\u6210\u8cc7\u6599\u5eab\u7684\u5275\u5efa\u548c\u914d\u7f6e\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-qRqlGSWdMq\">\u7e3d\u7d50<\/h2>\n<p>\u5728 CentOS \u7cfb\u7d71\u4e0a\u5b89\u88dd Oracle 11g \u8cc7\u6599\u5eab\u7ba1\u7406\u7cfb\u7d71\u7684\u904e\u7a0b\u4e2d\uff0c\u60a8\u9700\u8981\u6ce8\u610f\u7cfb\u7d71\u9700\u6c42\u3001\u4f9d\u8cf4\u5305\u7684\u5b89\u88dd\u3001\u74b0\u5883\u8b8a\u91cf\u7684\u914d\u7f6e\u4ee5\u53ca\u5b89\u88dd\u76ee\u9304\u7684\u8a2d\u7f6e\u3002\u9019\u4e9b\u6b65\u9a5f\u5c07\u5e6b\u52a9\u60a8\u9806\u5229\u5b8c\u6210\u5b89\u88dd\uff0c\u4e26\u958b\u59cb\u4f7f\u7528 Oracle 11g \u9032\u884c\u8cc7\u6599\u7ba1\u7406\u3002<\/p>\n<p>\u5982\u9700\u9032\u4e00\u6b65\u4e86\u89e3\u6709\u95dc <a href=\"https:\/\/server.hk\">\u9999\u6e2f VPS<\/a> \u7684\u8cc7\u8a0a\uff0c\u8acb\u8a2a\u554f\u6211\u5011\u7684\u7db2\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728 CentOS \u4e0a\u5b89\u88dd Oracle 11g \u8cc7\u6599\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u6b65\u9a5f\u7c21\u55ae\uff0c\u52a9\u60a8\u8f15\u9b06\u642d\u5efa\u9ad8\u6548\u7684\u6578\u64da\u74b0\u5883\u3002<\/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-44188","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/44188","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=44188"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/44188\/revisions"}],"predecessor-version":[{"id":44189,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/44188\/revisions\/44189"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=44188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=44188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=44188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}