References

runcluvfy.sh stage -pre hacfg (Oracle Restart)

Install CRS_SWONLY Silent

Configure Grid Infrastructure for a Stand-Alone Server

Check Install Logs

References

VirtualBox OEL 7.3 Minimal Install for 12c

https://docs.google.com/document/d/e/2PACX-1vQQMJiMEWAtd0CiolnvxrG05C9-xf_XEUEvvi_3dHhLFl1T2A6MTvRFl3meVujoR5eiIVkPlAdRNoeb/pub

Silent Install DB 12c using OEL 7.3 Minimal Install

https://docs.google.com/document/d/e/2PACX-1vTq4tzlhY0BM5BP_A6G2_yL5qKUrBOaGSFRcMGTVFFr3qrOm0eavi7LyFgOg97dIvM-fa3gDS8YcG-Q/pub

How to install Grid Infrastructure 12.1 in silent mode

https://pierreforstmanndotcom.wordpress.com/2013/07/11/how-to-install-grid-infrastructure-12-1-in-silent-mode/

12c Silent Install software-only BUG

https://mdinh.wordpress.com/2016/03/06/12c-silent-install-software-only-bug/

--------------------------------------------------------------------------------

+++ Create Directories

--------------------------------------------------------------------------------

[root@oel73 media]# mkdir -p /u01/app/12.1.0/grid

[root@oel73 media]# mkdir -p /u01/app/oracle

[root@oel73 media]# chown -R oracle:oinstall /u01

[root@oel73 media]# chmod -R 775 /u01

--------------------------------------------------------------------------------

+++ Create /etc/oraInst.loc

--------------------------------------------------------------------------------

[root@oel73 media]# cat /etc/oraInst.loc

inventory_loc=/u01/app/oraInventory

inst_group=oinstall

[root@oel73 media]# ll /etc/oraInst.loc

-rw-r--r--. 1 root root 56 Nov 23 20:51 /etc/oraInst.loc

[root@oel73 media]# chgrp oinstall /etc/oraInst.loc

[root@oel73 media]# ll /etc/oraInst.loc

-rw-r--r--. 1 root oinstall 56 Nov 23 20:51 /etc/oraInst.loc

[root@oel73 media]#

runcluvfy.sh stage -pre hacfg (Oracle Restart)

--------------------------------------------------------------------------------

+++ runcluvfy.sh stage -pre hacfg (Oracle Restart)

--------------------------------------------------------------------------------

[oracle@oel73 ~]$ cd /media/sf_OracleSoftware/12.1.0.2_PatchSet_Linux_x64/grid/

/media/sf_OracleSoftware/12.1.0.2_PatchSet_Linux_x64/grid

[oracle@oel73 grid]$ ls

install  readme.html  response  rpm  runcluvfy.sh  runInstaller  sshsetup  stage  welcome.html

[oracle@oel73 grid]$ ./runcluvfy.sh stage -pre hacfg

Performing pre-checks for Oracle Restart configuration

Total memory check failed

Check failed on nodes:

        oel73

Available memory check passed

Swap space check passed

Free disk space check passed for "oel73:/usr,oel73:/var,oel73:/etc,oel73:/sbin,oel73:/tmp"

Check for multiple users with UID value 54321 passed

User existence check passed for "oracle"

Group existence check passed for "oinstall"

Group existence check passed for "dba"

Membership check for user "oracle" in group "oinstall" [as Primary] passed

Membership check for user "oracle" in group "dba" passed

Run level check passed

Hard limits check passed for "maximum open file descriptors"

Soft limits check passed for "maximum open file descriptors"

Hard limits check passed for "maximum user processes"

Soft limits check passed for "maximum user processes"

System architecture check passed

Kernel version check passed

Kernel parameter check passed for "semmsl"

Kernel parameter check passed for "semmns"

Kernel parameter check passed for "semopm"

Kernel parameter check passed for "semmni"

Kernel parameter check passed for "shmmax"

Kernel parameter check passed for "shmmni"

Kernel parameter check passed for "shmall"

Kernel parameter check passed for "file-max"

Kernel parameter check passed for "ip_local_port_range"

Kernel parameter check passed for "rmem_default"

Kernel parameter check passed for "rmem_max"

Kernel parameter check passed for "wmem_default"

Kernel parameter check passed for "wmem_max"

Kernel parameter check passed for "aio-max-nr"

Kernel parameter check passed for "panic_on_oops"

Package existence check passed for "binutils"

Package existence check passed for "compat-libcap1"

Package existence check passed for "compat-libstdc++-33(x86_64)"

Package existence check passed for "libgcc(x86_64)"

Package existence check passed for "libstdc++(x86_64)"

Package existence check passed for "libstdc++-devel(x86_64)"

Package existence check passed for "sysstat"

Package existence check passed for "gcc"

Package existence check passed for "gcc-c++"

Package existence check passed for "ksh"

Package existence check passed for "make"

Package existence check passed for "glibc(x86_64)"

Package existence check passed for "glibc-devel(x86_64)"

Package existence check passed for "libaio(x86_64)"

Package existence check passed for "libaio-devel(x86_64)"

Package existence check passed for "nfs-utils"

Check for multiple users with UID value 0 passed

Current group ID check passed

Starting check for consistency of primary group of root user

Check for consistency of root user's primary group passed

Pre-check for Oracle Restart configuration was unsuccessful.

[oracle@oel73 grid]$

Install CRS_SWONLY Silent

--------------------------------------------------------------------------------

+++ Install CRS_SWONLY Silent

--------------------------------------------------------------------------------

[oracle@oel73 grid]$ pwd

/media/sf_OracleSoftware/12.1.0.2_PatchSet_Linux_x64/grid

[oracle@oel73 grid]$ export DISTRIB=`pwd`

[oracle@oel73 grid]$ ./runInstaller -silent -ignoreSysPrereqs -waitforcompletion -force -responseFile $DISTRIB/response/grid_install.rsp \

> SELECTED_LANGUAGES=en \

> ORACLE_BASE=/u01/app/oracle \

> ORACLE_HOME=/u01/app/12.1.0/grid \

> oracle.install.option=CRS_SWONLY \

> oracle.install.asm.OSDBA=dba \

> oracle.install.asm.OSOPER=dba \

> oracle.install.asm.OSASM=dba

Starting Oracle Universal Installer...

Checking Temp space: must be greater than 415 MB.   Actual 111028 MB    Passed

Checking swap space: must be greater than 150 MB.   Actual 16383 MB    Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-11-23_08-58-13PM. Please wait …

[WARNING] [INS-41808] Possible invalid choice for OSASM Group.

   CAUSE: The name of the group you selected for the OSASM group is commonly used to grant other system privileges (For example: asmdba, asmoper, dba, oper).

   ACTION: Oracle recommends that you designate asmadmin as the OSASM group.

[WARNING] [INS-41809] Possible invalid choice for OSDBA Group.

   CAUSE: The group name you selected as the OSDBA for ASM group is commonly used for Oracle Database administrator privileges.

   ACTION: Oracle recommends that you designate asmdba as the OSDBA for ASM group, and that the group should not be the same group as an Oracle Database OSDBA group.

[WARNING] [INS-41810] Possible invalid choice for OSOPER Group.

   CAUSE: The group name you selected as the OSOPER for ASM group is commonly used for Oracle Database administrator privileges.

   ACTION: Oracle recommends that you designate asmoper as the OSOPER for ASM group, and that the group should not be the same group as an Oracle Database OSOPER group.

[WARNING] [INS-41813] OSDBA for ASM, OSOPER for ASM, and OSASM are the same OS group.

   CAUSE: The group you selected for granting the OSDBA for ASM group for database access, and the OSOPER for ASM group for startup and shutdown of Oracle ASM, is the same group as the OSASM group, whose members have SYSASM privileges on Oracle ASM.

   ACTION: Choose different groups as the OSASM, OSDBA for ASM, and OSOPER for ASM groups.

[WARNING] [INS-13014] Target environment does not meet some optional requirements.

   CAUSE: Some of the optional prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/installActions2016-11-23_08-58-13PM.log

   ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/installActions2016-11-23_08-58-13PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.

You can find the log of this install session at:

 /u01/app/oraInventory/logs/installActions2016-11-23_08-58-13PM.log

The installation of Oracle Grid Infrastructure 12c was successful.

Please check '/u01/app/oraInventory/logs/silentInstall2016-11-23_08-58-13PM.log' for more details.

As a root user, execute the following script(s):

        1. /u01/app/12.1.0/grid/root.sh

Successfully Setup Software.

As install user, execute the following script to complete the configuration.

        1. /u01/app/12.1.0/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=<response_file>

        Note:

        1. This script must be run on the same host from where installer was run.

        2. This script needs a small password properties file for configuration assistants that require passwords (refer to install guide documentation).

++++++++++        

[root@oel73 ~]# /u01/app/12.1.0/grid/root.sh

Check /u01/app/12.1.0/grid/install/root_oel73.localdomain_2016-11-23_21-18-43.log for the output of root script

++++++++++

[root@oel73 ~]# cat /u01/app/12.1.0/grid/install/root_oel73.localdomain_2016-11-23_21-18-43.log

Performing root user operation.

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /u01/app/12.1.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.

To configure Grid Infrastructure for a Stand-Alone Server run the following command as the root user:

/u01/app/12.1.0/grid/perl/bin/perl -I/u01/app/12.1.0/grid/perl/lib -I/u01/app/12.1.0/grid/crs/install /u01/app/12.1.0/grid/crs/install/roothas.pl

To configure Grid Infrastructure for a Cluster execute the following command as oracle user:

/u01/app/12.1.0/grid/crs/config/config.sh

This command launches the Grid Infrastructure Configuration Wizard. The wizard also supports silent operation, and the parameters can be passed through the response file that is available in the installation media.

Configure Grid Infrastructure for a Stand-Alone Server

[root@oel73 ~]# /u01/app/12.1.0/grid/perl/bin/perl -I/u01/app/12.1.0/grid/perl/lib -I/u01/app/12.1.0/grid/crs/install /u01/app/12.1.0/grid/crs/install/roothas.pl

Using configuration parameter file: /u01/app/12.1.0/grid/crs/install/crsconfig_params

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 oel73 successfully pinned.

2016/11/23 21:24:51 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'

oel73     2016/11/23 21:27:24     /u01/app/12.1.0/grid/cdata/oel73/backup_20161123_212724.olr     0

CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'oel73'

CRS-2673: Attempting to stop 'ora.evmd' on 'oel73'

CRS-2677: Stop of 'ora.evmd' on 'oel73' succeeded

CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'oel73' has completed

CRS-4133: Oracle High Availability Services has been stopped.

CRS-4123: Oracle High Availability Services has been started.

2016/11/23 21:27:42 CLSRSC-327: Successfully configured Oracle Restart for a standalone server

[root@oel73 ~]#

       

++++++++++    

[oracle@oel73 grid]$ vi /tmp/cfgrsp.properties

[oracle@oel73 grid]$ cat /tmp/cfgrsp.properties

oracle.assistants.asm|S_ASMPASSWORD=oracle12c

oracle.assistants.asm|S_ASMMONITORPASSWORD=oracle12c

[oracle@oel73 grid]$ /u01/app/12.1.0/grid/cfgtoollogs/configToolAllCommands RESPONSE_FILE=/tmp/cfgrsp.properties

-bash: /u01/app/12.1.0/grid/cfgtoollogs/configToolAllCommands: No such file or directory

[oracle@oel73 grid]$ ll /u01/app/12.1.0/grid/cfgtoollogs/configToolAllCommands

ls: cannot access /u01/app/12.1.0/grid/cfgtoollogs/configToolAllCommands: No such file or directory

[oracle@oel73 grid]$

Check Install Logs

[oracle@oel73 grid]$ cd /u01/app/oraInventory/logs/

[oracle@oel73 logs]$ ls -lrt *2016-11-23_08-58-13PM*

-rw-r----- 1 oracle oinstall      47 Nov 23 20:59 time2016-11-23_08-58-13PM.log

-rw-r----- 1 oracle oinstall       0 Nov 23 20:59 oraInstall2016-11-23_08-58-13PM.err

-rw-r----- 1 oracle oinstall     106 Nov 23 21:17 silentInstall2016-11-23_08-58-13PM.log

-rw-r----- 1 oracle oinstall     798 Nov 23 21:17 oraInstall2016-11-23_08-58-13PM.out

-rw-r----- 1 oracle oinstall 1072669 Nov 23 21:17 installActions2016-11-23_08-58-13PM.log

[oracle@oel73 logs]$ export LOG=installActions2016-11-23_08-58-13PM.log

[oracle@oel73 logs]$ grep -e '[[:upper:]]: ' $LOG|cut -d ":" -f1|sort -u

   ACTION

   CAUSE

INFO

WARNING

[oracle@oel73 logs]$ grep -e '[[:upper:]]: ' $LOG |grep "^WARNING: "

WARNING: Unable to find the namespace URI. Reason: Start of root element expected.

WARNING: Unable to find the namespace URI. Reason: Start of root element expected.

WARNING: Validation disabled for the state init

WARNING: Validation disabled for the state flowDecider

WARNING: [WARNING] [INS-41808] Possible invalid choice for OSASM Group.

WARNING: [WARNING] [INS-41809] Possible invalid choice for OSDBA Group.

WARNING: [WARNING] [INS-41810] Possible invalid choice for OSOPER Group.

WARNING: [WARNING] [INS-41813] OSDBA for ASM, OSOPER for ASM, and OSASM are the same OS group.

WARNING: Validation disabled for the state preInstallLocation

WARNING: Validation disabled for the state prereqExecutionDecider

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: Result values are not available for this verification task

WARNING: [WARNING] [INS-13014] Target environment does not meet some optional requirements.

WARNING: Validation disabled for the state showSummary

WARNING: Duplicate definition of global variable ORACLE_HOSTNAME

WARNING: Validation disabled for the state finish

[oracle@oel73 logs]$

Michael Dinh