O Grid Infrastructure Management Repository (GIMR ) é um banco de dados multitenant com um PDB que coleta em tempo real métricas sobre a operação do CHM( RAC cluster health monitor).
O GIMR foi introduzido no Oracle 12.1.0.1 e na 12.1.0.2 virou obrigatório. Na versão 19c, voltou a ser opicional. O GIMR roda somente em um dos nós do cluster e pode estar em um diskgroup com redundância externa.
A Oracle recomenda um diskgroup separado para o GIMR e no ambiente em que peguei, ele estava junto com o OCR. Então resolvi separar.
É disponibilizado pela Oracle um utilitário chamado mdbutil.pl para auxiliar na manipulação desse banco de dados. (Doc ID 2065175.1)
Abaixo vou descrever o procedimento que realizei para corrigir o erro durante a migração utilizando esse utilitário da Oracle.
Verificando o status do GIMR
[grid@teste01 ~]$ /tmp/mdbutil.pl --status mdbutil.pl version : 1.98 2019-09-25 16:04:05: I Checking CHM status... 2019-09-25 16:04:06: I Listener MGMTLSNR is configured and running on teste 2019-09-25 16:04:08: I Database MGMTDB is configured and running on teste 2019-09-25 16:04:08: I Cluster Health Monitor (CHM) is configured and running -------------------------------------------------------------------------------- CHM Repository Path = +OCRVOTE/_MGMTDB/936558468F88273FE053B403010A88B0/DATAFILE/sysmgmtdata.277.1019919313 MGMTDB space used on DG +OCRVOTE = 23640 Mb -------------------------------------------------------------------------------- |
GIMR está em execução no diskgroup +OCRVOTE. Então criei o diskgroup +GIMR e abaixo tento realizar a migração para o diskgroup criado.
[grid@teste01 ~]$ /tmp/mdbutil.pl --mvmgmtdb --target=+GIMR -debug mdbutil.pl version : 1.98 2019-09-20 14:05:43: D Executing: /u01/app/18.3.0/grid/bin/srvctl status diskgroup -g GIMR 2019-09-20 14:05:44: D Exit code: 0 2019-09-20 14:05:44: D Output of last command execution: O Grupo de Discos GIMR está em execução em teste01,teste02 2019-09-20 14:05:44: E Specified Target +GIMR Not accessible on teste01! |
Após olhar logs do banco, grid e não achar nada de anormal, resolvi verificar o código fonte do mdbutil.pl.
Vi que no tratamento do erro ele procurava por: '...is running..." e saída do comando no terminal era "...está em execução". Ou seja, meu problema era o idioma.
"O Grupo de Discos GIMR está em execução em teste01,teste02".
Após entender a causa raiz do erro, realizei a alteração do idioma e executei novamente o comando para migração. Dessa vez funcionou.
Após entender a causa raiz do erro, realizei a alteração do idioma e executei novamente o comando para migração. Dessa vez funcionou.
[grid@teste01 oraInventory]$ export LC_ALL=en_US.utf-8 [grid@teste01 ~]$ /tmp/mdbutil.pl --mvmgmtdb --target=+GIMR mdbutil.pl version : 1.98 Moving MGMTDB, it will be stopped, are you sure (Y/N)? y 2019-09-25 16:04:56: I Checking for the required paths under +GIMR 2019-09-25 16:04:57: I Creating new path +GIMR/_MGMTDB/PARAMETERFILE 2019-09-25 16:04:59: I Creating new path +GIMR/_MGMTDB/CONTROLFILE 2019-09-25 16:05:01: I Creating new path +GIMR/_MGMTDB/ONLINELOG 2019-09-25 16:05:03: I Creating new path +GIMR/_MGMTDB/DATAFILE 2019-09-25 16:05:05: I Creating new path +GIMR/_MGMTDB/TEMPFILE 2019-09-25 16:05:06: I Creating new path +GIMR/_MGMTDB/DATAFILE/PDB$SEED 2019-09-25 16:05:08: I Creating new path +GIMR/_MGMTDB/DATAFILE/TEMPFILE/PDB$SEED 2019-09-25 16:05:09: I Creating new path +GIMR/_MGMTDB/DATAFILE/tjrah_cluster 2019-09-25 16:05:11: I Creating new path +GIMR/_MGMTDB/TEMPFILE/tjrah_cluster 2019-09-25 16:05:11: I Getting MGMTDB Database files location 2019-09-25 16:05:11: I Getting MGMTDB Temp files location 2019-09-25 16:05:11: I Getting MGMTDB PDB PDB$SEED files location 2019-09-25 16:05:11: I Getting MGMTDB PDB PDB$SEED Temp files location 2019-09-25 16:05:12: I Getting MGMTDB PDB GIMR_DSCREP_10 files location 2019-09-25 16:05:12: I Getting MGMTDB PDB GIMR_DSCREP_10 Temp files location 2019-09-25 16:05:16: I Creating temporary PFILE 2019-09-25 16:05:16: I Creating target SPFILE 2019-09-25 16:05:18: I Stopping the Cluster Health Analysis Resource 2019-09-25 16:05:26: I Stopping mgmtdb 2019-09-25 16:05:51: I Copying MGMTDB DBFiles to +GIMR 2019-09-25 16:05:55: I Copying MGMTDB PDB$SEED DBFiles to +GIMR 2019-09-25 16:06:00: I Copying MGMTDB PDB DBFiles to +GIMR 2019-09-25 16:06:48: I Creating the CTRL File 2019-09-25 16:07:10: I The CTRL File has been created and MGMTDB is now running from +GIMR 2019-09-25 16:07:10: I Setting MGMTDB SPFile location 2019-09-25 16:07:11: I Modifing the init parameter 2019-09-25 16:07:11: I Removing old MGMTDB 2019-09-25 16:07:12: I Changing START_DEPENDENCIES 2019-09-25 16:07:12: I Changing STOP_DEPENDENCIES 2019-09-25 16:07:12: I Restarting MGMTDB using target SPFile 2019-09-25 16:08:27: I Starting the Cluster Health Analysis Resource 2019-09-25 16:08:29: I MGMTDB Successfully moved to +GIMR! |
Comentários