March 21, 2014

How to configure Grid HAS manually

#### How to configure Grid HAS manually ####

Hi Fellows, just share and make a note, enjoyyy...

-- Deconfigure First --
$GRID_HOME/crs/install
[root@DB_MACHINE install]# perl rootcrs.pl -deconfig -force

-- Reconfigure --
$GRID_HOME/perl/bin/perl -I $GRID_HOME/perl/lib -I $GRID_HOME/crs/install $GRID_HOME/crs/install/roothas.pl


-- Bringup Daemon cssd to enable asm to started --
+ASM DB_MACHINE /oravl01/oracle/dba > crs_stat -t
Name           Type           Target    State     Host
------------------------------------------------------------
ora.cssd       ora.cssd.type  OFFLINE   OFFLINE
ora.diskmon    ora....on.type OFFLINE   OFFLINE
ora.evmd       ora.evm.type   ONLINE    ONLINE    crmb...app1
ora.ons        ora.ons.type   OFFLINE   OFFLINE

+ASM DB_MACHINE /oravl01/oracle/dba > crsctl start resource ora.cssd
CRS-2672: Attempting to start 'ora.cssd' on 'DB_MACHINE'
CRS-2672: Attempting to start 'ora.diskmon' on 'DB_MACHINE'
CRS-2676: Start of 'ora.diskmon' on 'DB_MACHINE' succeeded
CRS-2676: Start of 'ora.cssd' on 'DB_MACHINE' succeeded


-- Add asm instance to crs and Start ASM instance --
+ASM DB_MACHINE $GRID_HOME/dbs > srvctl add asm -p $GRID_HOME/dbs/init+ASM.ora
+ASM DB_MACHINE $GRID_HOME/dbs > crsctl start resource ora.asm
CRS-2672: Attempting to start 'ora.asm' on 'DB_MACHINE'
CRS-2676: Start of 'ora.asm' on 'DB_MACHINE' succeeded

-- Altering diskgroup --
+ASM DB_MACHINE $GRID_HOME/dbs > sqlplus / as sysasm
SQL > alter diskgroup DGDATA mount;

-- Bring up database --
TESTDB DB_MACHINE $ORACLE_HOME > sqlplus / as sysdba
SQL > startup;