RMAN report need backup

We have an incremental level-1 backup Mon-Sat and cold full backup on Sundays with retention policy of 7 days. While troubleshooting some backup issues (space issue, expired backups) I ran the following commands and trying to understand the output.
RMAN> report need backup database;
RMAN retention policy will be applied to the command
RMAN retention policy is set to recovery window of 7 days
Report of files whose recovery needs more than 7 days of archived logs
File Days Name
100 146 /orahprdidx/hprd/psindex05.dbf
RMAN> report unrecoverable;
Report of files that need backup due to unrecoverable operations
File Type of Backup Required Name
RMAN> report need backup days = 7 database;
Report of files whose recovery needs more than 7 days of archived logs
File Days Name
100 146 /orahprdidx/hprd/psindex05.dbf
RMAN> report obsolete recovery window of 7 days;
no obsolete backups found
RMAN>
I looks like I need 146 days worth of archive log files to recover the psindex05.dbf. If so, what I could do to bring that into the 7 days policy?
The database is fine, I am not trying to recover the database.
This was setup by someone and now I am taking over with minimum RMAN experience.
I appreciate any help in this subject.

The datafile was offline. I guess it was created my mistake and hanging in there. Once I do the cleanup it should go away.

Similar Messages

  • RMAN REOPRT NEED BACKUP

    i do not really understand the 'INCREMENTAL' option of "RMAN REOPRT NEED BACKUP" command.
    like the one below:
    RMAN> REPORT NEED BACKUP INCREMENTAL 3 DATABASE;
    Whats the significance of the word 'INCREMENTAL' .
    I need help please.
    thank you

    Yes, of course.
    An incremental backup is a partial backup. It doesn't contain the entire database, just those bits of the database which have changed since the last appropriate backup.
    That's why you can't just restore an incremental backup and open your database: the backup you've just restored only has some of the database blocks in it.
    Imagine Monday's backup happens to capture blocks 5, 10, 15, 20, 25... and so on.
    Tuesday's backup captures blocks 2, 4, 6, 8, 10, 12.. and so on
    Wednesdays captures blocks 1, 3, 7, 9, 11 and so on.
    On Thursday, you lose File 1. To restore it, you need blocks 1, 2, 3, 4, 5, 6 and 7. Getting all those blocks means loading Monday's tape and restoring block 5; loading Tuesday's tape and restoring blocks 2, 4 and 6; and finally loading Wednesday's tape and restoring blocks 1, 3 and 7.
    You get everything back, but it takes you three goes and lots of tape loading.
    Alternatively, On Thursday morning I could do a new complete backup (that therefore includes blocks 1, 2, 3, 4, 5, 6, 7, 8, 9... and so on). When I lose File 1 on Thursday afternoon, I simply have to restore blocks 1, 2, 3, 4, 5, 6 and 7 from the one Thursday morning tape.
    The command you first asked about understands that the incremental restore process is a slow way of doing things and is suggesting to you that anything listed could do with a nice, new complete backup so that you would be able to restore from that new backup rather than the three old ones.

  • Understanding report need backup recovery window ..

    Hello,
    I have a big database which backed up within several days at night time. The retention policy is "recovery window of 3 days". I've tried to analyze the results of
    report need backup;But I noticed than this command return just the list of datafiles having latest backup older than 3 days. I've tried to read again the docs:
    >
    Reports data files for which there are not sufficient backups to satisfy a recovery window-based retention policy for the specified number of days, that is, data files without sufficient backups for point-in-time recovery to any point back to the time SYSDATE - integer.
    >
    Please correct me if I'm wrong, but I consider that the ability to make recover to any point in time within 3 days require the backup taken earlier than 3 days ago and archivelogs from the time when backup was taken to the recover PIT. Im I right? If so then how I should interprete the results of report need backup ? I can't find the detailed explanations of this in the docs :(
    Thanks in advance,
    Constantine

    You are correct in your appreciations.
    This report is about the need of backups, without considering archivelog backups.
    It does not mean that listed files are in an unrecoverable situation.
    Regards.

  • RMAN REPORT OPTIONS

    i do not really understand the 'redundancy' option of rman report command.
    like the one below:
    RMAN> REPORT NEED BACKUP REDUNDANCY 2;
    please, i don't understand what the word 'redundancy' means here.
    I need help please.
    thank you

    Think of redundancy as number of full backups.
    Redundancy 1 is 1 backup ago.
    Redundancy 2 is 2 backups ago.

  • If I need a full rman restore which backups will it use?

    Hello,
    I have a database 11.1.0.7 with 8TB. Block change tracking is enabled.
    At the weekend I take level 0 backup and during the week level 1 cumulative.
    For some weeks the level 0 backup is failing, so I only have level 1 cumulative backups taken every week day with a 4 weeks old level 0 backup.
    If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
    I ask this because grid crontrol tells me that the recent level 1 backups input size is smaller than last week level 1 backups and in between I dont have any level 0 sucessfull backups. Shouldn't the input size of level 1 cumulative increase until the next level 0 backup ?
    The grid reports:
    Backup Name Status Start Time Time Taken Type Output Devices Input Size Output Size Output Rate (Per Sec)
    rman_df_lv1c COMPLETED 25/Jul/2011 21H00m WEST 02:33:29 DB INCR SBT_TAPE *1.32T* 289.02G 32.14M
    rman_df_lv0 FAILED 23/Jul/2011 02H01m WEST DB INCR SBT_TAPE 8.78T 8.06T
    rman_df_lv1c COMPLETED 21/Jul/2011 21H00m WEST 04:39:38 DB INCR SBT_TAPE *3.46T* 550.82G 33.62M
    rman_df_lv1c COMPLETED 20/Jul/2011 21H00m WEST 04:47:36 DB INCR SBT_TAPE *3.37T* 524.36G 31.12M
    rman_df_lv1c COMPLETED 19/Jul/2011 21H00m WEST 04:06:09 DB INCR SBT_TAPE *3.15T* 490.75G 34.03M
    rman_df_lv1c COMPLETED 18/Jul/2011 21H00m WEST 03:40:24 DB INCR SBT_TAPE *2.49T* 410.88G 31.82M
    rman_df_lv0 FAILED 16/Jul/2011 22H16m WEST DB INCR SBT_TAPE 6.27T 5.69T
    rman_df_lv1c FAILED 14/Jul/2011 21H00m WEST 06:13:40 DB INCR SBT_TAPE 4.38T 714.30G 32.62M
    rman_df_lv1c FAILED 13/Jul/2011 21H01m WEST 04:40:45 DB INCR SBT_TAPE 3.25T 542.98G 33.01M
    rman_df_lv1c COMPLETED 12/Jul/2011 21H00m WEST 07:15:54 DB INCR SBT_TAPE 4.74T 847.93G 33.20M
    rman_df_lv1c COMPLETED 11/Jul/2011 21H00m WEST 07:26:40 DB INCR SBT_TAPE 3.78T 766.40G 29.28M
    rman_df_lv0 FAILED 9/Jul/2011 02H32m WEST 04:30:44 DB INCR SBT_TAPE 749.89G 716.02G 45.14M
    rman_df_lv1c FAILED 7/Jul/2011 21H01m WEST 04:49:24 DB INCR SBT_TAPE 2.16T 515.90G 30.42M
    rman_df_lv1c FAILED 6/Jul/2011 21H00m WEST 01:26:06 DB INCR SBT_TAPE 745.83G 165.48G 32.80M
    rman_df_lv1c FAILED 5/Jul/2011 21H01m WEST 00:05:48 DB INCR SBT_TAPE 58.56G 7.56G 22.24M
    rman_df_lv1c FAILED 4/Jul/2011 21H00m WEST 01:55:03 DB INCR SBT_TAPE 422.40G 79.55G 11.80M
    rman_df_lv0 FAILED 3/Jul/2011 16H32m WEST 30:22:04 DB INCR SBT_TAPE 4.53T 4.21T 40.40M

    >
    If I need a full rman restore which backups will it use? Will it be the last level 0 backup with the last level 1 cumulative?
    From http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmvalid.htm
    Validating Backups Before Restoring Them
    You can run RESTORE ... VALIDATE to test whether RMAN can restore a specific file or set of files from a backup. RMAN chooses which backups to use.
    The database must be mounted or open for this command. You do not have to take datafiles offline when validating the restore of datafiles, because validation of backups of the datafiles only reads the backups and does not affect the production datafiles.
    When validating files on disk or tape, RMAN reads all blocks in the backup piece or image copy. RMAN also validates offsite backups. The validation is identical to a real restore operation except that RMAN does not write output files.
    You can monitor what RESTORE VALIDATE does.
    Make precautions, so you do not damage the production DB!!!
    Iordan Iotzov
    http://iiotzov.wordpress.com/

  • How can we generate the report of backup,tablesapcefrom OEM / RMAN

    How can we generate the report of backup status,tablesapce(usedf,free space) for all the databases from OEM / RMAN
    1.)we need generate the report of tablespace used,free, archive...
    2.)How can we generate the Backup status report also

    user13584223 wrote:
    How can we generate the report of backup status,tablesapce(usedf,free space) for all the databases from OEM / RMAN
    1.)we need generate the report of tablespace used,free, archive...There are DBA_* views that expose the necessary information. They are documented in the Reference Manual.
    2.)How can we generate the Backup status report alsoThere are rman commands that give that. They are documented in the Backup and Recovery User's Guide.
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to [url tahiti.oracle.com]tahiti.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • RMAN clone; Avoid backup image

    Oracle 10.2.0.5
    When cloning databases with RMAN on ASM, it creates a backup image before restoring the backup to a clone. Whenever I clone a database, I need double amount of storage to do it.
    Is there way to clone a database in ASM and avoid the additional backup image?
    I appreciate the help.
    Thank you

    Hi Philippe,
    I really appreciate your post, doing things that seem impossible to be possible. (such as to duplicate (online) a database in 10g without restore). :)
    I decided to complement your post doing duplicate using ASM.
    I did not make step by step, but for any Senior DBA can understand.
    P.S: For All:
    Be very careful to do this using ASM because you can damage or remove your target database if the parameters(init<instance_name>.ora) are not configured correctly.
    I created/used a different diskgroup from that used by the target database, for precaution and safety.
    rman target /
    Recovery Manager: Release 10.2.0.5.0 - Production on Mon May 9 22:01:42 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: DB10G (DBID=142098503)
    RMAN> report schema;
    using target database control file instead of recovery catalog
    Report of database schema
    List of Permanent Datafiles
    ===========================
    File Size(MB) Tablespace           RB segs Datafile Name
    1    450      SYSTEM               ***     +DG_ORCL/db10g/datafile/system.259.749761723
    2    1105     UNDOTBS1             ***     +DG_ORCL/db10g/datafile/undotbs1.258.749761723
    3    250      SYSAUX               ***     +DG_ORCL/db10g/datafile/sysaux.257.749761723
    4    3250     USERS                ***     +DG_ORCL/db10g/datafile/users.256.749761725
    List of Temporary Files
    =======================
    File Size(MB) Tablespace           Maxsize(MB) Tempfile Name
    1    98       TEMP                 32767       +DG_ORCL/db10g/tempfile/temp.260.749761777
    # Oracle ASM use db_unique_name to create directory. So I go use.
    sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 9 22:38:48 2011
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    SQL:db10g> show parameter db_unique
    NAME                                 TYPE        VALUE
    db_unique_name                       string      DB10G
    SQL:db10g> ALTER SYSTEM SET db_unique_name=dbclone scope=spfile;
    SQL:db10g> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL:db10g> startup mount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    SQL> show parameter db_uni
    NAME                                 TYPE        VALUE
    db_unique_name                       string      DBCLONE
    $ rman target /
    Recovery Manager: Release 10.2.0.5.0 - Production on Mon May 9 22:43:27 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    connected to target database: DB10G (DBID=142098503, not open)
    RMAN>  BACKUP AS COPY DEVICE TYPE DISK DATABASE FORMAT '+DG_CLONE';
    Starting backup at 09-MAY-11
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=153 devtype=DISK
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00004 name=+DG_ORCL/db10g/datafile/users.256.749761725
    output filename=+DG_CLONE/dbclone/datafile/users.262.750725029 tag=TAG20110509T224348 recid=10 stamp=750725114
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:01:35
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00002 name=+DG_ORCL/db10g/datafile/undotbs1.258.749761723
    output filename=+DG_CLONE/dbclone/datafile/undotbs1.263.750725125 tag=TAG20110509T224348 recid=11 stamp=750725152
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:35
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00001 name=+DG_ORCL/db10g/datafile/system.259.749761723
    output filename=+DG_CLONE/dbclone/datafile/system.264.750725161 tag=TAG20110509T224348 recid=12 stamp=750725170
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting datafile copy
    input datafile fno=00003 name=+DG_ORCL/db10g/datafile/sysaux.257.749761723
    output filename=+DG_CLONE/dbclone/datafile/sysaux.265.750725175 tag=TAG20110509T224348 recid=13 stamp=750725182
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting datafile copy
    copying current control file
    output filename=+DG_CLONE/dbclone/controlfile/backup.266.750725191 tag=TAG20110509T224348 recid=14 stamp=750725193
    channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 09-MAY-11
    channel ORA_DISK_1: finished piece 1 at 09-MAY-11
    piece handle=+DG_CLONE/dbclone/backupset/2011_05_09/nnsnf0_tag20110509t224348_0.267.750725195 tag=TAG20110509T224348 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
    Finished backup at 09-MAY-11
    SQL:db10g> alter database backup controlfile to trace;
    Database altered.
    SQL:db10g>create pfile='$ORACLE_HOME/dbs/initdbclone.ora' from spfile;
    File created.
    SQL:db10g> show parameter db_un
    NAME                                 TYPE        VALUE
    db_unique_name                       string      DBCLONE
    SQL:db10g> alter system set db_unique_name=db10g scope=spfile;
    System altered.
    SQL:db10g> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    $ vi $ORACLE_HOME/dbs/initdbclone.ora
    *.audit_file_dest='/u01/app/oracle/admin/dbclone/adump'
    *.background_dump_dest='/u01/app/oracle/admin/dbclone/bdump'
    *.control_files='/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora'
    *.core_dump_dest='/u01/app/oracle/admin/dbclone/cdump'
    *.db_create_file_dest='+DG_CLONE'
    *.db_name='db10g'
    *.db_recovery_file_dest='+DG_CLONE'
    *.dispatchers='(PROTOCOL=TCP) (SERVICE=dbcloneXDB)'
    *.user_dump_dest='/u01/app/oracle/admin/dbclone/udump'
    # Get list of datafiles on ASM (very useful for huge list)
    set linesize 110
    col DATAFILE_PATH for a100
    SQL:+ASM> select ''''||concat('+'||gname, sys_connect_by_path(aname, '/'))||''',' DATAFILE_PATH
         from ( select b.name gname, a.parent_index pindex, a.name aname,
                  a.reference_index rindex , a.system_created, a.alias_directory,
                  c.type file_type
           from v$asm_alias a, v$asm_diskgroup b, v$asm_file c
           where a.group_number = b.group_number
                 and a.group_number = c.group_number(+)
                 and a.file_number = c.file_number(+)
                 and a.file_incarnation = c.incarnation(+)
         ) WHERE file_type = 'DATAFILE'
    start with (mod(pindex, power(2, 24))) = 0
                and rindex in
                    ( select a.reference_index
                      from v$asm_alias a, v$asm_diskgroup b
                      where a.group_number = b.group_number
                            and (mod(a.parent_index, power(2, 24))) = 0
                            and a.name = UPPER('&DATABASENAME')
    connect by prior rindex = pindex;
    DATAFILE_PATH
    '+DG_CLONE/DBCLONE/DATAFILE/SYSTEM.264.750725161',
    '+DG_CLONE/DBCLONE/DATAFILE/UNDOTBS1.263.750725125',
    '+DG_CLONE/DBCLONE/DATAFILE/USERS.262.750725029',
    '+DG_CLONE/DBCLONE/DATAFILE/SYSAUX.265.750725175',
    $ export ORACLE_SID=db10g
    $ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Mon May 9 23:55:16 2011
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    Connected to an idle instance.
    SQL:dbclone> startup nomount pfile='$ORACLE_HOME/dbs/initdbclone.ora'
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size              92275968 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                6291456 bytes
    SQL> CREATE CONTROLFILE REUSE DATABASE "DB10G" RESETLOGS  ARCHIVELOG
      2      MAXLOGFILES 16
      3      MAXLOGMEMBERS 3
      4      MAXDATAFILES 100
      5      MAXINSTANCES 8
      6      MAXLOGHISTORY 292
      7  LOGFILE
      8    GROUP 1 (
      9      '+DG_CLONE/DBCLONE/onlinelog/group_1.264.749761765',
    10      '+DG_CLONE/DBCLONE/onlinelog/group_1.257.749761767'
    11    ) SIZE 50M,
    12    GROUP 2 (
    13      '+DG_CLONE/DBCLONE/onlinelog/group_2.262.749761769',
    14      '+DG_CLONE/DBCLONE/onlinelog/group_2.258.749761771'
    15    ) SIZE 50M,
    16    GROUP 3 (
    17      '+DG_CLONE/DBCLONEonlinelog/group_3.261.749761771',
    18      '+DG_CLONE/DBCLONE/onlinelog/group_3.259.749761773'
    19    ) SIZE 50M
    20  DATAFILE
    21   '+DG_CLONE/DBCLONE/DATAFILE/SYSTEM.264.750725161',
    22   '+DG_CLONE/DBCLONE/DATAFILE/UNDOTBS1.263.750725125',
    23   '+DG_CLONE/DBCLONE/DATAFILE/USERS.262.750725029',
    24   '+DG_CLONE/DBCLONE/DATAFILE/SYSAUX.265.750725175'
    25  CHARACTER SET WE8ISO8859P1
    26  ;
    Control file created.
    SQL:dbclone> alter database open resetlogs;
    Database altered.
    SQL:dbclone> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL:dbclone> startup mount pfile='$ORACLE_HOME/dbs/initdbclone.ora'
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size              92275968 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    SQL:dbclone> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    $ nid TARGET=/ DBNAME=dbclone
    DBNEWID: Release 10.2.0.5.0 - Production on Tue May 10 00:02:21 2011
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to database DB10G (DBID=142098503)
    Connected to server version 10.2.0
    Control Files in database:
        /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora
    Change database ID and database name DB10G to DBCLONE? (Y/[N]) => yes
    Proceeding with operation
    Changing database ID from 142098503 to 661154259
    Changing database name from DB10G to DBCLONE
        Control File /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora - modified
        Datafile +DG_CLONE/dbclone/datafile/system.264.750725161 - dbid changed, wrote new name
        Datafile +DG_CLONE/dbclone/datafile/undotbs1.263.750725125 - dbid changed, wrote new name
        Datafile +DG_CLONE/dbclone/datafile/sysaux.265.750725175 - dbid changed, wrote new name
        Datafile +DG_CLONE/dbclone/datafile/users.262.750725029 - dbid changed, wrote new name
        Control File /u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora - dbid changed, wrote new name
        Instance shut down
    Database name changed to DBCLONE.
    Modify parameter file and generate a new password file before restarting.
    Database ID for database DBCLONE changed to 661154259.
    All previous backups and archived redo logs for this database are unusable.
    Database is not aware of previous backups and archived logs in Recovery Area.
    Database has been shutdown, open database with RESETLOGS option.
    Succesfully changed database name and ID.
    DBNEWID - Completed succesfully.
    $ vi $ORACLE_HOME/dbs/initdbclone.ora
    *.db_name='dbclone' # change this
    $ export ORACLE_SID=dbclone
    $ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Tue May 10 00:04:26 2011
    Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.
    Connected to an idle instance.
    SQL:dbclone> startup mount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    SQL:dbclone> alter database open resetlogs;
    Database altered.
    SQL:dbclone>  ALTER TABLESPACE TEMP ADD TEMPFILE '+DG_CLONE(TEMPFILE)' SIZE 200M;
    Tablespace altered.
    # Moving SPFILE to ASM
    SQL:dbclone> create spfile='+DG_CLONE(PARAMETERFILE)' from pfile;
    File created.
    SQL:dbclone> shutdown immediate;
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    ASMCMD> mkalias +DG_CLONE/DBCLONE/PARAMETERFILE/spfile.277.750732725 +DG_CLONE/DBCLONE/SPFILEDBCLONE.ORA
    $ vi $ORACLE_HOME/dbs/initdbclone.ora
    SPFILE='+DG_CLONE/DBCLONE/SPFILEDBCLONE.ORA'
    # Moving CONTROLFILE to ASM
    SQL:dbclone> startup nomount
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    SQL:dbclone> show parameter control
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     7
    control_files                        string      /u01/app/oracle/product/10.2.0
                                                     /db_1/dbs/control_dbclone.ora
    SQL:dbclone> alter system set control_files='/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora','+DG_CLONE' scope=spfile;
    System altered.
    SQL:dbclone> exit
    $ rman target /
    connected to target database: dbclone (not mounted)
    RMAN> shutdown immediate
    using target database control file instead of recovery catalog
    Oracle instance shut down
    RMAN> startup nomount
    connected to target database (not started)
    Oracle instance started
    Total System Global Area     293601280 bytes
    Fixed Size                     2095872 bytes
    Variable Size                104858880 bytes
    Database Buffers             180355072 bytes
    Redo Buffers                   6291456 bytes
    RMAN> restore controlfile from '/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora';
    Starting restore at 10-MAY-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    channel ORA_DISK_1: copied control file copy
    output filename=/u01/app/oracle/product/10.2.0/db_1/dbs/control_dbclone.ora
    output filename=+DG_CLONE/dbclone/controlfile/current.278.750733129
    Finished restore at 10-MAY-11
    RMAN> exit
    Recovery Manager complete.
    $ sqlplus / as sysdba
    SQL:dbclone> show parameter control
    NAME                                 TYPE        VALUE
    control_file_record_keep_time        integer     7
    control_files                        string      /u01/app/oracle/product/10.2.0
                                                     /db_1/dbs/control_dbclone.ora,
                                                      +DG_CLONE/dbclone/controlfile
                                                     /current.278.750733129
    SQL> alter system set control_files='+DG_CLONE/dbclone/controlfile/current.278.750733129' scope=spfile;
    System altered.
    SQL> shutdown immediate;
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  293601280 bytes
    Fixed Size                  2095872 bytes
    Variable Size             104858880 bytes
    Database Buffers          180355072 bytes
    Redo Buffers                6291456 bytes
    Database mounted.
    Database opened.
    SQL> exitCheers,
    Levi Pereira

  • RMAN Report

    Hi,
    I am using ORACLE 10.2 G. I have done the following on my pc :
    ALTER TABLESPACE USERS BEGIN BACKUP;
    CREATE TABLE NOTBACKEDUP(ID INTEGER, STR VARCHAR(16)) TABLESPACE USERS;
    INSERT INTO NOTBACKEDUP VALUES(1, 'ROW 1');
    INSERT INTO NOTBACKEDUP VALUES(2,'ROW 2);
    COMMIT;
    ALTER TABLESPACE USERS END BACKUP;
    How do I view RMAN Report ? I need to print that report.
    Thanks .

    Hi,
    I have never used RMAN before, I need to print a copy of RMAN report to show that work that I provided in my question. How do I start RMAN ? and How Do I print that report ? I am still in dilema with respect to above statement.
    Take time and try to refer to the below oracle documentation
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup008.htm
    Note:- Don't be in hurry

  • Rman - "report unrecoverable" concept

    Hi
    I am readin g a book on rman (rman recipes 11g from APress).
    I m not able to understand what is the purpose of "report unrecoverable" command. Book says:
    >
    Ref: Section 8.3 - page# 229:
    You want to identify which datafiles have been affected by unrecoverable operations, since RMAN needs to back up those files as soon as possible after you perform an unrecoverable operation.
    Use the report unrecoverable command to find out which datafiles in the database have been marked unrecoverable because they’re part of an unrecoverable operation. Here’s an example showing how to use the report unrecoverable command:
    RMAN> report unrecoverable;
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    1 full /u01/app/oracle/data/prod1/example01.dbf
    RMAN>Could someone please give example of unrecoverable operation(s)? And how could rman/oracle know before hand if such an unrecoverable operation is going to be performed on certain datafile(s)?
    Thanks

    user12033597 wrote:
    Hi
    I am readin g a book on rman (rman recipes 11g from APress).
    I m not able to understand what is the purpose of "report unrecoverable" command. Book says:
    Ref: Section 8.3 - page# 229:
    You want to identify which datafiles have been affected by unrecoverable operations, since RMAN needs to back up those files as soon as possible after you perform an unrecoverable operation.
    Use the report unrecoverable command to find out which datafiles in the database have been marked unrecoverable because they’re part of an unrecoverable operation. Here’s an example showing how to use the report unrecoverable command:
    RMAN> report unrecoverable;
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    1 full /u01/app/oracle/data/prod1/example01.dbf
    RMAN> Could someone please give example of unrecoverable operation(s)? And how could rman/oracle know before hand if such an unrecoverable operation is going to be performed on certain datafile(s)?
    Thanks A datafile or tablespace are set to unrecoverable if any operation that had been performed (since the last backup taken on these datafiles) on datafile or tablespace that are unrecoverable.
    A little explanation:
    When ever a operation occurs on database i.e. any dml occurs on tables, these operation generates REDO information in redolog files. So when someone explicitly disable the logging information to redologfile(by hint no_logging), then datafile is marked as unrecoverable.
    Oracle says it unrecoverable because oracle cannot perform recovery by reading from redologfile or archivefiles if datafile crashes and need a recovery. Thats why rman warns you about such operation which could have taken place and point you to datafile which had these operation performed. The operations which are unrecoverable are:
    1) direct load/SQL load
    2) direct-path inserts result from insert or merge statement
    3) ALTER TABLE commands
    4) CREATE and ALTER INDEX commands
    5) INSERT /*+APPEND*/
    6) partition manipulation
    7) database object that has explicitly set with nologging option
    8) Oracle eBusiness Suite concurrent job execution identified in Oracle metalink note: 216211.1
    8) Oracle eBusiness Suite patches activities that involve database object manipulation
    9) SQL*loader with nologging
    So once you take the full backup of datafiles (which are affected by these operation) will clearout the Unrecoverable warning. Because now oracle has the backup of these files.
    What preventions you can take for not making datafile to Unrecoverable?
    Use force_logging
    Also see
    http://www.pythian.com/news/7401/oracle-what-is-an-unrecoverable-data-file/
    Hope this help you in understanding

  • RMAN reports

    Hi - need some tips on generating useful RMAN reports. (Not using Recovery Catalog).
    SQL> select input_type,
      2  round(output_bytes/1024/1024,2) "MB",
      3  status,
      4  start_time,
      5  end_time,
      6  time_taken_display "Total Time"
      7  from v$rman_backup_job_details;
    INPUT_TYPE              MB STATUS          START_TIME END_TIME   Total Time
    DB INCR             191,63 COMPLETED       15.04.2011 15.04.2011 00:01:05
    1 row selected.As you can see this was a incremental backup. But I would like to know what level and what type of incremental backup that was used. I have tried to search through all the v$rman views but cannot find anything that would give me that information.
    Is it not possible to get that kind of information from the database views?
    Thanks in advance.

    Hemant K Chitale wrote:
    But I would like to know what level and what type of incremental backup that was used.Unfortunately no. If you run a BACKUP .. INCREMENTAL -- whether it is LEVEL 0 or LEVEL 1 -- it is reported as "DB INCR". So, you can't distinguish between L0 and L1 backups !
    You have to cross-check the times with your own backup schedules (e.g. you know when L0 backups are scheduled and when L1 backups are scheduled) OR backup run logs (using the LOG option or capturing the screen output).
    Hemant K ChitaleHerman,
    I tested tychos's solution (querying v$backup_set_details), and it looks Ok to me?

  • Unrecoverable_change# and rman report unrecoverable

    I am running a test db oracle 11gR2 on windows server 2008.
    I am running oracle suggested backup strategy for my backup operation.
    So every night i run incremental backup and apply the previous incremental to image copies.
    I am confused on why when i run a query like
    select file#,name,unrecoverable_change#,unrecoverable_time from v$datafile
    i have atleast one or two datafiles whose unrecoverable_change# and unrecoverable_time value is not 0.
    Whether the operation was in nologging or not, since i have a incremental backup, why is the above value not 0??
    However when i run in rman,
    report unrecoverable;
    rman does not report anything. So whats the difference b/w rman unrecoverable and the one from v$datafile??
    can someone help me understand the correct concept of unrecoverable_change#??
    Thanks.

    Yes , this is right. At least with Oracle XE as show in following test case:
    SQL> select name, unrecoverable_change#, unrecoverable_time from v$datafile where file#=1;
    NAME
    UNRECOVERABLE_CHANGE# UNRECOVER
    C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
                        0
    SQL> select name, unrecoverable_change# UC, unrecoverable_time UT from v$datafile where file#=1;
    NAME
            UC UT
    C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
             0
    SQL> desc t;
    ERROR:
    ORA-04043: object t does not exist
    SQL> create table t(x int) nologging;
    Table created.
    SQL> insert /*+ APPEND */ into t select object_id from dba_objects;
    12616 rows created.
    SQL> commit;
    Commit complete.
    SQL> select name, unrecoverable_change# UC, unrecoverable_time UT from v$datafile where file#=1;
    NAME
            UC UT
    C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
       2004176 16-SEP-10
    SQL> exit
    Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    C:\>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Thu Sep 16 20:59:51 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database: XE (DBID=2607125346)
    RMAN> report unrecoverable;
    using target database control file instead of recovery catalog
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    1    full or incremental     C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
    RMAN> backup incremental level 1 datafile 1;
    Starting backup at 16-SEP-10
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=25 devtype=DISK
    channel ORA_DISK_1: starting incremental level 1 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
    channel ORA_DISK_1: starting piece 1 at 16-SEP-10
    channel ORA_DISK_1: finished piece 1 at 16-SEP-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_09_16\
    O1_MF_NNND1_TAG20100916T210031_694TBHLT_.BKP tag=TAG20100916T210031 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
    channel ORA_DISK_1: starting incremental level 1 datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 16-SEP-10
    channel ORA_DISK_1: finished piece 1 at 16-SEP-10
    piece handle=C:\ORACLEXE\APP\ORACLE\FLASH_RECOVERY_AREA\XE\BACKUPSET\2010_09_16\
    O1_MF_NCSN1_TAG20100916T210031_694TC04T_.BKP tag=TAG20100916T210031 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 16-SEP-10
    RMAN> report unrecoverable;
    Report of files that need backup due to unrecoverable operations
    File Type of Backup Required Name
    RMAN>And you still have:
    C:\>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Sep 16 21:08:27 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
    SQL> select name, unrecoverable_change# UC, unrecoverable_time UT from v$datafile where file#=1;
    NAME
            UC UT
    C:\ORACLEXE\ORADATA\XE\SYSTEM.DBF
       2004176 16-SEP-10Edited by: P. Forstmann on 16 sept. 2010 21:07

  • RMAN report to a table

    Hello,
    is there a way to create a RMAN report for all the backups that are being done in different databases and that report should be directly writing to a sample table.
    the report should contain the colums like -
    DBNAME BKPTYPE DATE STATUS STARTTIME ENDTIME .. and so on..
    i've tried using some v$views like V$RMAN_BACKUP_JOB_DETAILS,V$RMAN_BACKUP_JOB_DETAILS,V$BACKUP_SET_DETAILS. etc... but i need a some sql or pl/sql that should give me the complete report.
    thanks,
    vinay

    Hi Vinay,
    are you using recovery catalog then you can generate the backup report for all databases using the following query.
    select
    session_key, db_name,
    min(r.start_time) start_rman,
    min(c.checkpoint_time) start_controlfile,
    min(d.checkpoint_time) start_datafile,
    min(a.first_time) start_archivelog,
    max(a.next_time) end_archivelog,
    min(b.start_time) start_set,
    max(b.completion_time)
    end_set, min(p.start_time)
    start_piece, max(p.completion_time) end_piece
    from
    rman.rc_backup_controlfile_details c
    join
    rman.rc_backup_datafile_details d
    on c.session_key = d.session_key
    join
    rman.rc_backup_archivelog_details a
    on c.session_key = a.session_key
    join
    rman.rc_backup_set_details b
    on c.session_key = b.session_key
    join
    rman.rc_backup_piece_details p
    on c.session_key = p.session_key
    join
    rman.rc_rman_backup_job_details r
    on c.session_key = r.session_key
    where
    db_key =
    (select db_key
    from rman.rc_database
    where name = 'alice1')
    and
    c.checkpoint_time >sysdate-14
    and
    d.checkpoint_time >sysdate-14
    and
    r.start_time >sysdate-14
    and
    a.first_time >sysdate-14
    and
    b.start_time >sysdate-14
    and
    p.start_time >sysdate-14
    and
    a.next_time >sysdate-14
    and
    b.completion_time >sysdate-14
    and
    p.completion_time >sysdate-14
    group by
    session_key,
    db_name;
    Regards,
    Jey

  • NOLOGGING with CTAS and RMAN's Incremental backup

    DB Version: 10.2.0.4
    OS : AIX
    We use RMAN for our backup scheduled via cron.
    Retention Policy : REDUNDANCY 1
    Type             : Incremental On 31st of every month, in most of our schemas, we recreate lots of tables using CTAS.
    Because of the size , CREATE TABLE statements take a long time. Since we run on Standard edition, we can't use PARALLELISM.
    NOLOGGING is the only option to improve the performance. But we are worried about the redo not being generated for these tables and the potential loss of data in case of a crash.
    Currently we take a LEVEL0 backup every wednesday and Sunday nights and LEVEL1 backup on the rest of the days.
    I know that everything will be backed up on LEVEL0. But, what if 31st falls on a day where only LEVEL1 backup occurs. We'll only be safe until the next LEVEL0 comes along.
    Any workarounds for this?

    When you write "we need" you make an assumption not supported by the facts.
    The fact is that you need to refresh the data ... you do not need to recreate the table.
    This is just one better solution:
    http://www.morganslibrary.org/reference/materialized_views.html
    there are others too. But not knowing your version number, and you still have not really stated the business case, I can not advise which would be the best. But it is safe to say there is no way on earth I would do what you are doing based on what you've posted. For example why at the end of each day can't you copy that day's rows to a predefined table spreading the load out over all 30 days and then, at month's end truncate the current table and rename it then rename the already loaded staging table. The swap could be done in a few seconds with essentially no overhead.

  • RMAN vs Online backup

    what would be the main advantages to use RMAN vs Online backup?
    On both backup/recovery stand point, RMAN is a lot more reliable and less user error/easy to recover/ faster backup and revocery time?
    I am using online backup but want to switch to RMAN..

    RMAN is the oracle suggested way of doing backups. RMAN automates a lot of the things that you need to handle if doing a backup the "old fashioned way". Things like the spfile, etc are automatically done w/ the backup.
    Another advantage is that RMAN only backs up blocks that are used, so if you have a datafile that is 2G, but only 100M of it is used it will only have to backup 100M, where with a manual backup you would need to backup the entire file.
    Is one way better than another? It is hard for me to say, once you become familiar with RMAN, you'll wonder why you didn't learn it earlier.
    My 2 cents anyway.

  • RMAN and consistent backup

    Hi,
    in10g, I stop my DB and make a cold backup of my database (it's then a consistent backup).
    Can RMAN use this backup ? How ?
    Thank you.

    Yes, you can use a Cold Backup that was not taken by RMAN -- provided that you have the controlfile included in the backup. In RMAN you'd have to CATALOG each of the files in the backup as DATAFILE COPYies before RMAN can be "aware" of them.
    If the backup was taken with an OS command, you simple use the revers e to restore it. If your backup did not include the Online Redo Logs, you'd need to use
    STARTUP MOUNT
    ALTER DATABASE RECOVER
    CANCEL
    ALTER DATABASE OPEN RESETLOGSin SQLPlus.
    If you want to Apply ArchiveLogs generated after the backup, then don't  open resetlogs !
    continue with
    RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCELand CANCEL when you have applied the last available archivelog, after which you will
    ALTER DATABASE OPEN RESETLOGSHemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Aug 30, 2009 11:31 PM

Maybe you are looking for

  • Closed lid mode not working

    Hello all. I have a 17" Macbook Pro core2duo and I recentley bought the Apple DVI to video adaptor see http://store.apple.com/133-622/WebObjects/australiastore?productLearnMore=M9267G /A However when i plug in a USB mouse, keyboard, and the cable and

  • Is it normal for my computer to turn on then off then on again?

    Sometimes when I turn my computer on it turns off then it turns on.  I have not had any other problems with this and there is no error in the debug.  My friends Maximus 775 board used to do this a lot to.  Is this an intel thing? Specs gd-80 i5 750 a

  • Update Bluetooth 2.0

    I can't update my Bluetooth Firmware to 2.0 with Software Update. It says: "There was a problem updating Bluetooth so that the update cannot continue. Turn off any unnecessary Bluetooth devices you are using and try updating again." Also, I am new on

  • I want to know when the method "public void setName" is invoked?

    The jsp file contain the one which list below: <mt:hello name="foo"/> package com.acme.tag; import javax.servlet.jsp.*; import javax.servlet.jsp.tagext.*; public class HelloTag extends TagSupport private String name=""; public HelloTag() super(); � p

  • Server manager not connecting for Oracle 8i

    I am not able to connect to SVRMGR30 on Windows NT 4.0 ....ERROR 12560 - TNS error in Adaptor ...This is URGENT ...Can any1 help ?