Monday, November 13, 2017

ORA-19809: limit exceeded for recovery files

While trying to duplicate the database using RMAN we are encountering error below:


ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '+DATA/qa1tst/datafile/system.593.959955191'

released channel: c1
released channel: c2
released channel: c3
released channel: c4
released channel: c5
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 11/13/2017 14:24:49
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
ORA-19870: error while restoring backup piece 933347_PRD1DAD_i7sjseoh_1_1
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 65011712 bytes disk space from 128849018880 limit

by looking at the alert logs for the instance we noticed the error that db_recovery_file_dest_size is fully used.

ORA-19815: WARNING: db_recovery_file_dest_size of 128849018880 bytes is 100.00% used, and has 0 remaining bytes available.


That is the reason for this error.

We have increased the size in init parameter while doing recovery and recovery has worked this time.

Thursday, October 12, 2017

Warning: ORA-16809: multiple warnings detected for the database

Getting the error Warning: ORA-16809: multiple warnings detected for the database when using show configuration in dgmgrl

show database qa3tstp gave me the hit to check if the standby logs are created on primary or not.

Apparently they were not.

In short:

Stopped DR database
Created standby log on primary
Started DR database



Details:

DGMGRL> show configuration

Configuration - qa3tst_dg

  Protection Mode: MaxPerformance
  Members:
  qa3tstp - Primary database
    Warning: ORA-16809: multiple warnings detected for the database

    qa3tstd - Physical standby database
      Warning: ORA-16789: standby redo logs configured incorrectly

Fast-Start Failover: DISABLED

Configuration Status:
WARNING   (status updated 36 seconds ago)

DGMGRL>

DGMGRL> show database qa3tstp

Database - qa3tstp

  Role:               PRIMARY
  Intended State:     TRANSPORT-ON
  Instance(s):
    qa3tstp1
    qa3tstp2

  Database Warning(s):
    ORA-16789: standby redo logs configured incorrectly
    ORA-16789: standby redo logs configured incorrectly

Database Status:
WARNING

DGMGRL>



SQL> select group#, bytes/1024/1024 Log_file_size_MB from v$standby_log;

no rows selected

SQL>




[oracle@ractestdr01n01 (qa3tstd1) dbs]$ srvctl stop database -d qa3tstd




SQL> select group#, bytes/1024/1024 Log_file_size_MB from v$log;

    GROUP# LOG_FILE_SIZE_MB
---------- ----------------
         1              100
         2              100
         3              100
         4              100
         5              100
         6              100

6 rows selected.

SQL>
SQL>
SQL> alter database add standby logfile thread 1 size 104857600;
alter database add standby logfile thread 1 size 104857600;
alter database add standby logfile thread 1 size 104857600;

Database altered.

SQL>
Database altered.

SQL>
Database altered.

SQL> alter database add standby logfile thread 2 size 104857600;
alter database add standby logfile thread 2 size 104857600;
alter database add standby logfile thread 2 size 104857600;

Database altered.

SQL>
Database altered.

SQL>
Database altered.

SQL>
SQL>
SQL>



[oracle@ractestdr01n01 (qa3tstd1) dbs]$ srvctl start database -d qa3tstd




DGMGRL> connect sys
Password:
Connected as SYSDG.
DGMGRL> show configuration

Configuration - qa3tst_dg

  Protection Mode: MaxPerformance
  Members:
  qa3tstp - Primary database
    qa3tstd - Physical standby database

Fast-Start Failover: DISABLED

Configuration Status:
SUCCESS   (status updated 6 seconds ago)

DGMGRL>

In case the standby logs are no there on DR side then you need to create them as well.

Creating the standby logs on DR