{"id":468,"date":"2021-07-01T20:04:47","date_gmt":"2021-07-01T12:04:47","guid":{"rendered":"https:\/\/swordofmorning.com\/?p=468"},"modified":"2025-10-09T13:56:04","modified_gmt":"2025-10-09T05:56:04","slug":"centos8-install-oracle19c","status":"publish","type":"post","link":"https:\/\/swordofmorning.com\/index.php\/2021\/07\/01\/centos8-install-oracle19c\/","title":{"rendered":"CentOS8 \u5b89\u88c5Oracle19c"},"content":{"rendered":"<p><div class=\"has-toc have-toc\"><\/div><br \/>\n&emsp;&emsp;\u672c\u6b21\u5b89\u88c5\u5728win10\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u9759\u9ed8\u5b89\u88c5\uff08\u547d\u4ee4\u884c\uff09Oracle19c\u6570\u636e\u5e93\u3002<\/p>\n<h2>\u4e00\u3001\u51c6\u5907<\/h2>\n<h3>1.1 \u5b89\u88c5\u5305\u4e0b\u8f7d<\/h3>\n<p>&emsp;&emsp;\u8fd9\u6b21\u5b89\u88c5\u6211\u4eec\u9700\u89814\u4e2a\u5b89\u88c5\u5305\uff0cOracle19c\u5b89\u88c5\u5305\u3001Oracle19c\u9884\u5b89\u88c5\u5305\u3001\u4ee5\u53ca\u4e24\u4e2a\u5b89\u88c5\u73af\u5883\u3002\u5b83\u4eec\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<ul>\n<li>oracle-database-ee-19c-1.0-1.x86_64<\/li>\n<li>oracle-database-preinstall-19c-1.0-1.el7.x86_64<\/li>\n<li>compat-libstdc++-33-3.2.3-72.el7.x86_64<\/li>\n<li>compat-libcap1-1.10-7.el7.x86_64<\/li>\n<\/ul>\n<p>&emsp;&emsp;\u8fd9\u91cc\u7ed9\u51fa\u4e0b\u8f7d\u94fe\u63a5\uff1a<\/p>\n<ul>\n<li>19c\u5b89\u88c5\u5305\uff1a<a href=\"https:\/\/www.oracle.com\/database\/technologies\/\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/www.oracle.com\/database\/technologies\/<\/a><\/li>\n<li>19c\u9884\u5b89\u88c5\u5305\uff1a<a href=\"https:\/\/yum.oracle.com\/repo\/OracleLinux\/OL7\/latest\/x86_64\/\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/yum.oracle.com\/repo\/OracleLinux\/OL7\/latest\/x86_64\/<\/a><\/li>\n<li>compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm \uff1a<a href=\"https:\/\/rpmfind.net\/linux\/rpm2html\/search.php?query=compat-libstdc%2B%2B-33\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/rpmfind.net\/linux\/rpm2html\/search.php?query=compat-libstdc%2B%2B-33<\/a><\/li>\n<li>compat-libcap1-1.10-7.el7.x86_64.rpm \uff1a <a href=\"https:\/\/rpmfind.net\/linux\/rpm2html\/search.php?query=compat-libcap1(x86-64\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/rpmfind.net\/linux\/rpm2html\/search.php?query=compat-libcap1(x86-64<\/a>)<\/li>\n<\/ul>\n<p>&emsp;&emsp;\u9884\u5b89\u88c5\u5305\u9700\u8981\u8fdb\u5165\u76ee\u5f55\u67e5\u627e\u5bf9\u5e94\u7684\u7248\u672c\uff0c\u540e\u4e24\u8005\u5982\u679c\u6ca1\u6709\u5b89\u88c5\u7684\u8bdd\uff0c\u5728\u5b89\u88c5\u9884\u5b89\u88c5\u5305\u65f6\u4f1a\u63d0\u793a\u7f3a\u5c11\u73af\u5883\u3002<\/p>\n<h3>1.2 \u5b89\u88c5\u5305\u4e0a\u4f20<\/h3>\n<p>&emsp;&emsp;\u5c06\u5b89\u88c5\u5305\u4e0a\u4f20\u5230\u670d\u52a1\u5668\u6839\u76ee\u5f55\uff0c\u6015\u9ebb\u70e6\u53ef\u4ee5\u5148\u5b89\u88c5\u4e2a\u5b9d\u5854\u9762\u677f\uff0c\u53ef\u89c6\u5316\u4e0a\u4f20\u6587\u4ef6\u3002<br \/>\n&emsp;&emsp;\u6211\u8fd9\u91cc\u7684\u76ee\u5f55\u4e3a\u201c\u6839\u76ee\u5f55\/home\/admin\u201d\uff0c\u6839\u636e\u4e2a\u4eba\u60c5\u51b5\u81ea\u884c\u8c03\u6574\u3002<\/p>\n<h2>\u4e8c\u3001\u5b89\u88c5<\/h2>\n<h3>2.1 \u5b89\u88c5\u73af\u5883<\/h3>\n<p>&emsp;&emsp;cd\u5230\u4f60\u7684\u4e0a\u4f20\u76ee\u5f55\uff0c\u4e4b\u540e\u6211\u4eec\u5b89\u88c5\u73af\u5883\u5305\uff1a<\/p>\n<pre><code>yum localinstall -y compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm\nyum localinstall -y compat-libcap1-1.10-7.el7.x86_64.rpm<\/code><\/pre>\n<h3>2.2 \u5b89\u88c5\u9884\u5b89\u88c5\u5305<\/h3>\n<pre><code>yum localinstall -y oracle-database-preinstall-19c-1.0-1.el7.x86_64.rpm<\/code><\/pre>\n<p>&emsp;&emsp;\u8fd9\u4e00\u6b65\u5b8c\u6210\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u89e3\u538b19c\u5b89\u88c5\u5305\u4e86\uff0c\u4f46\u662f\u4e4b\u540e\u53ef\u80fd\u4f1a\u63d0\u793a\u7f3a\u5c11libnsl\uff0c\u6211\u4eec\u8fd9\u91cc\u5b89\u88c5\u4e00\u4e0b\u3002<\/p>\n<pre><code>yum install  libnsl<\/code><\/pre>\n<h3>2.3 \u5b89\u88c519c<\/h3>\n<p>&emsp;&emsp;\u89e3\u538b<\/p>\n<pre><code>yum localinstall -y oracle-database-ee-19c-1.0-1.x86_64.rpm<\/code><\/pre>\n<p>&emsp;&emsp;\u914d\u7f6e19c<\/p>\n<pre><code>\/etc\/init.d\/oracledb_ORCLCDB-19c configure<\/code><\/pre>\n<p>&emsp;&emsp;\u8fd9\u4e00\u6b65\u4f1a\u7b49\u4e0a\u4e00\u6bb5\u65f6\u95f4\u3002\u5b8c\u6210\u4e4b\u540e\u6211\u4eec\u5207\u6362\u5230Oracle\u7528\u6237<\/p>\n<pre><code>su - oracle<\/code><\/pre>\n<p>&emsp;&emsp;\u63a5\u4e0b\u6765\u6211\u4eec\u6dfb\u52a0.bash_profile\u7684\u5185\u5bb9\uff1a<\/p>\n<pre><code>vi .bash_profile\n\n# \u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\nexport ORACLE_HOME=\/opt\/oracle\/product\/19c\/dbhome_1\nexport PATH=$PATH:\/opt\/oracle\/product\/19c\/dbhome_1\/bin\nexport ORACLE_SID=ORCLCDB\n# \u8fd9\u91cc\u7684ORCLCDB\u5c31\u662f\u6211\u4eec\u9700\u8981\u7528\u7684SID\uff0c\u4e0a\u9762\u6267\u884cconfigure\u7684\u65f6\u5019\u5b83\u4f1a\u8f93\u51faSID\u540d\n\n#\u4fdd\u5b58\u9000\u51fa\u540e\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u4f7f\u73af\u5883\u53d8\u91cf\u751f\u6548\nsource .bash_profile<\/code><\/pre>\n<p>&emsp;&emsp;\u4e0b\u9762\u542f\u52a8\u76d1\u542c\uff1a<\/p>\n<pre><code>sqlplus \/ as sysdba  #\u6253\u5f00sql\u7a97\u53e3\nstartup  #\u542f\u52a8\u670d\u52a1\nexit  #\u9000\u51fa\u547d\u4ee4\u7a97\u53e3\ncd $ORACLE_HOME\/bin   #\u5b9a\u4f4d\u5230bin\u76ee\u5f55\nlsnrctl start  #\u542f\u52a8\u76d1\u542c<\/code><\/pre>\n<p>&emsp;&emsp;\u73b0\u572819c\u5df2\u7ecf\u5b89\u88c5\u597d\u4e86\uff0c\u6211\u4eec\u53ef\u4ee5\u767b\u5f55\u5230sysdba\u4e2d\u521b\u5efa\u7528\u6237\uff0c19c\u521b\u5efa\u7528\u6237\u9700\u8981\u52a0\u524d\u7f00C##\uff0c\u4f8b\u5982\u7528\u6237Morning\uff0c\u521b\u5efa\u65f6\u9700\u8981 Create User C##Morning ......<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&emsp;&emsp;\u672c\u6b21\u5b89\u88c5\u5728win10\u8fdc\u7a0b\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u9759\u9ed8\u5b89\u88c5\uff08\u547d\u4ee4\u884c\uff09Oracle19c\u6570\u636e\u5e93\u3002 \u4e00\u3001\u51c6\u5907 1.1 \u5b89\u88c5\u5305 &#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[63],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/swordofmorning.com\/index.php\/wp-json\/wp\/v2\/posts\/468"}],"collection":[{"href":"https:\/\/swordofmorning.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swordofmorning.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swordofmorning.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swordofmorning.com\/index.php\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":1,"href":"https:\/\/swordofmorning.com\/index.php\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"predecessor-version":[{"id":469,"href":"https:\/\/swordofmorning.com\/index.php\/wp-json\/wp\/v2\/posts\/468\/revisions\/469"}],"wp:attachment":[{"href":"https:\/\/swordofmorning.com\/index.php\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swordofmorning.com\/index.php\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swordofmorning.com\/index.php\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}