Oracle 12c Installation on Linux With ASM
Oracle 12c Installation on Linux With ASM
with ASM
This guide provides a detailed walkthrough for installing Oracle Database 12c
Release 2 on Oracle Linux 7.6, using Automatic Storage Management (ASM) for
storage management.
1. System Requirements
2. Software Downloads
Prerequisites
Configure Oracle ASM
Install Grid Software
Configure ASM Diskgroups
Install Oracle Software
DBCA Create Database on ASM
Prerequisites
oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module “oracleasm”: oracleasm
Configuring “Oracleasm” to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
Start virtual machine and login as root user to format the newly added
disk
lsblk
fdisk -1
In the above output the /dev/sdb is not yet formatted. Let's create partitions on sdb
fdisk /dev/sdb
n --> to create new partition
<enter>
<enter>
<enter>
+1G
w --> to save partition table
fdisk /dev/sdc
n --> to create new partition
<enter>
<enter>
<enter>
<enter>
+5G
w --> to save partition table
fdisk /dev/sdd
n --> to create new partition <enter>
<enter>
<enter>
<enter>
+5G
w --> to save partition table
fdisk /dev/sde
n --> to create new partition <enter>
<enter>
<enter>
<enter>
+5G
w --> to save partition table
fdisk /dev/sdf
n --> to create new partition <enter>
<enter>
<enter>
<enter>
+5G
w --> to save partition table
fdisk /dev/sdg
n --> to create new partition
<enter>
<enter>
<enter>
<enter>
+30G
w --> to save partition table
ls -lrt /dev/oracleasm/disks
Install Grid Software
cp .bash_profile .bash_profile.orig
vi .bash_profile
PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin
PATH=${PATH}:/usr/bin:/bin:/usr/local/bin
export PATH
umask 022
Save and close vi editor. Execute the bash profile and check the
environment variables
. .bash_profile
env|grep ORA
Copy the 12cR2 grid software under grid home and unzip it
cd $ORACLE_HOME
unzip linuxx64_12201_grid_home.zip
Click on Close
Configure ASM Diskgroups
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
ORACLE_HOSTNAME=asm.dbagenesis.com; export ORACLE_HOSTNAME
ORACLE_SID=prod; export ORACLE_SID
ORACLE_UNQNAME=prod; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=/u01/app/oracle/product/12.2.0/db_home; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACL
E_HOME/network/jlib
export CLASSPATH
umask 022
./runinstaller
Uncheck the i wish to receive security updates via my oracle support
Select install database software only >> Next >> Next >> Next >> Next >> Next
Click on Install
Run the Root scripts as root user
We can now go ahead and create database on ASM with DBCA. Start DBCA >>
Create a Database >> Advance Configuration
Select Use the same administrative password for all accounts >> Password >>
Confirm Password
The process remains pretty much the same when compared to 12cR1 and also with the
11gR2 release.
Reference:
https://docs.dbagenesis.com/post/oracle-12c-installation-on-
linux-with-asm