Silent installation of GI (Grid infrastructure software for standalone)- Version 18c(18.0.0)
Download the 18c GI software from oracle portal here
File looks like: LINUX.X64_180000_grid_home.zip
Prepare a response file for 18c standalone GI install you can find the sample rsp file here
[oracle@localhost grid]$ ./gridSetup.sh -silent -ignorePrereqFailure -responseFile /opt/oracle/grid.rsp
Launching Oracle Grid Infrastructure Setup Wizard...
[FATAL] [INS-30001] The SYS password is empty.
CAUSE: The SYS password should not be empty.
ACTION: Provide a non-empty password.
[FATAL] [INS-30001] The ASMSNMP password is empty.
CAUSE: The ASMSNMP password should not be empty.
ACTION: Provide a non-empty password.
[oracle@localhost grid]$ vi /opt/oracle/grid.rsp
[oracle@localhost grid]$ ./gridSetup.sh -silent -ignorePrereqFailure -responseFile /opt/oracle/grid.rsp
Launching Oracle Grid Infrastructure Setup Wizard...
[WARNING] [INS-41812] OSDBA and OSASM are the same OS group.
CAUSE: The chosen values for OSDBA group and the chosen value for OSASM group are the same.
ACTION: Select an OS group that is unique for ASM administrators. The OSASM group should not be the same as the OS groups that grant privileges for Oracle ASM access, or for database administration.
[WARNING] [INS-41875] Oracle ASM Administrator (OSASM) Group specified is same as the users primary group.
CAUSE: Operating system group oinstall specified for OSASM Group is same as the users primary group.
ACTION: It is not recommended to have OSASM group same as primary group of user as it becomes the inventory group. Select any of the group other than the primary group to avoid misconfiguration.
[WARNING] [INS-13014] Target environment does not meet some optional requirements.
CAUSE: Some of the optional prerequisites are not met. See logs for details. gridSetupActions2019-12-03_04-52-40PM.log
ACTION: Identify the list of failed prerequisite checks from the log: gridSetupActions2019-12-03_04-52-40PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
The response file for this session can be found at:
/opt/oracle/product/18.0.0/grid/install/response/grid_2019-12-03_04-52-40PM.rsp
You can find the log of this install session at:
/tmp/GridSetupActions2019-12-03_04-52-40PM/gridSetupActions2019-12-03_04-52-40PM.log
As a root user, execute the following script(s):
1. /opt/oracle/oraInventory/orainstRoot.sh
2. /opt/oracle/product/18.0.0/grid/root.sh
Execute /opt/oracle/product/18.0.0/grid/root.sh on the following nodes:
[localhost]
Successfully Setup Software with warning(s).
As install user, execute the following command to complete the configuration.
/opt/oracle/product/18.0.0/grid/gridSetup.sh -executeConfigTools -responseFile /opt/oracle/grid.rsp [-silent]
Moved the install session logs to:
/opt/oracle/oraInventory/logs/GridSetupActions2019-12-03_04-52-40PM
[oracle@localhost grid]$ su -
Password:
Last login: Tue Dec 3 16:50:44 IST 2019 on pts/0
[root@localhost ~]# /opt/oracle/oraInventory/orainstRoot.sh
Changing permissions of /opt/oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /opt/oracle/oraInventory to oinstall.
The execution of the script is complete.
[root@localhost ~]# /opt/oracle/product/18.0.0/grid/root.sh
Check /opt/oracle/product/18.0.0/grid/install/root_localhost.localdomain_2019-12-03_16-54-22-182633796.log for the output of root script
[root@localhost ~]# cat /opt/oracle/product/18.0.0/grid/install/root_localhost.localdomain_2019-12-03_16-54-22-182633796.log
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /opt/oracle/product/18.0.0/grid
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /opt/oracle/product/18.0.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/opt/oracle/oracle_base/crsdata/localhost/crsconfig/roothas_2019-12-03_04-54-22PM.log
2019/12/03 16:54:24 CLSRSC-363: User ignored prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node localhost successfully pinned.
2019/12/03 16:54:48 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'localhost'
CRS-2673: Attempting to stop 'ora.evmd' on 'localhost'
CRS-2677: Stop of 'ora.evmd' on 'localhost' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'localhost' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
localhost 2019/12/03 16:56:05 /opt/oracle/product/18.0.0/grid/cdata/localhost/backup_20191203_165605.olr 70732493
2019/12/03 16:56:11 CLSRSC-327: Successfully configured Oracle Restart for a standalone server
[root@localhost ~]# exit
logout
[oracle@localhost grid]$ /opt/oracle/product/18.0.0/grid/gridSetup.sh -executeConfigTools -responseFile /opt/oracle/grid.rsp -silent
Launching Oracle Grid Infrastructure Setup Wizard...
You can find the logs of this session at:
/opt/oracle/oraInventory/logs/GridSetupActions2019-12-03_04-56-54PM
Successfully Configured Software.
[oracle@localhost grid]$ ps -ef|grep smon
oracle 19218 1 0 16:58 ? 00:00:00 asm_smon_+ASM
oracle 19607 2951 0 16:58 pts/0 00:00:00 grep --color=auto smon
Download the 18c GI software from oracle portal here
File looks like: LINUX.X64_180000_grid_home.zip
Prepare a response file for 18c standalone GI install you can find the sample rsp file here
[oracle@localhost grid]$ ./gridSetup.sh -silent -ignorePrereqFailure -responseFile /opt/oracle/grid.rsp
Launching Oracle Grid Infrastructure Setup Wizard...
[FATAL] [INS-30001] The SYS password is empty.
CAUSE: The SYS password should not be empty.
ACTION: Provide a non-empty password.
[FATAL] [INS-30001] The ASMSNMP password is empty.
CAUSE: The ASMSNMP password should not be empty.
ACTION: Provide a non-empty password.
[oracle@localhost grid]$ vi /opt/oracle/grid.rsp
[oracle@localhost grid]$ ./gridSetup.sh -silent -ignorePrereqFailure -responseFile /opt/oracle/grid.rsp
Launching Oracle Grid Infrastructure Setup Wizard...
[WARNING] [INS-41812] OSDBA and OSASM are the same OS group.
CAUSE: The chosen values for OSDBA group and the chosen value for OSASM group are the same.
ACTION: Select an OS group that is unique for ASM administrators. The OSASM group should not be the same as the OS groups that grant privileges for Oracle ASM access, or for database administration.
[WARNING] [INS-41875] Oracle ASM Administrator (OSASM) Group specified is same as the users primary group.
CAUSE: Operating system group oinstall specified for OSASM Group is same as the users primary group.
ACTION: It is not recommended to have OSASM group same as primary group of user as it becomes the inventory group. Select any of the group other than the primary group to avoid misconfiguration.
[WARNING] [INS-13014] Target environment does not meet some optional requirements.
CAUSE: Some of the optional prerequisites are not met. See logs for details. gridSetupActions2019-12-03_04-52-40PM.log
ACTION: Identify the list of failed prerequisite checks from the log: gridSetupActions2019-12-03_04-52-40PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
The response file for this session can be found at:
/opt/oracle/product/18.0.0/grid/install/response/grid_2019-12-03_04-52-40PM.rsp
You can find the log of this install session at:
/tmp/GridSetupActions2019-12-03_04-52-40PM/gridSetupActions2019-12-03_04-52-40PM.log
As a root user, execute the following script(s):
1. /opt/oracle/oraInventory/orainstRoot.sh
2. /opt/oracle/product/18.0.0/grid/root.sh
Execute /opt/oracle/product/18.0.0/grid/root.sh on the following nodes:
[localhost]
Successfully Setup Software with warning(s).
As install user, execute the following command to complete the configuration.
/opt/oracle/product/18.0.0/grid/gridSetup.sh -executeConfigTools -responseFile /opt/oracle/grid.rsp [-silent]
Moved the install session logs to:
/opt/oracle/oraInventory/logs/GridSetupActions2019-12-03_04-52-40PM
[oracle@localhost grid]$ su -
Password:
Last login: Tue Dec 3 16:50:44 IST 2019 on pts/0
[root@localhost ~]# /opt/oracle/oraInventory/orainstRoot.sh
Changing permissions of /opt/oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /opt/oracle/oraInventory to oinstall.
The execution of the script is complete.
[root@localhost ~]# /opt/oracle/product/18.0.0/grid/root.sh
Check /opt/oracle/product/18.0.0/grid/install/root_localhost.localdomain_2019-12-03_16-54-22-182633796.log for the output of root script
[root@localhost ~]# cat /opt/oracle/product/18.0.0/grid/install/root_localhost.localdomain_2019-12-03_16-54-22-182633796.log
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /opt/oracle/product/18.0.0/grid
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Using configuration parameter file: /opt/oracle/product/18.0.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/opt/oracle/oracle_base/crsdata/localhost/crsconfig/roothas_2019-12-03_04-54-22PM.log
2019/12/03 16:54:24 CLSRSC-363: User ignored prerequisites during installation
LOCAL ADD MODE
Creating OCR keys for user 'oracle', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-4664: Node localhost successfully pinned.
2019/12/03 16:54:48 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'localhost'
CRS-2673: Attempting to stop 'ora.evmd' on 'localhost'
CRS-2677: Stop of 'ora.evmd' on 'localhost' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'localhost' has completed
CRS-4133: Oracle High Availability Services has been stopped.
CRS-4123: Oracle High Availability Services has been started.
localhost 2019/12/03 16:56:05 /opt/oracle/product/18.0.0/grid/cdata/localhost/backup_20191203_165605.olr 70732493
2019/12/03 16:56:11 CLSRSC-327: Successfully configured Oracle Restart for a standalone server
[root@localhost ~]# exit
logout
[oracle@localhost grid]$ /opt/oracle/product/18.0.0/grid/gridSetup.sh -executeConfigTools -responseFile /opt/oracle/grid.rsp -silent
Launching Oracle Grid Infrastructure Setup Wizard...
You can find the logs of this session at:
/opt/oracle/oraInventory/logs/GridSetupActions2019-12-03_04-56-54PM
Successfully Configured Software.
[oracle@localhost grid]$ ps -ef|grep smon
oracle 19218 1 0 16:58 ? 00:00:00 asm_smon_+ASM
oracle 19607 2951 0 16:58 pts/0 00:00:00 grep --color=auto smon
No comments:
Post a Comment