{"id":195729,"date":"2024-11-13T17:25:18","date_gmt":"2024-11-13T09:25:18","guid":{"rendered":"https:\/\/server.hk\/cnblog\/195729\/"},"modified":"2024-11-13T17:25:19","modified_gmt":"2024-11-13T09:25:19","slug":"%e5%9c%a8fc6%e4%b8%8b%e6%ad%a3%e7%a2%ba%e5%ae%89%e8%a3%9doracle%e6%95%b8%e6%93%9a%e5%ba%ab","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/195729\/","title":{"rendered":"\u5728fc6\u4e0b\u6b63\u78ba\u5b89\u88ddOracle\u6578\u64da\u5eab"},"content":{"rendered":"<h1 id=\"%e5%9c%a8fc6%e4%b8%8b%e6%ad%a3%e7%a2%ba%e5%ae%89%e8%a3%9doracle%e6%95%b8%e6%93%9a%e5%ba%ab-VfKpQOptwf\">\u5728FC6\u4e0b\u6b63\u78ba\u5b89\u88ddOracle\u6578\u64da\u5eab<\/h1>\n<p>Oracle\u6578\u64da\u5eab\u662f\u4e00\u6b3e\u529f\u80fd\u5f37\u5927\u7684\u95dc\u4fc2\u578b\u6578\u64da\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\u5728FC6\uff08Fedora Core 6\uff09\u64cd\u4f5c\u7cfb\u7d71\u4e0b\u6b63\u78ba\u5b89\u88ddOracle\u6578\u64da\u5eab\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-VfKpQOptwf\">\u7cfb\u7d71\u8981\u6c42<\/h2>\n<p>\u5728\u5b89\u88ddOracle\u6578\u64da\u5eab\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u78ba\u4fdd\u7cfb\u7d71\u6eff\u8db3\u4ee5\u4e0b\u8981\u6c42\uff1a<\/p>\n<ul>\n<li>\u64cd\u4f5c\u7cfb\u7d71\uff1aFedora Core 6<\/li>\n<li>\u5167\u5b58\uff1a\u81f3\u5c111GB\uff08\u5efa\u8b702GB\u6216\u4ee5\u4e0a\uff09<\/li>\n<li>\u786c\u789f\u7a7a\u9593\uff1a\u81f3\u5c115GB\u7684\u53ef\u7528\u7a7a\u9593<\/li>\n<li>\u8655\u7406\u5668\uff1a\u652f\u630164\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-VfKpQOptwf\">\u5b89\u88dd\u524d\u7684\u6e96\u5099<\/h2>\n<p>\u5728\u5b89\u88ddOracle\u6578\u64da\u5eab\u4e4b\u524d\uff0c\u5efa\u8b70\u9032\u884c\u4ee5\u4e0b\u6e96\u5099\u5de5\u4f5c\uff1a<\/p>\n<ul>\n<li>\u66f4\u65b0\u7cfb\u7d71\uff1a\u78ba\u4fddFC6\u7cfb\u7d71\u662f\u6700\u65b0\u7684\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u66f4\u65b0\u7cfb\u7d71\uff1a<\/li>\n<pre><code>sudo yum update<\/code><\/pre>\n<li>\u5b89\u88dd\u5fc5\u8981\u7684\u4f9d\u8cf4\u5305\uff1aOracle\u6578\u64da\u5eab\u9700\u8981\u4e00\u4e9b\u7279\u5b9a\u7684\u4f9d\u8cf4\u5305\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88dd\uff1a<\/li>\n<pre><code>sudo yum install binutils compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel<\/code><\/pre>\n<\/ul>\n<h2 id=\"%e5%89%b5%e5%bb%baoracle%e7%94%a8%e6%88%b6%e5%92%8c%e7%b5%84-VfKpQOptwf\">\u5275\u5efaOracle\u7528\u6236\u548c\u7d44<\/h2>\n<p>\u5728\u5b89\u88ddOracle\u6578\u64da\u5eab\u4e4b\u524d\uff0c\u9700\u8981\u5275\u5efa\u4e00\u500b\u5c08\u7528\u7684\u7528\u6236\u548c\u7d44\u4f86\u904b\u884cOracle\u670d\u52d9\uff1a<\/p>\n<pre><code>sudo groupadd oinstall\nsudo groupadd dba\nsudo useradd -g oinstall -G dba oracle\nsudo passwd oracle<\/code><\/pre>\n<h2 id=\"%e4%b8%8b%e8%bc%89oracle%e6%95%b8%e6%93%9a%e5%ba%ab-VfKpQOptwf\">\u4e0b\u8f09Oracle\u6578\u64da\u5eab<\/h2>\n<p>\u524d\u5f80Oracle\u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09\u9069\u5408FC6\u7684Oracle\u6578\u64da\u5eab\u5b89\u88dd\u5305\u3002\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u5c07\u5176\u4e0a\u50b3\u5230\u4f3a\u670d\u5668\u7684\u67d0\u500b\u76ee\u9304\u4e2d\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code>\/home\/oracle<\/code><\/pre>\n<h2 id=\"%e8%a7%a3%e5%a3%93%e5%ae%89%e8%a3%9d%e5%8c%85-VfKpQOptwf\">\u89e3\u58d3\u5b89\u88dd\u5305<\/h2>\n<p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u89e3\u58d3\u4e0b\u8f09\u7684Oracle\u5b89\u88dd\u5305\uff1a<\/p>\n<pre><code>cd \/home\/oracle\nunzip oracle-xe-*.zip<\/code><\/pre>\n<h2 id=\"%e9%85%8d%e7%bd%ae%e7%92%b0%e5%a2%83%e8%ae%8a%e9%87%8f-VfKpQOptwf\">\u914d\u7f6e\u74b0\u5883\u8b8a\u91cf<\/h2>\n<p>\u5728\u5b89\u88ddOracle\u4e4b\u524d\uff0c\u9700\u8981\u914d\u7f6e\u74b0\u5883\u8b8a\u91cf\u3002\u7de8\u8f2foracle\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=\/home\/oracle\/oracle\nexport PATH=$ORACLE_HOME\/bin:$PATH\nexport LD_LIBRARY_PATH=$ORACLE_HOME\/lib<\/code><\/pre>\n<p>\u4fdd\u5b58\u4e26\u9000\u51fa\u7de8\u8f2f\u5668\uff0c\u7136\u5f8c\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4\u4f7f\u8b8a\u91cf\u751f\u6548\uff1a<\/p>\n<pre><code>source \/home\/oracle\/.bash_profile<\/code><\/pre>\n<h2 id=\"%e9%96%8b%e5%a7%8b%e5%ae%89%e8%a3%9doracle%e6%95%b8%e6%93%9a%e5%ba%ab-VfKpQOptwf\">\u958b\u59cb\u5b89\u88ddOracle\u6578\u64da\u5eab<\/h2>\n<p>\u4ee5oracle\u7528\u6236\u8eab\u4efd\u767b\u9304\uff0c\u7136\u5f8c\u904b\u884c\u5b89\u88dd\u7a0b\u5e8f\uff1a<\/p>\n<pre><code>cd \/home\/oracle\/oracle\n.\/runInstaller<\/code><\/pre>\n<p>\u5b89\u88dd\u904e\u7a0b\u4e2d\uff0c\u6839\u64da\u63d0\u793a\u9032\u884c\u64cd\u4f5c\uff0c\u9078\u64c7\u5b89\u88dd\u985e\u578b\u548c\u914d\u7f6e\u9078\u9805\u3002\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u6839\u64da\u63d0\u793a\u57f7\u884c\u5fc5\u8981\u7684\u5f8c\u7e8c\u6b65\u9a5f\u3002<\/p>\n<h2 id=\"%e9%85%8d%e7%bd%aeoracle%e6%95%b8%e6%93%9a%e5%ba%ab-VfKpQOptwf\">\u914d\u7f6eOracle\u6578\u64da\u5eab<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u9700\u8981\u914d\u7f6eOracle\u6578\u64da\u5eab\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u555f\u52d5Oracle\u6578\u64da\u5eab\uff1a<\/p>\n<pre><code>sqlplus \/ as sysdba\nstartup<\/code><\/pre>\n<p>\u9019\u6a23\u5c31\u53ef\u4ee5\u958b\u59cb\u4f7f\u7528Oracle\u6578\u64da\u5eab\u4e86\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-VfKpQOptwf\">\u7e3d\u7d50<\/h2>\n<p>\u5728FC6\u4e0b\u5b89\u88ddOracle\u6578\u64da\u5eab\u7684\u904e\u7a0b\u4e2d\uff0c\u9700\u8981\u6ce8\u610f\u7cfb\u7d71\u8981\u6c42\u3001\u4f9d\u8cf4\u5305\u7684\u5b89\u88dd\u4ee5\u53ca\u7528\u6236\u548c\u7d44\u7684\u5275\u5efa\u3002\u901a\u904e\u6b63\u78ba\u7684\u6b65\u9a5f\u548c\u914d\u7f6e\uff0c\u60a8\u53ef\u4ee5\u6210\u529f\u5730\u5728FC6\u4e0a\u904b\u884cOracle\u6578\u64da\u5eab\u3002\u5982\u679c\u60a8\u9700\u8981\u7a69\u5b9a\u7684\u4f3a\u670d\u5668\u74b0\u5883\u4f86\u904b\u884c\u60a8\u7684\u6578\u64da\u5eab\uff0c\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u670d\u52d9\uff0c\u4ee5\u7372\u5f97\u66f4\u597d\u7684\u6027\u80fd\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728fc6\u4e0b\u6b63\u78ba\u5b89\u88ddOracle\u6578\u64da\u5eab\u7684\u8a73\u7d30\u6b65\u9a5f\u8207\u6280\u5de7\uff0c\u78ba\u4fdd\u9806\u5229\u914d\u7f6e\u8207\u904b\u884c\uff0c\u63d0\u5347\u6578\u64da\u7ba1\u7406\u6548\u7387\u3002<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-195729","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/195729","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"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=195729"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/195729\/revisions"}],"predecessor-version":[{"id":195730,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/195729\/revisions\/195730"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=195729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=195729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=195729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}