您好,登錄后才能下訂單哦!
本篇內(nèi)容介紹了“Oracle中的Management Repository有什么作用”的有關(guān)知識(shí),在實(shí)際案例的操作過(guò)程中,不少人都會(huì)遇到這樣的困境,接下來(lái)就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!
在Grid Infrastructure 12.1.0.2 中安裝完grid,可以看到資源中多了ora.MGMTLSNR及ora.mgmtdb,同時(shí)啟動(dòng)了一個(gè)實(shí)例,sid=-MGMTDB.
[grid@prodb1 ~]$ crsctl status res -t -------------------------------------------------------------------------------- Name Target State Server State details -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.LISTENER.lsnr ONLINE ONLINE prodb1 STABLE ONLINE ONLINE prodb2 STABLE ora.OCR_VOTE.dg ONLINE ONLINE prodb1 STABLE ONLINE ONLINE prodb2 STABLE ora.asm ONLINE ONLINE prodb1 Started,STABLE ONLINE ONLINE prodb2 Started,STABLE ora.net1.network ONLINE ONLINE prodb1 STABLE ONLINE ONLINE prodb2 STABLE ora.ons ONLINE ONLINE prodb1 STABLE ONLINE ONLINE prodb2 STABLE -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE prodb1 STABLE ora.MGMTLSNR 1 ONLINE ONLINE prodb1 169.254.124.55 192.1 68.0.101,STABLE ora.cvu 1 ONLINE ONLINE prodb1 STABLE ora.mgmtdb 1 ONLINE ONLINE prodb1 Open,STABLE ora.oc4j 1 ONLINE ONLINE prodb1 STABLE ora.prodb1.vip 1 ONLINE ONLINE prodb1 STABLE ora.prodb2.vip 1 ONLINE ONLINE prodb2 STABLE ora.scan1.vip 1 ONLINE ONLINE prodb1 STABLE -------------------------------------------------------------------------------- [grid@prodb1 ~]$ ps -ef |grep pmon grid 3443 1 0 20:16 ? 00:00:00 mdb_pmon_-MGMTDB grid 10452 1 0 19:29 ? 00:00:00 asm_pmon_+ASM1
Management Repository是一個(gè)由Oracle Clusterware在12c中管理的單實(shí)例數(shù)據(jù)庫(kù)。由于它是單實(shí)例數(shù)據(jù)庫(kù),它將在集群中的一個(gè)節(jié)點(diǎn)上啟動(dòng)并運(yùn)行; 因?yàn)樗蒅I管理,如果托管節(jié)點(diǎn)關(guān)閉,數(shù)據(jù)庫(kù)將自動(dòng)故障轉(zhuǎn)移到其他節(jié)點(diǎn)。管理數(shù)據(jù)庫(kù)在12c中存儲(chǔ)Cluster Health Monitor(CHM / OS,ora.crf)和其他數(shù)據(jù)的中央存儲(chǔ)庫(kù)。在12.1中,默認(rèn)情況下,Management數(shù)據(jù)庫(kù)使用與OCR/Voting File相同的共享存儲(chǔ); 在12.2中,全新安裝允許指定單獨(dú)的磁盤組。
在12.1.0.1中,GIMR是可選的,如果未選擇在安裝/升級(jí)期間配置管理數(shù)據(jù)庫(kù),則將禁用依賴于它的所有功能(CHM / OS)。
在12.1.0.2中默認(rèn)安裝GIMR,不可選。并且除Exadata之外不支持關(guān)閉它。
啟動(dòng)數(shù)據(jù)庫(kù):
管理數(shù)據(jù)庫(kù)由GI管理,可自動(dòng)啟動(dòng)并運(yùn)行。如果由于某種原因它已關(guān)閉,可以使用以下srvctl命令啟動(dòng):
用法:srvctl start mgmtdb [-startoption <start_option>] [-node <node_name>]
用法:srvctl start mgmtlsnr [-node <node_name>]
登錄數(shù)據(jù)庫(kù):
[grid@prodb1 ~]$ export ORACLE_SID=-MGMTDB [grid@prodb1 ~]$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.2.0 Production on 0 21:04:42 2019 Copyright (c) 1982, 2014, Oracle. All rights reserved. Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, Automatic Storage Management and Advanced Analytics options SQL> show parameter dump NAME TYPE VALUE ------------------------------------ ---------------------- ------------------------------ background_core_dump string partial background_dump_dest string /u01/app/12.2/grid/rdbms/log core_dump_dest string /u01/app/grid/diag/rdbms/_mgmt db/-MGMTDB/cdump max_dump_file_size string unlimited shadow_core_dump string partial user_dump_dest string /u01/app/12.2/grid/rdbms/log SQL> select file_id,file_name from dba_data_files; FILE_ID FILE_NAME ------- ----------------------------------------------------------------- 4 +OCR_VOTE/_MGMTDB/DATAFILE/undotbs1.259.998942293 1 +OCR_VOTE/_MGMTDB/DATAFILE/system.258.998942257 3 +OCR_VOTE/_MGMTDB/DATAFILE/sysaux.257.998942237
查看trc:
[grid@prodb1 ~]$ cd /u01/app/grid/diag/rdbms/_mgmtdb/ [grid@prodb1 _mgmtdb]$ cd -MGMTDB/ #直接cd會(huì)報(bào)錯(cuò) -bash: cd: -M: invalid option cd: usage: cd [-L|[-P [-e]]] [dir] [grid@prodb1 _mgmtdb]$ cd ./-MGMTDB/ [grid@prodb1 -MGMTDB]$ cd trace [grid@prodb1 trace]$ ls -MGMTDB_aqpc_30744.trc -MGMTDB_dbw0_23833.trm -MGMTDB_m000_31720.trc -MGMTDB_ora_1441.trm -MGMTDB_ora_30748.trc -MGMTDB_rbal_3479.trm -MGMTDB_aqpc_30744.trm -MGMTDB_dbw0_24548.trc -MGMTDB_m000_31720.trm -MGMTDB_ora_1568.trc -MGMTDB_ora_30748.trm -MGMTDB_tt00_24976.trc
清理trc:
[grid@prodb1 trace]$ adrci ADRCI: Release 12.1.0.2.0 - Production on 0 21:11:07 2019 Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved. ADR base = "/u01/app/grid" adrci> show home ADR Homes: diag/rdbms/_mgmtdb/-MGMTDB adrci> purge -age 0 adrci> quit [grid@prodb1 trace]$ ls alert_-MGMTDB.log
備份數(shù)據(jù)庫(kù):
oracle未說(shuō)明需要備份該數(shù)據(jù)庫(kù)。
監(jiān)聽(tīng)端口:
在12.2版本中,MGMT監(jiān)聽(tīng)器默認(rèn)為1525。
空間要求:
適用于:具有外部冗余的Oracle Cluster Registry(OCR)和Grid Infrastructure Management Repository
最低:包含Grid Infrastructure Management Repository(4.5 GB + 300 MB表決文件+ 400 MB OCR)的OCR卷至少為5.2 GB,對(duì)于超過(guò)四個(gè)節(jié)點(diǎn)的集群,每個(gè)節(jié)點(diǎn)加500 MB。例如,六節(jié)點(diǎn)群集分配應(yīng)為6.2 GB。
“Oracle中的Management Repository有什么作用”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識(shí)可以關(guān)注億速云網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實(shí)用文章!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。