jueves, 7 de enero de 2016

ORA-00209: control file blocksize mismatch, check alert log for more info

Error:

Se intenta subir la base de datos normalmente y nos sale el siguiente error.

SQL> startup;
ORACLE instance started.

Total System Global Area  114782432 bytes
Fixed Size                   737504 bytes
Variable Size              92274688 bytes
Database Buffers           20971520 bytes
Redo Buffers                 798720 bytes
ORA-00209: control file blocksize mismatch, check alert log for more info


SQL> exit

Causa:

El parameterfile $ORACLE_HOME/dbs/<sid>.ora tiene un valor diferente en el parámetro DB_BLOCK_SIZE

Salida en el Log de alertas

ALTER DATABASE   MOUNT
Thu Jan  7 14:40:15 2016
ORA-00218: block size 8192 of controlfile does not match DB_BLOCK_SIZE (4096)
ORA-00202: controlfile: '/control/control_jfabre.ctl'
Thu Jan  7 14:40:15 2016
ORA-209 signalled during: ALTER DATABASE   MOUNT...
Thu Jan  7 14:41:18 2016
Restarting dead background process QMN

Solución:

Editar el archivo parameterfile al valor que nos indica en el log de alertas

ORA-00218: block size 8192 of controlfile does not match DB_BLOCK_SIZE (4096)