Home » RDBMS Server » Backup & Recovery » RMAN Not seeing backupsets (Oracle11g Enterprise Edition)
RMAN Not seeing backupsets [message #512225] Fri, 17 June 2011 11:24 Go to next message
SniperJane
Messages: 11
Registered: June 2011
Junior Member
Hi All,
I was handed a folder that consists of all the files (Datafiles, controlfiles,spfiles, backupsets etc) for a database. The SID is Oracle.

So now I have two options:
1. Attach the Datafiles
2. Restoring the Database with the Backupsets.

Option 1:
I tried with working with the control files but didnt get anywhere because I did not understand how to attach the datafiles (I tried modifying the control file, to no avail).

I do have an idea tho, I tried replacing the spfiles and pfile then copying the datafiles (replacing the existing ones)...but I could not create the control file as well...


Option 2:
I do not know how to make RMAN see the backupsets of the Old database; despite they are in the same location as those of the new database.


Everypart of me want to use the Backupsets. What am I doing wrong?


SniperJane
Re: RMAN Not seeing backupsets [message #512227 is a reply to message #512225] Fri, 17 June 2011 11:32 Go to previous messageGo to next message
BlackSwan
Messages: 22800
Registered: January 2009
Senior Member
>What am I doing wrong?
Arm wrestling with a COMPLEX software application (Oracle RDBMS) & not knowing enough to be productive.

What Operating System name & version?

post FULL directory listing of the file you have to work with.

You are going to need the EXACT same version of Oracle software that generated the files
Re: RMAN Not seeing backupsets [message #512235 is a reply to message #512225] Fri, 17 June 2011 11:44 Go to previous messageGo to next message
Michel Cadot
Messages: 59166
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Guess! You cannot do it by just guessing how to do it, you have to first studying the product.
All the answers to your both ways are in:
Database Concepts
Database SQL Reference
Database Backup and Recovery Basics
Database Backup and Recovery Reference
Database Backup and Recovery Advanced User's Guide

Regards
Michel

[Updated on: Fri, 17 June 2011 11:44]

Report message to a moderator

Re: RMAN Not seeing backupsets [message #512239 is a reply to message #512227] Fri, 17 June 2011 11:51 Go to previous messageGo to next message
SniperJane
Messages: 11
Registered: June 2011
Junior Member
My O/S : windows XP service pack 3
directory:
c:\app\Private\~
subfolders:
\admin
\flash_recovery_area
\oracle\backupset\<all backupsets>
\oradata
\Oracle\<all data and control files>
\product
\diag
\cfgtoollogs
\product

The Backupsets are in the folders named by date done.


The scenario is that I was working on one machine and left and went accross to another. Copy all my files and formatted the drive. So now I wish ti set back up the environment. I installed the Oracle database(same Oracle SID) and used same directory structure.

Thanks.
Re: RMAN Not seeing backupsets [message #512240 is a reply to message #512239] Fri, 17 June 2011 11:54 Go to previous messageGo to next message
SniperJane
Messages: 11
Registered: June 2011
Junior Member
Michel,
I do backup and recovery all the time but has never had to move the database. This is new to me. I read those guides and they do not assist me in my current situation.
When I tell RMAN
LIST BACKUPS
I see only the backup belonging to the new database, not those from the old that I copied over.
Re: RMAN Not seeing backupsets [message #512242 is a reply to message #512240] Fri, 17 June 2011 11:55 Go to previous messageGo to next message
SniperJane
Messages: 11
Registered: June 2011
Junior Member
This scanario is moving the database to a new host and using the RMAN backupsets to restore to Normalcy.
Re: RMAN Not seeing backupsets [message #512244 is a reply to message #512242] Fri, 17 June 2011 12:08 Go to previous messageGo to next message
BlackSwan
Messages: 22800
Registered: January 2009
Senior Member
It would be helpful if you followed Posting Guidelines - http://www.orafaq.com/forum/t/88153/0/

were the backups hot or cold backups?

[Updated on: Fri, 17 June 2011 12:10]

Report message to a moderator

Re: RMAN Not seeing backupsets [message #512245 is a reply to message #512244] Fri, 17 June 2011 12:12 Go to previous messageGo to next message
SniperJane
Messages: 11
Registered: June 2011
Junior Member
OK.
Here is an exact printout from RMAN when I issue List backup
To my knowledge once I cant see backups listed then RMAN doesnt consider it a valid backup (or it's not even in its repository):

RMAN> list backup
2> ;


using target database control file instead of recovery catalog

List of Backup Sets
===================


BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
1 Full 1.33G DISK 00:04:28 08-JUN-11
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20110608T042527
Piece Name: C:\APP\PRIVATE\FLASH_RECOVERY_AREA\ORACLE\BACKUPSET\2011_06_
08\O1_MF_NNNDF_TAG20110608T042527_6YYQ38CQ_.BKP
List of Datafiles in backup set 1
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 Full 1196134 08-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\SYSTEM01.DBF
2 Full 1196134 08-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\SYSAUX01.DBF
3 Full 1196134 08-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\UNDOTBS01.DBF
4 Full 1196134 08-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\USERS01.DBF
5 Full 1196134 08-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\EXAMPLE01.DBF

BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2 Full 9.36M DISK 00:00:45 08-JUN-11
BP Key: 2 Status: AVAILABLE Compressed: NO Tag: TAG20110608T042527
Piece Name: C:\APP\PRIVATE\FLASH_RECOVERY_AREA\ORACLE\BACKUPSET\2011_06_
08\O1_MF_NCSNF_TAG20110608T042527_6YYQCFQG_.BKP
SPFILE Included: Modification time: 08-JUN-11
SPFILE db_unique_name: ORACLE
Control File Included: Ckp SCN: 1196134 Ckp time: 08-JUN-11

BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
3 Full 1.41G DISK 00:03:49 16-JUN-11
BP Key: 3 Status: AVAILABLE Compressed: NO Tag: TAG20110616T183128
Piece Name: C:\APP\PRIVATE\FLASH_RECOVERY_AREA\ORACLE\BACKUPSET\2011_06_
16\O1_MF_NNNDF_TAG20110616T183128_6ZOCNG1G_.BKP
List of Datafiles in backup set 3
File LV Type Ckp SCN Ckp Time Name
---- -- ---- ---------- --------- ----
1 Full 1688780 16-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\SYSTEM01.DBF
2 Full 1688780 16-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\SYSAUX01.DBF
3 Full 1688780 16-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\UNDOTBS01.DBF
4 Full 1688780 16-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\USERS01.DBF
5 Full 1688780 16-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\EXAMPLE01.DBF
6 Full 1688780 16-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\APEX_124492057
7246164.DBF
7 Full 1688780 16-JUN-11 C:\APP\PRIVATE\ORADATA\ORACLE\APEX_124481167
5525757_03.DBF

BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
4 Full 9.36M DISK 00:00:35 16-JUN-11
BP Key: 4 Status: AVAILABLE Compressed: NO Tag: TAG20110616T183523
Piece Name: C:\APP\PRIVATE\FLASH_RECOVERY_AREA\ORACLE\AUTOBACKUP\2011_06
_16\O1_MF_S_753993040_6ZOCVWTV_.BKP
SPFILE Included: Modification time: 16-JUN-11
SPFILE db_unique_name: ORACLE
Control File Included: Ckp SCN: 1688780 Ckp time: 16-JUN-11

RMAN>
Re: RMAN Not seeing backupsets [message #512246 is a reply to message #512245] Fri, 17 June 2011 12:16 Go to previous messageGo to next message
SniperJane
Messages: 11
Registered: June 2011
Junior Member
I cannot see the following files(backupsets):
O1_MF_NCSNF_TAG20110505T094507_6W57125V_.BKP
O1_MF_NCSNF_TAG20110509T075655_6WHL656C_.BKP
O1_MF_NNNDF_TAG20110509T075655_6WHL3XWB_.BKP
O1_MF_NCSNF_TAG20110520T084657_6XDO8RK2_.BKP
O1_MF_NNNDF_TAG20110520T084657_6XDO65KL_.BKP

These are from the previous(old) database.
Re: RMAN Not seeing backupsets [message #512248 is a reply to message #512240] Fri, 17 June 2011 12:18 Go to previous messageGo to next message
Michel Cadot
Messages: 59166
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
SniperJane wrote on Fri, 17 June 2011 18:54
Michel,
I do backup and recovery all the time but has never had to move the database. This is new to me. I read those guides and they do not assist me in my current situation.
When I tell RMAN
LIST BACKUPS
I see only the backup belonging to the new database, not those from the old that I copied over.


And what is the difference between recovery on the same server and recovery on another server?
By the way, this is a scenario that is explained in details in the books you said you read.

Regards
Michel

Re: RMAN Not seeing backupsets [message #512251 is a reply to message #512248] Fri, 17 June 2011 12:21 Go to previous messageGo to next message
John Watson
Messages: 4577
Registered: January 2010
Location: Global Village
Senior Member
I hope Michel and BS will forgive me for butting in, but I think I see your mistake. You say
Quote:
I installed the Oracle database(same Oracle SID) and used same directory structure.

but I think what you did was:
1. install the Oracle home - correct
2. create a database - wrong
I think that if you delete all the datafiles, tempfiles,controlfiles, and online logs on your new machine, and then replace them with the files from the original database, you may then have a working database.
The alternative is to use RMAN to create a duplicate of the database, which will require a lot more understanding: read up on creating a duplicate without a connection to the target.
Re: RMAN Not seeing backupsets [message #512259 is a reply to message #512251] Fri, 17 June 2011 13:10 Go to previous messageGo to next message
SniperJane
Messages: 11
Registered: June 2011
Junior Member
John,
I did that and the database refused to start. I will do same again and print the error I received in my next post.
Bottom line, it did not work.
Re: RMAN Not seeing backupsets [message #512261 is a reply to message #512259] Fri, 17 June 2011 13:17 Go to previous messageGo to next message
BlackSwan
Messages: 22800
Registered: January 2009
Senior Member
>I did that and the database refused to start. I will do same again and print the error I received in my next post.
>Bottom line, it did not work.

http://www.orafaq.com/forum/t/88153/0/ => do #7 -> SHOW Us!

errors are captured in alert_SID.log file

Re: RMAN Not seeing backupsets [message #512262 is a reply to message #512259] Fri, 17 June 2011 13:36 Go to previous messageGo to next message
SniperJane
Messages: 11
Registered: June 2011
Junior Member
whoops! it worked! Smile
Re: RMAN Not seeing backupsets [message #512263 is a reply to message #512262] Fri, 17 June 2011 13:37 Go to previous message
SniperJane
Messages: 11
Registered: June 2011
Junior Member
Replacing the datafiles and control files worked!
Thanks again guys!...
Previous Topic: EBU - Job Failed
Next Topic: ORA-06508, ORA-06512 errors in Logical Backup
Goto Forum:
  


Current Time: Mon Sep 22 18:12:04 CDT 2014

Total time taken to generate the page: 0.11376 seconds