SlideShare a Scribd company logo
2
Most read
3
Most read
INSTALLING ORACLE GRID
INFRASTRUCTURE AND
DATABASE 12C R1
English
ABSTRACT
Oracle’s dramatic re-architecture of its latest
enterprise relational database, Oracle Database
12c, offers database customers a long list of
real improvements to support cloud
implementations, enable the consolidation and
management of many databases as one, and
streamline the day-to-day work of database
administrators. This documents used for
showing, Oracle GRID Infrastructure and the
Oracle Universal Installer (OUI) installation the
Oracle Database 12c software. Moreover, this
document also show how to create Oracle ASM
Configuration Assistant (ASMCA), installing and
configuring Oracle ASM instances, disk groups,
volumes, and Oracle Automatic Storage
Management Cluster File System (Oracle
ACFS) and create a database by using
Database Configuration Assistant (DBCA) to
create additional databases.
VOEURNG SOVANN
Installation and configuration
Installing Oracle Grid Infrastructure and Database 12c R1
pg. 1
Installing Oracle Grid Infrastructure 12c R1 (12.1) On Standalone Server
(Oracle Restart)On Linux 7 with ASM
Required:
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)
-Minimum Memory Requirements
At least 4 GB RAM is required to install Oracle Grid Infrastructure 12c and Oracle Database 12c.
- Download package oracle-rdbms-server-12cR1-preinstall-1.0-1.el6.x86_64.rpm from http://public-
yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/ and once download completed using
this command rpm -ivh oracle-rdbms-server-12cR1-preinstall-1.0-1.el6.x86_64.rpm or if you
have internet connection using: yum update -y
Or yum install 12cr1-preinstall-1.0-1.el6.x86_64 -y with root user after complete install linux7
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
- Hostname= linux7 with IP = 192.168.56.200 and hostname = linux 7
-
-Disable SELINUX and FIREWALL
Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag
is set as follows.
SELINUX=permissive
Navigate to System => Administration => Firewall. Click on Disable button and then click on Apply to
disable firewall. Or command systemctl disable firewalld
- Creating Groups, Users and Environment variables
Creation groups for Oracle Grid Infrastructure
/usr/sbin/groupadd -g 54321 oinstall
/usr/sbin/groupadd -g 54322 dba
/usr/sbin/groupadd -g 54333 oper
/usr/sbin/groupadd -g 54325 backupdba
Installing Oracle Grid Infrastructure and Database 12c R1
pg. 2
/usr/sbin/groupadd -g 54326 dgdba
/usr/sbin/groupadd -g 54327 kmdba
/usr/sbin/groupadd -g 54328 asmdba
/usr/sbin/groupadd -g 54329 asmoper
/usr/sbin/groupadd -g 54330 asmadmin
- Create Oracle Grid Infrastructure User (grid)
#useradd -u 64322 -g oinstall -G dba,asmdba,asmadmin,asmoper -d /home/grid -m grid
- Create Oracle user
#useradd -u 64321 -g oinstall -G dba,oper -d /home/oracle -m oracle
Change password of user grid and oracle
#Passwd grid
#Passwd oracle
#usermod -a -G oper oracle
#usermod -a -G asmdba oracle
1.Creating directories
 Create the Oracle Inventory Directory
mkdir -p /u01/app/oraInventory
chown -R grid:oinstall /u01/app/oraInventory
chmod -R 775 /u01/app/oraInventory
 Creating the Oracle Base Directory for Oracle Grid installation
mkdir -p /u01/app/grid
chown -R grid:oinstall /u01/app/grid
chmod -R 775 /u01/app/grid
 Creating the Oracle Grid Infrastructure Home Directory
mkdir -p /u01/app/grid/ product/12.1.0.1/grid
chown -R grid:oinstall /u01/app/grid
chmod -R 775 /u01/
 Creating the Oracle Base Directory for Oracle Database installation
Installing Oracle Grid Infrastructure and Database 12c R1
pg. 3
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01/app/oracle
 Creating the Oracle RDBMS Home Directory
mkdir -p /u01/app/oracle/product/12.1.0.1/db_1
chown -R oracle:oinstall /u01/app/oracle/product/12.1.0.1
 Needed to ensure that dbca is able to run after the rdbms installation.
mkdir /u01/app/oracle/cfgtoollogs
chown -R oracle:oinstall /u01/app/oracle/cfgtoollogs
chmod -R 775 /u01/app/oracle/cfgtoollogs
 Configure .bash_profile for grid user
Login to the server as grid user. Use vi editor to edit the profile of grid user.
vi $HOME/.bash_profile
Add the following entries in the file:
# Oracle Settings for grid user
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
Installing Oracle Grid Infrastructure and Database 12c R1
pg. 4
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
envo
umask 022
 Configure .bash_profile for oracle user
Login to the server as oracle user. Use vi editor to edit the profile of oracle user.
vi $HOME/.bash_profile
Add the following entries in the file:
# Oracle Settings for oracle user
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
Go to setting of your --- Storage and add virtual disk
Name : DISK1 15G
Name : DISK2 15G
NAME : FRA 5G
Installing Oracle Grid Infrastructure and Database 12c R1
pg. 5
Then start your linux 7 Virtual box
Using tool such as Putty or Secure CRT to connect your VM
- 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
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
The script completes following tasks:
- Creates the /etc/sysconfig/oracleasm configuration file
- Creates the /dev/oracleasm mount point
- Mounts the ASMLib driver file system
Installing Oracle Grid Infrastructure and Database 12c R1
pg. 6
# /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
 Using this command to check available disks
# fdisk -l | grep "Disk /dev/sd"
#fdisk /dev/sdb
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-261, default 1): <ENTER>
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-261, default 261): <ENTER>
Using default value 261
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Format disk sdc ,sdd the same to sdb
 Creating ASM disks:
# cd /dev/oracleasm/disks
#oracleasm createdisk DISK1 /dev/sdb1
#oracleasm createdisk DISK2 /dev/sdc1
#oracleasm createdisk FRA /dev/sdd1
# ls -l /dev/sd*
Installing Oracle Grid Infrastructure and Database 12c R1
pg. 7
 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
Open Xmanager (I assume that you already install it ) as administrator
The installation Oracle Universal Installer will be starting :
- Choosing Skips software update --- Next
- Install and configure oracle grid Infrastructure for standalone server --Next
- DISKGROUPNAME= DATA , Redundancy = Normal (Mirror disk group ) , Candidate disks: click
DISK1 ,DISK2—next
- Installation location : /u01/app/grid/ product/12.1.0.1/grid
- Oracle bas: /u01/app/grid --- next
- Click Automatic run configure script --- providing root password -- next
- Finish
After finish , run asmca in order to create FRA diskgroup by click on Redundancy = external (not
mirror )
 Check the status of the cluster
As grid use the following command to check the status of the cluster software.
#crsctl stat res -t
Installing Oracle Grid Infrastructure and Database 12c R1
pg. 8
 Check asm parameter
# srvctl config asm
Installing Oracle 12c R1 (12.1) On Standalone Server (Oracle
Restart)On Linux
After finish installing grid infrastructure unzip (linuxamd64_12102_database_1of2.zip,
linuxamd64_12102_database_2of2.zip) Oracle Database software installation packages
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
Installing Oracle Grid Infrastructure and Database 12c R1
pg. 9
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
 Create new listener for ASMDB
$ netca
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
 Run dbca (Database Creation Assistant) as an oracle user to create a
database
Run command
$dbca
Following these steps:
- Click on create database – Next
- Advance mode – Next
- Click on General purpose or transaction processing – Next
- Give global name and sid = asmdb – Next
- Click on configure Enterprise manger (EM) database express --- Next
Installing Oracle Grid Infrastructure and Database 12c R1
pg. 10
- Provide the password to administrative account --- Next
- Choose listener (LISTENER_ASM) --- Next
- Database file , Storage type = ASM ,
click Use Common location for all data files -- +DATA , click on use
Oracle-Managed Files
Rocovery Related Files
Storage type= ASM , click on used Fast recovery Area = +FRA ,size=20
--- Next
- Memory size (SGA and PGA )=1024MB, Character sets = Used
Unicode(AL32UTF8), Connection Mode = Dedicated Mode , click on All
Initialization Parameters
Place control files on ASM disks +DATA and +FRA. Initialization
parameters section.
- ("+DATA/{DB_UNIQUE_NAME}/control01.ctl", "+FRA/{DB_UNIQUE_NAME}/contr
ol02.ctl")
---Next
- Click on Create Database --- Next
- Finish

More Related Content

What's hot (20)

PDF
File System Modules
Anil Kumar Pugalia
 
PPTX
Platform Device/Driver
JungMinSEO5
 
PPTX
Oracle ACFS High Availability NFS Services (HANFS)
Anju Garg
 
PPT
CUPS: Common UNIX Printing System
Ron Bandes
 
PDF
Accelerating Spark SQL Workloads to 50X Performance with Apache Arrow-Based F...
Databricks
 
PPTX
Linux device drivers
Abhishek Sagar
 
PPTX
Airflow at WePay
Chris Riccomini
 
PDF
PCI Drivers
Anil Kumar Pugalia
 
PPTX
Why oracle data guard new features in oracle 18c, 19c
Satishbabu Gunukula
 
DOC
Oracle EBS R12.1.3_Installation_linux(64bit)_Pan_Tian
Pan Tian
 
PDF
Graphing Nagios services with pnp4nagios
jasonholtzapple
 
PDF
Embedded_Linux_Booting
Rashila Rr
 
PDF
In-Memory Evolution in Apache Spark
Kazuaki Ishizaki
 
PDF
Oracle ACFS High Availability NFS Services (HANFS) Part-I
Anju Garg
 
PPTX
Oracle EBS Upgrade - Tips and Tricks
panayaofficial
 
PDF
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
Sandesh Rao
 
PPTX
Islam can unite divided nation
Mohammad Yunus, MD, FACP
 
PPT
I S L A M Religion Of Positive Thinking
Majeed Chaudhary
 
PDF
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
 
File System Modules
Anil Kumar Pugalia
 
Platform Device/Driver
JungMinSEO5
 
Oracle ACFS High Availability NFS Services (HANFS)
Anju Garg
 
CUPS: Common UNIX Printing System
Ron Bandes
 
Accelerating Spark SQL Workloads to 50X Performance with Apache Arrow-Based F...
Databricks
 
Linux device drivers
Abhishek Sagar
 
Airflow at WePay
Chris Riccomini
 
PCI Drivers
Anil Kumar Pugalia
 
Why oracle data guard new features in oracle 18c, 19c
Satishbabu Gunukula
 
Oracle EBS R12.1.3_Installation_linux(64bit)_Pan_Tian
Pan Tian
 
Graphing Nagios services with pnp4nagios
jasonholtzapple
 
Embedded_Linux_Booting
Rashila Rr
 
In-Memory Evolution in Apache Spark
Kazuaki Ishizaki
 
Oracle ACFS High Availability NFS Services (HANFS) Part-I
Anju Garg
 
Oracle EBS Upgrade - Tips and Tricks
panayaofficial
 
AIOUG-GroundBreakers-Jul 2019 - 19c RAC
Sandesh Rao
 
Islam can unite divided nation
Mohammad Yunus, MD, FACP
 
I S L A M Religion Of Positive Thinking
Majeed Chaudhary
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz
 

Similar to Installing oracle grid infrastructure and database 12c r1 (20)

PDF
Oracle 12cR2 Installation On Linux With ASM
Arun Sharma
 
PDF
Oracle cluster installation with grid and iscsi
Chanaka Lasantha
 
PPTX
RAC-Installing your First Cluster and Database
Nikhil Kumar
 
PDF
Install oracle grid infrastructure on linux 6.6
Osama Mustafa
 
PDF
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Markus Michalewicz
 
PDF
Oracle cluster installation with grid and nfs
Chanaka Lasantha
 
ODP
Asian Spirit 3 Day Dba On Ubl
newrforce
 
PDF
Oracle RAC 12c Best Practices with Appendices DOAG2013
Markus Michalewicz
 
PDF
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Markus Michalewicz
 
PDF
les01.pdf
VAMSICHOWDARY61
 
PDF
Oracle11g on fedora14
Khalid Matar Albuflasah
 
PDF
Oracle11g On Fedora14
kmsa
 
PDF
Oracle database 12c client quick installation guide
bupbechanhgmail
 
PDF
Oracle 11g R2 RAC setup on rhel 5.0
Santosh Kangane
 
PPSX
Linux configer
MD. AL AMIN
 
PPTX
Making MySQL highly available using Oracle Grid Infrastructure
Ilmar Kerm
 
PPT
Installing your Oracle Software.ppt
MohammedHdi1
 
PDF
Oracle database 12c client installation guide 3
bupbechanhgmail
 
PDF
Oracle Linux and Oracle Database - A Trusted Combination
Guatemala User Group
 
DOCX
Installing 12c R1 database on oracle linux
Anar Godjaev
 
Oracle 12cR2 Installation On Linux With ASM
Arun Sharma
 
Oracle cluster installation with grid and iscsi
Chanaka Lasantha
 
RAC-Installing your First Cluster and Database
Nikhil Kumar
 
Install oracle grid infrastructure on linux 6.6
Osama Mustafa
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Markus Michalewicz
 
Oracle cluster installation with grid and nfs
Chanaka Lasantha
 
Asian Spirit 3 Day Dba On Ubl
newrforce
 
Oracle RAC 12c Best Practices with Appendices DOAG2013
Markus Michalewicz
 
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Markus Michalewicz
 
les01.pdf
VAMSICHOWDARY61
 
Oracle11g on fedora14
Khalid Matar Albuflasah
 
Oracle11g On Fedora14
kmsa
 
Oracle database 12c client quick installation guide
bupbechanhgmail
 
Oracle 11g R2 RAC setup on rhel 5.0
Santosh Kangane
 
Linux configer
MD. AL AMIN
 
Making MySQL highly available using Oracle Grid Infrastructure
Ilmar Kerm
 
Installing your Oracle Software.ppt
MohammedHdi1
 
Oracle database 12c client installation guide 3
bupbechanhgmail
 
Oracle Linux and Oracle Database - A Trusted Combination
Guatemala User Group
 
Installing 12c R1 database on oracle linux
Anar Godjaev
 
Ad

Recently uploaded (20)

PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Ad

Installing oracle grid infrastructure and database 12c r1

  • 1. INSTALLING ORACLE GRID INFRASTRUCTURE AND DATABASE 12C R1 English ABSTRACT Oracle’s dramatic re-architecture of its latest enterprise relational database, Oracle Database 12c, offers database customers a long list of real improvements to support cloud implementations, enable the consolidation and management of many databases as one, and streamline the day-to-day work of database administrators. This documents used for showing, Oracle GRID Infrastructure and the Oracle Universal Installer (OUI) installation the Oracle Database 12c software. Moreover, this document also show how to create Oracle ASM Configuration Assistant (ASMCA), installing and configuring Oracle ASM instances, disk groups, volumes, and Oracle Automatic Storage Management Cluster File System (Oracle ACFS) and create a database by using Database Configuration Assistant (DBCA) to create additional databases. VOEURNG SOVANN Installation and configuration
  • 2. Installing Oracle Grid Infrastructure and Database 12c R1 pg. 1 Installing Oracle Grid Infrastructure 12c R1 (12.1) On Standalone Server (Oracle Restart)On Linux 7 with ASM Required: 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) -Minimum Memory Requirements At least 4 GB RAM is required to install Oracle Grid Infrastructure 12c and Oracle Database 12c. - Download package oracle-rdbms-server-12cR1-preinstall-1.0-1.el6.x86_64.rpm from http://public- yum.oracle.com/repo/OracleLinux/OL6/latest/x86_64/ and once download completed using this command rpm -ivh oracle-rdbms-server-12cR1-preinstall-1.0-1.el6.x86_64.rpm or if you have internet connection using: yum update -y Or yum install 12cr1-preinstall-1.0-1.el6.x86_64 -y with root user after complete install linux7 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 - Hostname= linux7 with IP = 192.168.56.200 and hostname = linux 7 - -Disable SELINUX and FIREWALL Set secure Linux to permissive by editing the "/etc/selinux/config" file, making sure the SELINUX flag is set as follows. SELINUX=permissive Navigate to System => Administration => Firewall. Click on Disable button and then click on Apply to disable firewall. Or command systemctl disable firewalld - Creating Groups, Users and Environment variables Creation groups for Oracle Grid Infrastructure /usr/sbin/groupadd -g 54321 oinstall /usr/sbin/groupadd -g 54322 dba /usr/sbin/groupadd -g 54333 oper /usr/sbin/groupadd -g 54325 backupdba
  • 3. Installing Oracle Grid Infrastructure and Database 12c R1 pg. 2 /usr/sbin/groupadd -g 54326 dgdba /usr/sbin/groupadd -g 54327 kmdba /usr/sbin/groupadd -g 54328 asmdba /usr/sbin/groupadd -g 54329 asmoper /usr/sbin/groupadd -g 54330 asmadmin - Create Oracle Grid Infrastructure User (grid) #useradd -u 64322 -g oinstall -G dba,asmdba,asmadmin,asmoper -d /home/grid -m grid - Create Oracle user #useradd -u 64321 -g oinstall -G dba,oper -d /home/oracle -m oracle Change password of user grid and oracle #Passwd grid #Passwd oracle #usermod -a -G oper oracle #usermod -a -G asmdba oracle 1.Creating directories  Create the Oracle Inventory Directory mkdir -p /u01/app/oraInventory chown -R grid:oinstall /u01/app/oraInventory chmod -R 775 /u01/app/oraInventory  Creating the Oracle Base Directory for Oracle Grid installation mkdir -p /u01/app/grid chown -R grid:oinstall /u01/app/grid chmod -R 775 /u01/app/grid  Creating the Oracle Grid Infrastructure Home Directory mkdir -p /u01/app/grid/ product/12.1.0.1/grid chown -R grid:oinstall /u01/app/grid chmod -R 775 /u01/  Creating the Oracle Base Directory for Oracle Database installation
  • 4. Installing Oracle Grid Infrastructure and Database 12c R1 pg. 3 mkdir -p /u01/app/oracle chown -R oracle:oinstall /u01/app/oracle chmod -R 775 /u01/app/oracle  Creating the Oracle RDBMS Home Directory mkdir -p /u01/app/oracle/product/12.1.0.1/db_1 chown -R oracle:oinstall /u01/app/oracle/product/12.1.0.1  Needed to ensure that dbca is able to run after the rdbms installation. mkdir /u01/app/oracle/cfgtoollogs chown -R oracle:oinstall /u01/app/oracle/cfgtoollogs chmod -R 775 /u01/app/oracle/cfgtoollogs  Configure .bash_profile for grid user Login to the server as grid user. Use vi editor to edit the profile of grid user. vi $HOME/.bash_profile Add the following entries in the file: # Oracle Settings for grid user 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
  • 5. Installing Oracle Grid Infrastructure and Database 12c R1 pg. 4 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib envo umask 022  Configure .bash_profile for oracle user Login to the server as oracle user. Use vi editor to edit the profile of oracle user. vi $HOME/.bash_profile Add the following entries in the file: # Oracle Settings for oracle user 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 Go to setting of your --- Storage and add virtual disk Name : DISK1 15G Name : DISK2 15G NAME : FRA 5G
  • 6. Installing Oracle Grid Infrastructure and Database 12c R1 pg. 5 Then start your linux 7 Virtual box Using tool such as Putty or Secure CRT to connect your VM - 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 Configuring the Oracle ASM library driver. This will configure the on-boot properties of the Oracle ASM library driver. The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]'). Hitting <ENTER> without typing an answer will keep that current value. Ctrl-C will abort. Default user to own the driver interface []: grid Default group to own the driver interface []: asmadmin Start Oracle ASM library driver on boot (y/n) [n]: y Scan for Oracle ASM disks on boot (y/n) [y]: y Writing Oracle ASM library driver configuration: done The script completes following tasks: - Creates the /etc/sysconfig/oracleasm configuration file - Creates the /dev/oracleasm mount point - Mounts the ASMLib driver file system
  • 7. Installing Oracle Grid Infrastructure and Database 12c R1 pg. 6 # /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  Using this command to check available disks # fdisk -l | grep "Disk /dev/sd" #fdisk /dev/sdb Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-261, default 1): <ENTER> Using default value 1 Last cylinder, +cylinders or +size{K,M,G} (1-261, default 261): <ENTER> Using default value 261 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. Format disk sdc ,sdd the same to sdb  Creating ASM disks: # cd /dev/oracleasm/disks #oracleasm createdisk DISK1 /dev/sdb1 #oracleasm createdisk DISK2 /dev/sdc1 #oracleasm createdisk FRA /dev/sdd1 # ls -l /dev/sd*
  • 8. Installing Oracle Grid Infrastructure and Database 12c R1 pg. 7  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 Open Xmanager (I assume that you already install it ) as administrator The installation Oracle Universal Installer will be starting : - Choosing Skips software update --- Next - Install and configure oracle grid Infrastructure for standalone server --Next - DISKGROUPNAME= DATA , Redundancy = Normal (Mirror disk group ) , Candidate disks: click DISK1 ,DISK2—next - Installation location : /u01/app/grid/ product/12.1.0.1/grid - Oracle bas: /u01/app/grid --- next - Click Automatic run configure script --- providing root password -- next - Finish After finish , run asmca in order to create FRA diskgroup by click on Redundancy = external (not mirror )  Check the status of the cluster As grid use the following command to check the status of the cluster software. #crsctl stat res -t
  • 9. Installing Oracle Grid Infrastructure and Database 12c R1 pg. 8  Check asm parameter # srvctl config asm Installing Oracle 12c R1 (12.1) On Standalone Server (Oracle Restart)On Linux After finish installing grid infrastructure unzip (linuxamd64_12102_database_1of2.zip, linuxamd64_12102_database_2of2.zip) Oracle Database software installation packages 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
  • 10. Installing Oracle Grid Infrastructure and Database 12c R1 pg. 9 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  Create new listener for ASMDB $ netca 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  Run dbca (Database Creation Assistant) as an oracle user to create a database Run command $dbca Following these steps: - Click on create database – Next - Advance mode – Next - Click on General purpose or transaction processing – Next - Give global name and sid = asmdb – Next - Click on configure Enterprise manger (EM) database express --- Next
  • 11. Installing Oracle Grid Infrastructure and Database 12c R1 pg. 10 - Provide the password to administrative account --- Next - Choose listener (LISTENER_ASM) --- Next - Database file , Storage type = ASM , click Use Common location for all data files -- +DATA , click on use Oracle-Managed Files Rocovery Related Files Storage type= ASM , click on used Fast recovery Area = +FRA ,size=20 --- Next - Memory size (SGA and PGA )=1024MB, Character sets = Used Unicode(AL32UTF8), Connection Mode = Dedicated Mode , click on All Initialization Parameters Place control files on ASM disks +DATA and +FRA. Initialization parameters section. - ("+DATA/{DB_UNIQUE_NAME}/control01.ctl", "+FRA/{DB_UNIQUE_NAME}/contr ol02.ctl") ---Next - Click on Create Database --- Next - Finish