Meus amigos DBAs, podem fazer crediário para seu presente de dia dos pais. Nosso emprego ainda está garantido.
Simulei uma corrupção de bloco em um datafile, e o Data Recovery Advisor do 11g não detectou problema algum (LIST FAILURE), mesmo que o próprio RMAN (VALIDATE DATABASE) tenha reclamado.
Bom, pelo menos na versão 11.1.0.7… testarei novamente quando o 11gR2 sair…
[oracle@labdb ~]$ dd if=/dev/random of=/u01/app/oradata/ORCL/users01.dbf seek=100 obs=8192 count=2 0+2 records in 0+1 records out 256 bytes (256 B) copied, 0.0005 seconds, 512 kB/s [oracle@labdb ~]$ rman CATALOG=RMAN_USER/RMAN_USER@ORCL TARGET / Recovery Manager: Release 11.1.0.7.0 - Production on Fri Jul 31 15:43:00 2009 Copyright (c) 1982, 2007, Oracle. All rights reserved. connected to target database: ORCL (DBID=1217465568) connected to recovery catalog database RMAN> VALIDATE DATABASE CHECK LOGICAL; Starting validate at 31-JUL-09 starting full resync of recovery catalog full resync complete allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=180 device type=DISK allocated channel: ORA_DISK_2 channel ORA_DISK_2: SID=171 device type=DISK RMAN-06169: could not read file header for datafile 4 error reason 4 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of validate command at 07/31/2009 15:45:02 RMAN-06056: could not access datafile 4 RMAN> LIST FAILURE; starting full resync of recovery catalog full resync complete no failures found that match specification starting full resync of recovery catalog full resync complete RMAN> VALIDATE DATABASE; Starting validate at 31-JUL-09 using channel ORA_DISK_1 using channel ORA_DISK_2 RMAN-06169: could not read file header for datafile 4 error reason 4 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of validate command at 07/31/2009 15:46:19 RMAN-06056: could not access datafile 4 RMAN> LIST FAILURE; starting full resync of recovery catalog full resync complete no failures found that match specification RMAN> EXIT; Recovery Manager complete. [oracle@labdb ~]$
Salve Portilho..!!
Como sempre otimos posts..!!
Isto ai.. heheh.. ! Pra cima deles..!!
Abraços..!!
Muito bom artigo. Fiz alguns testes com uma tabela pequena na tablespace users.dbf. Depois de corromper a tablespace, ainda consigo inserir dados e comitar dados. Então eu fiz um “analyze table compute statistics”. Aq
continuando com o comentário, depois de fazer um “analyze table compute statistics” o RMAN detecta a corrupção de bloco.
Hum, boa dica, obrigado! Estava imaginando em formas de detectar a corrupção.
Abraço !