During the installation of Oracle Grid Infrastructure 12.1.0.1 you’ve had the an option to choose YES/NO to install the Grid Infrastructure Management Repository (GIMR) database MGMTDB – but as of Oracle 12.1.0.2 Grid Infrastructure Management Repository (GIMR) database now mandatory in Oracle GI 12.1.0.2:
GIMR database now mandatory in Oracle GI 12.1.0.2
With Oracle Grid Infrastructure 12.1.0.2 this choice has become obsolete and the above screen does not appear anymore. The GIMR database has become mandatory.
What do we stored in the GIMR?
- You’ll find it in the Oracle 12.1.0.2 documentation via this link.
In addition please see the changes in Oracle Clusterware 12.1.0.2 here:
-
Automatic Installation of Grid Infrastructure Management Repository
The Grid Infrastructure Management Repository is automatically installed with Oracle Grid Infrastructure 12crelease 1 (12.1.0.2). The Grid Infrastructure Management Repository enables such features as Cluster Health Monitor, Oracle Database QoS Management, and Rapid Home Provisioning, and provides a historical metric repository that simplifies viewing of past performance and diagnosis of issues. This capability is fully integrated into Oracle Enterprise Manager Cloud Control for seamless management.
What the documentation isn’t telling you explicitly
-
- The -MGMTDB is a single-tenant deployment now having a CDB with one PDB
- This will allow you the use of a Utility Cluster that can hold the CDB for a collection of GIMR PDBs
- When you’ve had already an Oracle 12.1.0.1 GIMR this database will be destroyed and recreated
- You can preserve the CHM/OS data with OCULMON to dump it out into node view
- The data files associated with it will be created within the same disk group as OCR or VOTING
- The OUI will get the disk groups for OCR and Voting and chooses the first one – which usually is the first OCR. This may lead to serious space issues. It is tracked internally as Bug:19661882 In a future release there may be an option offered to put in into a separate disk group (please see: GIMR in Oracle 12.2)
As a workaround you can move the affected OCR to another disk group (useocrconfig
command for it) – see MOS Note:1589394.1
- The OUI will get the disk groups for OCR and Voting and chooses the first one – which usually is the first OCR. This may lead to serious space issues. It is tracked internally as Bug:19661882 In a future release there may be an option offered to put in into a separate disk group (please see: GIMR in Oracle 12.2)
- Some additional and important MOS Notes:
- MOS Note 1568402.1
FAQ: 12c Grid Infrastructure Management Repository, states there’s no supported procedure to enable Management Database once the GI stack is configured - MOS Note: 1921105.1
Managing the Cluster Health Monitor
Repository (incl how to resize) - MOS Note 1589394.1
How to Move GI Management Repository to Different Shared Storage
(shows how to delete and recreate the MGMTDB) - MOS Note 1631336.1
Cannot delete Management Database (MGMTDB) in 12.1 - MOS Note: 1945558.1
_mgmtdb Service registered with all local listeners in GI environment
- MOS Note 1568402.1
- The -MGMTDB is a single-tenant deployment now having a CDB with one PDB
-
- Average growth size per day per node is roughly 650-750 MB. E.g. a 4 node cluster would lead at the default retention of 3 days to an approximate size of 5.9-6.8 GB
- Change the retention 12.1.0.1:
$CRS_HOME/bin/oclumon manage -repos changeretentiontime 260000
Furthermore you can change the GIMR DB’s retention in Oracle 12.1.0.2:
$CRS_HOME/bin/oclumon manage -repos checkretentiontime 260000
Update:
Markus Michalewicz, our Senior Director of Product Management, Oracle Real Application Clusters (RAC), has published a very interesting and helpful insight article about GIMR on July 30, 2015. Read it here:
https://www.linkedin.com/pulse/how-handle-oracle-gimr-markus-michalewicz
Additional Information
See also:
–Mike
PS: Kudos to Sebastian Solbach who updated me on the things to add (retention, average growth, OUI choosing the first disk group displayed for the MGMTDB) – cheers!
Mike,
Do you have any idea when 12.1.0.2 will be available for Win 7 64 bit?
Rajesh,
I can’t give you a date but it should be there in less than 4 weeks 🙂
Cheers, Mike
Hi,
We have installed 12.1.0.2.0 successfully for 2 node Linux 64 machines but MGMTDB(GIMR) is not created on either nodes.
Any suggestions.
Hi there,
please see the MOS Notes I have linked at the end – it shows you how to create it when the creation failed. And you may open an SR with Support to have them check what the reason has been for non-creation.
Cheers, Mike
Hi Mike,
would you happen to know if Oracle plans on giving us the choice of where to install mgmtdb in future patchsets?
I’ve done the .1 to .2 upgrade in our development environment, just to discover that with normal redundancy (3 voting disks), even 8G is not big enough any more 😉
I really don’t know – but I can recommend everybody to log an SR and ask support to log a bug/enhancement for it.
Cheers
Mike
Hi Mike,
just a info … clicking on the link for MoS note #1568402.1 leads me to Mos note #1589394.1. Means the first and second MoS note links are the same in the link destination.
cheers
Chris
Hi Mike,
just a info … clicking on the link for MoS note #1568402.1 leads me to Mos note #1589394.1. Means the first and second MoS note links are the same in the link destination.
cheers
Chris
thanks a lot – I’ll fix it in a second!!!
cheers,
Mike
Does the mgmtdb need to be backed up using RMAN?
No, it doesn’t need to be backed up in any way. If it should get lost than it can be recreated – just 3 days of performance data lost. It runs in nologging mode anyways – so no need to think about maintenance or backups.
Cheers
Mike
Hi,
I attended th 12c upgrade seminar hosted by Roy Swonger in Chicago 1/8. Can MGMTDB be shut down without affecting the GRID if client does not see the need for the database? Or is the database critical to the GI?
Thanks
I see SYS SYSTEM are manged by the default profile. Do I need to manage these accounts so that passords do not expire?
Thanks for the help
Sam,
it’s not critical for GI – the health monitor simply won’t be able to store data.
Cheers
Mike
Sam,
you don’t have to manage those accounts separately – their passwords don’t expire by default.
Cheers
Mike
Hi Mike,
Im looking for information about patching. The README for 12.1.0.2.2 PSU doesn’t tell me anything about MGMTDB. Will it be patched automatically (opatchauto) as part of "Patching Oracle RAC Database Homes and GI Together"? Or do I have to patch the MGMTDB seperately? And do I have to "Load Modify SQL Files into the MGMTDB"?
Thanks in advance!
Axel
Alex,
the design of the MGMTDB is a "no admin required" design. Actually the binary will be patched automatically once you apply a PSU or BP to the GI Home.
For your question about the SQL part you will have to open an SR as I’m not able to answer this – I have an idea but please double check with Oracle Support (sorry!)
Cheers
Mike
Hi Mike,
please note that the command should be
$CRS_HOME/bin/oclumon manage -repos changeretentiontime 26000
(instead of checkretentiontime)
Trying to run this we get error:
Failed change retention. Error returned ORA-28001: the password has expired
Which user is used for that as neither sys nor system account is expired?
Thanks a million for the correction!!! I have included it into the post!
Thanks
Mike
Dear all, Mike,
given some of the comments or for a general update to this topic, you might be interest in the following article: https://www.linkedin.com/pulse/how-handle-oracle-gimr-markus-michalewicz?trk=pulse-det-nav_art
Thanks,
Markus
Hi Mike,
Question, is it mandatory to store gimr on the vote+ocr diskgroup? if i move it on another group where i have ocr mirror it will be a problem in the future?
thanks
Christian,
please see:
MOS Note 1589394.1
How to Move GI Management Repository to Different Shared Storage
in the blog post 🙂
Cheers
Mike
very Nice tips! Thank you for note 1589394.13
Can the MGMTDB database exist outside of ASM, on a shared nfs filesystem?
Clear answer: No.
Cheers
Mike
We have it running on NFS :
Hi Mike, Since GIMR is optional with 19c again(it requires minimum 30 – 36G), can we choose not to install it?
Hi Sen,
the team has done “magic” – you can choose to NOT INSTALL IT when you do a fresh install. But when you upgrade, it will be kept and upgraded. Please raise this via an SR when you have concerns with it. I can’t do anything 🙁
Cheers,
Mike