﻿{"id":1782,"date":"2020-06-23T16:16:18","date_gmt":"2020-06-23T08:16:18","guid":{"rendered":"http:\/\/www.llku.com\/?p=1782"},"modified":"2020-06-29T09:59:59","modified_gmt":"2020-06-29T01:59:59","slug":"oracle-database-psu-cpu","status":"publish","type":"post","link":"https:\/\/www.llku.com\/?p=1782","title":{"rendered":"Oracle Database PSU\/CPU"},"content":{"rendered":"<div class=\"clear\"><strong>1. \u4ec0\u4e48\u662fPSU\/CPU\uff1f<\/strong><\/div>\n<div class=\"postBody\">\n<div id=\"cnblogs_post_body\" class=\"blogpost-body \">\n<p>CPU: Critical Patch Update<br \/>\nOracle\u5bf9\u4e8e\u5176\u4ea7\u54c1\u6bcf\u4e2a\u5b63\u5ea6\u53d1\u884c\u4e00\u6b21\u7684\u5b89\u5168\u8865\u4e01\u5305\uff0c\u901a\u5e38\u662f\u4e3a\u4e86\u4fee\u590d\u4ea7\u54c1\u4e2d\u7684\u5b89\u5168\u9690\u60a3\u3002<\/p>\n<p>PSU: Patch Set Updates<br \/>\nOracle\u5bf9\u4e8e\u5176\u4ea7\u54c1\u6bcf\u4e2a\u5b63\u5ea6\u53d1\u884c\u4e00\u6b21\u7684\u8865\u4e01\u5305\uff0c\u5305\u542b\u4e86bug\u7684\u4fee\u590d\u3002Oracle\u9009\u53d6\u88ab\u7528\u6237\u4e0b\u8f7d\u6570\u91cf\u591a\u7684\uff0c\u5e76\u4e14\u88ab\u9a8c\u8bc1\u8fc7\u5177\u6709\u8f83\u4f4e\u98ce\u9669\u7684\u8865\u4e01\u653e\u5165\u5230\u6bcf\u4e2a\u5b63\u5ea6\u7684PSU\u4e2d\u3002\u5728\u6bcf\u4e2aPSU\u4e2d\u4e0d\u4f46\u5305\u542bBug\u7684\u4fee\u590d\u800c\u4e14\u8fd8\u5305\u542b\u4e86\u6700\u65b0\u7684CPU\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u67e5\u627e\u6700\u65b0\u7684PSU\uff1f<\/strong><br \/>\n\u6bcf\u4e2a\u6570\u636e\u5e93\u7248\u672c\u90fd\u6709\u81ea\u5df1\u7684PSU\uff0cPSU\u7248\u672c\u53f7\u4f53\u73b0\u5728\u6570\u636e\u5e93\u7248\u672c\u7684\u6700\u540e\u4e00\u4f4d\uff0c\u6bd4\u5982\u6700\u65b0\u768410.2.0.5\u7684PSU\u662f10.2.0.5.3\uff0c\u800c11.2.0.2\u7684\u6700\u65b0PSU\u5219\u662f11.2.0.2.2\u3002<br \/>\n<a href=\"http:\/\/support.oracle.com\/\">MOS<\/a>\u7ad9\u70b9\u4e2dOracle Recommended Patches \u2014 Oracle Database [ID 756671.1] \u6587\u6863\u4e2d\u67e5\u5230\u5404\u4e2a\u4ea7\u54c1\u7248\u672c\u6700\u65b0\u7684PSU\u3002<br \/>\n\u5982\u679c\u4f60\u8bb0\u4e0d\u4f4f\u8fd9\u4e2a\u6587\u6863\u53f7\uff0c\u90a3\u4e48\u5728MOS\u4e2d\u4ee5\u201cPSU\u201d\u4e3a\u5173\u952e\u5b57\u641c\u7d22\uff0c\u901a\u5e38\u8fd9\u4e2a\u6587\u6863\u4f1a\u663e\u793a\u5728\u641c\u7d22\u7ed3\u679c\u7684\u6700\u524d\u9762\u3002<\/p>\n<p><strong>\u6ce8\u610f\uff1a\u5fc5\u987b\u8d2d\u4e70\u4e86Oracle\u57fa\u672c\u670d\u52a1\u83b7\u53d6\u4e86CSI\u53f7\u4ee5\u540e\u624d\u6709\u6743\u9650\u767b\u9646MOS\u7ad9\u70b9\u3002<\/strong><\/p>\n<p><strong>3. \u5982\u4f55\u6b63\u786e\u5b89\u88c5PSU\uff1f<\/strong><br \/>\n\u6bcf\u4e2aPSU\u5b89\u88c5\u5305\u4e2d\u90fd\u5305\u542b\u4e00\u4e2aREADME.html\u6587\u6863\uff0c\u5176\u4e2d\u63cf\u8ff0\u4e86\u5982\u4f55\u5b89\u88c5\u8be5PSU\uff0c\u6709\u4e9bPSU\u662f\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u7684\uff0c\u800c\u6709\u4e9bPSU\u5219\u5fc5\u987b\u8981\u6c42\u5b89\u88c5\u4e86\u4e0a\u4e00 \u4e2a\u7248\u672c\u7684PSU\u4e4b\u540e\u624d\u80fd\u7ee7\u7eed\u5b89\u88c5\u3002\u6bd4\u5982\u5bf9\u4e8e10.2.0.4\u7248\u672c\u7684\u6570\u636e\u5e93\u6765\u8bf4\uff0cPSU 10.2.0.4.4\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5\u5728\u6700\u539f\u59cb\u768410.2.0.4.0\u7248\u672c\u4e2d\uff0c\u800c\u6700\u65b0\u7684PSU 10.2.0.4.8\u5219\u5fc5\u987b\u8981\u6c42\u5148\u5b89\u88c510.2.0.4.4\u3002\u8fd9\u4e9b\u4fe1\u606f\u5728README.html\u4e2d\u90fd\u53ef\u4ee5\u627e\u5230\uff0c\u6240\u4ee5\u8bf7\u4ed4\u7ec6\u9605\u8bfb\u8be5\u6587\u6863\u3002<\/p>\n<p>\u901a\u5e38\u5b89\u88c5PSU\u662f\u6bd4\u8f83\u7b80\u5355\u7684\uff0c\u6b65\u9aa4\u5982\u4e0b\uff1a<br \/>\n1) \u5b89\u88c5PSU\u9700\u8981\u4f7f\u7528\u5230opatch\uff0c\u5728README.html\u4e2d\u6709\u63cf\u8ff0\u8be5PSU\u9700\u8981\u7684\u6700\u4f4e\u7248\u672copatch\uff0c\u5982\u679c\u5f53\u524dopatch\u7248\u672c\u8fc7\u4f4e\uff0c\u5219\u9700\u8981\u5148\u4e0b\u8f7d Patch 6880880\uff0c\u8be5Patch\u4e2d\u5305\u542b\u6700\u65b0\u7684opatch\uff0c\u53ea\u9700\u8981\u89e3\u538b\u8986\u76d6\u539f\u5148\u7684$ORACLE_HOME\/OPatch\u76ee\u5f55\u5373\u53ef\u3002<\/p>\n<p>\u67e5\u770b\u5f53\u524d\u7684opatch\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528opatch version\u547d\u4ee4\u3002<\/p>\n<div>\n<div>\n<p>$ opatch version<\/p>\n<p>Invoking OPatch 10.2.0.5.2<\/p>\n<p>OPatch Version: 10.2.0.5.2<\/p>\n<p>OPatch succeeded.<\/p>\n<\/div>\n<\/div>\n<p>2\uff09\u5b89\u88c5PSU\uff0c\u8bf7\u4ed4\u7ec6\u9605\u8bfbREADME.html\uff0c\u786e\u8ba4\u5b89\u88c5\u547d\u4ee4\uff0c\u901a\u5e38\u662f\u7b80\u5355\u7684opatch apply\u3002<\/p>\n<div>\n<div>$opatch apply<\/div>\n<\/div>\n<p>3\uff09\u66f4\u65b0\u6570\u636e\u5e93\uff0c\u5c06\u4fee\u6539\u8fc7\u7684SQL\u6587\u4ef6\u5e94\u7528\u5230\u6570\u636e\u5e93\u4e2d\uff0c\u5f88\u591aDBA\u5728\u6267\u884c\u5b8c\u4e0a\u8ff0\u5b89\u88c5\u547d\u4ee4\u4ee5\u540e\u5c31\u4e0d\u518d\u8fdb\u884c\u8fd9\u4e00\u6b65\uff0c\u90a3\u4e48\u5b9e\u9645\u4e0aPSU\u662f\u6ca1\u6709\u5b8c\u6574\u5b89\u88c5\u7684\u3002<\/p>\n<div>\n<div>\n<p>cd $ORACLE_HOME\/rdbms\/admin<\/p>\n<p>sqlplus \/ as sysdba<\/p>\n<p>SQL&gt; STARTUP<\/p>\n<p>SQL&gt; @catbundle.sql psu apply<\/p>\n<p>SQL&gt; QUIT<\/p>\n<\/div>\n<\/div>\n<p><strong>\u6ce8\u610f\uff1a\u5982\u679cPSU\u662foverlay PSU\uff0c\u6bd4\u598210.2.0.4.8\uff0c\u5219\u9700\u8981\u6267\u884c@catbundle.sql opsu apply\uff0c\u540c\u6837\u8fd9\u4e9b\u5728README.html\u4e2d\u90fd\u6709\u8be6\u7ec6\u63cf\u8ff0\u3002<\/strong><\/p>\n<p>4\uff09\u91cd\u65b0\u7f16\u8bd1CPU\u76f8\u5173\u89c6\u56fe\u3002\u8be5\u6b65\u9aa4\u5728\u4e00\u4e2a\u6570\u636e\u5e93\u4e0a\u6c38\u8fdc\u53ea\u9700\u8981\u6267\u884c\u4e00\u6b21\uff0c\u662f\u4e3a\u4e86\u5b8c\u6210\u57282008\u5e741\u6708\u4efd\u7b2c\u4e00\u6b21\u53d1\u5e03CPU\u8865\u4e01\u65f6\u7684\u540e\u7eed\u5de5\u4f5c\uff0c\u5982\u679c\u5728\u5b89 \u88c5\u4ee5\u524d\u7684PSU\u6216\u8005CPU\u65f6\u6267\u884c\u8fc7\u8fd9\u4e2a\u6b65\u9aa4\u90a3\u4e48\u5c31\u53ef\u4ee5\u65e0\u9700\u518d\u6b21\u6267\u884c\uff0c\u53e6\u5916\uff0c\u5373\u4f7f\u4e0d\u6267\u884c\u8be5\u6b65\u9aa4\uff0c\u6570\u636e\u5e93\u4e5f\u662f\u6b63\u5e38\u8fd0\u884c\u7684\uff0c\u53ea\u4e0d\u8fc7\u610f\u5473\u77402008\u5e741\u6708\u4efd\u7684 CPU\u8865\u4e01\u6ca1\u6709\u6b63\u5e38\u7ed3\u675f\u5b89\u88c5\u3002<\/p>\n<div>\n<div>\n<p>cd $ORACLE_HOME\/cpu\/view_recompile<\/p>\n<p>sqlplus \/ as sysdba<\/p>\n<p>SQL&gt; @recompile_precheck_jan2008cpu.sql<\/p>\n<p>SQL&gt; SHUTDOWN IMMEDIATE<\/p>\n<p>SQL&gt; STARTUP UPGRADE<\/p>\n<p>SQL&gt; @view_recompile_jan2008cpu.sql<\/p>\n<p>SQL&gt; SHUTDOWN;<\/p>\n<p>SQL&gt; STARTUP;<\/p>\n<p>SQL&gt; QUIT<\/p>\n<\/div>\n<\/div>\n<p><strong>\u6ce8\u610f\uff1a\u8be5\u6b65\u9aa4\u7531\u4e8e\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\u5927\u91cf\u89c6\u56fe\uff0c\u56e0\u6b64\u8981\u542f\u52a8\u6570\u636e\u5e93\u5230upgrade\u72b6\u6001\u624d\u53ef\u4ee5\u5b8c\u6210\u3002\u4e5f\u5c31\u662f\u5c06\u5f15\u8d77\u505c\u673a\u65f6\u95f4\u3002<\/strong><\/p>\n<p><strong>4. \u5982\u4f55\u786e\u8ba4\u5f53\u524d\u6570\u636e\u5e93\u5df2\u7ecf\u5b89\u88c5\u4e86\u4ec0\u4e48PSU\/CPU\uff1f<\/strong><br \/>\n\u65e0\u8bba\u662f\u4eceV$VERSION\u6216\u8005DBA_REGISTRY\u6216\u8005PRODUCT_COMPONENT_VERSION\u89c6\u56fe\u4e2d\uff0c\u90fd\u65e0\u6cd5\u67e5\u627e\u5230PSU\u7684\u4fe1\u606f\uff0c\u8fd9\u4e9b\u89c6\u56fe\u4e2d\u59cb\u7ec8\u663e\u793a\u7684\u662f\u6700\u539f\u59cb\u7684\u7248\u672c\uff0c\u6bd4\u598210.2.0.4.0\u3002<\/p>\n<p>\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528opatch\u547d\u4ee4\u3002\u5728\u6253\u5b8c\u6700\u65b0\u7684PSU 10.2.0.4.8\u768410.2.0.4\u6570\u636e\u5e93\u4e2d\u4f1a\u6709\u4ee5\u4e0b\u663e\u793a\u3002<\/p>\n<div>\n<div>\n<p>$ opatch lsinventory -bugs_fixed | grep -i &#8216;DATABASE PSU&#8217;<\/p>\n<p>9654991 11724977 Wed May 25 16:37:17 CST 2011 DATABASE PSU 10.2.0.4.5 (REQUIRES PRE-REQUISITE<\/p>\n<p>9952234 11724977 Wed May 25 16:37:17 CST 2011 DATABASE PSU 10.2.0.4.6 (REQUIRES PRE-REQUISITE<\/p>\n<p>10248636 11724977 Wed May 25 16:37:17 CST 2011 DATABASE PSU 10.2.0.4.7 (REQUIRES PRE-REQUISITE<\/p>\n<p>11724977 11724977 Wed May 25 16:37:17 CST 2011 DATABASE PSU 10.2.0.4.8 (REQUIRES PRE-REQUISITE<\/p>\n<p>8576156 9352164 Wed May 25 15:10:48 CST 2011 DATABASE PSU 10.2.0.4.1 (INCLUDES CPUJUL2009)<\/p>\n<p>8833280 9352164 Wed May 25 15:10:48 CST 2011 DATABASE PSU 10.2.0.4.2 (INCLUDES CPUOCT2009)<\/p>\n<p>9119284 9352164 Wed May 25 15:10:48 CST 2011 DATABASE PSU 10.2.0.4.3 (INCLUDES CPUJAN2010)<\/p>\n<p>9352164 9352164 Wed May 25 15:10:48 CST 2011 DATABASE PSU 10.2.0.4.4 (INCLUDES CPUAPR2010)<\/p>\n<\/div>\n<\/div>\n<p>\u53e6\u5916\u7684\u65b9\u6cd5\u662f\u67e5\u770bregistry$history\u8868\u3002<\/p>\n<div>\n<div>\n<p>SQL&gt; select action,comments from registry$history;<\/p>\n<p>ACTION \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 COMMENTS<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- \u00a0 \u00a0 \u00a0 \u00a0\u00a0 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>APPLY \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0 PSU 10.2.0.4.4<\/p>\n<p>APPLY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PSU 10.2.0.4.8<\/p>\n<p>CPU \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 view recompilation<\/p>\n<\/div>\n<\/div>\n<p><strong>\u6ce8\u610f\uff1a\u8be5\u8868\u7684\u5185\u5bb9\u662f\u5728\u4e0a\u8ff0\u5b89\u88c5PSU\u6b65\u9aa4\u7684\u7b2c\u4e09\u6b65\u4e2d\u8fd0\u884ccatbundle.sql\u624d\u4f1a\u63d2\u5165\u7684\uff0c\u56e0\u6b64\u5982\u679c\u8be5\u6b65\u9aa4\u5fd8\u8bb0\u6267\u884c\uff0c\u5219\u6b64\u8868\u4e2d\u65e0\u8bb0\u5f55\u3002<\/strong>\u56e0\u6b64\u6211\u4eec\u5728\u4f5c\u6570\u636e\u5e93\u5065\u5eb7\u68c0\u67e5\u7684\u65f6\u5019\u4e0d\u4f46\u8981\u7528opatch\u68c0\u67e5\u5f53\u524d\u6570\u636e\u5e93\u6700\u65b0\u7684PSU\u8865\u4e01\uff0c\u4e5f\u8981\u68c0\u67e5registry$history\u8868\uff0c\u4ee5\u786e\u8ba4\u5176\u5b83DBA\u662f\u5426\u6b63\u786e\u5730\u5b8c\u6210\u4e86PSU\u7684\u5b89\u88c5\u3002<\/p>\n<p>\u5982\u679c\u591a\u4e2aPSU\u7684\u5b89\u88c5\u90fd\u5fd8\u8bb0\u4e86\u6267\u884c\u4e0a\u8ff0\u7b2c\u4e09\u6b65\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u6cd5\u4f9d\u6b21\u8865\u4f5c\u3002<\/p>\n<div>\n<div>\n<p>$ ls -l $ORACLE_HOME\/psu<\/p>\n<p>total 0<\/p>\n<p>drwxrwxrwx 2 oracle dba 96 Oct 16 2010 10.2.0.4.4<\/p>\n<p>drwxrwxrwx 2 oracle dba 96 Oct 16 2010 10.2.0.4.5<\/p>\n<p>$sqlplus \/ as sysdba<\/p>\n<p>SQL&gt; @?\/psu\/10.2.0.4.4\/catpsu.sql<\/p>\n<p>SQL&gt; @?\/psu\/10.2.0.4.5\/catopsu.sql<\/p>\n<\/div>\n<\/div>\n<p>\u66f4\u591a\u5173\u4e8eCPU\u7684\u4fe1\u606f\uff0c\u53ef\u4ee5\u53c2\u770b\uff1aMaclean\u7684<a href=\"http:\/\/www.oracledatabase12g.com\/archives\/%E4%BA%86%E8%A7%A3oracle-critical-patch-update.html\">\u4e86\u89e3Oracle Critical Patch Update<\/a>\u3002<\/p>\n<p>5. \u53c2\u8003\u6587\u6863\u3002<br \/>\nOracle Recommended Patches \u2014 Oracle Database [ID 756671.1]<br \/>\nPatch Set Updates for Oracle Products [ID 854428.1]<br \/>\nIntroduction To Oracle Database catbundle.sql [ID 605795.1]<br \/>\nHow to confirm that a Critical Patch Update (CPU) has been installed in Linux \/ UNIX [ID 821263.1]<\/p>\n<p>\u67e5\u770bpsu\u4fe1\u606f\uff08\u6570\u636e\u5e93\u7528\u6237\uff09\uff1a<\/p>\n<\/div>\n<p>[oratest@testfin ~]$ $ORACLE_HOME\/OPatch\/opatch lsinventory<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1. \u4ec0\u4e48\u662fPSU\/CPU\uff1f CPU: Critical Patch Update Oracle\u5bf9\u4e8e\u5176\u4ea7\u54c1\u6bcf\u4e2a &hellip; <a href=\"https:\/\/www.llku.com\/?p=1782\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Oracle Database PSU\/CPU<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[68],"tags":[267,69,233],"_links":{"self":[{"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/posts\/1782"}],"collection":[{"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.llku.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1782"}],"version-history":[{"count":2,"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/posts\/1782\/revisions"}],"predecessor-version":[{"id":1791,"href":"https:\/\/www.llku.com\/index.php?rest_route=\/wp\/v2\/posts\/1782\/revisions\/1791"}],"wp:attachment":[{"href":"https:\/\/www.llku.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.llku.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.llku.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}