{"id":1069,"date":"2025-11-05T17:25:30","date_gmt":"2025-11-05T16:25:30","guid":{"rendered":"https:\/\/anjo.pt\/keyword-oracle\/?p=1069"},"modified":"2025-11-05T17:25:30","modified_gmt":"2025-11-05T16:25:30","slug":"recognize-oracle-client-installation","status":"publish","type":"post","link":"https:\/\/anjo.pt\/keyword-oracle\/2025\/11\/05\/recognize-oracle-client-installation\/","title":{"rendered":"Recognize Oracle Client installation"},"content":{"rendered":"\n<p>On my environment script I want to recognize if an ORACLE_HOME belongs to a database or is just a client installation. Oracle does the following in its Oracle 26ai client <code>runInstaller<\/code>:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n...\nORACLE_SERVER_PATH=&quot;${ORACLE_HOME}\/inventory\/Components21\/oracle.server&quot;;\nORACLE_GSM_PATH=&quot;${ORACLE_HOME}\/inventory\/Components21\/oracle.dslm&quot;;\n# Check if the directory oracle.server exists\n# If it exists, then the product is db otherwise is client\nif &#x5B; -d $ORACLE_SERVER_PATH ]; then\n...\n  ${ORACLE_HOME}\/perl\/bin\/perl -I${ORACLE_HOME}\/perl\/lib -I${ORACLE_HOME}\/bin ${ORACLE_HOME}\/bin\/dbSetup.pl -J-D${CVU_OS_SETTINGS} &quot;$@&quot;   # bug 33519960 - support paths with whitespaces\nelse\n  if &#x5B; -d $ORACLE_GSM_PATH ]; then\n    ${ORACLE_HOME}\/perl\/bin\/perl -I${ORACLE_HOME}\/perl\/lib -I${ORACLE_HOME}\/bin ${ORACLE_HOME}\/bin\/dbSetup.pl &quot;$@&quot;      # bug 33519960 - support paths with whitespaces\n  else\n    ${ORACLE_HOME}\/perl\/bin\/perl -I${ORACLE_HOME}\/perl\/lib -I${ORACLE_HOME}\/bin ${ORACLE_HOME}\/bin\/clientSetup.pl &quot;$@&quot;      # bug 33519960 - support paths with whitespaces\n  fi\nfi\n<\/pre><\/div>\n\n\n<p>Basically here the logic:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Directory <code>${ORACLE_HOME}\/inventory\/Components21\/oracle.server<\/code> exists \u27a1\ufe0f Oracle Database installation<\/li>\n\n\n\n<li>Directory <code>${ORACLE_HOME}\/inventory\/Components21\/oracle.dslm<\/code> exists \u27a1\ufe0f Global Data Services installation<\/li>\n<\/ul>\n\n\n\n<p>On my script I simplified by checking:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>File <code>${ORACLE_HOME}\/bin\/clientSetup.pl<\/code> exists \u27a1\ufe0f Oracle Full client installation<\/li>\n<\/ul>\n\n\n\n<p>Otherwise is a DB installation, as I don&#8217;t expect to use my script in any GDS server.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On my environment script I want to recognize if an ORACLE_HOME belongs to a database or is just a client installation. Oracle does the following in its Oracle 26ai client runInstaller: Basically here the logic: On my script I simplified by checking: Otherwise is a DB installation, as I don&#8217;t expect to use my script [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,81],"tags":[88],"class_list":{"0":"post-1069","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-oracle","7":"category-oracle-23ai","8":"tag-client","9":"czr-hentry"},"_links":{"self":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/1069","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=1069"}],"version-history":[{"count":1,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/1069\/revisions"}],"predecessor-version":[{"id":1070,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/1069\/revisions\/1070"}],"wp:attachment":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/media?parent=1069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/categories?post=1069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/tags?post=1069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}