Oracle Dataguard Recovery Steps & Status Check
Steps below can be used to recover disconnected & unrecoverable standby databases. The commands below should be run on standby server. 1) Create pfile: create pfile='/tmp/pfile.ora' from spfile; 2) Drop old database. RMAN> startup mount; RMAN> sql 'alter system enable restricted session'; RMAN> drop database including backups noprompt; 3) Create spfile from pfile. sqlplus / as sysdba create spfile from pfile='/tmp/pfile.ora'; startup nomount; 4) Start database recover operation. rman target sys@primarydb auxiliary sys@stbydb (names coming from tnsnames.ora) duplicate target database for standby from active database dorecover nofilenamecheck; 5) After recovery completed, run the command below: alter database recover managed standby database disconnect from session; Note: If you get an error, shutdown the database and re-mount it. (startup mount) 6) Run the select below, if GAP_STATUS column equals to "NO GAP" then recover the da