ORA-16179: incremental changes to “log_archive_dest_1” not allowed with SPFILE

En el articulo de hoy vamos a resolver un problema muy común que me consultan por diferentes medios.

ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE
English: The transformation of SQL statements.
English: The transformation of SQL statements. (Photo credit: Wikipedia)

Este error aparece cuando tratamos de cambiar el ARCHIVE LOG DESTINATIONde nuestra base de datos a un nuevo path.

Aca vamos a poner un ejemplo de lo que ocurrio en un sitio donde estaba dando soporte.

La base de datos cae por que no puede escribir los logs en un filesystem local.

Al parecer nunca habian configurado los parametros correctamente y dejaron asi todos los valores por default.

SQL> sho parameter LOG_ARCHIVE_DEST_1

NAME                                 TYPE      VALUE
------------------------------------ --------- ------------------
log_archive_dest_1 string
log_archive_dest_10 string
log_archive_dest_11 string
log_archive_dest_12 string
log_archive_dest_13 string
log_archive_dest_14 string
log_archive_dest_15 string
log_archive_dest_16 string
log_archive_dest_17 string
log_archive_dest_18 string
log_archive_dest_19 string

SQL>
EL error nos aparece en el alert log de la base de datos.
ARC1: Closing local archive destination LOG_ARCHIVE_DEST_1: '/u01/app/oracle/product/11.2.0/db_abap/dbs/arch1_9_792089897.dbf' (error 19502) (ABAP1)
ARC1: I/O error 19502 archiving log 1 to '/u01/app/oracle/product/11.2.0/db_abap/dbs/arch1_9_792089897.dbf'
ARCH: Archival stopped, error occurred. Will continue retrying
ORACLE Instance ABAP1 - Archival Error
ORA-16038: log 1 sequence# 9 cannot be archived
ORA-19502: write error on file "", block number (block size=)
ORA-00312: online log 1 thread 1: '+DATA/abap/onlinelog/group_1.263.792089993'
ARCH: Encountered disk I/O error 19502
ARCH: Closing local archive destination LOG_ARCHIVE_DEST_1: '/u01/app/oracle/product/11.2.0/db_abap/dbs/arch1_8_792089897.dbf' (error 19502) (ABAP1)
Ahora cuando se procede a cambiar el parametro LOG_ARCHIVE_DEST_1, nos arroja un error.
SQL> alter system set LOG_ARCHIVE_DEST_1='+DATA' scope=both sid='*';
alter system set LOG_ARCHIVE_DEST_1='+DATA' scope=both sid='*'
*
ERROR at line 1:
ORA-32017: failure in updating SPFILE
ORA-16179: incremental changes to "log_archive_dest_1" not allowed with SPFILE
Solución: La sentencia SQL correcta es :
SQL> alter system set LOG_ARCHIVE_DEST_1='LOCATION=+DATA' scope=spfile sid='*';System altered.

Espero les sea de utilidad.

Saludos desde Argentina a todos mis colegas en el mundo !
Regards from Argentina to all my partners on the world !

One thought on “ORA-16179: incremental changes to “log_archive_dest_1” not allowed with SPFILE

Comments are closed.