This blog post will demonstrate how to install Grid Infrastructure for a standalone server (Oracle Restart) with and without the Automatic Storage Management (ASM) component. Unfortunately the Oracle Universal Installer does not provide a method to skip the configuration of ASM. To get rid of ASM part, the only way is to perform a software-only installation and run the necessary configuration manually.

Install GI 12cR2 Software Only

Using the installation wizard, the Automatic Storage Management (ASM) component installation cannot be skipped. So I’ll install GI software only as first step.

From 12.2 onwards, GI software requires un-zipping software into a grid home. There won’t be any GI home selection in GUI. So create GI directory and Unzip the software there.

mkdir /oracle/product/grid12.2
cp V840012-01_12.2_GI_Linux64x.zip /oracle/product/grid12.2
unzip V840012-01_12.2_GI_Linux64x.zip

If you do not use an Oracle Pre installation RPM, and you want to use the Cluster Verification Utility, then you must install the cvuqdisk RPM.

cd /oracle/product/12.2.0.1/cv/rpm
cvuqdisk-1.0.10-1.rpm
Preparing packages for installation...
cvuqdisk-1.0.10-1

# Now we can use the Cluster Verification Utility
./runcluvfy.sh stage -pre hacfg

Now run GI installation script and follow the steps.
./gridSetup.sh

Select Software Only. Click Next.

Capture_11

Hostname appear and don’t need to set up anything else and click next.

InkedCap_13_LI

No separation of duties, so same group for both. Click next.

cap

Select Oracle Base and click next.

Capture_12

Root privileges can be run automatically if provided the root password or user with sudo privileges. Or can be run manually as i did.

cap

Next review the summary and then click on install.

cap

Run the root scripts and finish the installation.

cap

cap

Run Root Scripts.

./root.sh
 Performing root user operation.
 The following environment variables are set as:
  ORACLE_OWNER= oracle
  ORACLE_HOME= /oracle/product/grid12.2
 Enter the full pathname of the local bin directory: [/usr/local/bin]:
  The contents of "dbhome" have not changed. No need to overwrite.
  The contents of "oraenv" have not changed. No need to overwrite.
  The contents of "coraenv" have not changed. No need to overwrite.
 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 Cluster or Grid Infrastructure for a Stand-Alone Server execute the following command as oracle user:
  /oracle/product/grid12.2/gridSetup.sh
  This command launches the Grid Infrastructure Setup 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 Without ASM:

The next step is mandatory to get the Grid Infrastructure stack running. To configure the Grid Infrastructure for a standalone server without ASM, the following script has to be executed as root.

/oracle/product/grid12.2/perl/bin/perl -I/oracle/product/grid12.2/perl/lib -I/oracle/product/grid12.2/crs/install /oracle/product/grid12.2/crs/install/roothas.pl

Output:

The log of current session can be found at:
  /oracle/crsdata/oraprd01/crsconfig/roothas_2017-10-23_05-05-50PM.log
  2017/10/23 17:05:50 CLSRSC-363: User ignored prerequisites during installation
  LOCAL ADD MODE
  Creating OCR keys for user 'oracle', privgrp 'dba'..
  Operation successful.
  LOCAL ONLY MODE
  Successfully accumulated necessary OCR keys.
  Creating OCR keys for user 'root', privgrp 'root'..
  Operation successful.
  CRS-4664: Node oraprd01 successfully pinned.
  2017/10/23 17:05:57 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'
  CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'oraprd01'
  CRS-2673: Attempting to stop 'ora.evmd' on 'oraprd01'
  CRS-2677: Stop of 'ora.evmd' on 'oraprd01' succeeded
  CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'oraprd01' has completed
  CRS-4133: Oracle High Availability Services has been stopped.
  CRS-4123: Oracle High Availability Services has been started.

oraprd01 2017/10/23 17:06:52 /oracle/product/grid12.2/cdata/oraprd01/backup_20171023_170652.olr 0
  2017/10/23 17:06:53 CLSRSC-327: Successfully configured Oracle Restart for a standalone server.

The list of resources running on the server as below.

./crsctl status resource -t
-------------------------------------------------------------------------------
Name Target State Server State details
-------------------------------------------------------------------------------
Local Resources
-------------------------------------------------------------------------------
ora.ons
 OFFLINE OFFLINE oraprd01 STABLE
-------------------------------------------------------------------------------
Cluster Resources
-------------------------------------------------------------------------------
ora.cssd
 1 OFFLINE OFFLINE STABLE
ora.diskmon
 1 OFFLINE OFFLINE STABLE
ora.evmd
 1 ONLINE ONLINE oraprd01 STABLE
--------------------------------------------------------------------------------

Configure Grid Infrastructure With ASM:

To configure Grid Infrastructure for a Cluster or Grid Infrastructure for a Stand-Alone Server with ASM execute the following command as oracle user.
/oracle/product/grid12.2/gridSetup.sh

Select second option and click next.

cap

Select Disk Group DATA and add disks as per your environment.

cap

Supply password for ASM instance.

cap

No OEM registration.

cap

Run root scripts manually.

cap

Check System requirements. Ignored Swap.

cap1

Review Summary and click install.

cap4

Run root script.

./root.sh
 Performing root user operation.
 The following environment variables are set as:
 ORACLE_OWNER= oracle
 ORACLE_HOME=  /oracle/product/grid12.2/
 Enter the full pathname of the local bin directory: [/usr/local/bin]:
 The contents of "dbhome" have not changed. No need to overwrite.
 The contents of "oraenv" have not changed. No need to overwrite.
 The contents of "coraenv" have not changed. No need to overwrite.
 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: /oracle/product/grid12.2/crs/install/crsconfig_params
 The log of current session can be found at:
 /oracle/crsdata/oraprd01/crsconfig/roothas_2017-10-23_11-56-04AM.log
 2017/10/23 11:56:05 CLSRSC-363: User ignored prerequisites during installation
 LOCAL ADD MODE
 Creating OCR keys for user 'oracle', privgrp 'dba'..
 Operation successful.
 LOCAL ONLY MODE
 Successfully accumulated necessary OCR keys.
 Creating OCR keys for user 'root', privgrp 'root'..
 Operation successful.
 CRS-4664: Node oraprd01 successfully pinned.
 2017/10/23 11:56:17 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.conf'
 CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'oraprd01'
 CRS-2673: Attempting to stop 'ora.evmd' on 'oraprd01'
 CRS-2677: Stop of 'ora.evmd' on 'oraprd01' succeeded
 CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'oraprd01' has completed
 CRS-4133: Oracle High Availability Services has been stopped.
 CRS-4123: Oracle High Availability Services has been started.
 oraprd01     2017/10/23 11:57:33     /oracle/product/12.2.0.1/grid/cdata/oraprd01/backup_20170811_115733.olr     0
 2017/10/23 11:57:34 CLSRSC-327: Successfully configured Oracle Restart for a standalone server

Finish the installation.

cap5

The list of resources running on the server as below.

./crsctl status resource -t
-------------------------------------------------------------------------------
Name Target State Server State details
-------------------------------------------------------------------------------
Local Resources
-------------------------------------------------------------------------------
ora.DATA.dg
 ONLINE ONLINE oraprd01 STABLE
ora.FRA.dg
 ONLINE ONLINE oraprd01 STABLE
ora.asm
 ONLINE ONLINE oraprd01 Started,STABLE
ora.ons
 OFFLINE OFFLINE oraprd01 STABLE
-------------------------------------------------------------------------------
Cluster Resources
-------------------------------------------------------------------------------
ora.cssd
 1 ONLINE ONLINE oraprd01 STABLE
ora.diskmon
 1 OFFLINE OFFLINE STABLE
ora.evmd
 1 ONLINE ONLINE oraprd01 STABLE
--------------------------------------------------------------------------------

Reference:

https://docs.oracle.com/database/122/CWLIN/toc.htm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s