Solved

Apply archive log manually

Posted on 2011-03-05
4
3,731 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

695 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