SlideShare a Scribd company logo
Install and Upgrade
Grid Infrastructure 12.1.0.2 (no RAC)
+ Apply GI PSU
Current Configuration
Grid Infrastructure 12.1.0.1 is installed and running:
+ASM:/u03/app/oracle/grid/12.1.0:N:
One Diskgroup created in ASM
SQL> select name, total_mb, free_mb from v$asm_diskgroup;
NAME TOTAL_MB FREE_MB
------------------------------ ---------- ----------
ORADATA 4204 4118
SQL> select name, total_mb, free_mb from v$asm_disk;
NAME TOTAL_MB FREE_MB
------------------------------ ---------- ----------
ORAD1 2102 2058
ORAD2 2102 2060
GI Component Status looks good
$ crsctl status res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENERASM.lsnr
ONLINE ONLINE emcc STABLE
ora.ORADATA.dg
ONLINE ONLINE emcc STABLE
ora.asm
ONLINE ONLINE emcc Started,STABLE
ora.ons
OFFLINE OFFLINE emcc STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.cssd
1 ONLINE ONLINE emcc STABLE
ora.diskmon
1 OFFLINE OFFLINE STABLE
ora.evmd
1 ONLINE ONLINE emcc STABLE
ora.ocadb1.db
1 OFFLINE OFFLINE Instance Shutdown,ST
ABLE
ora.ocadb1.emccdb1.svc
1 OFFLINE OFFLINE STABLE
--------------------------------------------------------------------------------
$
Do not have much space on the existing file systems, so going to install GI 12.1.0.2 to /d01 file system mounted newly to
the VirtualBox VM.
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
33G 25G 6.5G 80% /
/dev/sda1 99M 23M 71M 25% /boot
tmpfs 4.0G 635M 3.3G 16% /dev/shm
/dev/sdb 40G 18G 21G 47% /u02
/dev/sde 12G 9.8G 1.6G 87% /u03
Orac12csw 466G 370G 96G 80% /media/sf_Orac12csw
/dev/sdf 26G 173M 24G 1% /d01
ASM instance is up and running.
$ ps -ef | grep ASM
oracle 4215 1 0 11:37 ? 00:00:00
/u03/app/oracle/grid/12.1.0/bin/tnslsnr LISTENERASM -no_crs_notify -inherit
oracle 4304 1 0 11:38 ? 00:00:00 asm_pmon_+ASM
oracle 4308 1 0 11:38 ? 00:00:01 asm_psp0_+ASM
oracle 4312 1 5 11:38 ? 00:02:15 asm_vktm_+ASM
oracle 4318 1 0 11:38 ? 00:00:00 asm_gen0_+ASM
oracle 4322 1 0 11:38 ? 00:00:00 asm_mman_+ASM
oracle 4330 1 0 11:38 ? 00:00:00 asm_diag_+ASM
oracle 4334 1 0 11:38 ? 00:00:01 asm_dia0_+ASM
oracle 4338 1 0 11:38 ? 00:00:00 asm_dbw0_+ASM
oracle 4342 1 0 11:38 ? 00:00:00 asm_lgwr_+ASM
oracle 4346 1 0 11:38 ? 00:00:00 asm_ckpt_+ASM
oracle 4350 1 0 11:38 ? 00:00:00 asm_smon_+ASM
oracle 4354 1 0 11:38 ? 00:00:00 asm_lreg_+ASM
oracle 4358 1 0 11:38 ? 00:00:00 asm_rbal_+ASM
oracle 4362 1 0 11:38 ? 00:00:01 asm_gmon_+ASM
oracle 4366 1 0 11:38 ? 00:00:00 asm_mmon_+ASM
oracle 4370 1 0 11:38 ? 00:00:01 asm_mmnl_+ASM
oracle 4397 1 0 11:38 ? 00:00:00 oracle+ASM
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle 5355 4106 0 12:21 pts/1 00:00:00 grep ASM
$
And obviously, the GI services are running as well.
$ ps -ef |grep grid
oracle 3281 1 0 11:34 ? 00:00:06 /u03/app/oracle/grid/12.1.0/bin/ohasd.bin reboot
oracle 4192 1 1 11:37 ? 00:00:28 /u03/app/oracle/grid/12.1.0/bin/oraagent.bin
oracle 4209 1 0 11:37 ? 00:00:00 /u03/app/oracle/grid/12.1.0/bin/evmd.bin
oracle 4215 1 0 11:37 ? 00:00:00 /u03/app/oracle/grid/12.1.0/bin/tnslsnr LISTENERASM
-no_crs_notify -inherit
oracle 4234 4209 0 11:38 ? 00:00:00 /u03/app/oracle/grid/12.1.0/bin/evmlogger.bin -o
/u03/app/oracle/grid/12.1.0/log/[HOSTNAME]/evmd/evmlogger.info -l
/u03/app/oracle/grid/12.1.0/log/[HOSTNAME]/evmd/evmlogger.log
oracle 4245 1 0 11:38 ? 00:00:02 /u03/app/oracle/grid/12.1.0/bin/cssdagent
oracle 4271 1 0 11:38 ? 00:00:00 /u03/app/oracle/grid/12.1.0/bin/ocssd.bin
Install and Upgrade 12.1.0.2 Grid Infrastructure
The 12.1.0.2 grid infrastructure software is downloaded from OTN and unzipped (“grid” directory).
You also see that I have the database software downloaded, as well as few patches (1979135 is PSU patch, 6880880 is
latest OPatch).
Start the installation by invoking OUI from the 12.1.0.2 media, grid directory.
Following are OUI screenshots and options chosen. Nothing specific to explain here… 
Yes, Oracle install is that easy as click click click!
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2
Install and upgrade Oracle grid infrastructure 12.1.0.2
Had some space warnings, ignored the errors as the current space is sufficient for what I use this VirtualBox for (only for
practicing and demo).
Ignore warnings only when you are sure of what you are ignoring.
Click “Install” to begin the installation. After sometime, the popup to run rootupgrade.sh appears.
Ooops!! rootupgrade.sh failed. Fortunately it is a known issue.
Upgrading ASM Failed With ORA-32002: cannot create SPFILE (Doc ID 1912581.1)
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string /u03/app/oracle/grid/12.1.0/db
s/spfile+ASM.ora
SQL>
SQL> create pfile='/tmp/pfileASM.ora' from spfile;
File created.
SQL>
SQL> select name from v$asm_diskgroup;
NAME
------------------------------
ORADATA
SQL>
SQL> create spfile='+ORADATA' from pfile='/tmp/pfileASM.ora';
File created.
SQL>
$ srvctl config asm
ASM home: /u03/app/oracle/grid/12.1.0
Password file: /u03/app/oracle/grid/12.1.0/dbs/orapwASM
ASM listener: LISTENERASM
Spfile: +ORADATA/ASM/ASMPARAMETERFILE/registry.253.867764075
ASM diskgroup discovery string:
$
$ srvctl stop asm -f
$
$ srvctl start asm
$
SQL> show parameter spfile
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
spfile string +ORADATA/ASM/ASMPARAMETERFILE/
registry.253.867764075
SQL>
Try the rootupgrade.sh again…
Success!! Now click OK in the popup window.
Remember to adjust the environment configuration file (if you have one) with new Oracle home value.
Grid Infrastructure services are running from the new home…
$ ps -ef |grep grid
oracle 10491 1 1 13:41 ? 00:00:10 /d01/grid/12.1.0.2/bin/ohasd.bin reboot
oracle 10528 1 1 13:41 ? 00:00:10 /d01/grid/12.1.0.2/bin/oraagent.bin
oracle 10579 1 0 13:42 ? 00:00:05 /d01/grid/12.1.0.2/bin/evmd.bin
oracle 10592 1 0 13:42 ? 00:00:00 /d01/grid/12.1.0.2/bin/tnslsnr LISTENERASM -
no_crs_notify -inherit
oracle 10612 10579 0 13:42 ? 00:00:05 /d01/grid/12.1.0.2/bin/evmlogger.bin -o
/d01/grid/12.1.0.2/log/[HOSTNAME]/evmd/evmlogger.info -l
/d01/grid/12.1.0.2/log/[HOSTNAME]/evmd/evmlogger.log
oracle 10620 1 0 13:42 ? 00:00:05 /d01/grid/12.1.0.2/bin/cssdagent
oracle 10645 1 1 13:42 ? 00:00:05 /d01/grid/12.1.0.2/bin/ocssd.bin
ASM Instance is also running…
$ ps -ef |grep ASM
oracle 10592 1 0 13:42 ? 00:00:00 /d01/grid/12.1.0.2/bin/tnslsnr
LISTENERASM -no_crs_notify -inherit
oracle 10680 1 0 13:42 ? 00:00:00 asm_pmon_+ASM
oracle 10684 1 0 13:42 ? 00:00:00 asm_psp0_+ASM
oracle 10688 1 4 13:42 ? 00:00:27 asm_vktm_+ASM
oracle 10694 1 0 13:42 ? 00:00:01 asm_gen0_+ASM
oracle 10698 1 0 13:42 ? 00:00:00 asm_mman_+ASM
oracle 10706 1 0 13:42 ? 00:00:00 asm_diag_+ASM
oracle 10710 1 0 13:42 ? 00:00:00 asm_dia0_+ASM
oracle 10714 1 0 13:42 ? 00:00:00 asm_dbw0_+ASM
oracle 10718 1 0 13:42 ? 00:00:00 asm_lgwr_+ASM
oracle 10722 1 0 13:42 ? 00:00:00 asm_ckpt_+ASM
oracle 10726 1 0 13:42 ? 00:00:00 asm_smon_+ASM
oracle 10730 1 0 13:42 ? 00:00:00 asm_lreg_+ASM
oracle 10734 1 0 13:42 ? 00:00:00 asm_pxmn_+ASM
oracle 10738 1 0 13:42 ? 00:00:00 asm_rbal_+ASM
oracle 10742 1 0 13:42 ? 00:00:00 asm_gmon_+ASM
oracle 10746 1 0 13:42 ? 00:00:00 asm_mmon_+ASM
oracle 10750 1 0 13:42 ? 00:00:00 asm_mmnl_+ASM
oracle 10776 1 0 13:42 ? 00:00:00 oracle+ASM
(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle 11660 7822 0 13:52 pts/3 00:00:00 grep ASM
$
Apply PSU – Oct 2014
Patch 19791375 - Combo of OJVM Component 12.1.0.2.1 DB PSU + GI PSU 12.1.0.2.1 (Oct2014)
Platform: Linux x86-64, Solaris SPARC, Solaris x86-64
Released: October 14, 2014
In this document Oracle Database Home refers to Enterprise Edition or Standard Edition Database software. GI refers to
Grid Infrastructure and PSU refers to Patch Set Update.
The GI System patch includes updates for both the Clusterware home and Database home.
This patch is not Oracle RAC Rolling installable.
Patch 6880880: OPatch patch of version 12.1.0.1.5 for Oracle software releases 12.1.0.x (OCT 2014)
First update OPatch with the latest version, download from MOS and unzip to GI Oracle Home.
Validate the Oracle Inventory for GI home.
$ cd OPatch
$ ./opatch lsinventory
Oracle Interim Patch Installer version 12.1.0.1.5
Copyright (c) 2014, Oracle Corporation. All rights reserved.
Oracle Home : /d01/grid/12.1.0.2
Central Inventory : /u03/app/oraInventory
from : /d01/grid/12.1.0.2/oraInst.loc
OPatch version : 12.1.0.1.5
OUI version : 12.1.0.2.0
Log file location : /d01/grid/12.1.0.2/cfgtoollogs/opatch/opatch2014-12-31_14-01-
42PM_1.log
Lsinventory Output file location :
/d01/grid/12.1.0.2/cfgtoollogs/opatch/lsinv/lsinventory2014-12-31_14-01-42PM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (1):
Oracle Grid Infrastructure 12c 12.1.0.2.0
There are 1 products installed in this Oracle Home.
There are no Interim patches installed in this Oracle Home.
--------------------------------------------------------------------------------
OPatch succeeded.
$
Before applying the PSU, need to have the OCM response file created.
Now, apply the GI as root user.
[root@emcc ~]# export PATH=$PATH:/d01/grid/12.1.0.2/OPatch
[root@emcc ~]# opatchauto apply /media/sf_Orac12csw/19791375/19392646 -oh
/d01/grid/12.1.0.2 -ocmrf /tmp/ocm.rsp
Patch succeeded, and services brought up automatically by the opatchauto.
Hope this helps…!

More Related Content

What's hot (20)

PPT
Oracle Golden Gate
Muhammad Qasim
 
PDF
Oracle 11g R2 RAC setup on rhel 5.0
Santosh Kangane
 
PDF
Pluggable database 3
Osama Mustafa
 
PDF
Oracle business intelligence enterprise edition 11g
uzzal basak
 
PDF
Pluggable database tutorial
Osama Mustafa
 
DOC
Oracle data guard configuration in 12c
uzzal basak
 
PDF
Backup andrecoverychecklist
praveen_01236
 
PDF
12c (12.1) Database installation on Solaris 11(11.2)
K Kumar Guduru
 
DOCX
Rac questions
parvezsigan
 
DOCX
Physical_Standby_Database_R12.2.4
mohammed shahnawaz ahmed
 
DOCX
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Yury Velikanov
 
PDF
B35 all you wanna know about rman by francisco alvarez
Insight Technology, Inc.
 
PPTX
RAC-Installing your First Cluster and Database
Nikhil Kumar
 
PDF
Rac&asm
Osama Mustafa
 
DOCX
Upgrade EBS DB from 11g to 12c.
Osama Mustafa
 
PPT
Adventures in Dataguard
Jason Arneil
 
PDF
12c on RHEL7
Osama Mustafa
 
PDF
Pluggable database tutorial 2
Osama Mustafa
 
PDF
Upgrade Oracle Database to 12c
Osama Mustafa
 
PDF
Data Guard Deep Dive UKOUG 2012
Emre Baransel
 
Oracle Golden Gate
Muhammad Qasim
 
Oracle 11g R2 RAC setup on rhel 5.0
Santosh Kangane
 
Pluggable database 3
Osama Mustafa
 
Oracle business intelligence enterprise edition 11g
uzzal basak
 
Pluggable database tutorial
Osama Mustafa
 
Oracle data guard configuration in 12c
uzzal basak
 
Backup andrecoverychecklist
praveen_01236
 
12c (12.1) Database installation on Solaris 11(11.2)
K Kumar Guduru
 
Rac questions
parvezsigan
 
Physical_Standby_Database_R12.2.4
mohammed shahnawaz ahmed
 
Oracle 12c RAC On your laptop Step by Step Implementation Guide 1.0
Yury Velikanov
 
B35 all you wanna know about rman by francisco alvarez
Insight Technology, Inc.
 
RAC-Installing your First Cluster and Database
Nikhil Kumar
 
Rac&asm
Osama Mustafa
 
Upgrade EBS DB from 11g to 12c.
Osama Mustafa
 
Adventures in Dataguard
Jason Arneil
 
12c on RHEL7
Osama Mustafa
 
Pluggable database tutorial 2
Osama Mustafa
 
Upgrade Oracle Database to 12c
Osama Mustafa
 
Data Guard Deep Dive UKOUG 2012
Emre Baransel
 

Viewers also liked (15)

PDF
Using VirtualBox - Learn Oracle Database 12c and EBS R12
Biju Thomas
 
PDF
Install oracle database 12c software on windows
Biju Thomas
 
PPTX
All (that i know) about exadata external
Prasad Chitta
 
PPTX
Aphorisms on Information Technology & Systems
Prasad Chitta
 
PPTX
Oracle12c data guard farsync and whats new
Nassyam Basha
 
PDF
Oracle 12 c new-features
Navneet Upneja
 
PDF
Oracle Exadata 1Z0-485 Certification
Exadatadba
 
PPT
PDoolan Oracle Overview PPT Version
Peter Doolan
 
PDF
SQL in the Hybrid World
Tanel Poder
 
PDF
Indexes and Indexing in Oracle 12c
Oren Nakdimon
 
PDF
SQL Monitoring in Oracle Database 12c
Tanel Poder
 
PDF
Write Less (code) With More (Oracle Database 12c New Features)
Oren Nakdimon
 
PDF
11g新特性 在线实施补丁online patching
maclean liu
 
PPT
Using AWR for IO Subsystem Analysis
Texas Memory Systems, and IBM Company
 
PDF
How to upgrade your application with no downtime (using edition-based redefin...
Oren Nakdimon
 
Using VirtualBox - Learn Oracle Database 12c and EBS R12
Biju Thomas
 
Install oracle database 12c software on windows
Biju Thomas
 
All (that i know) about exadata external
Prasad Chitta
 
Aphorisms on Information Technology & Systems
Prasad Chitta
 
Oracle12c data guard farsync and whats new
Nassyam Basha
 
Oracle 12 c new-features
Navneet Upneja
 
Oracle Exadata 1Z0-485 Certification
Exadatadba
 
PDoolan Oracle Overview PPT Version
Peter Doolan
 
SQL in the Hybrid World
Tanel Poder
 
Indexes and Indexing in Oracle 12c
Oren Nakdimon
 
SQL Monitoring in Oracle Database 12c
Tanel Poder
 
Write Less (code) With More (Oracle Database 12c New Features)
Oren Nakdimon
 
11g新特性 在线实施补丁online patching
maclean liu
 
Using AWR for IO Subsystem Analysis
Texas Memory Systems, and IBM Company
 
How to upgrade your application with no downtime (using edition-based redefin...
Oren Nakdimon
 
Ad

Similar to Install and upgrade Oracle grid infrastructure 12.1.0.2 (20)

DOCX
RAC.docx
ssuser02862c
 
PDF
Oracle 12cR2 Installation On Linux With ASM
Arun Sharma
 
PDF
Best Practices for Oracle RAC DB with large SGA size
Alireza Kamrani
 
PDF
What's next after Upgrade to 12c
Guatemala User Group
 
PDF
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Osama Mustafa
 
PDF
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Markus Michalewicz
 
PDF
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Markus Michalewicz
 
PDF
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Markus Michalewicz
 
TXT
oracle dba
uday jampani
 
PDF
Presentation 12c grid_upgrade
Jacques Kostic
 
PDF
Oracle RAC BP for Upgrade & More by Anil Nair and Markus Michalewicz
Markus Michalewicz
 
PDF
Oracle RAC 12c Best Practices with Appendices DOAG2013
Markus Michalewicz
 
PDF
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Markus Michalewicz
 
PPTX
Oracle utilities in 11g R2
Guenadi JILEVSKI
 
PDF
Upgrade 11.2.0.1 rac db to 11.2.0.2 in linux
maclean liu
 
PDF
real-application-clusters-installation-guide-linux-and-unix.pdf
MitJiu
 
PDF
les12.pdf
VAMSICHOWDARY61
 
PDF
Oracle cluster installation with grid and iscsi
Chanaka Lasantha
 
PDF
Expert performance tuning tips for Oracle RAC
SolarWinds
 
DOCX
Testing Orachk for Database Health Monitoring
Monowar Mukul
 
RAC.docx
ssuser02862c
 
Oracle 12cR2 Installation On Linux With ASM
Arun Sharma
 
Best Practices for Oracle RAC DB with large SGA size
Alireza Kamrani
 
What's next after Upgrade to 12c
Guatemala User Group
 
Step by Step to Install oracle grid 11.2.0.3 on solaris 11.1
Osama Mustafa
 
Understanding Oracle RAC 12c Internals OOW13 [CON8806]
Markus Michalewicz
 
Oracle RAC 12c Best Practices Sanger OOW13 [CON8805]
Markus Michalewicz
 
Oracle RAC 12c (12.1.0.2) Operational Best Practices - A result of true colla...
Markus Michalewicz
 
oracle dba
uday jampani
 
Presentation 12c grid_upgrade
Jacques Kostic
 
Oracle RAC BP for Upgrade & More by Anil Nair and Markus Michalewicz
Markus Michalewicz
 
Oracle RAC 12c Best Practices with Appendices DOAG2013
Markus Michalewicz
 
Oracle RAC 12c Collaborate Best Practices - IOUG 2014 version
Markus Michalewicz
 
Oracle utilities in 11g R2
Guenadi JILEVSKI
 
Upgrade 11.2.0.1 rac db to 11.2.0.2 in linux
maclean liu
 
real-application-clusters-installation-guide-linux-and-unix.pdf
MitJiu
 
les12.pdf
VAMSICHOWDARY61
 
Oracle cluster installation with grid and iscsi
Chanaka Lasantha
 
Expert performance tuning tips for Oracle RAC
SolarWinds
 
Testing Orachk for Database Health Monitoring
Monowar Mukul
 
Ad

More from Biju Thomas (10)

PDF
Notes from #OOW19
Biju Thomas
 
PDF
GLOC 2014 NEOOUG - Oracle Database 12c New Features
Biju Thomas
 
PDF
GLOC 2014 NEOOUG - R12 Upgrade Downtime Reduction
Biju Thomas
 
PDF
Collaborate 2014 OAUG - EBS 11i Upgrade to R12 - Compare versions 12.2 vs 12.1
Biju Thomas
 
PDF
OTech magazine article - Principle of Least Privilege
Biju Thomas
 
PDF
Create non-cdb (traditional) oracle database 12c on windows
Biju Thomas
 
PDF
2008 Collaborate IOUG Presentation
Biju Thomas
 
PDF
2009 Collaborate IOUG Presentation
Biju Thomas
 
PDF
2011 Collaborate IOUG Presentation
Biju Thomas
 
PDF
2013 Collaborate - OAUG - Presentation
Biju Thomas
 
Notes from #OOW19
Biju Thomas
 
GLOC 2014 NEOOUG - Oracle Database 12c New Features
Biju Thomas
 
GLOC 2014 NEOOUG - R12 Upgrade Downtime Reduction
Biju Thomas
 
Collaborate 2014 OAUG - EBS 11i Upgrade to R12 - Compare versions 12.2 vs 12.1
Biju Thomas
 
OTech magazine article - Principle of Least Privilege
Biju Thomas
 
Create non-cdb (traditional) oracle database 12c on windows
Biju Thomas
 
2008 Collaborate IOUG Presentation
Biju Thomas
 
2009 Collaborate IOUG Presentation
Biju Thomas
 
2011 Collaborate IOUG Presentation
Biju Thomas
 
2013 Collaborate - OAUG - Presentation
Biju Thomas
 

Recently uploaded (20)

PPT
AI Future trends and opportunities_oct7v1.ppt
SHIKHAKMEHTA
 
PDF
apidays Helsinki & North 2025 - API-Powered Journeys: Mobility in an API-Driv...
apidays
 
PPTX
apidays Helsinki & North 2025 - From Chaos to Clarity: Designing (AI-Ready) A...
apidays
 
PPTX
Aict presentation on dpplppp sjdhfh.pptx
vabaso5932
 
PDF
apidays Helsinki & North 2025 - Monetizing AI APIs: The New API Economy, Alla...
apidays
 
PDF
What does good look like - CRAP Brighton 8 July 2025
Jan Kierzyk
 
PPTX
apidays Singapore 2025 - The Quest for the Greenest LLM , Jean Philippe Ehre...
apidays
 
PPTX
apidays Helsinki & North 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (A...
apidays
 
PPT
tuberculosiship-2106031cyyfuftufufufivifviviv
AkshaiRam
 
PDF
apidays Helsinki & North 2025 - REST in Peace? Hunting the Dominant Design fo...
apidays
 
PPTX
apidays Singapore 2025 - From Data to Insights: Building AI-Powered Data APIs...
apidays
 
PPTX
Advanced_NLP_with_Transformers_PPT_final 50.pptx
Shiwani Gupta
 
PPTX
Numbers of a nation: how we estimate population statistics | Accessible slides
Office for National Statistics
 
PPTX
apidays Singapore 2025 - Designing for Change, Julie Schiller (Google)
apidays
 
PDF
apidays Helsinki & North 2025 - APIs in the healthcare sector: hospitals inte...
apidays
 
PDF
Avatar for apidays apidays PRO June 07, 2025 0 5 apidays Helsinki & North 2...
apidays
 
PDF
R Cookbook - Processing and Manipulating Geological spatial data with R.pdf
OtnielSimopiaref2
 
PDF
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
apidays
 
PPTX
AI Presentation Tool Pitch Deck Presentation.pptx
ShyamPanthavoor1
 
PPTX
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 
AI Future trends and opportunities_oct7v1.ppt
SHIKHAKMEHTA
 
apidays Helsinki & North 2025 - API-Powered Journeys: Mobility in an API-Driv...
apidays
 
apidays Helsinki & North 2025 - From Chaos to Clarity: Designing (AI-Ready) A...
apidays
 
Aict presentation on dpplppp sjdhfh.pptx
vabaso5932
 
apidays Helsinki & North 2025 - Monetizing AI APIs: The New API Economy, Alla...
apidays
 
What does good look like - CRAP Brighton 8 July 2025
Jan Kierzyk
 
apidays Singapore 2025 - The Quest for the Greenest LLM , Jean Philippe Ehre...
apidays
 
apidays Helsinki & North 2025 - Agentic AI: A Friend or Foe?, Merja Kajava (A...
apidays
 
tuberculosiship-2106031cyyfuftufufufivifviviv
AkshaiRam
 
apidays Helsinki & North 2025 - REST in Peace? Hunting the Dominant Design fo...
apidays
 
apidays Singapore 2025 - From Data to Insights: Building AI-Powered Data APIs...
apidays
 
Advanced_NLP_with_Transformers_PPT_final 50.pptx
Shiwani Gupta
 
Numbers of a nation: how we estimate population statistics | Accessible slides
Office for National Statistics
 
apidays Singapore 2025 - Designing for Change, Julie Schiller (Google)
apidays
 
apidays Helsinki & North 2025 - APIs in the healthcare sector: hospitals inte...
apidays
 
Avatar for apidays apidays PRO June 07, 2025 0 5 apidays Helsinki & North 2...
apidays
 
R Cookbook - Processing and Manipulating Geological spatial data with R.pdf
OtnielSimopiaref2
 
apidays Helsinki & North 2025 - How (not) to run a Graphql Stewardship Group,...
apidays
 
AI Presentation Tool Pitch Deck Presentation.pptx
ShyamPanthavoor1
 
apidays Helsinki & North 2025 - Vero APIs - Experiences of API development in...
apidays
 

Install and upgrade Oracle grid infrastructure 12.1.0.2

  • 1. Install and Upgrade Grid Infrastructure 12.1.0.2 (no RAC) + Apply GI PSU Current Configuration Grid Infrastructure 12.1.0.1 is installed and running: +ASM:/u03/app/oracle/grid/12.1.0:N: One Diskgroup created in ASM SQL> select name, total_mb, free_mb from v$asm_diskgroup; NAME TOTAL_MB FREE_MB ------------------------------ ---------- ---------- ORADATA 4204 4118 SQL> select name, total_mb, free_mb from v$asm_disk; NAME TOTAL_MB FREE_MB ------------------------------ ---------- ---------- ORAD1 2102 2058 ORAD2 2102 2060 GI Component Status looks good $ crsctl status res -t -------------------------------------------------------------------------------- Name Target State Server State details -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.LISTENERASM.lsnr ONLINE ONLINE emcc STABLE ora.ORADATA.dg ONLINE ONLINE emcc STABLE ora.asm ONLINE ONLINE emcc Started,STABLE ora.ons OFFLINE OFFLINE emcc STABLE -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.cssd 1 ONLINE ONLINE emcc STABLE ora.diskmon 1 OFFLINE OFFLINE STABLE ora.evmd
  • 2. 1 ONLINE ONLINE emcc STABLE ora.ocadb1.db 1 OFFLINE OFFLINE Instance Shutdown,ST ABLE ora.ocadb1.emccdb1.svc 1 OFFLINE OFFLINE STABLE -------------------------------------------------------------------------------- $ Do not have much space on the existing file systems, so going to install GI 12.1.0.2 to /d01 file system mounted newly to the VirtualBox VM. $ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 33G 25G 6.5G 80% / /dev/sda1 99M 23M 71M 25% /boot tmpfs 4.0G 635M 3.3G 16% /dev/shm /dev/sdb 40G 18G 21G 47% /u02 /dev/sde 12G 9.8G 1.6G 87% /u03 Orac12csw 466G 370G 96G 80% /media/sf_Orac12csw /dev/sdf 26G 173M 24G 1% /d01 ASM instance is up and running. $ ps -ef | grep ASM oracle 4215 1 0 11:37 ? 00:00:00 /u03/app/oracle/grid/12.1.0/bin/tnslsnr LISTENERASM -no_crs_notify -inherit oracle 4304 1 0 11:38 ? 00:00:00 asm_pmon_+ASM oracle 4308 1 0 11:38 ? 00:00:01 asm_psp0_+ASM oracle 4312 1 5 11:38 ? 00:02:15 asm_vktm_+ASM oracle 4318 1 0 11:38 ? 00:00:00 asm_gen0_+ASM oracle 4322 1 0 11:38 ? 00:00:00 asm_mman_+ASM oracle 4330 1 0 11:38 ? 00:00:00 asm_diag_+ASM oracle 4334 1 0 11:38 ? 00:00:01 asm_dia0_+ASM oracle 4338 1 0 11:38 ? 00:00:00 asm_dbw0_+ASM oracle 4342 1 0 11:38 ? 00:00:00 asm_lgwr_+ASM oracle 4346 1 0 11:38 ? 00:00:00 asm_ckpt_+ASM oracle 4350 1 0 11:38 ? 00:00:00 asm_smon_+ASM oracle 4354 1 0 11:38 ? 00:00:00 asm_lreg_+ASM oracle 4358 1 0 11:38 ? 00:00:00 asm_rbal_+ASM oracle 4362 1 0 11:38 ? 00:00:01 asm_gmon_+ASM oracle 4366 1 0 11:38 ? 00:00:00 asm_mmon_+ASM oracle 4370 1 0 11:38 ? 00:00:01 asm_mmnl_+ASM oracle 4397 1 0 11:38 ? 00:00:00 oracle+ASM (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq))) oracle 5355 4106 0 12:21 pts/1 00:00:00 grep ASM $ And obviously, the GI services are running as well.
  • 3. $ ps -ef |grep grid oracle 3281 1 0 11:34 ? 00:00:06 /u03/app/oracle/grid/12.1.0/bin/ohasd.bin reboot oracle 4192 1 1 11:37 ? 00:00:28 /u03/app/oracle/grid/12.1.0/bin/oraagent.bin oracle 4209 1 0 11:37 ? 00:00:00 /u03/app/oracle/grid/12.1.0/bin/evmd.bin oracle 4215 1 0 11:37 ? 00:00:00 /u03/app/oracle/grid/12.1.0/bin/tnslsnr LISTENERASM -no_crs_notify -inherit oracle 4234 4209 0 11:38 ? 00:00:00 /u03/app/oracle/grid/12.1.0/bin/evmlogger.bin -o /u03/app/oracle/grid/12.1.0/log/[HOSTNAME]/evmd/evmlogger.info -l /u03/app/oracle/grid/12.1.0/log/[HOSTNAME]/evmd/evmlogger.log oracle 4245 1 0 11:38 ? 00:00:02 /u03/app/oracle/grid/12.1.0/bin/cssdagent oracle 4271 1 0 11:38 ? 00:00:00 /u03/app/oracle/grid/12.1.0/bin/ocssd.bin Install and Upgrade 12.1.0.2 Grid Infrastructure The 12.1.0.2 grid infrastructure software is downloaded from OTN and unzipped (“grid” directory). You also see that I have the database software downloaded, as well as few patches (1979135 is PSU patch, 6880880 is latest OPatch).
  • 4. Start the installation by invoking OUI from the 12.1.0.2 media, grid directory. Following are OUI screenshots and options chosen. Nothing specific to explain here…  Yes, Oracle install is that easy as click click click!
  • 8. Had some space warnings, ignored the errors as the current space is sufficient for what I use this VirtualBox for (only for practicing and demo).
  • 9. Ignore warnings only when you are sure of what you are ignoring.
  • 10. Click “Install” to begin the installation. After sometime, the popup to run rootupgrade.sh appears.
  • 11. Ooops!! rootupgrade.sh failed. Fortunately it is a known issue. Upgrading ASM Failed With ORA-32002: cannot create SPFILE (Doc ID 1912581.1) SQL> show parameter spfile NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ spfile string /u03/app/oracle/grid/12.1.0/db s/spfile+ASM.ora SQL> SQL> create pfile='/tmp/pfileASM.ora' from spfile; File created. SQL> SQL> select name from v$asm_diskgroup; NAME ------------------------------ ORADATA SQL>
  • 12. SQL> create spfile='+ORADATA' from pfile='/tmp/pfileASM.ora'; File created. SQL> $ srvctl config asm ASM home: /u03/app/oracle/grid/12.1.0 Password file: /u03/app/oracle/grid/12.1.0/dbs/orapwASM ASM listener: LISTENERASM Spfile: +ORADATA/ASM/ASMPARAMETERFILE/registry.253.867764075 ASM diskgroup discovery string: $ $ srvctl stop asm -f $ $ srvctl start asm $ SQL> show parameter spfile NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ spfile string +ORADATA/ASM/ASMPARAMETERFILE/ registry.253.867764075 SQL> Try the rootupgrade.sh again…
  • 13. Success!! Now click OK in the popup window.
  • 14. Remember to adjust the environment configuration file (if you have one) with new Oracle home value. Grid Infrastructure services are running from the new home… $ ps -ef |grep grid oracle 10491 1 1 13:41 ? 00:00:10 /d01/grid/12.1.0.2/bin/ohasd.bin reboot oracle 10528 1 1 13:41 ? 00:00:10 /d01/grid/12.1.0.2/bin/oraagent.bin oracle 10579 1 0 13:42 ? 00:00:05 /d01/grid/12.1.0.2/bin/evmd.bin oracle 10592 1 0 13:42 ? 00:00:00 /d01/grid/12.1.0.2/bin/tnslsnr LISTENERASM - no_crs_notify -inherit oracle 10612 10579 0 13:42 ? 00:00:05 /d01/grid/12.1.0.2/bin/evmlogger.bin -o /d01/grid/12.1.0.2/log/[HOSTNAME]/evmd/evmlogger.info -l /d01/grid/12.1.0.2/log/[HOSTNAME]/evmd/evmlogger.log oracle 10620 1 0 13:42 ? 00:00:05 /d01/grid/12.1.0.2/bin/cssdagent oracle 10645 1 1 13:42 ? 00:00:05 /d01/grid/12.1.0.2/bin/ocssd.bin ASM Instance is also running…
  • 15. $ ps -ef |grep ASM oracle 10592 1 0 13:42 ? 00:00:00 /d01/grid/12.1.0.2/bin/tnslsnr LISTENERASM -no_crs_notify -inherit oracle 10680 1 0 13:42 ? 00:00:00 asm_pmon_+ASM oracle 10684 1 0 13:42 ? 00:00:00 asm_psp0_+ASM oracle 10688 1 4 13:42 ? 00:00:27 asm_vktm_+ASM oracle 10694 1 0 13:42 ? 00:00:01 asm_gen0_+ASM oracle 10698 1 0 13:42 ? 00:00:00 asm_mman_+ASM oracle 10706 1 0 13:42 ? 00:00:00 asm_diag_+ASM oracle 10710 1 0 13:42 ? 00:00:00 asm_dia0_+ASM oracle 10714 1 0 13:42 ? 00:00:00 asm_dbw0_+ASM oracle 10718 1 0 13:42 ? 00:00:00 asm_lgwr_+ASM oracle 10722 1 0 13:42 ? 00:00:00 asm_ckpt_+ASM oracle 10726 1 0 13:42 ? 00:00:00 asm_smon_+ASM oracle 10730 1 0 13:42 ? 00:00:00 asm_lreg_+ASM oracle 10734 1 0 13:42 ? 00:00:00 asm_pxmn_+ASM oracle 10738 1 0 13:42 ? 00:00:00 asm_rbal_+ASM oracle 10742 1 0 13:42 ? 00:00:00 asm_gmon_+ASM oracle 10746 1 0 13:42 ? 00:00:00 asm_mmon_+ASM oracle 10750 1 0 13:42 ? 00:00:00 asm_mmnl_+ASM oracle 10776 1 0 13:42 ? 00:00:00 oracle+ASM (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq))) oracle 11660 7822 0 13:52 pts/3 00:00:00 grep ASM $ Apply PSU – Oct 2014 Patch 19791375 - Combo of OJVM Component 12.1.0.2.1 DB PSU + GI PSU 12.1.0.2.1 (Oct2014) Platform: Linux x86-64, Solaris SPARC, Solaris x86-64 Released: October 14, 2014 In this document Oracle Database Home refers to Enterprise Edition or Standard Edition Database software. GI refers to Grid Infrastructure and PSU refers to Patch Set Update. The GI System patch includes updates for both the Clusterware home and Database home. This patch is not Oracle RAC Rolling installable. Patch 6880880: OPatch patch of version 12.1.0.1.5 for Oracle software releases 12.1.0.x (OCT 2014) First update OPatch with the latest version, download from MOS and unzip to GI Oracle Home.
  • 16. Validate the Oracle Inventory for GI home. $ cd OPatch $ ./opatch lsinventory Oracle Interim Patch Installer version 12.1.0.1.5 Copyright (c) 2014, Oracle Corporation. All rights reserved. Oracle Home : /d01/grid/12.1.0.2 Central Inventory : /u03/app/oraInventory from : /d01/grid/12.1.0.2/oraInst.loc OPatch version : 12.1.0.1.5 OUI version : 12.1.0.2.0 Log file location : /d01/grid/12.1.0.2/cfgtoollogs/opatch/opatch2014-12-31_14-01- 42PM_1.log Lsinventory Output file location : /d01/grid/12.1.0.2/cfgtoollogs/opatch/lsinv/lsinventory2014-12-31_14-01-42PM.txt -------------------------------------------------------------------------------- Installed Top-level Products (1): Oracle Grid Infrastructure 12c 12.1.0.2.0 There are 1 products installed in this Oracle Home. There are no Interim patches installed in this Oracle Home. -------------------------------------------------------------------------------- OPatch succeeded. $ Before applying the PSU, need to have the OCM response file created. Now, apply the GI as root user. [root@emcc ~]# export PATH=$PATH:/d01/grid/12.1.0.2/OPatch [root@emcc ~]# opatchauto apply /media/sf_Orac12csw/19791375/19392646 -oh /d01/grid/12.1.0.2 -ocmrf /tmp/ocm.rsp
  • 17. Patch succeeded, and services brought up automatically by the opatchauto. Hope this helps…!