{"id":777,"date":"2019-05-04T17:30:25","date_gmt":"2019-05-04T09:30:25","guid":{"rendered":"http:\/\/www.821121.com\/?p=777"},"modified":"2020-12-11T09:48:30","modified_gmt":"2020-12-11T01:48:30","slug":"oracle12-2-0-1rac%e5%9c%a8linux6%e4%b8%8a%e9%83%a8%e7%bd%b2%e4%ba%8c","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=777","title":{"rendered":"Oracle12.2.0.1RAC\u5728linux6\u4e0a\u90e8\u7f72(\u4e8c)"},"content":{"rendered":"<h1>5\u3001\u4e0a\u4f20\u8f6f\u4ef6\u5305\uff0c\u5efa\u7acb\u4e92\u4fe1\u3001\u5b89\u88c5rpm\u5305<\/h1>\n<h2>5.1.\u5efa\u7acb\u4e92\u4fe1<\/h2>\n<pre><code class=\"language-sql\">\u8282\u70b91   root\u7528\u6237\u4e0b\u6267\u884c\nchown -R oracle:oinstall linuxx64_12201_database.zip\nchmod 775 linuxx64_12201_database.zip\nunzip linuxx64_12201_database.zip -d \/u01\/app\/oracle\/product\/12.2.0\/db_1\n\u89e3\u538bdatabase,\u89e3\u538b\u540edatabse\u6240\u6709\u8005\u4e3aoracle\u7528\u6237,\u6743\u9650\u4e3a775\ncd \/database\/sshsetup\n .\/sshUserSetup.sh -user grid -hosts &quot;test12c1 test12c2 &quot; -advanced -noPromptPassphrase\n .\/sshUserSetup.sh -user oracle -hosts &quot;test12c1 test12c2 &quot; -advanced -noPromptPassphrase\n\u6d4b\u8bd5\u4e92\u4fe1\uff1a\n oracle\u3001grid\u7528\u6237\u90fd\u8981\u6d4b\u8bd5,\u5982\u4e0b\uff1a\nssh 10.0.100.21\n\u63d0\u793a\u8f93\u5165yes\nexit\nssh 10.0.100.22\n\u63d03\u793a\u8f93\u5165yes\nexit<\/code><\/pre>\n<h2>5.2.\u5b89\u88c5grid\u5185\u7684rpm\u5305<\/h2>\n<pre><code class=\"language-sql\">\u5728\u8282\u70b91 grid\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684rpm\u76ee\u5f55\u4e0b\u6709cvuqdisk-1.0.9-1.rpm\u7684\u5b89\u88c5\u5305\u3002\nchown -R grid:oinstall linuxx64_12201_grid_home.zip\nchmod 775 linuxx64_12201_grid_home.zip\n\u89e3\u538bgrid    su - grid       \u8fd9\u8fb9GI\u8f6f\u4ef6\u8981\u89e3\u538b\u5728GI HOME\u7684\u4f4d\u7f6e\u4e0b\uff0c\u5373unzip GI\u8f6f\u4ef6 GI HOME. GI HOME\u5185\u6240\u6709\u6587\u4ef6\u6240\u6709\u8005\u4e3agrid\u7528\u6237\uff0c\u6743\u9650\u4e3a775\nunzip linuxx64_12201_grid_home.zip -d \/u01\/12.2.0\/grid\n\ncd \/u01\/12.2.0\/grid\/cv\/rpm\nrpm -ivh cvuqdisk-1.0.10-1.rpm\n\n\u62f7\u8d1dcvuqdisk-1.0.10-1.rpm\u5230\u8282\u70b92\nscp cvuqdisk-1.0.10-1.rpm test12:\/tmp\/\n\n\u8282\u70b92\u5b89\u88c5\ncd \/u01\nrpm -ivh cvuqdisk-1.0.10-1.rpm <\/code><\/pre>\n<h2>5.3.grid\u5b89\u88c5\u524d\u68c0\u67e5<\/h2>\n<pre><code class=\"language-sql\">su - grid    cd \/u01\/12.2.0\/grid\n.\/runcluvfy.sh stage -pre crsinst -n jcptdb1,jcptdb2 -fixup -verbose\n\n\u5728\u4e24\u4e2a\u8282\u70b9\u4e0broot\u7528\u6237\u4e0b\u6267\u884c     \/tmp\/CVU_12.2.0.1.0_grid\/runfixup.sh    \u7136\u540e\u70b9enter<\/code><\/pre>\n<h1>6\u3001\u5b89\u88c5grid<\/h1>\n<pre><code class=\"language-sql\">\u7528grid\u7528\u6237\u53ef\u89c6\u5316\u767b\u5f55\n[grid@test12c1 ~]$ cd $ORACLE_HOME\n[grid@test12c1 grid]$ .\/gridSetup.sh <\/code><\/pre>\n<p>\u56fe\u5f62\u8fc7\u7a0b\u5982\u4e0b\uff1a<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073825691.png\" alt=\"file\" \/><br \/>\n\u4ee5\u4e0b\u7684\u5b89\u88c5\u9009\u9879\u7684\u542b\u4e49\u53ef\u53c2\u7167\u5b98\u65b9\u6587\u6863\uff1a<a href=\"https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/12.2\/cwlin\/understanding-cluster-configuration-options.html#GUID-4D6C2B52-9845-48E2-AD68-F0586AA20F48\">https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/12.2\/cwlin\/understanding-cluster-configuration-options.html#GUID-4D6C2B52-9845-48E2-AD68-F0586AA20F48<\/a><br \/>\n\u666e\u901a\u7684\u96c6\u7fa4\u9009\u62e9\u7b2c\u4e00\u4e2a\u5c31\u884c\u3002<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073857273.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073868164.png\" alt=\"file\" \/><br \/>\n\u4ee5\u4e0b\u4e3a\u9009\u62e9\u8282\u70b9\uff08\u7531\u4e8e\u5185\u5b58\u8d44\u6e90\u4e0d\u8db3\uff0c\u76ee\u524d\u53ea\u6709\u5355\u8282\u70b9\uff09<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073888020.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073895010.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073911523.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073917023.png\" alt=\"file\" \/><br \/>\nOCR\u81f3\u5c11\u898139G\u7684\u7a7a\u95f4\uff0c\u6839\u636e\u4e4b\u524d\u5b9a\u7684\u5197\u4f59\u7b56\u7565\u8fdb\u884c\u9009\u62e9<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073948258.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073956748.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073968762.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073973794.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073980154.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073987626.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607073993938.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607074004553.png\" alt=\"file\" \/><br \/>\n\uff08\u8bf7\u5ffd\u7565\u4e0b\u56fe\u4e2d\u7684\u5185\u5b58\u3001SWAP\u4e0d\u8db3\u7684\u544a\u8b66\uff09<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607074014799.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607074019276.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607074034730.png\" alt=\"file\" \/><br \/>\n\u5728\u5404\u4e2a\u8282\u70b9\u4e0a\u7528root\u7528\u6237\u8fd0\u884c\u811a\u672c\uff1a<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607074046739.png\" alt=\"file\" \/><br \/>\n\u811a\u672c\u8fd0\u884c\u6210\u529f\u540e\uff0c\u4f1a\u62a5\u9519\uff0c\u5ffd\u7565\u8df3\u8fc7\uff1a<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607074057415.png\" alt=\"file\" \/><\/p>\n<h1>7\u3001\u6dfb\u52a0ASM\u78c1\u76d8<\/h1>\n<h2>7.1.\u6dfb\u52a0ASM<\/h2>\n<p>grid\u7528\u6237\u4e0b<br \/>\n\u7528asmca\u53ef\u89c6\u5316\u6dfb\u52a0<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607074098039.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1607074103719.png\" alt=\"file\" \/><\/p>\n<h2>7.2.\u5185\u5b58\u7a7a\u95f4\u4e0d\u8db3\u9700\u8981\u8c03\u6574\u4e00\u4e0bASM\u7684\u53c2\u6570\u914d\u7f6e<\/h2>\n<pre><code class=\"language-sql\">[grid@test12c1 ~]$ sqlplus \/ as sysasm\nSQL&gt; alter system set memory_target=4G scope=spfile;\n\nSystem altered.\n\nSQL&gt; alter system set memory_max_target=4G  scope=spfile;\n\nSystem altered.<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>5\u3001\u4e0a\u4f20\u8f6f\u4ef6\u5305\uff0c\u5efa\u7acb\u4e92\u4fe1\u3001\u5b89\u88c5rpm\u5305 5.1.\u5efa<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,38],"tags":[],"class_list":["post-777","post","type-post","status-publish","format-standard","hentry","category-oracle-12c","category--oracle-12c"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=777"}],"version-history":[{"count":3,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/777\/revisions"}],"predecessor-version":[{"id":841,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/777\/revisions\/841"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=777"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}