7/21/2019 DB Inventory Final
1/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.1
Upcoming: Database Inventory: Concepts and troubleshooting
7/21/2019 DB Inventory Final
2/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.2
Oracle Advisor Webcast Program
Current schedule
Archived recordings
Doc ID 740966.1
Upcoming: Database Inventory: Concepts and troubleshooting
7/21/2019 DB Inventory Final
3/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.3
AGENDA
Presentationapproximately 45 minutes
Q&A Sessionapproximately 15 minutes
Web attendees can ask questions via Q&A panel
Phone attendees can ask questions via Q&A panel or
phone(operator assisted)
Upcoming: Database Inventory: Concepts and troubleshooting
7/21/2019 DB Inventory Final
4/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.4
ATTENTION AUDIO Options
You can
either listen the audio broadcast on your computer
or join teleconference (dial in)
Upcoming: Database Inventory: Concepts and troubleshooting
7/21/2019 DB Inventory Final
5/60Copyright 2014, Oracle and/or its affiliates. All rights reserved.5
Voice Streaming Audio Broadcast
Listen only mode
Advantage: no need to dial in What about Questions?Type your questions into WebEx Q&A panel
If you prefer full audio access in order to askquestions directly, please connect to ourteleconference
Connect details you will find at next slide
Upcoming: Database Inventory: Concepts and troubleshooting
7/21/2019 DB Inventory Final
6/60Copyright 2014, Oracle and/or its affiliates. All rights reserved.6
ATTENTION AUDIO INFORMATION
Teleconference Connect details:
1. Conference ID: 412326582. International dial in: +44 (0) 1452 562 6653. US Free call: 1866 230 19384. List with national toll free numbers is availa
note 1148600.1You can view this info anytime during the conference usingCommunicate > Teleconference > Join Teleconferenc
from your WebEx menuUpcoming: Database Inventory: Concepts and troubleshooting
7/21/2019 DB Inventory Final
7/60
Oracle Advisor Webcast
Database Inventory: Concepts andtroubleshooting
Asad HasanPrincipal Software Engineer
7/21/2019 DB Inventory Final
8/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.8
AGENDA
Presentationapproximately 45 minutes
Q&A Sessionapproximately 15 minutes
Web attendees can ask questions via Q&A panel only
Phone attendees can ask questions via Q&A panel or phone
assisted)
7/21/2019 DB Inventory Final
9/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.9
Oracle Advisor Webcast Program
Current schedule
Archived recordings
Doc ID 740966.1
7/21/2019 DB Inventory Final
10/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.10
AUDIO INFO Join Teleconference
7/21/2019 DB Inventory Final
11/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.11
Q&A panel
type your question here1
Ask: ALL PANELLIST leave default!2
Send your q3
7/21/2019 DB Inventory Final
12/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.12
your question pop-up here
7/21/2019 DB Inventory Final
13/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.13
The following is intended to outline our general producdirection. It is intended for information purposes only, a
may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functiona
and should not be relied upon in making purchasing de
The development, release, and timing of any features functionality described for Oracles products remains a
sole discretion of Oracle.
Safe Harbor Statement
7/21/2019 DB Inventory Final
14/60
Oracle Advisor Webcast
Database Inventory: Concepts andtroubleshooting
Asad HasanPrincipal Software Engineer
7/21/2019 DB Inventory Final
15/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.15
Objectives
Understanding Oracle Database
Inventory
Importance of Database Inventory
Knowledge of Common Problems
with Inventory
7/21/2019 DB Inventory Final
16/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.16
Agenda
Overview Database InventoryCentral Inventory and Local Inventory
Inventory Pointer used by OUI and OPatch
Layout of Oracle Inventory
Steps To Recreate Central InventoryTroubleshooting and known issues
7/21/2019 DB Inventory Final
17/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.17
Overview of Oracle Inventory
Collection of information representing the software insta Provided the Oracle Product is Installed using OUI (Orac
Installer)
OUIOracles Installer Application
WINDOWS setup.exe
UNIX runInstaller
7/21/2019 DB Inventory Final
18/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.18
Structure of Inventory
Central
InventoryPointer File(oraInst.loc)
Central
Inventory(oraInventory)
Oracle Hom
Oracle HomInventor
Oracle Hom
Each system has:One Central InventoryN Oracle Home(Local) Inventories
7/21/2019 DB Inventory Final
19/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.19
Default Location Inventory Pointe
Solaris/HP-UX /var/opt/oracle/oraInst.locLinux/AIX : /etc/oraInst.loc
On Windows : registry HKLM\Software\oracle\ins
cat oraInst.loc
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
Inst_loc C:\Program Files\Oracle\Inventory
7/21/2019 DB Inventory Final
20/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.20
Central Inventory
Inventory having information of Oracle Homes installed
Contains
Inventory FileLogs Directory
Updated by install or de-install of a ORACLE_HOME.
7/21/2019 DB Inventory Final
21/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.21
How Does OUI Decide oraInventory Lo
OUI Set Up Central Inventory
ORACLE_BASE
$ORACLE_BASE/../oraInventory
/u01/app/oraInventory
Set
Not Set No /home/oren
If it is not first time OUI refers /etc/oraInst.loc
OFA -Complaint
Yes
/u[01-09]/app/oraIn
7/21/2019 DB Inventory Final
22/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.22
Inventory File(inventory.xml)
Located in :
/ContentsXML/inve
It Lists Oracle_Home with following attributes:
HOME IDX="1 LOC="/u01/app/oracle/product/11.2.0/db
NAME="OraDb11g_home1
HOME NAME=grid11g" LOC="/grid11g" IDX=2" CRS="t
NODE NAME="rac1" NODE NAME="rac2"
7/21/2019 DB Inventory Final
23/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.23
Central Inventory Logs Directo
Contains all installation logs for that node: /logs
installActions
7/21/2019 DB Inventory Final
24/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.24
Inventory on Windows
In Windows 64 bit machine, there can be two in
1) For all the oracle software installed using 64-bit DB sof"c:\Program Files\Oracle\Inventory"
2) For the 32-bit oracle softwares, eg: 32-bit db client s/w "c:\Program Files (x86)\Oracle\Inventory"
C
7/21/2019 DB Inventory Final
25/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.25
Cont..
The two inventories are maintained independe
64-bit oracle software operate on 64 bit inventory 32-bit oracle software operate on 32-bit inventory
Registry keys associated with these inventories
HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE 64bit HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE
I t C ti l
7/21/2019 DB Inventory Final
26/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.26
Inventory Corrections examples :
=>Attach Oracle_Home to Central Inventory :
=> Detach Oracle_Home from Central Inventory :
./runInstaller -silent -attachHomeORACLE_HOME="
ORACLE_HOME_NAME="
./runInstaller -silent -detachHomeORACLE_HOME="
ORACLE_HOME_NAME="
St T R t C t l
7/21/2019 DB Inventory Final
27/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.27
Steps To Recreate CentralInventory(oraInventory) In RDBMS
STEP1:Locating the central inventorySTEP2:Remove the Central inventory (if it exists)
STEP3: Change the directory to the oui location.
STEP4:Attaching the Home
7/21/2019 DB Inventory Final
28/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.28
Demonstration
L l i t
7/21/2019 DB Inventory Final
29/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.29
Local inventory
Each Oracle_Home has a local inventory within$ORACLE_HOME/inventory
It contains the following files : Components File
Home Properties File
C t Fil l
7/21/2019 DB Inventory Final
30/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.30
Components File - comps.xml It has records of all the components as well as patchsets
patches installed in the Oracle home.
ORACLE_HOME/inventory/ContentsXML/comps.xm
After each opatch apply/napply OUI updates its co
with patch details.
opatch lsinventory
opatch lsinventory -detail
S nc Central and Local In entor
7/21/2019 DB Inventory Final
31/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.31
Sync Central and Local Inventory
Inventory.xml :
Comps.xml
INSTALL_TIME="2014.May.01 10:59:29 GMT
INST_TYPE NAME="EE" NAME_ID="EE" DESC_ID="EE_DE
LOC=" /u01/app/oracle/product/11.2.0/dbhome_1 " TYPIDX="1"/>
INST_LOC="/u01/app/oracle/product/11.2.0/dbhome_1/oracl
HOME_IDX="1
Home Properties
7/21/2019 DB Inventory Final
32/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.32
Home Properties
Contains Platform details for a particular oracle_hom $ORACLE_HOME/inventory/ContentsXML/oraclehomepropert
Helps determine if the patch(32 or 64 bit) is applicable f
1722428402#.1076931936
226
Linux x86-64
7/21/2019 DB Inventory Final
33/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.33
Cont..
Set Oracle_Base
oraenv reads oraclehomeproperties.xml
7/21/2019 DB Inventory Final
34/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.34
Inventory PointerWithin Oracle_Hom
How to identify where is Oracle_Home registere
cat$ORACLE_HOME/oraInst.loc
Overrides the Default Inventory Pointer .
inventory_loc=/u01/app/oraInventory
Layout of Oracle Inventory
7/21/2019 DB Inventory Final
35/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.35
Layout of Oracle Inventory
Inventory Ptr
/inventory/oneoff/inv
/ContentsXML/comp
/inventory/ContentsXM
/inventory/ContentsXML/oraclehomepr
Get Inventory Pointer
Get IndependentProducts
Get Oracle Homes
For each OHGet Components
Get platform
Home GUID
/ContentsXML/inventory.xml
For Opatch
Check Oracle XML Is Correct ?
7/21/2019 DB Inventory Final
36/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.36
Check Oracle XML Is Correct ?
We can use opatch utility to check health of specifi
Error in XML File:
org.xml.sax.SAXParseException:
7/21/2019 DB Inventory Final
37/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.37
How To Identify Error In XML Files ?
(Fatal Error) End tag does not match
Significance of oraInst loc using O
7/21/2019 DB Inventory Final
38/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.38
Significance of oraInst.loc using OOPATCH
Default OUI takes central Inventory from:/var/opt/oracle/oraInst.loc or /etc/oraIn
Opatch takes central Inventory from $OH/oraI
If oraInst.loc does not exist:./runInstaller -invPtrLoc /oraInst.l
./opatch lsinventory -invPtrLoc /ora
oraInst loc - Case Study
7/21/2019 DB Inventory Final
39/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.39
oraInst.loc - Case Study
Case 1-New Install in a Clean Machine
Oracle_Home/oraInst.locis created in the end of iexecuting oraInstRoot.sh.
Oracle_Home/oraInst.loc Default inventory pointe
Case 2Default Inventory Pointer Exists
Finds Inventory location from inventory pointer in default The file under OH/oraInst.lochas contents similar to
inventory pointer file.
Non-Default Inventory Pointer Location
7/21/2019 DB Inventory Final
40/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.40
Non Default Inventory Pointer Location
Case 3New Install with -invPtrLoc
7/21/2019 DB Inventory Final
41/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.41
Inventory Backup
Highly Recommended before any Upgrade or Patch Ope
Installs cannot be performed on the system due to inven
Rebuilding the Oracle Home(Local) inventory is not poss
Central Inventory Backup Oracle Home Backup
7/21/2019 DB Inventory Final
42/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.42
Demonstration
Automated Inventory Backup
7/21/2019 DB Inventory Final
43/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.43
Automated Inventory Backup
Operations Update Central Inventory Operations Update Loc
a) Install (New Home)b) Deinstall ( Remove Home)c) Cloned) Add nodee) Attach home
a) Install (patchsetsb) Deinstall (compoc) Add node
Backup the directory:
oraInventory/backup//time stamp/
Backup the directory:
$ORACLE_HOME/invente stamp/
Multiple OraInventory Locations?
7/21/2019 DB Inventory Final
44/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.44
Multiple OraInventory Locations?
Consolidate Multiple Central Inventories into a Single Centra
Step1:Identify the Central Inventory Directory Step2:Execute orainstroot.sh
Step3:Identify other Central inventories and Oracle home
Step4:Execute the following command :
->cd $ORACLE_HOME/oui/bin->./runInstaller -silent -attachHome
ORACLE_HOME=""
ORACLE_HOME_NAME=""
7/21/2019 DB Inventory Final
45/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.45
Demonstration
Summary
7/21/2019 DB Inventory Final
46/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.46
y
Understanding of Central andLocal Inventory
Steps to Recreate Central Inventory
Purpose of oraInst.loc
Consolidation of oraInventory
What we covered today
Additional References
7/21/2019 DB Inventory Final
47/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.47
Document 564192.1 FAQs on Central Inventory
and Oracle Home Inventory (Local Inventory) inOracle RDBMS
Document 556834.1 Steps To Recreate CentralInventory(oraInventory) In RDBMS Homes
Document 414600.1 Strategies for a Corrupted
Oracle Central Inventory
Document 453399.1 How To Check ifinventory.xml/comps.xml Or Any Oracle XMLFile Is Correct?
7/21/2019 DB Inventory Final
48/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.48
Questions & Answers
MOS Community thread for Q&A
https://community.oracle.com/thread/35723177/21/2019 DB Inventory Final
49/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.49
yhttps://community.oracle.com/thread/3
https://community.oracle.com/thread/3572317https://community.oracle.com/thread/35723177/21/2019 DB Inventory Final
50/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.50
Q&A panel
type your question here1
Ask: ALL PANELLIST leave default!2
Send your q3
Further Info & Help
7/21/2019 DB Inventory Final
51/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.51
Generic Advisor Webcast Note (Doc ID 7409
Database Advisor Webcast (Doc ID 1456176 DB Newsletter (Doc ID 1284265.1) MOS Community Database Install/Upgrade/O
Oracle Advisor Webcast Program
7/21/2019 DB Inventory Final
52/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.52
Current schedule
Archived recordings
Doc ID 740966.1
select your p
e.g.
Oracle Data
7/21/2019 DB Inventory Final
53/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.53
ArchivesSchedule
7/21/2019 DB Inventory Final
54/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.54
Learn MoreA il bl R f d R t G t P ti
7/21/2019 DB Inventory Final
55/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.55
About Oracle Support Best Practices
www.oracle.com/goto/proactivesupport
Get Proactive in My Oracle Supporthttps://support. oracle.com| Doc ID: 432.1
Get Proactive Bloghttps://blogs.oracle.com/getproactive/
Ask the Get Proactive [email protected]
Available References and Resources to Get Proactive
http://www.oracle.com/goto/proactivesupporthttps://support.us.oracle.com/https://blogs.oracle.com/getproactive/mailto:[email protected]:[email protected]:[email protected]:[email protected]://blogs.oracle.com/getproactive/https://support.us.oracle.com/http://www.oracle.com/goto/proactivesupport7/21/2019 DB Inventory Final
56/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.56
7/21/2019 DB Inventory Final
57/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.57
7/21/2019 DB Inventory Final
58/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.58
7/21/2019 DB Inventory Final
59/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.59
THANK YOU
7/21/2019 DB Inventory Final
60/60
Copyright 2014, Oracle and/or its affiliates. All rights reserved.60