SlideShare a Scribd company logo
1 of 11
Download to read offline
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

What's hot (20)

Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive Oracle Active Data Guard: Best Practices and New Features Deep Dive
Oracle Active Data Guard: Best Practices and New Features Deep Dive
 
Zero Data Loss Recovery Appliance 設定手順例
Zero Data Loss Recovery Appliance 設定手順例Zero Data Loss Recovery Appliance 設定手順例
Zero Data Loss Recovery Appliance 設定手順例
 
Oracle GoldenGate FAQ
Oracle GoldenGate FAQOracle GoldenGate FAQ
Oracle GoldenGate FAQ
 
Oracle ASM 11g - The Evolution
Oracle ASM 11g - The EvolutionOracle ASM 11g - The Evolution
Oracle ASM 11g - The Evolution
 
Managing user Online Training in IBM Netezza DBA Development by www.etraining...
Managing user Online Training in IBM Netezza DBA Development by www.etraining...Managing user Online Training in IBM Netezza DBA Development by www.etraining...
Managing user Online Training in IBM Netezza DBA Development by www.etraining...
 
GoldenGateテクニカルセミナー4「テクニカルコンサルタントが語るOracle GoldenGate現場で使える極意」(2016/5/11)
GoldenGateテクニカルセミナー4「テクニカルコンサルタントが語るOracle GoldenGate現場で使える極意」(2016/5/11)GoldenGateテクニカルセミナー4「テクニカルコンサルタントが語るOracle GoldenGate現場で使える極意」(2016/5/11)
GoldenGateテクニカルセミナー4「テクニカルコンサルタントが語るOracle GoldenGate現場で使える極意」(2016/5/11)
 
GoldenGateテクニカルセミナー2「Oracle GoldenGate 新機能情報」(2016/5/11)
GoldenGateテクニカルセミナー2「Oracle GoldenGate 新機能情報」(2016/5/11)GoldenGateテクニカルセミナー2「Oracle GoldenGate 新機能情報」(2016/5/11)
GoldenGateテクニカルセミナー2「Oracle GoldenGate 新機能情報」(2016/5/11)
 
Oracle RAC on Extended Distance Clusters - Customer Examples
Oracle RAC on Extended Distance Clusters - Customer ExamplesOracle RAC on Extended Distance Clusters - Customer Examples
Oracle RAC on Extended Distance Clusters - Customer Examples
 
Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016Anil nair rac_internals_sangam_2016
Anil nair rac_internals_sangam_2016
 
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
AIOUG : OTNYathra - Troubleshooting and Diagnosing Oracle Database 12.2 and O...
 
MySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group ReplicationMySQL InnoDB Cluster - Group Replication
MySQL InnoDB Cluster - Group Replication
 
Oracle RAC One Node 12c Overview
Oracle RAC One Node 12c OverviewOracle RAC One Node 12c Overview
Oracle RAC One Node 12c Overview
 
GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)
GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)
GoldenGateテクニカルセミナー3「Oracle GoldenGate Technical Deep Dive」(2016/5/11)
 
Oracle RAC 12c Overview
Oracle RAC 12c OverviewOracle RAC 12c Overview
Oracle RAC 12c Overview
 
Improve PostgreSQL replication with Oracle GoldenGate
Improve PostgreSQL replication with Oracle GoldenGateImprove PostgreSQL replication with Oracle GoldenGate
Improve PostgreSQL replication with Oracle GoldenGate
 
Rac questions
Rac questionsRac questions
Rac questions
 
Oracle RAC on Extended Distance Clusters - Presentation
Oracle RAC on Extended Distance Clusters - PresentationOracle RAC on Extended Distance Clusters - Presentation
Oracle RAC on Extended Distance Clusters - Presentation
 
MySQL InnoDB Cluster and Group Replication in a nutshell hands-on tutorial
MySQL InnoDB Cluster and Group Replication in a nutshell  hands-on tutorialMySQL InnoDB Cluster and Group Replication in a nutshell  hands-on tutorial
MySQL InnoDB Cluster and Group Replication in a nutshell hands-on tutorial
 
PostgreSQL on EXT4, XFS, BTRFS and ZFS
PostgreSQL on EXT4, XFS, BTRFS and ZFSPostgreSQL on EXT4, XFS, BTRFS and ZFS
PostgreSQL on EXT4, XFS, BTRFS and ZFS
 
Oracle GoldenGate 概要 2020年11月版
Oracle GoldenGate 概要 2020年11月版Oracle GoldenGate 概要 2020年11月版
Oracle GoldenGate 概要 2020年11月版
 

Similar to Installing oracle grid infrastructure and database 12c r1

图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
maclean liu
 
Upgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareUpgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 Clusterware
Nikhil Kumar
 

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

Oracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create DatabaseOracle 12cR2 RAC Database Software Installation and Create Database
Oracle 12cR2 RAC Database Software Installation and Create Database
 
Oracle11g On Fedora14
Oracle11g On Fedora14Oracle11g On Fedora14
Oracle11g On Fedora14
 
Oracle11g on fedora14
Oracle11g on fedora14Oracle11g on fedora14
Oracle11g on fedora14
 
Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响Vbox virtual box在oracle linux 5 - shoug 梁洪响
Vbox virtual box在oracle linux 5 - shoug 梁洪响
 
Linux configer
Linux configerLinux configer
Linux configer
 
12c installation
12c installation12c installation
12c installation
 
RAC-Installing your First Cluster and Database
RAC-Installing your First Cluster and DatabaseRAC-Installing your First Cluster and Database
RAC-Installing your First Cluster and Database
 
Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0Oracle 11g R2 RAC setup on rhel 5.0
Oracle 11g R2 RAC setup on rhel 5.0
 
Rac on NFS
Rac on NFSRac on NFS
Rac on NFS
 
Freeradius edir
Freeradius edirFreeradius edir
Freeradius edir
 
Oracle ebs-r12-1-3installationlinux64bit
Oracle ebs-r12-1-3installationlinux64bitOracle ebs-r12-1-3installationlinux64bit
Oracle ebs-r12-1-3installationlinux64bit
 
Oracle goldengate and RAC12c
Oracle goldengate and RAC12cOracle goldengate and RAC12c
Oracle goldengate and RAC12c
 
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
图文详解安装Net backup 6.5备份恢复oracle 10g rac 数据库
 
Oracle11g suse11 ilker bakir
Oracle11g suse11 ilker bakirOracle11g suse11 ilker bakir
Oracle11g suse11 ilker bakir
 
Enable oracle database vault
Enable oracle database vaultEnable oracle database vault
Enable oracle database vault
 
Oracle cluster installation with grid and iscsi
Oracle cluster  installation with grid and iscsiOracle cluster  installation with grid and iscsi
Oracle cluster installation with grid and iscsi
 
Upgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 ClusterwareUpgrade 11gR2 to 12cR1 Clusterware
Upgrade 11gR2 to 12cR1 Clusterware
 
ZDLRA in Action
ZDLRA in ActionZDLRA in Action
ZDLRA in Action
 
Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000Create your oracle_apps_r12_lab_with_less_than_us1000
Create your oracle_apps_r12_lab_with_less_than_us1000
 
Oracle WebLogic
Oracle WebLogicOracle WebLogic
Oracle WebLogic
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 

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