Beruflich Dokumente
Kultur Dokumente
VOEURNG SOVANN
DATABASE 12C R1 Installation and configuration
English
Installing Oracle Grid Infrastructure and Database 12c R1
Using VirtualBox GUI I have created a new virtual machine named linux 7 with following:
-Server should have at least 50-60 GB free space for the installation of Grid Infrastructure and Oracle
Database 12c home.
- 2 network interfaces (the first one attached to NAT and the second one attached to Host-Only
Adapter)
I was assuming t that you have been install Linux 7 in your virtual box already with assign
Static IP = 192.168.56.1 in your virtual box adopter and configure network on your VM by
SELINUX=permissive
Navigate to System => Administration => Firewall. Click on Disable button and then click on Apply to
disable firewall. Or command systemctl disable firewalld
pg. 1
Installing Oracle Grid Infrastructure and Database 12c R1
#Passwd grid
#Passwd oracle
1.Creating directories
Create the Oracle Inventory Directory
mkdir -p /u01/app/oraInventory
mkdir -p /u01/app/grid
pg. 2
Installing Oracle Grid Infrastructure and Database 12c R1
mkdir -p /u01/app/oracle
mkdir -p /u01/app/oracle/product/12.1.0.1/db_1
Needed to ensure that dbca is able to run after the rdbms installation.
mkdir /u01/app/oracle/cfgtoollogs
vi $HOME/.bash_profile
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=linux7
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.1/grid
export ORA_CRS_HOME=$ORACLE_HOME
export ORACLE_SID=+ASM
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
pg. 3
Installing Oracle Grid Infrastructure and Database 12c R1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
envo
umask 022
vi $HOME/.bash_profile
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_HOSTNAME=linux7
export ORACLE_UNQNAME=asmdb
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/12.1.0.1/db_1
export ORACLE_SID=asmdb
export PATH=/usr/sbin:$PATH
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
envo
umask 022
After complete configure already , login as root user and command init 0 to shutdown system and
adding Virtual disk
NAME : FRA 5G
pg. 4
Installing Oracle Grid Infrastructure and Database 12c R1
- Checking Oracle Linux is up and running. Now we check whether oracleasm package is
installed: if not yet , install oracleasm-support-2.1.8-3.1.el7.x86_64,
#Yum install -y oracleasm-support-2.1.8-3.1.el7.x86_64
Configuring and load the ASM kernel module (as root user).
#oracleasm configure -i
This will configure the on-boot properties of the Oracle ASM library
loaded on boot and what permissions it will have. The current values
pg. 5
Installing Oracle Grid Infrastructure and Database 12c R1
# /usr/sbin/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
#fdisk /dev/sdb
Command action
e extended
Syncing disks.
# ls -l /dev/sd*
pg. 6
Installing Oracle Grid Infrastructure and Database 12c R1
Download – linuxamd64_12c_grid_1of2.zip
Download – linuxamd64_12c_grid_2of2.zip
Copy zip files to oracle server to /tmp directory using WinSCP and unzip it
Login as Grid user and go to the location of that download file and go to folder grid
After finish , run asmca in order to create FRA diskgroup by click on Redundancy = external (not
mirror )
pg. 7
Installing Oracle Grid Infrastructure and Database 12c R1
And using oracle user and go to path of installing oracle database software and then using this
command
$export DISPLAY=192.168.56.1:0.0
$./runInstaller
pg. 8
Installing Oracle Grid Infrastructure and Database 12c R1
and then Oracle Universal Installer will pop up , these are the following :
- If you have oracle support account lets complete it if you don’t have , just skip it ---Next
- Skip software update --- Next
- Install database software only --- Next
- Single instance database installation --- Next
- English – Next
- Enterprise edition – Next
- Oracle base: /u01/app/oracle , Oracle software installation :
/u01/app/oracle/product/12.1.0/db-1 -- Next
- Next
- Finish
When the net configure assistant welcome form pop up , click Listener Configuration ---ADD give
the listener name = LISTENER_ASMDB port 1522 because (1521 used by ASM Instance listener )---
Finish
pg. 9
Installing Oracle Grid Infrastructure and Database 12c R1
- ("+DATA/{DB_UNIQUE_NAME}/control01.ctl", "+FRA/{DB_UNIQUE_NAME}/contr
ol02.ctl")
---Next
- Click on Create Database --- Next
- Finish
pg. 10