Solved

Apply archive log manually

Posted on 2011-03-05
4
3,486 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 77

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

730 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