{"id":502,"date":"2016-10-05T15:31:20","date_gmt":"2016-10-05T07:31:20","guid":{"rendered":"http:\/\/www.821121.com\/?p=502"},"modified":"2020-12-11T10:03:56","modified_gmt":"2020-12-11T02:03:56","slug":"oracle10-2-0-5%e6%95%b0%e6%8d%ae%e5%ba%93-rac%e9%83%a8%e7%bd%b2%e4%ba%8c","status":"publish","type":"post","link":"http:\/\/www.821121.com\/?p=502","title":{"rendered":"Oracle10.2.0.5\u6570\u636e\u5e93 RAC\u90e8\u7f72(\u4e8c)"},"content":{"rendered":"<h1>5.cluster\u5b89\u88c5<\/h1>\n<pre><code class=\"language-sql\">gunzip 10201_clusterware_linux_x86-64.cpio.gz\ncpio -idmv &lt; 10201_clusterware_linux_x86-64.cpio\nchown -R oracle:oinstall clusterware\nchmod 777 clusterware\n\n\u9a8c\u8bc1\u73af\u5883\uff1a\n\n[oracle@node-rac1 ~]$ cd \/u01\/clusterware\/cluvfy\/\n\n[oracle@node-rac1 cluvfy]$ .\/runcluvfy.sh stage -pre crsinst -n ten1,ten2 -verbose\n\n\u51fa\u73b0\n\nERROR:\n\nCould not find a suitable set of interfaces for VIPs. \u8fd9\u662f10.2 RAC bug\uff0c\u540e\u9762\u4f1a\u89e3\u51b3\n\nroot\u7528\u6237\uff1a\ncd \/tmp\/clusterware\/rootpre\n[root@ten1 rootpre]# .\/rootpre.sh\nNo OraCM running \n\n[oracle@node-rac1 ~]$ cd clusterware\/\n\n[oracle@node-rac1 clusterware]$ .\/runInstaller<\/code><\/pre>\n<p>\u56fe\u5f62\u5316\u5b89\u88c5\uff0c\u56fe\u5982\u4e0b\uff1a<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981576856.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981603691.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981622038.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981633778.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981645459.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981657885.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981730226.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981740504.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981757212.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981770546.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981785062.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981793558.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606981827578.png\" alt=\"file\" \/><\/p>\n<pre><code class=\"language-sql\">[root@ten1 rootpre]# \/u01\/app\/oracle\/oraInventory\/orainstRoot.sh\nChanging permissions of \/u01\/app\/oracle\/oraInventory to 770.\nChanging groupname of \/u01\/app\/oracle\/oraInventory to oinstall.\nThe execution of the script is complete\n[root@ten1 rootpre]# \/u01\/app\/oracle\/product\/10.2.0\/db_1\/root.sh\nWARNING: directory &#039;\/u01\/app\/oracle\/product\/10.2.0&#039; is not owned by root\nWARNING: directory &#039;\/u01\/app\/oracle\/product&#039; is not owned by root\nWARNING: directory &#039;\/u01\/app\/oracle&#039; is not owned by root\nWARNING: directory &#039;\/u01\/app&#039; is not owned by root\nWARNING: directory &#039;\/u01&#039; is not owned by root\nChecking to see if Oracle CRS stack is already configured\n\/etc\/oracle does not exist. Creating it now.\n\nSetting the permissions on OCR backup directory\nSetting up NS directories\nOracle Cluster Registry configuration upgraded successfully\nWARNING: directory &#039;\/u01\/app\/oracle\/product\/10.2.0&#039; is not owned by root\nWARNING: directory &#039;\/u01\/app\/oracle\/product&#039; is not owned by root\nWARNING: directory &#039;\/u01\/app\/oracle&#039; is not owned by root\nWARNING: directory &#039;\/u01\/app&#039; is not owned by root\nWARNING: directory &#039;\/u01&#039; is not owned by root\nSuccessfully accumulated necessary OCR keys.\nUsing ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.\nnode &lt;nodenumber&gt;: &lt;nodename&gt; &lt;private interconnect name&gt; &lt;hostname&gt;\nnode 1: ten1 ten1-priv ten1\nCreating OCR keys for user &#039;root&#039;, privgrp &#039;root&#039;..\nOperation successful.\nNow formatting voting device: \/dev\/raw\/raw2\nFormat of 1 voting devices complete.\nStartup will be queued to init within 90 seconds.\nAdding daemons to inittab\nExpecting the CRS daemons to be up within 600 seconds.\nCSS is active on these nodes.\n        ten1\nCSS is active on all nodes.\nWaiting for the Oracle CRSD and EVMD to start\nOracle CRS stack installed and running under init(1M)\nRunning vipca(silent) for configuring nodeapps\n\/u01\/app\/oracle\/product\/10.2.0\/db_1\/jdk\/jre\/\/bin\/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory\n\u8fd9\u662f\u7531\u4e8eLD_ASSUME_KERNEL\u53c2\u6570\u8bbe\u7f6e\u4e0d\u6b63\u786e\u5f15\u8d77\n\u5728\u6240\u6709\u8282\u70b9\u673a\u5668\u7684\/u01\/app\/oracle\/product\/10.2.0\/crs\/bin\/vipca\u6587\u4ef6\u4e2d\uff0c\u4fee\u6539\u6587\u4ef6\u5185\u5bb9\n(\u6211\u8fd9\u91cc\u5b89\u88c5\u9519\u8bef\u4e86\uff0c\u5b89\u88c5\u8def\u5f84\u9009\u5230\u4e86\/u01\/app\/oracle\/product\/10.2.0\/db_1)\n\u5728\n       if [ &quot;$arch&quot; = &quot;i686&quot; -o &quot;$arch&quot; = &quot;ia64&quot; -o &quot;$arch&quot; = &quot;x86_64&quot; ]\n       then\n            LD_ASSUME_KERNEL=2.4.19\n            export LD_ASSUME_KERNEL\n       fi\n       \u540e\u9762\u52a0\u4e0a\nunset LD_ASSUME_KERNEL\n\nvi \/u01\/app\/oracle\/product\/10.2.0\/crs\/bin\/srvctl\n\u5728\nLD_ASSUME_KERNEL=2.4.19\nexport LD_ASSUME_KERNEL\n\u540e\u9762\u52a0\u4e0a\nunset LD_ASSUME_KERNEL\n\n\u91cd\u65b0\u8fd0\u884cvipca\uff08\u8282\u70b92\uff09\ncd \/u01\/app\/oracle\/product\/10.2.0\/crs\/bin\n.\/oifcfg setif -global eth0\/10.0.100.101:public\n.\/oifcfg setif -global eth1\/1.1.1.1:cluster_interconnect\n\u786e\u8ba4\u914d\u7f6e\n.\/oifcfg getif\nRoot\u7528\u6237\u56fe\u5f62\u5316\u754c\u9762\u8fd0\u884c\n\/u01\/app\/oracle\/product\/10.2.0\/crs\/bin\/vipca<\/code><\/pre>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982006127.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982014346.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982146134.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982155501.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982170961.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982183831.png\" alt=\"file\" \/><br \/>\n\u8be5\u95ee\u9898\u89e3\u51b3\u5b8c\u6210\uff0c\u4e0b\u56fe\u4e24\u4e2a\u811a\u672c\u5206\u522b\u5728\u4e24\u8282\u6709\u5e8f\u6267\u884c\u3002<br \/>\n\u7136\u540e\u5728\u4e0b\u56fe\u5b89\u88c5crs\u7684\u754c\u9762\u70b9\u51fbOK<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982206453.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982214327.png\" alt=\"file\" \/><\/p>\n<pre><code class=\"language-sql\">\u9a8c\u8bc1\u6d4b\u8bd5\uff1a\n\n[oracle@ten1 bin]$ .\/crs_stat -t\nName           Type           Target    State     Host        \n------------------------------------------------------------\nora.ten1.gsd   application    ONLINE    ONLINE    ten1        \nora.ten1.ons   application    ONLINE    ONLINE    ten1        \nora.ten1.vip   application    ONLINE    ONLINE    ten1        \nora.ten2.gsd   application    ONLINE    ONLINE    ten2        \nora.ten2.ons   application    ONLINE    ONLINE    ten2        \nora.ten2.vip   application    ONLINE    ONLINE    ten2    <\/code><\/pre>\n<h1>6\u3001\u88c5DB<\/h1>\n<pre><code class=\"language-sql\">[root@ten1 tmp]# gunzip 10201_database_linux_x86_64.cpio.gz\n[root@ten1 tmp]# cpio -idmv &lt; 10201_database_linux_x86_64.cpio\nchown -R oracle:oinstall database\nchmod 777 database\n\u53ef\u89c6\u5316\u5b89\u88c5\u6570\u636e\u5e93\uff1a\n[oracle@ten1 ~]$ cd \/tmp\/database\/\n[oracle@ten1 database]$ .\/runInstaller\n<\/code><\/pre>\n<p>\u56fe\u5f62\u64cd\u4f5c\u5982\u4e0b\uff1a<br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982417071.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982494477.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982512901.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982520247.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982549999.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982558747.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982568837.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982576546.png\" alt=\"file\" \/><br \/>\n<img decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/12\/image-1606982583953.png\" alt=\"file\" \/><\/p>\n<pre><code class=\"language-sql\">\u5206\u522b\u57282\u4e2a\u8282\u70b9\u4e0a\u7528root\u7528\u6237\u8fd0\u884c\uff1a\n\/u01\/app\/oracle\/product\/10.2.0\/db_1\/root.sh<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>5.cluster\u5b89\u88c5 gunzip 10201_<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,36],"tags":[],"class_list":["post-502","post","type-post","status-publish","format-standard","hentry","category-oracle-10g","category-36"],"_links":{"self":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/502","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=502"}],"version-history":[{"count":3,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/502\/revisions"}],"predecessor-version":[{"id":541,"href":"http:\/\/www.821121.com\/index.php?rest_route=\/wp\/v2\/posts\/502\/revisions\/541"}],"wp:attachment":[{"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=502"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.821121.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}