Solved

Apply archive log manually

Posted on 2011-03-05
4
2,777 Views
Last Modified: 2013-12-19
Customer requested restore backup from production to test database. So restore team restored the backup but now when I am openning database getting error. So my team members asked me to manually apply archive logs. I would really appreciate if you provide me steps how to manually apply archive logs.
0
Comment
Question by:hussainkhan22
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
gopisera earned 500 total points
ID: 35045753
Connecting to target test database instance  After restoring.

sql> recover database using backup control file until cancel;

it will ask for the archive file with auto or cancel
first type cancel.
Then you should get the message media recovery cancelled.
if you doesn't get this message then you need to apply the archives to open the database
Then  first transfer the archive log files from production server to test database  server

Then issue the same command under the target instancce
sql>recover database using backup control file until cancel;

Then apply the archive file now with the path(as we tranfer the files from production to target) mentioned
such as

'/ora...../archive1000.dbf'

Apply all the archives.

Using the same procedure
when you type  cancel you should get as media recovery cancelled.
then you can open the database with   alter database open reset logs;

Let me know if you require any more infomation

0
 
LVL 3

Expert Comment

by:gopisera
ID: 35045761
One more thing is if you want to apply the archives in auto mode.

Then first set you archive destination path
log_archive_dest  to which the archives are transferred from production.

Then you can use auto [type auto] instead of saying the file path
'/ora../arcive100.dbf'



:)
0
 

Author Comment

by:hussainkhan22
ID: 35051161
I need to apply archive log files from the backup which is on tape. I really appreciate your help if you provide all the steps thanks for your time and help
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 35056415
You need to pull the necessary files off of tape first.  If you put them back where they belong a normal recovery will locate them.

If not, you will be asked for their location when recovery needs them.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now