##node 1, node 2 has rac2.localdomain.com, ORACLE_UNQNAME=orcl, ORACLE_SID=orcl2
$oracle>
vi .bash_profile
export PATH
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=rac1.localdomain.com; export ORACLE_HOSTNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
DB_HOME=$ORACLE_BASE/product/12.1.0/dbhome_1; export DB_HOME
ORACLE_HOME=$DB_HOME export ORACOLE_HOME
ORACLE_SID=orcl1; export ORACLE_SID
ORACLE_UNQNAME=orcl; export ORACLE_UNQNAME
ORACLE_TERM=xterm; export ORACLE_TERM
BASE_PATH=/usr/sbin:$PATH; export BASE_PATH
PATH=$ORACLE_HOME/bin:$GRID_HOME/bin:$BASE_PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
:wq!
. .bash_profile

$oracle>
unzip linuxamd64_12102_database_1of2.zip
unzip linuxamd64_12102_database_2of2.zip
cd database
$oracle>./runInstaller
##install software first, then create database
install software only
Oracle RAC database installation
select all 
ssh connectivity- OS Username: oracle, OS password: xxxx
next ... verifying
Enterprise Edition
Oracle base: /u01/app/oracle
Software location: /u01/app/oracle/product/12.1.0/dbhome_1
Groups: dba, oper, dba, dba, dba
run fix scripts
su -
$root>
run as root two scripts on two nodes
clock synchronization failed		failed
Task resolv.conf Integrity		failed
Single Client Access Name (SCAN) 	warning (not using DNS)
Ignore All
Next, Install
run as root of install script in both nodes
Successful, Close.
##now create db
##node 1
$grid>asmca
##only VOTE group is create, we will create DATA and FRA

$oracle>dbca
##create database
##create default mode
global database name: orcl
storage type: ASM
database file location: +DATA
fast recovery area: +FRA
Characterset: AL32UTF8
cluster verification check - security ignored (DEMO)
$oracle>
sqlplus / as sysdba
select * from cat;





