- Data is recovered from the main library to the standby repository; An exception was found while opening the repository
sql> ALTER DATABASE open; ALTER DATABASE Open * ERROR at line 1: Ora-10458:standby database requires recovery Ora-01152:file 1 was wasn't restored from a sufficiently old backup Ora-01110:data file 1: '/U01/APP/ORADATA/ORCL/SYSTEM01.DBF ' |
- View alarm log with tail-200 Alert_orcl.log view
Standby Crash recovery need archive log for thread 1 sequence 27156 to continue. Please verify this primary database is transporting redo logs to the standby database. Wait Timeout:thread 1 Sequence 27156 |
The wait timeout from the alarm display, or the archive log to the repository in the main library. You can find out whether the reason is in Tnsname.ora, or if it is a parameter configuration OK;
*.fal_client=
*.fal_server=
- Check them carefully, and tnsping each network service name. Start again
sql> shutdown immediate; Ora-01109:database not open Database dismounted. ORACLE instance shut down. Sql> create SPFile from pfile= '/u01/app/oracle/dbs/pfile_orcl.ora '; File created. Sql> Startup ORACLE instance started. Total System Global area 1603411968 bytes Fixed Size 2213776 bytes Variable Size 1023412336 bytes Database buffers 570425344 bytes Redo buffers 7360512 bytes Database mounted. Ora-10458:standby database requires recovery Ora-01152:file 1 was wasn't restored from a sufficiently old backup Ora-01110:data file 1: '/U01/APP/ORADATA/ORCL/SYSTEM01.DBF ' |
The same symptoms appear. Is the reason the same? Look at the alert log.
Media Recovery waiting for thread 1 sequence 157 Arc3:archival started Arc0:starting ARCH PROCESSES Complete Error 1017 received logging on to the standby ------------------------------------------------------------ Check that the primary and standby is using a password file And Remote_login_passwordfile is set to SHARED or EXCLUSIVE, And that the SYS password are same in the password files. Returning error ORA-16191 ------------------------------------------------------------ Fal[client, ARC2]: Error 16191 connecting to orcl_120 for fetching gap sequence Errors in FILE/U01/APP/DIAG/RDBMS/ORA11G/ORCL/TRACE/ORCL_ARC2_25914.TRC: Ora-16191:primary Log Shipping Client not logged on standby |
Log appears
Check the primary and standby is using a password file and remote_login_passwordfile be set to SHARED or EXCLUSIVE,
And that the SYS password are same in the password files. Returning error ORA-16191.
This should be related to the password file.
- Rebuilding the password file in the main library and uploading it to the repository.
Orapwd FILE=ORAPWORCL password=oracle entries=10; SCP ORAPWORCL [email protected]cle2:/u01/app/oracle/dbs/ |
- Start again and see what's going to happen.
sql> ALTER DATABASE open; Database altered. |
Use Rman to recover the repository; A case cannot be encountered from a standby ora-01152:ora-01110