
{"id":363,"date":"2021-09-08T17:50:19","date_gmt":"2021-09-08T09:50:19","guid":{"rendered":"http:\/\/dba.qishuo.xin\/?p=363"},"modified":"2021-09-13T12:25:36","modified_gmt":"2021-09-13T04:25:36","slug":"oracle-em%e7%9a%84%e5%90%af%e5%8a%a8%e4%b8%8e%e5%85%b3%e9%97%ad","status":"publish","type":"post","link":"http:\/\/dba.qishuo.xin\/?p=363","title":{"rendered":"Oracle EM\u7684\u542f\u52a8\u4e0e\u5173\u95ed"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-69f8b77303f31\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f8b77303f31\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/dba.qishuo.xin\/?p=363\/#1OEM%E6%9E%B6%E6%9E%84\" >1.OEM\u67b6\u6784<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/dba.qishuo.xin\/?p=363\/#2_%E7%8E%AF%E5%A2%83%E4%B8%8E%E7%89%88%E6%9C%AC\" >2. \u73af\u5883\u4e0e\u7248\u672c<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/dba.qishuo.xin\/?p=363\/#21_oem%E7%89%88%E6%9C%AC\" >2.1. oem\u7248\u672c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/dba.qishuo.xin\/?p=363\/#22_repository%E6%95%B0%E6%8D%AE%E5%BA%93%E7%89%88%E6%9C%AC\" >2.2. repository\u6570\u636e\u5e93\u7248\u672c<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/dba.qishuo.xin\/?p=363\/#23_OMS%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84\" >2.3. OMS\u76ee\u5f55\u7ed3\u6784<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/dba.qishuo.xin\/?p=363\/#3_%E5%90%AF%E5%8A%A8\" >3. \u542f\u52a8<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"http:\/\/dba.qishuo.xin\/?p=363\/#31_%E5%90%AF%E5%8A%A8repository%E6%95%B0%E6%8D%AE%E5%BA%93\" >3.1. \u542f\u52a8repository\u6570\u636e\u5e93<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"http:\/\/dba.qishuo.xin\/?p=363\/#32_%E5%90%AF%E5%8A%A8OMS%E6%9C%8D%E5%8A%A1\" >3.2. \u542f\u52a8OMS\u670d\u52a1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"http:\/\/dba.qishuo.xin\/?p=363\/#33_%E5%90%AF%E5%8A%A8agent_%E6%9C%8D%E5%8A%A1\" >3.3. \u542f\u52a8agent \u670d\u52a1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"http:\/\/dba.qishuo.xin\/?p=363\/#34_emctl_start_OMS%E5%90%AF%E5%8A%A8%E5%A4%B1%E8%B4%A5%E6%97%B6%E5%BF%85%E9%A1%BB%E5%85%88%E6%A3%80%E6%9F%A5%E4%BB%A5%E4%B8%8B%E4%BA%8B%E9%A1%B9%E3%80%82\" >3.4. emctl start OMS\u542f\u52a8\u5931\u8d25\u65f6\u5fc5\u987b\u5148\u68c0\u67e5\u4ee5\u4e0b\u4e8b\u9879\u3002<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"1OEM%E6%9E%B6%E6%9E%84\"><\/span>1.OEM\u67b6\u6784<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><a href=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2021\/09\/wp_editor_md_5b0511ad0fa9a29dbc64b5a129c5bf98.jpg\" data-fancybox=\"images\" data-fancybox=\"images\"><img decoding=\"async\" src=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2021\/09\/wp_editor_md_5b0511ad0fa9a29dbc64b5a129c5bf98.jpg\" alt=\"\" \/><\/a><\/p>\n<ol>\n<li>Management repository\uff1a\u5b58\u50a8\u8981\u76d1\u63a7\u7684\u6570\u636e\u5e93\u7684\u7ba1\u7406\u6570\u636e\u53ca\u72b6\u6001\u4fe1\u606f\u3002<\/li>\n<li>OMS\u7ba1\u7406\u670d\u52a1\uff1a\u76d1\u63a7\u548c\u7ba1\u7406\u5b89\u88c5\u4e86management agent\u7684\u6570\u636e\u5e93\uff0c\u5e76\u5c06\u83b7\u5f97\u7684\u7ba1\u7406\u4fe1\u606f\u5b58\u5165management repository\u3002<\/li>\n<li>Oracle HTTP Server\uff1a\u5185\u7f6e\u7684apache\u670d\u52a1\u5668\u3002<\/li>\n<li>OC4J\/J2EE\uff1a\u7b26\u5408J2EE\u6807\u51c6\u7684\u5e94\u7528\u670d\u52a1\u5668\u3002<\/li>\n<li>Oracle web cache\uff1a\u7528\u4e8e\u5feb\u901f\u8bbf\u95eeweb\u3002<\/li>\n<li>Management agent\uff1a\u5b89\u88c5\u5728\u88ab\u7ba1\u7406\u7684\u6570\u636e\u670d\u52a1\u5668\u4e0a\uff0c\u7528\u4e8e\u76d1\u63a7\u6570\u636e\u5e93\u7684\u8fd0\u884c\u72b6\u6001\uff0c\u8d44\u6e90\u4f7f\u7528\uff0c\u4fe1\u606f\u53d8\u66f4\u7b49\uff0c\u5c06\u4fe1\u606f\u8f6c\u9001\u5230OMS,OMS\u5c06\u8fd9\u4e9b\u4fe1\u606f\u5b58\u5165repository\u3002<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"2_%E7%8E%AF%E5%A2%83%E4%B8%8E%E7%89%88%E6%9C%AC\"><\/span>2. \u73af\u5883\u4e0e\u7248\u672c<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"21_oem%E7%89%88%E6%9C%AC\"><\/span>2.1. oem\u7248\u672c<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre><code class=\"language-shell line-numbers\">~]$\n\/u01\/app\/oracle\/middleware\/bin\/emctl getversion oms\n<\/code><\/pre>\n<h4><span class=\"ez-toc-section\" id=\"22_repository%E6%95%B0%E6%8D%AE%E5%BA%93%E7%89%88%E6%9C%AC\"><\/span>2.2. repository\u6570\u636e\u5e93\u7248\u672c<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Oracle 12.2.0.1.0<\/p>\n<h4><span class=\"ez-toc-section\" id=\"23_OMS%E7%9B%AE%E5%BD%95%E7%BB%93%E6%9E%84\"><\/span>2.3. OMS\u76ee\u5f55\u7ed3\u6784<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><a href=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2021\/09\/wp_editor_md_3ffedb7b409bf3f00ce7705e7661a8cb.jpg\" data-fancybox=\"images\" data-fancybox=\"images\"><img decoding=\"async\" src=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2021\/09\/wp_editor_md_3ffedb7b409bf3f00ce7705e7661a8cb.jpg\" alt=\"\" \/><\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_%E5%90%AF%E5%8A%A8\"><\/span>3. \u542f\u52a8<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"31_%E5%90%AF%E5%8A%A8repository%E6%95%B0%E6%8D%AE%E5%BA%93\"><\/span>3.1. \u542f\u52a8repository\u6570\u636e\u5e93<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<h4><span class=\"ez-toc-section\" id=\"32_%E5%90%AF%E5%8A%A8OMS%E6%9C%8D%E5%8A%A1\"><\/span>3.2. \u542f\u52a8OMS\u670d\u52a1<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre><code class=\"language-shell line-numbers\">~]$\nexport OMS_HOME=\/u01\/app\/oracle\/middleware\n\/u01\/app\/oracle\/middleware\/bin\/emctl stop oms -all -force\n\/u01\/app\/oracle\/middleware\/bin\/emctl start oms\n<\/code><\/pre>\n<p><a href=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2021\/09\/wp_editor_md_41b07ba4f355e6c8adca7cf4bdae08e6.jpg\" data-fancybox=\"images\" data-fancybox=\"images\"><img decoding=\"async\" src=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2021\/09\/wp_editor_md_41b07ba4f355e6c8adca7cf4bdae08e6.jpg\" alt=\"\" \/><\/a><\/p>\n<h4><span class=\"ez-toc-section\" id=\"33_%E5%90%AF%E5%8A%A8agent_%E6%9C%8D%E5%8A%A1\"><\/span>3.3. \u542f\u52a8agent \u670d\u52a1<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre><code class=\"language-shell line-numbers\">~]$\ncd \/u01\/app\/oracle\/agent\/agent_13.3.0.0.0\/bin\n.\/emctl start agent\n<\/code><\/pre>\n<p><a href=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2021\/09\/wp_editor_md_3d178be4230611519df3ab20ff9b37b7.jpg\" data-fancybox=\"images\" data-fancybox=\"images\"><img decoding=\"async\" src=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2021\/09\/wp_editor_md_3d178be4230611519df3ab20ff9b37b7.jpg\" alt=\"\" \/><\/a><\/p>\n<h4><span class=\"ez-toc-section\" id=\"34_emctl_start_OMS%E5%90%AF%E5%8A%A8%E5%A4%B1%E8%B4%A5%E6%97%B6%E5%BF%85%E9%A1%BB%E5%85%88%E6%A3%80%E6%9F%A5%E4%BB%A5%E4%B8%8B%E4%BA%8B%E9%A1%B9%E3%80%82\"><\/span>3.4. emctl start OMS\u542f\u52a8\u5931\u8d25\u65f6\u5fc5\u987b\u5148\u68c0\u67e5\u4ee5\u4e0b\u4e8b\u9879\u3002<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ol>\n<li>emctl is executed from the correct OMS home<\/p>\n<\/li>\n<li>\n<p>emctl file size is not zero bytes. If it is zero bytes refer Note 1404623.1:How to Recreate the emctl Script for the Enterprise Manager OMS<\/p>\n<\/li>\n<li>\n<p>Repository database and listener are up<\/p>\n<\/li>\n<li>\n<p>SYSMAN connectivity to repository db is successful (Refer Note 1448007.1 How to Verify the Connectivity from 12c OMS to Repository Database using rcuJDBCEngine)<\/p>\n<\/li>\n<li>\n<p>SYSMAN related users acccount status in the repository database is 'open'<\/p>\n<\/li>\n<\/ol>\n<pre><code class=\"language-sql line-numbers\">SQL&gt;\nselect username,account_status from dba_users where username like 'SYSMAN%' order by username;\n<\/code><\/pre>\n<p><a href=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2021\/09\/wp_editor_md_276bd1ab68bf7635ddd9f2bc177183b9.jpg\" data-fancybox=\"images\" data-fancybox=\"images\"><img decoding=\"async\" src=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2021\/09\/wp_editor_md_276bd1ab68bf7635ddd9f2bc177183b9.jpg\" alt=\"\" \/><\/a><\/p>\n<ol start=\"6\">\n<li>No invalid objects exist for sysman related users (refer Use Case 2 in  Note 1683050.1: OMS Failed to Start With Error 'Oracle Management Server is Down. Console may not be up')<\/p>\n<\/li>\n<li>\n<p>Repository database  table space is not full (alert log file does not have table space full errors)<\/p>\n<\/li>\n<li>\n<p>Enough space is available for the repository database archive logs<\/p>\n<\/li>\n<li>\n<p>Restart database and listener<\/p>\n<\/li>\n<\/ol>\n<p>\u53c2\u8003\uff1aMOS:(Doc ID 1495519.1):<a target=\"_blank\" class=\"wp-editor-md-post-content-link\" href=\"https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?_afrLoop=265055542760121&amp;id=1495519.1&amp;_afrWindowMode=0&amp;_adf.ctrl-state=1d47lvpa65_4\">https:\/\/support.oracle.com\/epmos\/faces\/DocumentDisplay?_afrLoop=265055542760121&amp;id=1495519.1&amp;_afrWindowMode=0&amp;_adf.ctrl-state=1d47lvpa65_4<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.OEM\u67b6\u6784 Management reposi&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51,2],"tags":[52,16],"class_list":["post-363","post","type-post","status-publish","format-standard","hentry","category-oracle-em","category-oracle","tag-em","tag-oracle"],"_links":{"self":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=363"}],"version-history":[{"count":32,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/363\/revisions"}],"predecessor-version":[{"id":587,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/363\/revisions\/587"}],"wp:attachment":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}