Use Rman to recover the repository; A case is not available when encountering a standby ora-01152:ora-01110

Source: Internet
Author: User

    • 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.