How To Install Oracle 12c and ASM On RedHat - Oracle Database
How To Install Oracle 12c and ASM On RedHat - Oracle Database
How To Install Oracle 12c and ASM On RedHat - Oracle Database
As a minimum ensure RedHat has the following packages installed on both nodes.
unzip (x86_64)
xorg-x11-utils-7.5-6.el6.x86_64
binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (i686)
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (i686)
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (i686)
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6 (i686)
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6 (i686)
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6 (i686)
libXext-1.1 (x86_64)
libXext-1.1 (i686)
libXtst-1.0.99.2 (x86_64)
libXtst-1.0.99.2 (i686)
libX11-1.3 (x86_64)
libX11-1.3 (i686)
libXau-1.0.5 (x86_64)
libXau-1.0.5 (i686)
libxcb-1.5 (x86_64)
libxcb-1.5 (i686)
libXi-1.3 (x86_64)
libXi-1.3 (i686)
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)
4. Set the kernel parameters in /etc/sysctl.conf for both nodes as follows. NOTE If the current value for any parameter is higher than the
value listed below, do not change the value of that parameter.
http://www.oracle-wiki.net/startdocshowtoinstalloracle12clinuxasm 1/6
3/11/2017 How to Install Oracle 12c and ASM on RedHat - Oracle Database
7. Ensure the following line in the /etc/pam.d/login file existis on both nodes.
9. Install ASMLIB.
11. Create the ASM disks. For this installation the following disks will need to be created.
asm-data01
asm-fra01
asm-redo01
asm-redo02
http://www.oracle-wiki.net/startdocshowtoinstalloracle12clinuxasm 2/6
3/11/2017 How to Install Oracle 12c and ASM on RedHat - Oracle Database
/usr/sbin/oracleasm listdisks
Log on as Oracle
cd /u01/app/oracle/SOFTWARE
unzip linuxamd64_12102_database_1of2.zip
unzip linuxamd64_12102_database_2of2.zip
unzip linuxamd64_12102_grid_1of2.zip
unzip linuxamd64_12102_grid_2of2.zip
unzip p6880880_121010_Linux-x86-64
unzip p20996835_121020_Linux-x86-64
unset ORACLE_HOME
unset GRID_HOME
unset ORACLE_SID
unset TNS_ADMIN
cd /u01/app/oracle/SOFTWARE/grid
./runInstaller
Log on as root
/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/12.1.0/grid/root.sh
http://www.oracle-wiki.net/startdocshowtoinstalloracle12clinuxasm 3/6
3/11/2017 How to Install Oracle 12c and ASM on RedHat - Oracle Database
. oraenv
ORACLE_SID = [oracle] ? +ASM
sqlplus / as sysasm
SQL> CREATE DISKGROUP FRA01 EXTERNAL REDUNDANCY DISK /dev/asm-fra001 ATTRIBUTE
COMPATIBLE.ASM=12.1.0.0.0,COMPATIBLE.RDBMS=12.1.0.0.0,AU_SIZE=4M';
SQL> CREATE DISKGROUP REDO01 EXTERNAL REDUNDANCY DISK /dev/asm-redo001 ATTRIBUTE
COMPATIBLE.ASM=12.1.0.0.0,COMPATIBLE.RDBMS=12.1.0.0.0,AU_SIZE=4M';
SQL> CREATE DISKGROUP REDO02 EXTERNAL REDUNDANCY DISK /dev/asm-redo002 ATTRIBUTE
COMPATIBLE.ASM=12.1.0.0.0,COMPATIBLE.RDBMS=12.1.0.0.0,AU_SIZE=4M';
. oraenv
ORACLE_SID = [oracle] ? MYDB001
SQL> sqlplus / as sysdba
SQL> shutdown immediate;
SQL> quit
. oraenv
ORACLE_SID = [oracle] ? +ASM
SQL> sqlplus / as sysasm
SQL> alter system set memory_max_target=0 scope=spfile sid=*;
SQL> alter system set memory_target=0 scope=spfile sid=*;
SQL> alter system set sga_target=1088M scope=spfile sid=*;
SQL> alter system set use_large_pages=ONLY scope=spfile sid=*;
SQL> shutdown immediate;
SQL> startup;
SQL> quit
. oraenv
ORACLE_SID = [oracle] ? MYDB001
SQL> sqlplus / as sysdba
SQL> startup
http://www.oracle-wiki.net/startdocshowtoinstalloracle12clinuxasm 4/6
3/11/2017 How to Install Oracle 12c and ASM on RedHat - Oracle Database
2. Unset variables
unset ORACLE_BASE
unset ORACLE_HOME
unset GRID_HOME
unset ORACLE_SID
unset TNS_ADMIN
cd /u01/app/oracle/SOFTWARE/database
./runInstaller
4. Follow the instructions as detailed in the screenshots hereand when prompted run root.sh.
cd /u01/app/oracle/product/12.1.0/dbhome_1
./root.sh
5. Create a symbolic link for TNS directory entries to stop dbca from failing on DB creation and on crsct startup.
cd /u01/app/oracle/product/12.1.0/dbhome_1/network/admin
ln -s /u01/app/oracle/product/12.1.0/grid/network/admin/tnsnames.ora
ln -s /u01/app/oracle/product/12.1.0/grid/network/admin/sqlnet.ora
ln -s /u01/app/oracle/product/12.1.0/grid/network/admin/listener.ora
cd /u01/app/oracle/product/12.1.0/dbhome_1/bin
./dbca
http://www.oracle-wiki.net/startdocshowtoinstalloracle12clinuxasm 5/6
3/11/2017 How to Install Oracle 12c and ASM on RedHat - Oracle Database
http://www.oracle-wiki.net/startdocshowtoinstalloracle12clinuxasm 6/6