Oracle 12c中的MGMTDB

本文介绍了Oracle集群中的Grid Infrastructure Management Repository (GIMR),即Management Database (MGMTDB)。MGMTDB作为多租户数据库存储了集群健康监测、故障诊断等关键信息,并详细解释了其在不同集群配置中的部署方式及常用管理命令。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

MGMTDB系列

1  MGMTDB说明

Every Oracle Standalone Cluster and Oracle Domain Services Cluster contains a Grid Infrastructure Management Repository (GIMR), or the Management Database (MGMTDB).

The Grid Infrastructure Management Repository (GIMR) is a multitenant database with a pluggable database (PDB) for the GIMR of each cluster. The GIMR stores the following information about the cluster:

?Real time performance data the Cluster Health Monitor collects

?Fault, diagnosis, and metric data the Cluster Health Advisor collects

?Cluster-wide events about all resources that Oracle Clusterware collects

?CPU architecture data for Quality of Service Management (QoS)

?Metadata required for Rapid Home Provisioning

The Oracle Standalone Cluster locally hosts the GIMR on an Oracle ASM disk group; this GIMR is a multitenant database with a single pluggable database (PDB).

The global GIMR runs in an Oracle Domain Services Cluster. Oracle Domain Services Cluster locally hosts the GIMR in a separate Oracle ASM disk group. Client clusters, such as Oracle Member Cluster for Database, use the remote GIMR located on the Domain Services Cluster. For two-node or four-node clusters, hosting the GIMR for a cluster on a remote cluster reduces the overhead of running an extra infrastructure repository on a cluster. The GIMR for an Oracle Domain Services Cluster is a multitenant database with one PDB, and additional PDB for each member cluster that is added.

When you configure an Oracle Domain Services Cluster, the installer prompts to configure a separate Oracle ASM disk group for the GIMR, with the default name as MGMT.

    常用命令

srvctl stop mgmtdb

srvctl status mgmtdb

srvctl config mgmtdb

srvctl disable mgmtdb

srvctl disable mgmtlsnr

srvctl add mgmtdb

srvctl config mgmtdb

srvctl disable mgmtdb

srvctl enable mgmtdb

srvctl getenv mgmtdb

srvctl modify mgmtdb

srvctl relocate mgmtdb

srvctl remove mgmtdb

srvctl setenv mgmtdb

srvctl start mgmtdb

srvctl status mgmtdb

srvctl stop mgmtdb

srvctl unsetenv mgmtdb

srvctl add mgmtlsnr

srvctl config mgmtlsnr

srvctl disable mgmtlsnr

srvctl enable mgmtlsnr

srvctl getenv mgmtlsnr

srvctl modify mgmtlsnr

srvctl remove mgmtlsnr

srvctl setenv mgmtlsnr

srvctl start mgmtlsnr

srvctl status mgmtlsnr

srvctl stop mgmtlsnr

srvctl unsetenv mgmtlsnr



必须使用grid用户进行登录:

[grid@raclhr-12cR1-N1 ~]$ export ORACLE_SID=-MGMTDB

[grid@raclhr-12cR1-N1 ~]$ sqlplus / as sysdba

MGMTDB数据库的信息:

Database unique name: _mgmtdb

Database name: _mgmtdb

Oracle user: grid

Database instance: -MGMTDB

service_names_mgmtdb


[root@raclhr-12cR1-N1 ~]# crsctl stat  res -t

--------------------------------------------------------------------------------

Name           Target  State        Server                   State details       

--------------------------------------------------------------------------------

Local Resources

--------------------------------------------------------------------------------

ora.DATA.dg

               ONLINE  ONLINE       raclhr-12cr1-n1          STABLE

               ONLINE  ONLINE       raclhr-12cr1-n2          STABLE

ora.FRA.dg

               ONLINE  ONLINE       raclhr-12cr1-n1          STABLE

               ONLINE  ONLINE       raclhr-12cr1-n2          STABLE

ora.LISTENER.lsnr

               ONLINE  ONLINE       raclhr-12cr1-n1          STABLE

               ONLINE  ONLINE       raclhr-12cr1-n2          STABLE

ora.OCR.dg

               ONLINE  ONLINE       raclhr-12cr1-n1          STABLE

               ONLINE  ONLINE       raclhr-12cr1-n2          STABLE

ora.asm

               ONLINE  ONLINE       raclhr-12cr1-n1          Started,STABLE

               ONLINE  ONLINE       raclhr-12cr1-n2          Started,STABLE

ora.net1.network

               ONLINE  ONLINE       raclhr-12cr1-n1          STABLE

               ONLINE  ONLINE       raclhr-12cr1-n2          STABLE

ora.ons

               ONLINE  ONLINE       raclhr-12cr1-n1          STABLE

               ONLINE  ONLINE       raclhr-12cr1-n2          STABLE

--------------------------------------------------------------------------------

Cluster Resources

--------------------------------------------------------------------------------

ora.LISTENER_SCAN1.lsnr

      1        ONLINE  ONLINE       raclhr-12cr1-n1          STABLE

ora.MGMTLSNR

      1        ONLINE  ONLINE       raclhr-12cr1-n1          169.254.20.104 192.1

                                                             68.2.100,STABLE

ora.cvu

      1        ONLINE  ONLINE       raclhr-12cr1-n1          STABLE

ora.lhrrac.db

      1        ONLINE  ONLINE       raclhr-12cr1-n1          Open,STABLE

      2        ONLINE  ONLINE       raclhr-12cr1-n2          Open,STABLE

ora.mgmtdb

      1        ONLINE  ONLINE       raclhr-12cr1-n1          Open,STABLE

ora.oc4j

      1        ONLINE  ONLINE       raclhr-12cr1-n1          STABLE

ora.raclhr-12cr1-n1.vip

      1        ONLINE  ONLINE       raclhr-12cr1-n1          STABLE

ora.raclhr-12cr1-n2.vip

      1        ONLINE  ONLINE       raclhr-12cr1-n2          STABLE

ora.scan1.vip

      1        ONLINE  ONLINE       raclhr-12cr1-n1          STABLE

--------------------------------------------------------------------------------

[root@raclhr-12cR1-N1 ~]#


使用crsctl 命令可以看到ora.mgmtdb ora.MGMTLSNR


在操作系统层面,也可以查看到有2个对应的进程:

[root@raclhr-12cR1-N1 ~]# ps -ef| grep pmon_-MGMTDB

grid     36338     1  0 16:50 ?        00:00:00 mdb_pmon_-MGMTDB

root     38490 46150  0 16:58 pts/0    00:00:00 grep pmon_-MGMTDB

[root@raclhr-12cR1-N1 ~]# ps -ef| grep MGMTLSNR

grid       729     1  0 06:11 ?        00:00:01 /u01/app/12.1.0/grid/bin/tnslsnr MGMTLSNR -no_crs_notify -inherit

root     38779 46150  0 16:58 pts/0    00:00:00 grep MGMTLSNR

[root@raclhr-12cR1-N1 ~]# 





以下内容转载于David Daihttp://www.cndba.cn/dave/article/248


      MGMTDB 说明


     

 

1.png


  

 

 

   


       


           

 

    


 


 






        

 

         


                                                                                                                                                                                                             


  



                                                                                                   

 

             

   

  



           

       


 

 

            


                                                                                                                                                     

  


 

       


  


                                                                                                                             >                            >                                        




        


   


         



  


         




                                                              


         



            


 


                                  


  



           

     


 <>


   


 

  


                                                             



      



                <>                                                                                           




         


             


 




 



                                      


        


 



                                                                                                                                                                                                                                                     >               >


 


 

              



                                     


 

 

  


 




 

     

>

 

 



 


 














 

 

 <>
























 

 

 <>




























 










 

 



 


  







 






   

 

 

>

















 

 

 

 

 

 

  

 

 

 











>




>>>>

>



>
>








>
>






 


 



 

 

 

 

 

    

 

   

 

 

 img_e3029f287d989cd04bd75432ecc1c172.png  DBA笔试面试讲解


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值