How to put all RMAN-files in one backupset??  (so preventing RMAN-06023)

((Please see also this thread: Re: Restoring Database causes ORA-19612
How can I manage that ALL files, ALL pieces, Controlfile, SPfile etc. etc. is available in ONE backup-file.
When I do "Backup Database" and I copy the created files to another location: restoring the database keeps asking for older backuppieces.
(Rman-error: RMAN-06023: no backup or copy of datafile 1 found to restore"
When i type on the target:
RMAN> list backup of datafile 1;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
12 Full 70.03G DISK 00:44:49 02-APR-12
BP Key: 12 Status: EXPIRED Compressed: NO Tag: TAG20120402T213111
Piece Name: G:\RMANBACKUP\0KN7EQSV_1_1
List of Datafiles in backup set 12
File LV Type Ckp SCN Ckp Time Name
1 Full 2945781693 02-APR-12 D:\ORACLEDATA\CISORA1\SYSTEM01.DBF
RMAN>
I see that the Missing file is in a backupset of 1 day ago. That's NOT what i want. I want EVERY DAY a FULL backupset.
please advise how to achive.
thanks
Edited by: AvRossem on 3-apr-2012 5:36

AvRossem wrote:
((Please see also this thread: Re: Restoring Database causes ORA-19612
How can I manage that ALL files, ALL pieces, Controlfile, SPfile etc. etc. is available in ONE backup-file.
When I do "Backup Database" and I copy the created files to another location: restoring the database keeps asking for older backuppieces.
(Rman-error: RMAN-06023: no backup or copy of datafile 1 found to restore"
When i type on the target:
RMAN> list backup of datafile 1;
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
12 Full 70.03G DISK 00:44:49 02-APR-12
BP Key: 12 Status: EXPIRED Compressed: NO Tag: TAG20120402T213111
Piece Name: G:\RMANBACKUP\0KN7EQSV_1_1
List of Datafiles in backup set 12
File LV Type Ckp SCN Ckp Time Name
1 Full 2945781693 02-APR-12 D:\ORACLEDATA\CISORA1\SYSTEM01.DBF
RMAN>
I see that the Missing file is in a backupset of 1 day ago. That's NOT what i want. I want EVERY DAY a FULL backupset.
please advise how to achive.
thanks
Hi,
How can I manage that ALL files, ALL pieces, Controlfile, SPfile etc. etc. is available in ONE backup-file.The short awnser is: You cannot do that.
RMAN divides some files types in different backupset.
This is a rule:
Datafiles use your own Backupset
Controlfile and SPFILE use your own Backupset
ARCHIVELOG use your own Backupset
For each BACKUPSET you can have many Backuppiece (i.e files on disk). As rule you always have relationship of one (Backupset) to one or more (Backuppiece).
So, respecting the rule above you can do following:
You can use the option FILESPERSET to keep all datafiles in same backuppiece. (In my case below 200 datafiles will be in same backuppiece)
{code}
RMAN> backup database tag='my_backup' filesperset 200 include current controlfile ;
Starting backup at 03-APR-12
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/app/oracle/oradata/dbrcv/system01.dbf
input datafile file number=00002 name=/u01/app/oracle/oradata/dbrcv/sysaux01.dbf
input datafile file number=00003 name=/u01/app/oracle/oradata/dbrcv/undotbs01.dbf
input datafile file number=00004 name=/u01/app/oracle/oradata/dbrcv/users01.dbf
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: finished piece 1 at 03-APR-12
piece handle=/u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_nnndf_MY_BACKUP_7qppmnn7_.bkp tag=MY_BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: finished piece 1 at 03-APR-12
piece handle=/u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_ncsnf_MY_BACKUP_7qppo4ls_.bkp tag=MY_BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 03-APR-12
RMAN> backup archivelog all filesperset 200 ;
Starting backup at 03-APR-12
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=16 RECID=1 STAMP=779332254
input archived log thread=1 sequence=17 RECID=2 STAMP=779374813
input archived log thread=1 sequence=18 RECID=3 STAMP=779393222
input archived log thread=1 sequence=19 RECID=4 STAMP=779436085
input archived log thread=1 sequence=20 RECID=5 STAMP=779472067
input archived log thread=1 sequence=21 RECID=6 STAMP=779511653
input archived log thread=1 sequence=22 RECID=7 STAMP=779580131
input archived log thread=1 sequence=23 RECID=8 STAMP=779648029
input archived log thread=1 sequence=24 RECID=9 STAMP=779649107
input archived log thread=1 sequence=25 RECID=10 STAMP=779649189
input archived log thread=1 sequence=26 RECID=11 STAMP=779649436
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: finished piece 1 at 03-APR-12
piece handle=/u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_annnn_TAG20120403T171718_7qppphtb_.bkp tag=TAG20120403T171718 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
Finished backup at 03-APR-12
{code}
Now I have 3 files:
{code}
RMAN > List BACKUSET;
BS Key Type LV Size Device Type Elapsed Time Completion Time
447 Full 314.02M DISK 00:00:37 03-APR-12
BP Key: 450 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP
Piece Name: /u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_nnndf_MY_BACKUP_7qppmnn7_.bkp
List of Datafiles in backup set 447
File LV Type Ckp SCN Ckp Time Name
1 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/system01.dbf
2 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/sysaux01.dbf
3 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/undotbs01.dbf
4 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/users01.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
448 Full 9.36M DISK 00:00:04 03-APR-12
BP Key: 451 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP
Piece Name: /u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_ncsnf_MY_BACKUP_7qppo4ls_.bkp
SPFILE Included: Modification time: 03-APR-12
SPFILE db_unique_name: DBRCV
Control File Included: Ckp SCN: 444147 Ckp time: 03-APR-12
BS Key Size Device Type Elapsed Time Completion Time
492 300.38M DISK 00:00:26 03-APR-12
BP Key: 495 Status: AVAILABLE Compressed: NO Tag: TAG20120403T171718
Piece Name: /u01/app/oracle/fast_recovery_area/DBRCV/backupset/2012_04_03/o1_mf_annnn_TAG20120403T171718_7qppphtb_.bkp
List of Archived Logs in backup set 492
Thrd Seq Low SCN Low Time Next SCN Next Time
1 16 234488 30-MAR-12 261258 31-MAR-12
1 17 261258 31-MAR-12 286957 31-MAR-12
1 18 286957 31-MAR-12 303448 31-MAR-12
1 19 303448 31-MAR-12 329357 01-APR-12
1 20 329357 01-APR-12 351967 01-APR-12
1 21 351967 01-APR-12 375454 02-APR-12
1 22 375454 02-APR-12 409423 02-APR-12
1 23 409423 02-APR-12 443037 03-APR-12
1 24 443037 03-APR-12 443868 03-APR-12
1 25 443868 03-APR-12 443928 03-APR-12
1 26 443928 03-APR-12 444188 03-APR-12
{code}
See it:
BackupSet :
447 = Datafiles
448 = Controfile and SPFILE
492 = Archivelogs
Now I want create a copy of these backupset to offsite purpose:
{code}
RMAN> backup backupset 447,448,492 tag='my_backup_offsite' format '/u01/app/offsite/%U';
Starting backup at 03-APR-12
using channel ORA_DISK_1
channel ORA_DISK_1: input backup set: count=17, stamp=779649348, piece=1
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece /u01/app/offsite/0hn7h0a4_1_2
piece handle=/u01/app/offsite/0hn7h0a4_1_3 comment=NONE
channel ORA_DISK_1: finished piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece complete, elapsed time: 00:00:25
channel ORA_DISK_1: input backup set: count=18, stamp=779649393, piece=1
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece /u01/app/offsite/0in7h0bh_1_2
piece handle=/u01/app/offsite/0in7h0bh_1_3 comment=NONE
channel ORA_DISK_1: finished piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece complete, elapsed time: 00:00:03
channel ORA_DISK_1: input backup set: count=19, stamp=779649439, piece=1
channel ORA_DISK_1: starting piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece /u01/app/offsite/0jn7h0cv_1_2
piece handle=/u01/app/offsite/0jn7h0cv_1_3 comment=NONE
channel ORA_DISK_1: finished piece 1 at 03-APR-12
channel ORA_DISK_1: backup piece complete, elapsed time: 00:00:45
Finished backup at 03-APR-12
RMAN> list backupset tag='my_backup_offsite';
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
447 Full 314.02M DISK 00:00:37 03-APR-12
BP Key: 624 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP_OFFSITE
Piece Name: /u01/app/offsite/0hn7h0a4_1_3
List of Datafiles in backup set 447
File LV Type Ckp SCN Ckp Time Name
1 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/system01.dbf
2 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/sysaux01.dbf
3 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/undotbs01.dbf
4 Full 444127 03-APR-12 /u01/app/oracle/oradata/dbrcv/users01.dbf
BS Key Type LV Size Device Type Elapsed Time Completion Time
448 Full 9.36M DISK 00:00:04 03-APR-12
BP Key: 625 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP_OFFSITE
Piece Name: /u01/app/offsite/0in7h0bh_1_3
SPFILE Included: Modification time: 03-APR-12
SPFILE db_unique_name: DBRCV
Control File Included: Ckp SCN: 444147 Ckp time: 03-APR-12
BS Key Size Device Type Elapsed Time Completion Time
492 300.38M DISK 00:00:26 03-APR-12
BP Key: 626 Status: AVAILABLE Compressed: NO Tag: MY_BACKUP_OFFSITE
Piece Name: /u01/app/offsite/0jn7h0cv_1_3
List of Archived Logs in backup set 492
Thrd Seq Low SCN Low Time Next SCN Next Time
1 16 234488 30-MAR-12 261258 31-MAR-12
1 17 261258 31-MAR-12 286957 31-MAR-12
1 18 286957 31-MAR-12 303448 31-MAR-12
1 19 303448 31-MAR-12 329357 01-APR-12
1 20 329357 01-APR-12 351967 01-APR-12
1 21 351967 01-APR-12 375454 02-APR-12
1 22 375454 02-APR-12 409423 02-APR-12
1 23 409423 02-APR-12 443037 03-APR-12
1 24 443037 03-APR-12 443868 03-APR-12
1 25 443868 03-APR-12 443928 03-APR-12
1 26 443928 03-APR-12 444188 03-APR-12
RMAN>
{code}
When you perform restore you can use the tag='my_backup_offsite'.
This files belong a same policy of "configure retention policy ... " of RMAN. So, this files will be obsolete when it is out the policy.
Hope this helps,
Levi Pereira

Similar Messages

  • How to open All *.fmb files at one shot in Form Builder

    I have 20 *.fmb files i need to open all at one shot in form builder ......Please tell me how to do that
    Edited by: user10365515 on May 1, 2010 4:05 AM

    So, just go to that directory select that 20 files and double click or hit enter it will open in one form builder session.
    Note: You can not open from Form Builder.

  • How to read all the files in one directory?

    can anyone tell me ?
    3x

    File.listFiles() is a good start
    http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html
    Gil

  • How do I move all my files from one User Profile (account) into another? I needed to create a new account and want all of my files accessible in the new one.

    How do I move all my files from one User Profile (account) into another?
    I needed to create a new account and want all of my files accessible in the new one.

    ok, what you're learning right now is 101 unix, which is good. Unix is a good thing
    now: the way unix works, and macos (which uses unix underneath) the files and folders work like a hierarchy.
    the start of that tree is /
    so, if you were to do:
    cd /
    (cd means change directory)
    it will bring you at the highest branch of the file system.
    cd /Users
    will bring you to where all the users are.
    to see whats in /Users you can use your friend ls command
    ls means list files/directories
    so:
    cd /Users
    ls -la
    (the -la here means show all (even hidden) and long format (very verbose))  this flag is very optional.
    you will see
    fred
    user2
    for example.
    if you want to see the desktop of user2 you would change directory to it then list the files.
    for example:
    cd /Users/user2/Desktop
    Note that the files and directory are case sensitive, so, desktop is NOT the same as Desktop, or DESKTOP
    ls -la
    you should then be able to see everything in users2 desktop
    you could have done as well the same thing in smaller steps, for example:
    cd /
    cd Users
    cd user2
    cd Desktop
    this is the equivalent of cd /Users/user2/Desktop
    So, for your file, i don't know where it was, but know that if you log in as user2, it will directly put you in
    /Users/user2
    which most likely the file you had created from the other user was in /Users/user1
    if you copied all the files from /Users/original_user to /Users/secondUser
    most likely yes, all your mail, bookmarks etc would be copied over.
    so in your case.
    sudo chown -R seconduser:staff /Users/secondUser
    should work
    Remember that if you start a path with the character /  it means start from the root of the file system, at the highest top you can ever get.
    so
    cd /Users/fred
    is not the same as
    cd Users/fred
    unless you were in / already
    i know it may be confusing at first but it's actually very logical if you play with it.
    to simplify, think of it that / means C:\  on windows
    you can't go any higher than C:\  (in a way)
    if you're unsure which directory you're currently in, you can always type:
    pwd
    it will tell you where you are.
    for example:
    cd /
    pwd
    this shows  /
    cd Users
    pwd
    this now shows /Users
    cd /System/Library
    pwd will show /System/Library
    cd /
    cd /Users
    cd fred
    cd Library
    pwd will show /Users/fred/Library
    unix can look very scary but it's actually vital and very necessary to do tasks sometimes that would take for ever to do via the windows. This is good learning.
    so for the myfile you had created, i can't tell you where it is, at the time you created, if you can do a pwd command you'll know the path,
    ls -la  (this shows all the files where you are)
    if you see myfile in the list
    do a pwd
    whatever is return, the real location of the file would be:
    whatever pwd returned / myfile
    I hope that makes sense.

  • Hello Guys. I had problems in the Computer before and changed my HD. I saved in my all files documents in (Time Capsule). How can I put all my files, pictures documents on my new HD? Please Help. Thank You

    Hello Guys.
    I had problems in the Computer before and changed my HD. I saved in my all files documents in (Time Capsule). How can I put all my files, pictures documents on my new HD?
    Please Help.
    Thank You
    Julio Skov

    Hey
    Thank you very much for replay.
    Would you explain to me how can I do?
    I don't really understand these processes.
    Thak you very much
    Julio

  • If i put all my files on drive C which has the os and do a one key recovery, will i lose my files?

    If i put all my files on drive C which has the os and do a one key recovery, will i lose my files? considering that drive C the the partition which has the os and the drive D has the lenovo drive which has all the lenovo drivers and all those. Will i lose my files?
    Solved!
    Go to Solution.

    Never never put your documents in the C drive.
    Many things can go wrong, and whenevr you have to reinstall os, your files would be gone! Take some pain now and partition the drive now, or you will feel helpless when your c drive is removed by failure of os or some **bleep** virus.
    Simple solution: partition the C drive.
    Step 1: download G-Parted software
    Step 2: put it in live usb.
    Step 3: boot your computer with the usb plugged in.
    Step 4: then REDUCE THE SIZE of c drive.
    Step 5: suppose you reduced by 100 GB, then divide that 100 gb into other drive. PUT your files here.
    WARNING: I WOULD RECOMMEND TAKING BACKUP OF C DRIVE , AND THEN REDUCING ITS SIZE, INCASE SOMETHING GOES WRONG.
    You can search in internet about partition and gparted.
    Lenovo Ideapad U410,Ruby Red Color
    i5 processor,4 GB ram,1 GB nvidia 610M GPU,24GB SSD,500GB HDD.

  • How do you select multiple files at one time

    How do you select multiple files at one time

    Select one, and then either command-click another, or in list/column view, Shift-click the item at the other end of the range you want to select. Alternatively, click on a spot in the screen and drag the cursor until all the files are selected.
    (114308)

  • How to Preloading a swf file in one application

    hello friends,
    How to preload a swf file in one application??
    i have two panel in one panel i given login screen and In second panel there is one module i have to show this panel which is visible="false" when user logged in but i have to preload this module in second panel when the user is doing logi. and when user logged in that time i have to show the second panel hiding the first panel.
    so how to do this i m not getting can anyone help me??
    Thanking you,
    Gajanan

    i have created a jar file.Now i want to reuse this
    jar file in another java program.Could anyone please
    guide me with the steps of how to reuse a jar fileput your jar file in class path and import the class which u want to reuse in your code so that u can access all the methods in that class in ur code.

  • Is possible search all the files in one folder and get list all with the same extension.??

    Hi,
    I would like to get, if it is possible, do searching in one determinate folder and get all the files with the same extension, For example, Give the *.pou and get all the files on one list of the files in this folder and sub-folders...
    If it is possible i would like to see any example.
    Thanks a lot, Fonsi.

    Hi Dennis,
    I got your advise, I download the openG (i had problems, and downloading directly and install one to one).
    Ok, i got but i have one problem, which i can't solve. I entry the promt  to search and put the directory to save, later i push 'Do it' and it search the files, show the paths and number, then save in the folder and finally show the window , all ok!.
    The problem is with the target path, when i want use the browse, it doesnt run properly. I want select one carpet, and it demands one file, i dont understand why??, i changed the options browse but it didnt work. Also i would like when i put one path if folder doesnt exist, directly create it and save the files, if exist copy it.
    Thanks for all!. I attached the file in lv 7.1
    Attachments:
    buscar3.vi ‏50 KB
    capture.GIF ‏48 KB

  • How to package other jar files into one jar?

    How to package other jar files into one jar? How can i get the class in the inner jar file?

    Generally not a good idea. The Java runtime won't be able to load classes from those "inner" jars, you'd have to write your own classloader to do that. It's not a brilliant idea, generally, anyway, since the point of having lots of jars is to keep your application modular. Bundling them all together like that means you have to re-deploy the whole thing to fix, for instance, one small bug in one small library
    If you really want to do this, there's an Eclipse plugin called FatJar, but I urge you to consider whether you really want to do it first.

  • TS1315 when trying to download photos  from my digital cameras I keep getting the message that pics can't be downloaded because of an unrecognizable format. It shows that they are all jpeg files. One camera is a Canon, the other a Panasonic.

    when trying to download photos  from my digital cameras I keep getting the message that pics can't be downloaded because of an "unrecognizable format". It shows that they are all jpeg files. One camera is a Canon, the other a Panasonic. I have had these cameras for a few years and have never had a problem downloading.

    I am having the same problem which has happened very infrequently before. Generally it's one photo and happened when my battery died.
    However today I tried to download six photos.
    None would download including several others for a total of 21 that would not download.
    Since I had just installed a new powered hub and added three new external 4T hard drives, I got concerned that it was the hub. Then got really worried that I'd have problems with the data I have been backing up.
    However following this sequence of events, I've determined it's not the hub, but still don't know what is causing the problem.
    (1) Put a fresh battery in the camera - same results
    (1.5) Used a different port in the new hub - same results
    (2) Put the card in the card slot in the back of my iMac - no problems except that one image I knew about last week. The six new images imported.
    (3) Tried again using the cable - still same error
    (4) Changed cables - my husband has the same camera - still same error
    (4) Put the card in his camera with his cable - still same error
    (5) Put the card in a card reader and used the same slot in the new hub - no problems - same one wouldn't import but message that there are no new photos to import.
    (6) Moved the offending one image to the Trash while the card was in the card reader
    (7) Put the card back into my camera and used my cable. iPhoto had no error and displayed the message there are no new photos.
    Conclusion:
    Not the camera
    Not the cable
    Not the hub
    Must remove bad photo from the card
    However, I have not had to do that before. I went through several imports on vacation when there was one bad image and just ignored it each time.
    Any idea why this is happening now?
    Thank you

  • How to get all the values in one column of a JTable

    How to get all the values in one column of a JTable as a Collection of String.
    I don;t want to write a for loop to say getValueAt(row, 1) eg for 2nd column.

    I don;t want to write a for loop to say getValueAt(row, 1) eg for 2nd column. You could always write a custom TableModel that stores the data in the format you want it. It would probably be about 50 lines of code. Or you could write a loop in 3 lines of code. I'll let you decide which approach you want to take.

  • How do i move a file from one external drive to another

    This is my first Mac computer and I have no idea how to move/copy a file from one external hard drive to another? It won't let me drag and drop from one Finder window to another and there is no copy/paste option on the left mouse click.

    mediamagnate03 wrote:
    This is my first Mac computer and I have no idea how to move/copy a file from one external hard drive to another? It won't let me drag and drop from one Finder window to another and there is no copy/paste option on the left mouse click.
    That is because it is on the Right Click, and the menu.

  • How can I convert multiple files at one time and not one at a time

    How can I convert multiple files at one time and not one at a time

    Hi Plissey1950,
    Sorry for the lengthy delay to a response.  Are you trying to convert multiple files to individual PDF files at the same time? (not combine them).  If so, you'll need to use Adobe Acrobat for this function. The CreatePDF service does not have the ability to convert multiple files to multiple individual PDF files.
    Thanks,
    David

  • I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    I have dragged 2 files to the trash bin but I cannot delete them from the trash bin. It keeps telling me these files are in use when they are not. How do I delete these files? One is a txt file and the other is an xls file

    From the Finder menu select 'Secure Empty Trash'. If this or the suggestion above doesn't resolve the problem take a look at the various suggestions in this link:
    http://www.thexlab.com/faqs/trash.html

Maybe you are looking for