Setting Grid Infrastructure 18c Oracle Home name during the install

A colleague has been struggling for some time in order to get the correct Oracle Home name for the Grid Infrastructure18.3.0 when running gridSetup.sh.

In the graphical Oracle Universal Installer there is no way (as far as we could find) to set the Home name. Moreover, it was our intention to automate the install of Grid Infrastructure.

The complete responsefile ($OH/inventory/response/oracle.crs_Complete.rsp) contains the parameter:

#-------------------------------------------------------------------------------
#Name       : ORACLE_HOME_NAME
#Datatype   : String
#Description: Oracle Home Name. Used in creating folders and services.
#Example: ORACLE_HOME_NAME = "OHOME1"
#-------------------------------------------------------------------------------
ORACLE_HOME_NAME="OraGI18Home1"

However, when using a responsefile with such parameter, gridSetup.sh fails with the error:

Cause - Syntactically incorrect response file.
Either unexpected variables are specified or expected variables are not specified in the response file.
Action - Refer the latest product specific response file template
Summary  - cvc-complex-type.2.4.a: Invalid content was found starting with element 'ORACLE_HOME_NAME'.
One of '{..... long list .....}' is expected.

After some tries (and a SR), this happens to actually work:

  • strip the ORACLE_HOME_NAME parameter from the responsefile
  • pass it as a double-quoted parameter at the end of the gridSetup.sh command line

./gridSetup.sh -debug -responseFile inventory/response/Grid_Config.rsp "ORACLE_HOME_NAME=YourGIHomeName"

HTH

关注dbDao.com的新浪微博

扫码加入微信Oracle小密圈,了解Oracle最新技术下载分享资源

TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569