{"id":60,"date":"2017-08-13T22:24:17","date_gmt":"2017-08-13T22:24:17","guid":{"rendered":"http:\/\/www.mrmarkyoung.com\/oracle\/?p=60"},"modified":"2017-08-13T22:37:25","modified_gmt":"2017-08-13T22:37:25","slug":"update-enterprise-manager-targets-from-emcli-12c","status":"publish","type":"post","link":"http:\/\/www.mrmarkyoung.com\/oracle\/2017\/08\/13\/update-enterprise-manager-targets-from-emcli-12c\/","title":{"rendered":"Update Enterprise Manager Targets from EMCLI 12c"},"content":{"rendered":"<p><strong>How to bulk update Enterprise Manager Target Properties.<\/strong><br \/>\n<em>Step-by-step guide<\/em><br \/>\nLogin to emcli (login to repository host as the Oracle user, enter the password when prompted)<\/p>\n<pre class=\"lang:default decode:true \">emcli login -username=sysman<\/pre>\n<p>To extract a list of database targets, run the following (modify the output if required. For example, if you wish to<\/p>\n<pre class=\"lang:default decode:true \">emcli get_targets -noheader -format='name:script;column_separator:|;' -targets='%database%' | awk -F\\| '{print $4\":\"$3\":Line of Business:\"}' &gt; db_targets.txt<\/pre>\n<p>Modify the text file with the relevant services DB_TARGETS.TXT as previously done in the attachment. Copy this back to the OMSDBAUP03 server and run the following:<\/p>\n<pre class=\"lang:default decode:true \">emcli set_target_property_value -property_records=\"REC_FILE\" -input_file=\"REC_FILE:db_targets.txt\" -separator=property_records=\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to bulk update Enterprise Manager Target Properties. Step-by-step guide Login to emcli (login to repository host as the Oracle user, enter the password when prompted) emcli login -username=sysman To extract a list of database targets, run the following (modify the output if required. For example, if you wish to emcli get_targets -noheader -format=&#8217;name:script;column_separator:|;&#8217; -targets=&#8217;%database%&#8217; &#8230; <a title=\"Update Enterprise Manager Targets from EMCLI 12c\" class=\"read-more\" href=\"http:\/\/www.mrmarkyoung.com\/oracle\/2017\/08\/13\/update-enterprise-manager-targets-from-emcli-12c\/\" aria-label=\"Read more about Update Enterprise Manager Targets from EMCLI 12c\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[8],"class_list":["post-60","post","type-post","status-publish","format-standard","hentry","category-enterprise-manager","tag-emcli"],"_links":{"self":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":6,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":66,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/posts\/60\/revisions\/66"}],"wp:attachment":[{"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mrmarkyoung.com\/oracle\/wp-json\/wp\/v2\/tags?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}