Professional Documents
Culture Documents
Oracle 12cR2 Installation On Linux With ASM
Oracle 12cR2 Installation On Linux With ASM
Oracle 12cR2 Installation On Linux With ASM
All Articles Getting Started Oracle Enterprise Manager Oracle RAC Interview Questions More
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 1/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Connect to OEL 7.6 server via putty and install the below packages
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 2/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
passwd oracle
passwd grid
oracleasm configure -i
oracleasm init
Add 30 GB HDD to virtual machine which we will use to create 3 partitions of 10 GB each
for our ASM disks
Open Virtual machine >> Settings >> Storage >> Controller: SATA >> Create new disk
oracle VM
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 4/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Click on Next
Click on Next
Click on OK
Start virtual machine and login as root user. We are not going to format the newly added
disk
fdisk -1
In the above output we have created 3 partitions for sda i.e. sda1,sda2, and sda3. The
sdb is not yet formatted. So now we need to create 3 partitions for sdb.
fdisk /dev/sdb
To store partitions : w
To verify : fdisk -1
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 5/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
To check disk:
oracleasm listdisks
ls -lrt /dev/oracleasm/disks
mkdir -p /u01/app/oracle
mkdir -p /u01/app/oracle/product/12.2.0/db_home
chown -R oracle:oinstall /u01
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 6/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
mkdir -p /u01/app/grid
mkdir -p /u01/app/grid/product/12.2.0/grid_home
chown -R grid:oinstall /u01/app/grid
chown -R 775 /u01
Edit Grid user Bash_Profile but take .bash_profile backup before editing it
cd grid
cp .bash_profile .bash_profile.orig
vi .bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
ORACLE_SID=+ASM; export ORACLE_SID
ORACLE_BASE=/u01/app/grid; export ORACLE_BASE
ORACLE_HOME=/u01/app/grid/12.2.0/grid_home; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
JAVA_HOME=/usr/bin/java; export JAVA_HOME
TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 7/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
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 grid 12cR2 under grid home and unzip the software
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 8/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
cd $ORACLE_HOME
unzip linuxx64_12201_grid_home.zip
Start the gridSetup.sh which will install grid software. Make sure xming is up and
running on your windows machine
./gridSetup.sh
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 9/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 10/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Image 11
Select use same password for these accounts >> Give Specify password >> confirm
password >> Next
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 11/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Click on Yes
Image 12
Click on Next
Click on Next
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 12/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Click on Next
Click on Next
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 13/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Click on Next
Image 16
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 14/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Image 15
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 15/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Image 16
Click on OK
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 16/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
1. Ignore All
2. Next
3. Yes
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 17/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Image 17
Click on Install
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 18/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Click on OK
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 19/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Image 18
Click on Close
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 20/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Image 19
Now we need to initiate the asmca in order to configure DATA and FRA disk group
Click on Create
Image 20
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 22/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Click on Create
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 23/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Image 21
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 24/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Image 22
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 25/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Open duplicate session as Oracle user >> Give user and Passwords >> copy the bash
profile
vi .bash_profile
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
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 26/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
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:$O
RACLE_HOME/network/jlib
export CLASSPATH
umask 022
Now we need to install the Oracle Software. We already copied oracle software under
the u01. Unzip the software
cd /u01
ls -lrt
unzip linuxx64_12201_database.zip
ls -lrt
cd database/
ls -lrt
./runinstaller
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 27/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Uncheck the i wish to receive security updates via my oracle support >> Next
Click on Yes
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 28/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Click on Next
Click on Next
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 29/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Click on Next
Click on Next
Image.
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 30/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Click on Install
install product
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 31/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Click on OK
Click on Close
Now we need to create database on oracle user. Start DBCA and follow below screens.
Click on Next
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 33/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
image 8
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 34/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Select Use following for the database storage attributes >> Browse
Click on Next
Click on Next
Click on Next
Click on Next
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 35/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Image 23
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 36/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Select Use the same administrative password for all accounts >> Password >> Confirm
Password Next
Click on Yes
Click on Finish
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 37/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Click on Close
To confirmation purpose, connect to database as Oracle user and issue below queries
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 38/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
The process remains pretty much the same when compared to 12cR1 and also with the
11gR2 release.
735 views 2
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 39/40
17/10/2020 Oracle 12cR2 Installation on Linux with ASM
Database creation process Assume that you have a schema I encountered this situation
involves several operating (IQS) on production server and where I wanted to grant SELECT
system files to work together. you want to import the schema on all the tables owned by one
You create database only once… into test server. The ideal… user to another user. There ar…
65 1 76 31
support@dbagenesis.com
https://www.support.dbagenesis.com/post/oracle-12c-installation-on-linux-with-asm 40/40