Oracle 12c中的MGMTDB

简介: MGMTDB系列 1  MGMTDB说明 Every Oracle Standalone Cluster and Oracle Domain Services Cluster contains a Grid Infrastructur...

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笔试面试讲解


目录
相关文章
|
4天前
|
存储 NoSQL Oracle
Oracle 12c的内存列存储:数据的“闪电侠”
【4月更文挑战第19天】Oracle 12c的内存列存储以超高速度革新数据处理,结合列存储与内存技术,实现快速查询与压缩。它支持向量化查询和并行处理,提升效率,但需合理配置以平衡系统资源。作为数据管理员,应善用此功能,适应业务需求和技术发展。
|
4天前
|
存储 Oracle 关系型数据库
Oracle 12c的多重索引:数据的“多维导航仪”
【4月更文挑战第19天】Oracle 12c的多重索引提升数据查询效率,如同多维导航仪。在同一表上创建针对不同列的多个索引,加速检索过程。虽然过多索引会增加存储和维护成本,但合理选择和使用索引策略,结合位图、函数索引等高级特性,能优化查询,应对复杂场景。数据管理员应善用这些工具,根据需求进行索引管理,支持企业数据分析。
|
4天前
|
存储 Oracle 数据管理
Oracle 12c的自动数据优化(ADO)与热图:数据管理的“瘦身”与“透视”艺术
【4月更文挑战第19天】Oracle 12c的ADO和热图技术革新数据管理。ADO智能清理无用数据,优化存储,提升查询速度,实现数据&quot;瘦身&quot;;热图则以直观的视觉表示展示数据分布和状态,助力识别性能瓶颈,犹如数据的&quot;透视&quot;工具。这两项技术结合,强化数据管理,为企业业务发展保驾护航。
|
4天前
|
Oracle 安全 数据管理
Oracle 12c多租户架构:数据管理的“摩天大楼”
【4月更文挑战第19天】Oracle 12c的多租户架构允许多个独立数据库环境在同一实例中共享资源,提高效率,降低成本。该架构保证了数据隔离和安全性,同时提供灵活性和可扩展性,简化管理任务。通过理解其原理和管理方法,我们可以充分利用这一架构,为企业数据管理和业务发展提供强大支持。
|
7月前
|
Oracle 关系型数据库
Oracle 11g和12c的主要区别
Oracle 11g和12c的主要区别
|
Oracle 关系型数据库 5G
Oracle 12C rman备份占用大量临时表空间
Oracle 12C rman备份占用大量临时表空间
387 0
|
11月前
|
Oracle 关系型数据库
oracle 12c新功能 recover table恢复单个表
不支持sys用户和system表空间的表
|
11月前
|
Oracle 关系型数据库 数据库
|
11月前
|
Oracle 关系型数据库 数据库
|
Oracle 关系型数据库
静默安装Oracle 12c单机环境软件
静默安装Oracle 12c单机环境软件
104 0

推荐镜像

更多