{"id":62,"date":"2024-08-28T12:08:00","date_gmt":"2024-08-28T17:08:00","guid":{"rendered":"https:\/\/www.bluestonesolutionsgroup.com\/?p=62"},"modified":"2024-08-28T12:08:01","modified_gmt":"2024-08-28T17:08:01","slug":"running-adop-commands-non-interactively","status":"publish","type":"post","link":"https:\/\/www.bluestonesolutionsgroup.com\/?p=62","title":{"rendered":"Running ADOP Commands non-Interactively"},"content":{"rendered":"\n<p>I really don&#8217;t like answering prompts.  It takes extra time, requires extra keystrokes, and makes documenting a process somewhat cumbersome.  So, I avoid it whenever possible. <\/p>\n\n\n\n<p>In the world of an Oracle E-Business Suite DBA, one command that we run quite often is <code>adop<\/code>.  Unfortunately, the <code>adop <\/code>command doesn&#8217;t directly support command-line arguments for certain common things (passwords, in particular).  So, here is what I tend to do:<\/p>\n\n\n\n<p>First, I tend to manually assign the passwords to variables in my current session.  The environment variables go away when the session ends.  This also makes documentation easier.  <\/p>\n\n\n\n<p><code>export APPSPW=apps<br>export SYSTEMPW=manager<br>export WLADMIN=weblogic<\/code><\/p>\n\n\n\n<p><strong>PREPARE<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>{ echo ${APPSPW}; echo ${SYSTEMPW}; echo ${WLADMIN}; }|\\\nadop phase=prepare<\/code><\/code><\/pre>\n\n\n\n<p><strong>APPLY<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>{ echo ${APPSPW}; echo ${SYSTEMPW}; echo ${WLADMIN}; }|\\\nadop phase=apply patches=1234567<\/code><\/pre>\n\n\n\n<p><strong>FINALIZE<\/strong><\/p>\n\n\n\n<p><code>{ echo ${APPSPW}; echo ${SYSTEMPW}; echo ${WLADMIN}; }|\\<br>adop phase=finalize<\/code><\/p>\n\n\n\n<p><strong>CUTOVER<\/strong><\/p>\n\n\n\n<p><code>{ echo ${APPSPW}; echo ${SYSTEMPW}; echo ${WLADMIN}; }|\\<br>adop phase=cutover<\/code><\/p>\n\n\n\n<p><strong>CLEANUP<\/strong><\/p>\n\n\n\n<p><code>{ echo ${APPSPW}; echo ${SYSTEMPW}; echo ${WLADMIN}; }|\\<br>adop phase=cleanup<\/code><\/p>\n\n\n\n<p><strong>FS_CLONE<\/strong><\/p>\n\n\n\n<p><code>{ echo ${APPSPW}; echo ${SYSTEMPW}; echo ${WLADMIN}; }|\\<br>adop phase=fs_clone<\/code><\/p>\n\n\n\n<p>A brief warning, though.  I typically run the <code>adop phase=abort<\/code> command interactively as there are additional prompts that will need to be answered.  Fortunately, I don&#8217;t have to do that quite as often&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I really don&#8217;t like answering prompts. It takes extra time, requires extra keystrokes, and makes documenting a process somewhat cumbersome. So, I avoid it whenever possible. In the world of an Oracle E-Business Suite DBA, one command that we run &hellip; <a href=\"https:\/\/www.bluestonesolutionsgroup.com\/?p=62\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,17,10,1,18],"tags":[],"class_list":["post-62","post","type-post","status-publish","format-standard","hentry","category-ebs","category-linux","category-oracle","category-uncategorized","category-unix"],"_links":{"self":[{"href":"https:\/\/www.bluestonesolutionsgroup.com\/index.php?rest_route=\/wp\/v2\/posts\/62","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bluestonesolutionsgroup.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bluestonesolutionsgroup.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bluestonesolutionsgroup.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bluestonesolutionsgroup.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=62"}],"version-history":[{"count":1,"href":"https:\/\/www.bluestonesolutionsgroup.com\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":63,"href":"https:\/\/www.bluestonesolutionsgroup.com\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions\/63"}],"wp:attachment":[{"href":"https:\/\/www.bluestonesolutionsgroup.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bluestonesolutionsgroup.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bluestonesolutionsgroup.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}