{"id":526,"date":"2022-02-01T14:52:29","date_gmt":"2022-02-01T13:52:29","guid":{"rendered":"https:\/\/anjo.pt\/keyword-oracle\/?p=526"},"modified":"2022-02-01T14:52:31","modified_gmt":"2022-02-01T13:52:31","slug":"useful-aliases-for-oda-patching","status":"publish","type":"post","link":"https:\/\/anjo.pt\/keyword-oracle\/2022\/02\/01\/useful-aliases-for-oda-patching\/","title":{"rendered":"Useful aliases for ODA Patching"},"content":{"rendered":"\n<p>Patching an Oracle Database Appliance can be tiring. The ODA patching commands are quite long and there is always a jobid to check&#8230; So I just created a set of alias that make these tasks a bit easier:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># List jobs run today - $ jt\r\nalias jt=\"odacli list-jobs -o $(date +%Y-%m-%d)\"\r\n\n# Describe one job - $ j &lt;id>\nalias j=\"odacli describe-job -i $1\"\n\n# Describe last job created - $ lj\r\nalias lj='odacli describe-job -i $(odacli list-jobs -tl 1 | sed -n 4p | cut -d\" \" -f1)'\r\n\n# Describe last prepatch report - $ lpr\nalias lpr='odacli describe-prepatchreport -i $(odacli list-jobs -tl 1 | sed -n 4p | cut -d\" \" -f1)'\n\r\n# Show free space of \/ \/u01 and \/opt - $ dff\r\nalias dff=\"df -h \/ \/u01 \/opt\"\n\n# Describe components - $ comp\r\nalias comp=\"odacli describe-component\"\n\n# Tail -f DCS Agent log - $ tal\r\nalias tal=\"tail -f \/opt\/oracle\/dcs\/log\/dcs-agent.log\"<\/code><\/pre>\n\n\n\n<p>Maybe you have other suggestions?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Patching an Oracle Database Appliance can be tiring. The ODA patching commands are quite long and there is always a jobid to check&#8230; So I just created a set of alias that make these tasks a bit easier: Maybe you have other suggestions?<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67,68,6],"tags":[],"class_list":{"0":"post-526","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-engineer-systems","7":"category-oda","8":"category-oracle","9":"czr-hentry"},"_links":{"self":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/comments?post=526"}],"version-history":[{"count":1,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/526\/revisions"}],"predecessor-version":[{"id":528,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/526\/revisions\/528"}],"wp:attachment":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/media?parent=526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/categories?post=526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/tags?post=526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}