RMAN - query Imagecopy

Hi gurus!

I have a few questions about the functionality of copy of picture of RMAN, I would be really grateful if someone could clarify.

(1) my understanding of one of the benefits of the Imagecopy backup on a backupset that is in theory, you can restore the files directly from any media (eg. a tape device) and get the operational database without the need to retrieve the RMAN catalog. But when I ran a few backups imagecopy against one of our test, the saved file seems to be renamed - for example. users.dbf becomes o1_mf_users_6wn8fyff_.dbf

My question is - if I were to restore the instance to start this way - probably the control file goes in search of users.dbf? Maybe it's a way to make a backup imagecopy - preserve original file names?

(2) for the review if backup using Imagecopy or Backupsets, I'm leaning toward imagecopy as in my mind, it would be simpler to restore databases in a DR scenario. But if I decided to engage in the Backupset way, using a recovery catalog, I guess the first restoration must be recovery catalog - then use it to restore all other databases.

Where my starts head to melt is when I think of how you restore recovery catalog & the instance it runs first. If the recovery catalog itself is saved as a backupset - how you even restore that? Looks like a chicken or the egg scenario.


I hope someone shine a light on my cloudy brain!
BTW - it's on Oracle 10 g

Thank you

device type disk 'TAG' % database tag

This script would create NOT copies of data file.

unless you have also issued the RMAN command:

configure device type disk backup type to copy

The default backup type is BACKUPSET, not COPY.
A 'SHOW ALL' of the RMAN command line would show how RMAN default settings have been configured.

Since the 9i, Orace introduced CONTROLFILE AUTOBACKUP ON. If you use an MRE, Oracle can automatically identify the BackupPieces containing the backup Controlfile.
If you do not use this configuration, a "BACKUP LIST OF CONTROLFILE' on the RMAN command line would show BackupPieces containing the backup controlfile.

I also recommend to keep logs of your RMAN run script exits.

Hemant K Collette
http://hemantoracledba.blogspot.com

Tags: Database

Similar Questions

  • Unable to query rman associated views

    I am not able to interrogate associated rman views of one of the production database. The query fails with the error temporary tablespace. The current size of the temporary tablespace is 12G. 3
    Applications work correctly in other bases. Could someone give advice what could be the possible reason for this problem.
    Database version: 10.2.0.4, we use a recovery catalog
    for example:
    04:37:38 SQL > select count (*) from V_$ RMAN_BACKUP_JOB_DETAILS;
    Select count (*) from V_$ RMAN_BACKUP_JOB_DETAILS
    *
    ERROR on line 1:
    ORA-01652: unable to extend temp by 512 segment in tablespace TEMPORARY01

    05:28:39 SQL >

    It is a bug. See the documentation on Metalink ID 748251.1
    For 11g, you will find information on Metalink ID 1314788.1

    Most of the time you see this issue after an upgrade.
    I am using the following instructions after the upgrade to 10.2.0.4 to 11.2.0.3

    exec dbms_stats. DELETE_TABLE_STATS('SYS','X$KCCRSR');
    exec dbms_stats. LOCK_TABLE_STATS('SYS','X$KCCRSR');
    alter system flush shared_pool;
    exec dbms_stats.delete_fixed_objects_stats ();
    exec dbms_stats.gather_fixed_objects_stats ();

    Published by: specdev on August 1, 2012 03:12

  • RMAN restore % complete query

    version 10203
    I'm looking for a good query to find our age % RMAN restore/recovery

    I know that my db size is 160 GB and 50 GB has been restored by rman restore in the last 3 hours, so I guess... what happens if recovery end up with an error, I have to restore again and spent several hours again or I can just correct the rman error and just do recovery...?
    _______________________________________________________________________________________
    Here is the command that i began the restoration
    RUN
    {
    until the SNA 4475223426780.
    allocate channel t1 type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
    allocate channel t2 type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
    allocate channel t3 type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
    allocate channel t4 type 'sbt_tape' parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
    CONFIGURE DEVICE TYPE 'sbt_tape' 4 of PARALLELISM;
    restore the database;
    recover the database;
    ALTER database open resetlogs;
    }

    Published by: DBA2008 on October 13, 2010 11:02

    RMAN the fact on its own that you mentioned is expected as shown - for backups, restorations of not only this setting.

    Published by: rui_catcuddler on October 13, 2010 11:18

  • Query on the RMAN retention policy


    Hi, I have my retention set to 2 redundancy policy

    I took 3 backups so far (2 sets of backup, 1 copy of the Image)

    When I check the obsolete report I get the following

    RMAN retention policy apply to the order

    RMAN retention policy is set to 2 redundancy

    Report of obsolete backups and copies

    Making key time filename/handle type

    -------------------- ------ ------------------ --------------------

    Backup 1 05-SEP-13 set

    Exhibit 1 backup /home/app/oracle/fast_recovery_area/PRIMARYP/backupset/2013_09_05/o1_mf_annnn_TAG20130905T100934_92jllgn1_.bkp 13-SEP-05

    Backup 2 05-SEPT-13 set

    Exhibit 2 backup /home/app/oracle/fast_recovery_area/PRIMARYP/backupset/2013_09_05/o1_mf_nnndf_TAG20130905T100949_92jllycp_.bkp 13-SEP-05

    Backup 3 05-SEPT-13 set

    Save the song 3 /home/app/oracle/fast_recovery_area/PRIMARYP/backupset/2013_09_05/o1_mf_ncsnf_TAG20130905T100949_92jln4d5_.bkp 13-SEP-05

    Backup 4 05-SEPT-13 set

    Save the 4-13-SEVEN piece. 05 /home/app/oracle/fast_recovery_area/PRIMARYP/backupset/2013_09_05/o1_mf_annnn_TAG20130905T101030_92jln6cx_.bkp

    Backup 5 27-SEPT-13 set

    Save the song 5-/home/app/oracle/fast_recovery_area/PRIMARYP/backupset/2013_09_27/o1_mf_annnn_TAG20130927T120734_94bsqrj6_.bkp 13-SEP-27

    Backup the value 7 13-SEP-27

    Save the song 7 /home/app/oracle/fast_recovery_area/PRIMARYP/backupset/2013_09_27/o1_mf_ncsnf_TAG20130927T120751_94bssf0j_.bkp 27-SEP-13

    Archive newspaper 305 10 October 13 /home/app/oracle/fast_recovery_area/PRIMARYP/archivelog/2013_10_10/o1_mf_1_138_95dv9okt_.arc

    Archive newspaper 306 10 October 13 /home/app/oracle/fast_recovery_area/PRIMARYP/archivelog/2013_10_10/o1_mf_1_139_95dv9px0_.arc

    Archive journal 307 10 October 13 /home/app/oracle/fast_recovery_area/PRIMARYP/archivelog/2013_10_10/o1_mf_1_140_95dv9r8f_.arc

    Archive newspaper 308 10 October 13 /home/app/oracle/fast_recovery_area/PRIMARYP/archivelog/2013_10_10/o1_mf_1_141_95dv9sk9_.arc

    Backup 1,2,3,4 set elements are essentially equivalent to my older backup - so under a redundancy of the 2, I can see why it is obsolete

    5 and 7 were simply command file/SPFILE AutoSave backups and the 2 most recent backups of them have since been taken (backupset parts 9 and 10)

    Q. what happens if I wanted to restore the database to the 27/09? What control and SPFILE he would use (assuming that OBSOLETE files had been removed from the FRA)?

    If I have to restore the backup set removed in the FRA, Cross Check and restore the database using RMAN to 27/09?

    Q. Why are some today (10/10/13) archival newspapers marked OBSOLETE?

    Q. If I wanted to be able to restore the database for 2 days, is perhaps a policy of conservation of a day 2 Recovery window might be better than my current redundancy = 2 policy (associated with a daily backup)?

    any advice appreciated,

    Jim

    Yes, the BackupPieces names.

    A BACKUP of the LIST would show the content of BackupSets and BackupPieces.

    Hemant K Collette

  • Re: How to query extract/MEDIA/BANDS with RMAN using controlfile?

    Hello

    Try to restore the database and logs archived strips, RMAN backups run without using the recovery catalog database controlfile. Need to know the bands / media required for the backup of the restoration. Therefore impossible to use RC_DATABASE, RC_BACKUP_PIECE, RC_BACKUP_SET catalog views.

    Ideas/thoughts please?

    Thank you!
    A
    Therefore cannot use RC_DATABASE, RC_BACKUP_PIECE, RC_BACKUP_SET catalog views.
    
    Ideas/thoughts please?
    

    NONSENSE.

    The control file will act as a recovery catalog when you are not using a separate in the catalog database.
    All views RC_ correspondent V$ give.

    --------------
    Sybrand Bakker
    Senior Oracle DBA

  • RMAN Script query

    Hi all

    I use 11 GR 2 on Windows.

    I created a work in the library of work. I use the script as follows:

    RUN {backup incremental level 1 data base;
    delete any backup archivelog entry;
    allocate channels to remove disc type;
    delete noprompt obsolete device type disk;
    output channel;
    };

    However when I try to present and perform the task, it will fail with an "error writing entry command. Y at - it something wrong with my script I don't see what is applicable.

    Thank you

    Hello

    allocate channel for delete type disk;
    

    is not correct, you must use the same syntax as the one used at the beginning of your script.

    But are you sure that you must manually allocate the channel? Most of the time, you can use the automatically assigned channel, which is easier.

    Kind regards
    Sylvie

  • Retrieve the various stops of the Checkpoint by RMAN.

    Hi all

    I do a restore/recovery by rman but I am facing a problem.

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command set at 17/08/2015 08:50:07

    RMAN-20201: datafile not found in the recovery catalog

    RMAN-06010: error while looking upward of datafile: 94

    I checked the 94 data file and it exists!

    It's the last that I created to develop a tablespace.

    I noticed each new data file that I add to this tablespace, it assumes a different control point. All other data of all areas of storage files are on the same control point.

    I use this query to check.

    SELECT NAME,

    FILE NO.,

    STATUS,

    CHECKPOINT_CHANGE # 'CHECKPOINT '.

    FROM V$ DATAFILE;

    Why this datafile is different checkpoint?

    How can I move forward with restoration?

    Thank you

    Hello

    RMAN-03002: failure of the command set at 17/08/2015 08:50:07

    RMAN-20201: datafile not found in the recovery catalog

    1. database version

    2. can you provide bottom of it?

    3. looking into your question, last backup you took is not datafile (probably knows that the controlfile, but there is no such thing as your restore from tape). You have logs valid archive and redo logs with you?

    I noticed each new data file that I add to this tablespace, it assumes a different control point. All other data of all areas of storage files are on the same control point.

    4. regarding the point of control, why would it be the same? You can specify on your understanding.

    -Pavan Kumar N

  • obsolete RMAN County

    Hi all

    DB-used: 11203

    RMAN-Version 11203

    OPERATING SYSTEM: SOLARIS

    Is there a way to COUNT the obsolete backups, archivelogs in RMAN?

    AMAZON

    Hello

    You can use the view v$ backup_files. If you use the rman catalog, then you can query view rc_backup_files. There is a column called "obsolete" as saratpvv said.

  • How to restore RMAN backups

    Hello

    I tried to include works of RMAN Oracle 12 c

    If I use the following command, I should have the backuppiece and the archivelog saved in a folder:

    RMAN > BACKUP database DATA PLUS ARCHIVELOG;

    If I ran this command in 4 different days, which I ended up having 4 folders with different inside files

    I guess that, in these files, I have the data files and the archivelogs

    Now I move these folders to tape, re-cutting the backups and delete expired

    Say that in a month, I need one of these backups if I put a band records and I added start with 'c:\path_of _restored_folder _L', so I added all files in the folder that I restored from tape

    Now, if I try to restore the basis of all is well but when I run the recover, it is missing some archiving logs it says

    If I put all the files for 4 days then he finds the archivelog she needs and pick up without problem

    on this basis I understand that in the folder containing a backuppiece of a specific day there is the newspaper of archive that I needed to recover from the DB, is that true? How can I know if the backups folder I need to replace in order to have all the required log archiving?

    At the moment my DB retrieves only if I handed out the Ribbon last backup folder, if I handed out the previous, it restores, but is not recover

    Also I have this configuration of the oracle recovery 3 days window maintains backups in order to be able to restore and recover the last 3 days and he simply deletes all obsolete if the FRA is full

    I tried earlier to set up the window of 3 days as a test recovery

    I ran a few backups and after that I ran the 5th FRA leak out of space and the backup fails

    I expect rman to remove the old backup and make way for a new that I have 5 backuppiece and the FRA is full, why he not do?

    Thank you

    The default behavior of RECOVER is to make a full recovery - right until the transactions today.  So it must all archivelogs.

    If you want to restore and recover to a point in time, use the SET clause to THAT specify a sequence of the newspaper or time or SNA.  Oracle will then not get beyond that point in time - that is to say he will not seek further archiving logs.

    (Ideally, when you restore an old backup, I also begins to restore the old controlfile, then using this controlfile).

    If you use the FRA in this way

    a. set db_recovery_file_dest_size and db_recovery_file_dest

    b. * not * used a FORMAT clause in the BACKUP command

    Oracle will recognize all backups in the FRA (you can check by querying V$ FLASH_RECOVERY_AREA_USAGE before and after the backup).

    In this case, Oracle can and will automatically purge outdated backups - that is to say any backup older than the retention period, provided that there is at least a L0 or backup complete closest to the retention period.  You should see messages to this effect in the alert of the instance database log file.

    Hemant K Collette

  • Do not go out on backup RMAN error

    Hi friends,

    In our production Nagios is configured and for RMAN backup error a query defined for check ' SELECT COUNT (*) FROM v$ rman_status status WHERE! = 'COMPLETE' AND status! = 'RUNNING' start_time AND > sysdate-3 "."

    But in above question his move upward.

    I also checked up on the side of the database manually his hanging the session that no output is coming.

    Also, I changed the query slightly to get the result ' select count (*) from V$ RMAN_STATUS where operation = 'SAVE' and nvl (status, 'X') not in ('DONE', 'CURRENT') and start_time > = trunc (sysdate - 3);  but the same produce no output

    Please tell me how to get the result for the last 3 days of our days.

    Version of DB - 11.2.0.2

    Kind regards

    Arya

    Hi all

    Thanks for your reply.

    I changed the query in Nagios taking the view v$ rman_backup_job_details. Its working fine.

    Kind regards

    Arya

  • Report unrecoverable rman

    Hello

    I just ran the report unrecoverable on rman (unrecoverable database report) and discovered that there are unrecoverable data files.

    As has been suggested by some forums on the internet, I made a query involving: v$ segment_statistics ss and by limiting to statistic_name = 'direct written physical' and using the unrecoverable_change # on v$ datafile.

    The items returned by the query are essentially business segments, BUT the table space, the table and the lob segment have RECORD = 'YES '. This is where I started to get confused...

    So is my question, possible to say that the objects are loaded for the unrecoverable data file? And if so, except by checking the attributes of the RECORD, that I have to take care of other things (I can exclude the column from the table and lob have been changed on this day/today ' hui)?

    Thank you for your help.

    Best

    Martin

    So, do you have a reported fatal list everyday, even after fresh backups?

    This would mean that these operations are performed every day.

    One option is to set the FORCE_LOGGING at the database level.

    Hemant K Collette

  • extra strength 0 vs level 1 in views catalog rman

    Hello world

    Help, please.

    I use this query to view the backup history.

    I'm doing the level 0 incremental backup each weekend and extra staff 1 day of week.

    SELECT db_name, status, to_char (start_time, 'HH24 JJ/MM Dy'), to_char (end_time, 'HH24 JJ/MM Dy').

    time_taken_display as backup_time

    OF rman.rc_rman_backup_job_details

    WHERE db_name IN ('PROD', 'TEST')

    AND input_type DB ' INCR '

    ORDER BY ASC start_time;

    Because INPUT_TYPE column does not distinction level 0 and backups at level 1, how can know what kind of backups have been executed?

    Thank you

    Hello

    You need to join rc_backup_set_details for the incremental_level related to the backup.

    RC_BACKUP_SET_DETAILS

    Kind regards

    --

    Bertrand

  • How knowledge/check if the RMAN backup was performed using a current control file or database catalog?

    Hello

    How knowledge/check if the RMAN backup was performed using a current control file or database catalog? I mean RMAN prompt or sqlplus is it possible to know.

    Thank you

    You're welcome my friend

    You can see them using two methods.

    as I mentioned above, you can see them connect to the catalog database and you can query using the view that I sent

    http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmreprt.htm#BRADV89601

    the other method is the list command, you must use the list command after connecting using rman "rman target / catalog cat_user/cat_pass@catdbtns" command

    http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmreprt.htm#BRADV8136

    Check the value of the control_file_record_keep_time parameter. The default value is 7 days. in the output of the list command, if you can see the old backups to the value, you must be sure that the backup information comes from the catalogue database

    SELECT * FROM parameter $ v where name = 'control_file_record_keep_time '.

    an example of command list

    the list of completed database before backup ' sysdate-10'.

    Concerning

  • RMAN restore in the State of the mount in Oracle 11 g DB

    I have a question which can be very naïve, it is to confirm if the RMAN restore happens in the mount status of data or can it also happen when the DB is in open State?

    I hope my question is clear what is the eligible state of the database in which the RMAN restore can happen.

    Please get back with the answer to my query.


    Concerning

    addition of HemantKChitale response

    If you must restore controlfile, restoration can be done with the database OPEN or MOUNT, it should be in NOMOUNT State.

  • extract from catalog rman backup report sorted by host name

    Hi all

    I have a catalog database.

    I have a lot of database running on multiple servers.

    I need to extract the backup report of database catalog sorted by host name.

    Please share all the reporting scripts you have.

    Here is the script that I have to extract the backup report

    Col in the shape of "TIME_SINCE_LAST_BACKUP (HOURS) topic TIME 99999.99

    Col BACKUP_SIZE column titled "BACKUP_SIZE (GB)"

    Neck backup for a12

    Course DURATION col ' BACKUP | DURATION | (MIN) "form 999.99

    TIME of col position "TIME_SINCE | LAST_BACKUP | (H) ' train 99999.99.

    col BACKUP_SIZE column headers "BACKUP_SIZE column | (GB) »

    SELECT A.DB_NAME

    , A.OBJECT_TYPE 'BACKUP '.

    (, TO_CHAR(A.START_TIME,'dd/mon/yyyy hh24:mi:ss') START_TIME

    (, TO_CHAR(A.END_TIME,'dd/mon/yyyy hh24:mi:ss') END_TIME

    , ROUND ((A.END_TIME - A. (START_TIME) * 24 * 60, 2) DURATION

    , ROUND ((SYSDATE - A. (END_TIME) * 24: 2) TIMES

    ROUND (OUTPUT_BYTES/1024/1024/1024,2) BACKUP_SIZE COLUMN

    OF rman. RC_RMAN_STATUS, A.

    (SELECT DB_NAME, OBJECT_TYPE

    MAX (END_TIME) END_TIME

    OF rman. RC_RMAN_STATUS

    WHERE

    OBJECT_TYPE IN ('FULL DB","DB INCR")

    AND

    STATUS like '% COMPLETE '.

    AND

    OPERATION ("BACKUP", "BACKUP COPYROLLFORWARD")

    DB_NAME, OBJECT_TYPE) B

    WHERE A.OBJECT_TYPE IN ('FULL DB", 'DB INCR', 'ARCHIVELOG')

    AND

    STATUS like '% COMPLETE '.

    AND

    OPERATION ("BACKUP", "BACKUP COPYROLLFORWARD")

    AND

    A.DB_NAME = B.DB_NAME

    AND

    A.END_TIME = B.END_TIME

    AND A.OBJECT_TYPE = B.OBJECT_TYPE and

    A.end_time > sysdate - 1.5

    ORDER BY 2,1 desc;

    Hello

    I think you need to create your own table and add the entry for the server name, database and DBID and then use this table in your query with join column DBID.

    HTH

Maybe you are looking for

  • Watlow F4 HS USB GPIB communication problem

    Hello I'm trying to communicate with the Watlow F4 controller on a room of environmental Tenney. The only available is a GPIB port. I've successfully installed the GPIB-USB-HS cable and I can see this device under devices and interfaces MAX. However,

  • IEEE1394 IMAQ, how to manage a buffer in he'S 'ring '.

    When you change the code for IMAQ HE Ring example, there doesn't seem to be a version of IEEE 1394 of the IMAQ "configure the VI buffer." The existing VI does not connect with "Configure VI acquisition IMAQ1394". Can you please advise on how to manag

  • XP Professional will not activate

    I am trying to download Windows XP Professional 2002 in my new laptop Windows 7 and it will not activate. Please help me. Thank you.

  • error message on 32 bit vista error 800b0100 of message

    can someone help me figure this out I have extinguished the fire wall and tried to down load it and I still get error 800b0100 message

  • Issue of signature PB SDK 2.0

    In previous versions of the SDK software PB file bbwp/bin/bbwp.properties used to have commented on the line [code] < !="" -="" -=""> company name -> [/ code] We need to remove the comment and add the company name, sign the apps. Now in the SDK 2.0,