Question

Restore Controlfile From RMAN

Asked by: xoxomos

I used this script to backup.
connect target /
shutdown immediate;
startup mount;
run {
backup
format '/u05/%d_%s_%p'
filesperset 4
maxsetsize 30G
(database include current controlfile);
}
BACKUPCOMPLETED


Now I need to restore everything starting with the controlfile, but everything i've seen shows i need to know the DBID in order to restore the controlfile.  I don't know what that DBID is.  Is there a way to restore the controlfile, then completely restore the database without knowing the DBID?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-11-03 at 09:45:40ID24868033
Topic

Oracle Database

Participating Experts
2
Points
350
Comments
50

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. restore controlfile
    I'm trying to restore the contolfiles using RMAN. My database is in a nomount mode. I'm getting this error, please help. Recovery Manager: Release 8.1.7.1.0 - Production RMAN-06006: connected to target database: zulu (not mounted) RMAN-06009: using target database controlfi...
  2. ORA-00205: error in identifying controlfile
    Friends, SVRMGR> startup ORACLE instance started. Total System Global Area 35052944 bytes Fixed Size 64912 bytes Variable Size 18030592 bytes Database Buffers ...
  3. ORA-01503: CREATE CONTROLFILE failed
    I am making a copy of our production database on another server and I am trying to give this new instance the DB name "IQ1", but I am getting the following error message when running the create new controlfile script. I don't understand why it is erroring on this fi...
  4. controlfiles
    error ora-00205: error in identifying controlfile, check alert log for more info please tell me to fix the problem
  5. Multiplex Controlfiles in ASM
    I have been trying to figure out how to multiplex a controlfile that is in an ASM instance. Normally I would simply shutdown the DB, copy an existing controlfile to my desired location, update the pfile or spfile to the desired location and startup the DB. Since my existing c...
  6. Ora-01207 Old Controlfile Error
    We had a power outage overnight, when I came in this morning, I powered everything back up and then attempted to start our Oracle 8i database, but am getting the following errors ORA-01122: database file 1 failed verification check ORA-01110: data file 1: 'E:\ORADATA\HDDB\S...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: xoxomosPosted on 2009-11-03 at 10:07:35ID: 25731705

Here i'm trying to restore.  There is a directory
oracle@bb7b:/u01/app/oracle$ ls -la
total 80
drwxr-xr-x   5 oracle   oracle      8192 Nov  3 09:35 .
drwxr-xr-x   3 oracle   oracle      1024 Mar  9  2005 ..
drwxr-xr-x   3 oracle   oracle      1024 Nov  2 15:33 admin
drwxr-xr-x   3 oracle   oracle      1024 Nov  3 09:35 oradata
drwxr-xr-x   3 oracle   oracle      1024 Oct 30 16:14 product
but RMAN does not recognize it?

RMAN> run {
2> allocate channel c1 device type disk
3> format '/u05/%d_%s_%p';
4>  restore database;
5> }

allocated channel: c1
channel c1: sid=543 devtype=DISK

Starting restore at 03-NOV-09

creating datafile fno=1 name=/u01/app/oracle/oradata/BB60/system01.dbf
released channel: c1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/03/2009 09:57:17
ORA-01180: can not create datafile 1
ORA-01110: data file 1: '/u01/app/oracle/oradata/BB60/system01.dbf'


 

by: it-rexPosted on 2009-11-03 at 10:08:57ID: 25731717

i do not think so
just try
startup nomount;
restore controlfile;
if it fails try
restore controlfile from and try your backuppieaces most of the time you can identify it by looking

 

by: it-rexPosted on 2009-11-03 at 10:18:32ID: 25731791

if you rae not using either a flash recovery area or a recovery catalog.
You are trying to restore a control file as follows, and you receive an error message stating
that you must explicitly set the database identifier (DBID):

RMAN> connect target /
RMAN> startup nomount;
RMAN> restore controlfile from autobackup;
RMAN specifically instructs you to set the DBID first:
RMAN-06495: must explicitly specify DBID with SET DBID command
You dont know the DBID for your database, and you arent sure how to find the DBID.
Without a control file for your database, you cant mount the database and query the DBID
value from the V$DATABASE view.

You can determine the DBID of your database in one of the following ways:
" You can derive the DBID from an autobackup file.
" You can retrieve the DBID from RMAN output.
" You can write the DBID to the alert.log file.



 

by: mrjoltcolaPosted on 2009-11-03 at 10:23:28ID: 25731837

Can you explain your scenario? Is this a true failure, or are you practicing?

Setting the DBID is needed only under certain conditions, such as not using an RMAN catalog and not using a flash_recovery_area with standard naming. I rarely ever need to know the DBID.

If you use autobackups, all that is required is to set the ORACLE_SID and have db_recovery_file_dest set in the init.ora when starting.

 

by: mrjoltcolaPosted on 2009-11-03 at 10:28:06ID: 25731885

The best practice is to configure and use RMAN such that setting the DBID is not required. Knowing the DBID to do the restore is only needed if you are neither using an RMAN catalog nor using flash_recovery_area with autobackups, and don't know the backup piece to restore from.
You should always turn on controlfile autobackups.

RMAN> configure controlfile autobackup on;

For each backup, or structural change to the database, RMAN will write a separate autobackup to the <flash_recovery_area>/<ORACLE_SID>/autobackup/<date>/c-<DBID>... file. So all you would need to restore would be to set ORACLE_SID in your environment, and startup a new instance with db_recovery_file_dest set (FRA) and issue:

RMAN> recover controlfile from autobackup;

 

by: xoxomosPosted on 2009-11-03 at 10:32:08ID: 25731926

Correct, i'm not using flashback and not using a catalog.  8-(
Kinda long story.  I had database with SID of bb60.  I want to set up a test standby on the same machine with the name bb60 so i used a utility to change the SID to bb90.  At the same time i changed the dbid.
The RMAN backup took place before all this happened.  Anyhow i got tangled to the point I thought it just best to just clear out the datafiles etc and restore from RMAN.  The only thing i have that might resemble a controlfile is whatever is included in the (including current controlfile) of the rman backup.

 

by: xoxomosPosted on 2009-11-03 at 10:33:15ID: 25731936

"You should always turn on controlfile autobackups."
:-)  yes .... i see that now :-(

 

by: mrjoltcolaPosted on 2009-11-03 at 10:41:41ID: 25732005

Ok. Well it is always a good practice to record the DBID when you first create a database. I keep it in a file dbids.txt. You can query it from V$DATABASE, or when you first do an RMAN backup, you'll see DBID printed when RMAN connects.

But that doesn't help you now. You can still restore the controlfile explicitly from the backup piece. Look for a small backuppiece in the backupset.

Example:

RMAN> restore controlfile from 'F:\flash_recovery_area\test\backupset\2009_11_03\O1_MF_NCNNF_TAG20091103T133358_5H0XY9C2_.BKP';

Starting restore at 03-NOV-09
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=99 device type=DISK

channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
output file name=C:\ORACLE\ORADATA\TEST\CONTROL01.CTL
output file name=C:\ORACLE\ORADATA\TEST\CONTROL02.CTL
Finished restore at 03-NOV-09

 

by: it-rexPosted on 2009-11-03 at 10:43:37ID: 25732021

again
where are you stuck right now?
if you startup nomount;and try to restore the controlfile from any;
restore controlfile from autobackup;
or
restore controlfile from "xxx"

what do you get?

 

by: xoxomosPosted on 2009-11-03 at 10:47:50ID: 25732071

Here's a list of pieces from the backup set.  I will now start with bb60_19_1 and
restore controlfile from /u05/bb60_19_1
and see what happens.

 

by: xoxomosPosted on 2009-11-03 at 10:50:19ID: 25732112


RMAN> restore controlfile from '/u05/BB60_19_1';  

Starting restore at 03-NOV-09
using channel ORA_DISK_1

channel ORA_DISK_1: restoring control file
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/03/2009 10:49:09
ORA-19697: standby control file not found in backup set

 

by: it-rexPosted on 2009-11-03 at 10:53:19ID: 25732154

try all the pieces..

you can also list thier names and sizes so we can look..

 

by: xoxomosPosted on 2009-11-03 at 10:53:46ID: 25732158

Mmmmm....third try, it restored something ?


RMAN> restore controlfile from '/u05/BB60_16_1';

Starting restore at 03-NOV-09
using channel ORA_DISK_1

channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
output filename=/u01/app/oracle/product/10.2.0.1/db_1/dbs/control01.ctl
output filename=/u01/app/oracle/product/10.2.0.1/db_1/dbs/control02.ctl
output filename=/u01/app/oracle/product/10.2.0.1/db_1/dbs/control03.ctl
Finished restore at 03-NOV-09

RMAN>

 

by: it-rexPosted on 2009-11-03 at 10:54:48ID: 25732169

if /u05/bb60_19_1 is the directory name I do not think that you can do it like that although you can do catalog start with /diectory ;
for controlfile restore you need to specify the file in the correct path

 

by: mrjoltcolaPosted on 2009-11-03 at 10:57:40ID: 25732198

Now startup mount, restore database, recover database, then open noresetlogs.

 

by: xoxomosPosted on 2009-11-03 at 10:57:45ID: 25732200

No the /u05 is the directory the other is a filename for a backuppiece.  I forgot to put up the list a couple steps back.

drwxr-xr-x   3 oracle   oracle      1024 Oct 28 13:04 .
drwxr-xr-x  14 root     root        8192 Oct  5 20:03 ..
-rw-r-----   1 oracle   oracle   15489114112 Oct 27 19:23 BB60_10_1
-rw-r-----   1 oracle   oracle   12027756544 Oct 27 20:06 BB60_11_1
-rw-r-----   1 oracle   oracle   11537432576 Oct 27 20:45 BB60_12_1
-rw-r-----   1 oracle   oracle   4320755712 Oct 27 21:04 BB60_13_1
-rw-r-----   1 oracle   oracle   8484102144 Oct 27 21:32 BB60_14_1
-rw-r-----   1 oracle   oracle   7056531456 Oct 27 21:57 BB60_15_1
-rw-r-----   1 oracle   oracle   3153084416 Oct 27 22:09 BB60_16_1
-rw-r-----   1 oracle   oracle   146776064 Oct 27 22:10 BB60_17_1
-rw-r-----   1 oracle   oracle   33357824 Oct 27 22:10 BB60_18_1
-rw-r-----   1 oracle   oracle   1638400 Oct 27 22:10 BB60_19_1
-rw-r-----   1 oracle   oracle   23359881216 Oct 27 14:29 BB60_6_1
-rw-r-----   1 oracle   oracle   21278253056 Oct 27 15:43 BB60_7_1
-rw-r-----   1 oracle   oracle   21348368384 Oct 27 17:06 BB60_8_1
-rw-r-----   1 oracle   oracle   17956732928 Oct 27 18:21 BB60_9_1

 

by: mrjoltcolaPosted on 2009-11-03 at 10:58:15ID: 25732210

OOps, you don't need recover database if you took a cold backup. Never mind that.

 

by: it-rexPosted on 2009-11-03 at 10:58:50ID: 25732214

you got it this;
 is the control file now;
 alter database mount ;
and ;
restore database;

 

by: xoxomosPosted on 2009-11-03 at 10:59:20ID: 25732219

If this thing just mounts and restores i'll be content. :-)

 

by: it-rexPosted on 2009-11-03 at 11:00:29ID: 25732230

u will:)

 

by: xoxomosPosted on 2009-11-03 at 11:02:54ID: 25732263

Gotta run to a meeting and explain my miserable failure so far.  Be back in about an hour.

 

by: xoxomosPosted on 2009-11-03 at 13:02:41ID: 25733597

RMAN says it cannot creat  the datafile.  The directory is there so i don't know why not??



RMAN> restore datafile 1;

Starting restore at 03-NOV-09
using channel ORA_DISK_1

creating datafile fno=1 name=/u01/app/oracle/oradata/BB60/system01.dbf
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/03/2009 13:00:15
ORA-01180: can not create datafile 1
ORA-01110: data file 1: '/u01/app/oracle/oradata/BB60/system01.dbf'

RMAN> restore database;

Starting restore at 03-NOV-09
using channel ORA_DISK_1

creating datafile fno=1 name=/u01/app/oracle/oradata/BB60/system01.dbf
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/03/2009 13:01:34
ORA-01180: can not create datafile 1
ORA-01110: data file 1: '/u01/app/oracle/oradata/BB60/system01.dbf'

 

by: it-rexPosted on 2009-11-03 at 13:14:03ID: 25733737

if the drives config and path for the source DB the backup was took from is diffrent than the target you need to use
set newname for datafile;

 

by: xoxomosPosted on 2009-11-03 at 13:17:23ID: 25733781

I believe i want to just restore to the same place it existed at time of the backup.

 

by: it-rexPosted on 2009-11-03 at 13:19:37ID: 25733815

also it looks like RMAN thinking that there are no backups available;
you need to catalog your backup pieces
doing
catalog start with 'paththat holds the pieces';

 

by: xoxomosPosted on 2009-11-03 at 13:21:20ID: 25733845

I have no catalog.

 

by: mrjoltcolaPosted on 2009-11-03 at 13:22:52ID: 25733862

The directory must exist prior to the restore. RMAN will not create the directory.

 

by: it-rexPosted on 2009-11-03 at 13:25:22ID: 25733903

i am not talking about the recovery catalog ;i mean to make your controlfile "the source and brain of rman aware of the pieces"

just do this from rman
catalog start with 'paththat holds the pieces';
 

 

by: mrjoltcolaPosted on 2009-11-03 at 13:31:40ID: 25733985

@it-rex: RMAN is trying to restore a datafile, so it has found a backup. The problem is likely that he hasn't created the directory:

/u01/app/oracle/oradata/BB60/

 

by: it-rexPosted on 2009-11-03 at 13:44:19ID: 25734139

@mrjoltcola
check Doc ID:  727655.1
actually I have got the same error like a year ago

 

by: xoxomosPosted on 2009-11-03 at 13:44:25ID: 25734140

ooooooook

 

by: xoxomosPosted on 2009-11-03 at 13:49:13ID: 25734178


RMAN> connect target /

connected to target database: BB60 (DBID=2427457603, not open)
using target database control file instead of recovery catalog

RMAN> catalog start with '/u05';

searching for all files that match the pattern /u05
no files found to be unknown to the database

RMAN> catalog start with  '/u05/%d_%s_%p';  

searching for all files that match the pattern /u05/%d_%s_%p
no files found to be unknown to the database

RMAN>

 

by: xoxomosPosted on 2009-11-03 at 13:49:56ID: 25734184

oracle@bb7b:/ulog$ ls /u05
BB60_10_1  BB60_12_1  BB60_14_1  BB60_16_1  BB60_18_1  BB60_6_1   BB60_8_1   rman
BB60_11_1  BB60_13_1  BB60_15_1  BB60_17_1  BB60_19_1  BB60_7_1   BB60_9_1

 

by: it-rexPosted on 2009-11-03 at 13:53:46ID: 25734211

Are these backup pieces generated from rman backup command

 

by: xoxomosPosted on 2009-11-03 at 13:55:38ID: 25734227

yes

I used this script to backup.
connect target /
shutdown immediate;
startup mount;
run {
backup
format '/u05/%d_%s_%p'
filesperset 4
maxsetsize 30G
(database include current controlfile);
}
BACKUPCOMPLETED

 

by: it-rexPosted on 2009-11-03 at 14:22:45ID: 25734482

Catalog start with '/u05/';

 

by: mrjoltcolaPosted on 2009-11-03 at 14:22:55ID: 25734484

>>I believe i want to just restore to the same place it existed at time of the backup.

Please show:

ls -l /u01/app/oracle/oradata/BB60

 

by: xoxomosPosted on 2009-11-03 at 14:29:12ID: 25734539

oracle@bb7b:/u02/app/oracle/oradata/BB60$ ls -la /u01/app/oracle/oradata/BB60
total 32
drwxr-xr-x   2 oracle   oracle      1024 Nov  3 09:35 .
drwxr-xr-x   3 oracle   oracle      1024 Nov  3 09:35 ..
oracle@bb7b:/u02/app/oracle/oradata/BB60$

 

by: xoxomosPosted on 2009-11-03 at 14:30:11ID: 25734548

oracle@bb7b:/u01/app/oracle/oradata$ ls -la
total 48
drwxr-xr-x   3 oracle   oracle      1024 Nov  3 09:35 .
drwxr-xr-x   5 oracle   oracle      8192 Nov  3 09:35 ..
drwxr-xr-x   2 oracle   oracle      1024 Nov  3 09:35 BB60

 

by: it-rexPosted on 2009-11-03 at 14:34:58ID: 25734585

Please try the command I gave u with a trailing/

 

by: xoxomosPosted on 2009-11-03 at 14:39:09ID: 25734632

:-)

RMAN> catalog start with '/u05/';

using target database control file instead of recovery catalog
searching for all files that match the pattern /u05/

List of Files Unknown to the Database
=====================================
File Name: /u05/BB60_16_1
File Name: /u05/BB60_17_1
File Name: /u05/BB60_18_1
File Name: /u05/BB60_19_1
File Name: /u05/rman/BB60_370_1
File Name: /u05/rman/BB60_363_1
File Name: /u05/rman/BB60_371_1
File Name: /u05/rman/BB60_364_1
File Name: /u05/rman/BB60_372_1
File Name: /u05/rman/BB60_373_1
File Name: /u05/rman/BB60_365_1
File Name: /u05/rman/BB60_374_1
File Name: /u05/rman/BB60_375_1
File Name: /u05/rman/BB60_366_1
File Name: /u05/rman/BB60_367_1
File Name: /u05/rman/BB60_368_1
File Name: /u05/rman/BB60_369_1
File Name: /u05/rman/mget

 

by: mrjoltcolaPosted on 2009-11-03 at 14:39:40ID: 25734637

it-rex may be right. I did not read the metalink article he referred to yet.

Granted, the backup included the controlfile would not know about the backup pieces taken after the controlfile was backed up, but cataloging should do the trick. Try cataloguing the full, explicit path of the piece.

catalog backuppiece '/u05/BB60_17_1';

 

by: xoxomosPosted on 2009-11-03 at 14:40:35ID: 25734646


Do you really want to catalog the above files (enter YES or NO)? yes
cataloging files...
cataloging done

List of Cataloged Files
=======================
File Name: /u05/BB60_16_1
File Name: /u05/BB60_17_1
File Name: /u05/BB60_18_1
File Name: /u05/BB60_19_1
File Name: /u05/rman/BB60_370_1
File Name: /u05/rman/BB60_363_1
File Name: /u05/rman/BB60_371_1
File Name: /u05/rman/BB60_364_1
File Name: /u05/rman/BB60_372_1
File Name: /u05/rman/BB60_373_1
File Name: /u05/rman/BB60_365_1
File Name: /u05/rman/BB60_374_1
File Name: /u05/rman/BB60_375_1
File Name: /u05/rman/BB60_366_1
File Name: /u05/rman/BB60_367_1
File Name: /u05/rman/BB60_368_1
File Name: /u05/rman/BB60_369_1

List of Files Which Where Not Cataloged
=======================================
File Name: /u05/rman/mget
  RMAN-07517: Reason: The file header is corrupted

 

by: mrjoltcolaPosted on 2009-11-03 at 14:41:34ID: 25734658

Or that! Good eye, it-rex.

This is why controlfile autobackups are preferred, they are taken after the backup, so they include all the backup pieces and archivelog info from the backup. When you include them in the backupset itself, the record is written _after_ the controlfile copy is taken, so it is not until the next backup that the controlfile backup includes that. It is always 1 behind.

 

by: xoxomosPosted on 2009-11-03 at 14:43:39ID: 25734677

Right or not, at least it's not erroring out as quickly
It looks like it's seriously trying to recover !


RMAN> restore database;

Starting restore at 03-NOV-09
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=540 devtype=DISK

channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00003 to /u01/app/oracle/product/9.2/dbs/scratch
channel ORA_DISK_1: reading from backup piece /u05/BB60_14_1
ORA-19870: error reading backup piece /u05/BB60_14_1
ORA-19504: failed to create file "/u01/app/oracle/product/9.2/dbs/scratch"
ORA-27040: file create error, unable to create file
SVR4 Error: 2: No such file or directory
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00038 to /u01/app/oracle/oradata/BB60/bb_jreport_data_file1.dbf
restoring datafile 00039 to /u01/app/oracle/oradata/BB60/bb_jreport_indx_file1.dbf
channel ORA_DISK_1: reading from backup piece /u05/BB60_19_1
channel ORA_DISK_1: restored backup piece 1
piece handle=/u05/BB60_19_1 tag=TAG20091027T130747
channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00020 to /u01/app/oracle/oradata/BB60/CMS_FILES_ORGS_DATA_file1.dbf
restoring datafile 00028 to /u01/app/oracle/oradata/BB60/bb_bb60_stats_indx_file2.dbf
restoring datafile 00035 to /u01/app/oracle/oradata/BB60/CMS_FILES_USERS_INDX_file2.dbf
restoring datafile 00036 to /u01/app/oracle/oradata/BB60/SYSAUX.dbf
channel ORA_DISK_1: reading from backup piece /u05/rman/BB60_370_1

 

by: mrjoltcolaPosted on 2009-11-03 at 14:46:44ID: 25734722

Remember, you skip the "recover" step since it was a consistent backup (you took it in mount mode).

Also since you restored from a backup controlfile, you'll have to open with resetlogs. Next time, keep current copies of your controlfiles prior to blowing stuff away. :)

 

by: xoxomosPosted on 2009-11-03 at 14:48:27ID: 25734749

point increase?

 

by: xoxomosPosted on 2009-11-03 at 14:52:36ID: 31649707

Looks like this will take a while since it's on a jerrigged nfs somethingoranother.
Think i'll catch that metalink now and let everybody know tomorrow.
Thanks all :-)

 

by: it-rexPosted on 2009-11-03 at 14:56:51ID: 25734817

Good Luck!
let us know...

 

by: xoxomosPosted on 2009-11-05 at 09:50:47ID: 25751993

My error again mrjoltcola, you were right about that recover.  Before opening is had to key in a bunch of verbiage  even though it had previously been noarchivelog mode.

SQL> recover database until cancel;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done


SQL> recover database using backup controlfile until cancel;
ORA-00279: change 3313418737689 generated at 10/22/2009 14:18:52 needed for
thread 1
ORA-00289: suggestion :
/u01/app/oracle/product/10.2.0.1/db_1/dbs/arch1_13314_625450929.dbf
ORA-00280: change 3313418737689 for thread 1 is in sequence #13314


Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
Media recovery cancelled.
SQL> alter database open resetlogs;

Database altered.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...