Delete archivelogs with rman

I have this setting on one database: 10.2.0.3 on linux x86
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
When a backup occurs, i issue the following at the end:
delete noprompt obsolete device type disk;
Which delete an old backup and old archivelogs on the server.
Situation: It happen rarely, but still, sometimes, I have to manualy delete archivelogs to make space.
Here is what i do: Ensure that the archivelogs which I am about to delete are backed up.
Then I issue the following Rman command:
crosscheck archivelog all;
delete noprompt expired archivelog all;
which tells Rman that the archivelogs are not on the os anymore.
Is there a way to delete archivelogs with rman or oracle, not manually on the os?
note: i do not want to delete a backupset will doing so.
This is temporary solution. More disk space is comming and new backup scenario will be in place for this database.

Exists many ways to make this, as:
DELETE NOPROMPT FORCE COPY OF ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-1';
or
BACKUP ARCHIVELOG all DELETE ALL INPUT;
or
BACKUP ARCHIVELOG all NOT BACKED UP 2 TIMES DELETE ALL INPUT;
...

Similar Messages

  • How to delete archivelog with RMAN in the Primary and Standby database?

    Hello,
    I am working on Oracle 10gR2.
    My question is :
    How could I implement a automatized and secure way of:
    1) Delete archivelogs on my PRIMARY server only when these logs are successfully TRANSFERED to all my standby databases?
    2) Delete archivelogs on my STANDBY server only when these logs are sucessfully APPLIED to the database?
    Thanks a lot for your help!

    on 10G
    CONFIGURE ARCHIVELOG DELETION POLICY TO [CLEAR | NONE | APPLIED ON STANDBY];
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rman.htm#CHDBEICE
    Coskan Gundogar
    http://coskan.wordpress.com

  • When can you delete archivelogs with RMAN

    My database is running in archivelog and I am using RMAN to back up the database to a SBT device (tape). The question that I have is if I do backup database plus archivelogs and this backupset is wriiten to tape can I then delete the arhivelogs from disk? On the same note when I do incremental backups can I then delete all archivelogs on disk if the backupset set is written to tape.
    Thanks All!

    user10784896 wrote:
    My database is running in archivelog and I am using RMAN to back up the database to a SBT device (tape). The question that I have is if I do backup database plus archivelogs and this backupset is wriiten to tape can I then delete the arhivelogs from disk? On the same note when I do incremental backups can I then delete all archivelogs on disk if the backupset set is written to tape.
    Thanks All!Yes, and you should let rman manage that. Go to the Fine Backup and Recovery Manual at tahiti.oracle.com and check out these options for BACKUP
    archivelog delete input
    archivelog delete all input
    archivelog delete all not backed up n times
    and several other similar options.

  • Delete archivelogs using RMAN

    Hi,
    I usually delete archivelogs with RMAN with command as "DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE -1' if i have to clear the archivelogs to freeup space from the FRA.
    My question is if i delete the archivelogs-does this deletes the records from the catalog also(I think so) if backed up to tape.In that case the catalog doesn't have info for these archives even if they are on tapes,correct?
    So in case of recovery how can i restore them?
    Thanks
    Edited by: 822424 on May 15, 2011 7:28 PM

    The RESYNC CATALOG that may be part of your backup script or implicitly executed by a Backup would synchronise from the control file to the catalog schema (repository).
    I don't think that you can selectively decide what to not resync.
    You can query RC_ARCHIVEDLOG (the STATUS column) in the repository and in V$ARCHIVED_LOG (which is against the controlfile)
    i) before the DELETE executed by RMAN and
    ii) again after the next BACKUP which does a RESYNC to see if changes are reflected.
    Hemant K Chitale

  • Skip deleted archivelog backup RMAN

    Hi
    I have a database in which I want to backup all the archive logs generated during the last 24 hours.But two or three archive logs generated during that period where deleted accidentally..Now if I give the command to backup archive log generated during 24 hours,wiil the backup complete successfully?

    Now if I give the command to backup archive log generated during 24 hours,wiil the backup complete successfully?What happens when you try it ? You could test this in a test database with 4 hours of archivelogs if you would rather not backup production archivelogs.
    The RMAN documentation has commands that help -- e.g. CROSSCHECK and DELETE. Lookup those commands.
    Hemant K Chitale

  • Deleting archives with RMAN when physical database is in place

    hi all,
    i want to backup and remove archvie logs using RMAN on one of my system which is having a physical standby database.how can i ensure RMAN backup and delete only archive logs which are shipped to DR site(physical standby database).when ever i fire my rman script it should delte only the archvies which are alredy shipped.i appreciate your valueble inpus in this regard.
    regards
    SAngeeth

    Hi,
    @sangeeth +" what if my database has no flash recovery area confgured. "+
    This is introduced in Oracle Database 11g R1. Please check http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/wnbradv.htm#sthref6
    Archived log deletion policy enhancements
    When you CONFIGURE an archived log deletion policy, the configuration applies to all archiving destinations, including the flash recovery area. Both BACKUP ... DELETE INPUT and DELETE ... ARCHIVELOG obey this configuration, as does the flash recovery area. You can also CONFIGURE an archived redo log deletion policy so that logs are eligible for deletion only after being applied to or transferred to standby database destinations. You can set the policy for mandatory standby destinations only, or for any standby destinations.
    Regards,
    Vaibhav

  • Delete archivelogs on a manual standby with RMAN

    Hi,
    Using Oracle 10.2.0.3 Standard Edition, I created a manual physical standby database with a standby controlfile. FRA is configured on both servers.
    I want to use RMAN (recovery catalog in the controlfile) to delete archivelogs on the standby server using the following command:
    rman target /
    delete archivelog until time 'sysdate-5';
    The synchronisation is monitored on a daily basis so there's no risk to delete an archivelog that is not applied.
    My question: Is there a risk of corruption of the RMAN catalog (in the controlfile) in the event of a failover? I mean, will I be able to perform my RMAN backup as it becomes the primary?
    Thanks
    Christophe

    I don't see a problem with this statement. In 10g - even when a controlfile is missing backup information for whatever reason - backups can be recataloged.
    Werner

  • RMAN in 10g database deletes archivelog files before standby receives them

    Hi all,
    We currently have problem with our Oracle 10gR1 database on Windows 2000 server in that the RMAN backups on the primary database delete archivelogs before the standby database can receive current and new archivelogs from primary database. What happens is that RMAN backs up the archivelogs and deletes them from disk before the archivelogs are sent to the standby. The standby then looks for these archivelogs on the primary but is unable to locate them. Whenever this happens, the production database (primary) hangs and we have to restart the instance on the primary. We have our Data Guard setup in maximum performance mode so this should not happen.
    As a short term fix, we have changed the backups to have RMAN backup and delete the archive logs 15 minutes older than current time so that the standby can receive the logs and not have problems. Besides this fix is there a long term solution to the problem or is it a bug in Oracle 10g? The issue came up after we upgraded from 9i to 10g and never saw it before in 9i with RMAN and Data Guard physical standby databases.
    Thanks
    Ben Prusinski, Oracle DBA

    thanks for answer...
    did you managed to make it 'work'?
    according to doc. if set on standby it should:
    <>
    Then, these files are eligible for deletion:
    Archived redo log files in the flash recovery area that
    were applied on the standby database.
    <>
    and this is to my understanding irespective to retention policy...unfortunately report obsolete does not report applied archived logs as eligable for deletion.
    How this works in your case?
    regards.
    goran

  • Rman archivelog backup fails with rman-03002,ora-19563

    Hi,
    D:\ Oracle- -\BIN\RMAN TARGET / NOCATALOG
    RMAN> backup archivelog all;
    RMAN-03002: Error with backup command on 06-25-2013
    ORA-19563: Header-Validation is not successful.
        fails with the given errors.
    11.2.0.2 PROD DB on Windows Server 2008  R2 Enterpriise.
    When I issue BACKUP INCREMENTAL LEVEL 0 DATABASE; it works fine. but with archivelog it is creating problems. Unfortunatly, I have not found exactly the same problem on google and on Oracle support.
    The DB is using INIT.ORA and last time when I switched the mode to archive log mode I set the parameter like SCOPE=MEMORY as SPFILE was not in use and ALTER SYSTEM with SCOPE=BOTH  FRA destination and size, but after the DB restarting of course that setting is gone and I am having these problems.
    Please suggest.
    Thanks a lot.
    Best Regards,

    Hi,
    Thanks a lot.
    I don't think that archivelogs were relocated, except I changed the location yesterday.
    As I wrote at the start that because of INIT.ORA file being in use instead of SPFILE. I set DB_RECOVERY_FILE_DEST, DB_RECOVERY_DEST_SIZE after changing the DB mode to ARCHIVELOG, but DB was restarted by somebody else, and as the parameter changing was NOT PERMANENT, it rollback.
    LOG_ARCHIVE_DEST was set to d:\oradata\db with archivelog mode but db_recovery_file_dest and size was set to 0. Now here, I have no idea that whether archivelogs were not being backed up or deleted physically, but I guess that as log_archive_dest parameter is deprecated and mode is set to archivelog with no real ARCHIVELOG DESTINATION. Please correct me if I am wrong or totally wrong :-)
    I performed DELETED EXPIRED ARCHIVELOG ALL, and it deleted 49 EXPIRED objects.
    Now CROSSCHECK ARCHIVELOG ALL and LIST ARCHIVELOG ALL shows nothing.
    LIST BACKUP OF ARCHIVELOG ALL has of course those 49 archivelog gap.
    Could you please tell the impacts of those 49 missing archivelogs. Retention policy is set to 14 days. I mean the risk is for 14 days right? As anyhow, the older backups are being DELETED according to retention policy of RMAN.

  • Setting database in ARCHIVELOG and duplicating with RMAN

    Hi. I've tried to duplicate a Oracle 11g database that wasn't in ARCHIVELOG mode without success.
    Here are the steps I followed:
    - Put original database in archivelog (SID: originaldb, startup mount, alter database archivelog, alter database open).
    - Configure tnsnames and create remote instance (SID: newdb)
    - Start 'newdb' (startup nomount)
    - Connect to 'original' using RMAN (rman target sys@originaldb)
    - Connect to the remote database 'newdb' (connect auxiliary sys@newdb)
    - Duplicate database (duplicate target database to newdb from active database nofilenamecheck)
    Then I get the following error: "RMAN-20208: UNTIL CHANGE is before RESETLOGS change"
    How should I proceed? Do I have to create a backup before trying to duplicate database?
    Thanks.

    Hi,
    Thanks a lot.
    I don't think that archivelogs were relocated, except I changed the location yesterday.
    As I wrote at the start that because of INIT.ORA file being in use instead of SPFILE. I set DB_RECOVERY_FILE_DEST, DB_RECOVERY_DEST_SIZE after changing the DB mode to ARCHIVELOG, but DB was restarted by somebody else, and as the parameter changing was NOT PERMANENT, it rollback.
    LOG_ARCHIVE_DEST was set to d:\oradata\db with archivelog mode but db_recovery_file_dest and size was set to 0. Now here, I have no idea that whether archivelogs were not being backed up or deleted physically, but I guess that as log_archive_dest parameter is deprecated and mode is set to archivelog with no real ARCHIVELOG DESTINATION. Please correct me if I am wrong or totally wrong :-)
    I performed DELETED EXPIRED ARCHIVELOG ALL, and it deleted 49 EXPIRED objects.
    Now CROSSCHECK ARCHIVELOG ALL and LIST ARCHIVELOG ALL shows nothing.
    LIST BACKUP OF ARCHIVELOG ALL has of course those 49 archivelog gap.
    Could you please tell the impacts of those 49 missing archivelogs. Retention policy is set to 14 days. I mean the risk is for 14 days right? As anyhow, the older backups are being DELETED according to retention policy of RMAN.

  • Rman syntext for deleting archivelogs

    I am looking for rman syntax to delete all archivelogs but leave last 30 minutes on the disk. I tried following but it did not work
    delete archivelog until time ‘sysdate – 30/(24* 60)’
    any help would be appreciated.
    Thanks,
    mkjoco

    There was no error but RMAN was keep deleting extra logs that were created after the requested time. But good news is that it is working now with following command:
    "delete copy of archivelog all completed before 'sysdate - 30/(24*60)';"
    I found this on the net. It seems to me that RMAN was looking for first SCN time, in the log with "UNTIL TIME " but with "COPY OF" its look for file creation time.
    Don't take my words this is my guess .... If someone can verify this would be nice
    Thanks

  • Rman-08137 can't delete archivelog because the capture process need it

    When I use the rman utility to delete the old archivelog on the server ,It shows :Rman-08137 can't delete archivelog because the capture process need it .how to resolve the problem?

    It is likely that the "extract" process still requires those archive logs, as it is monitoring transactions that have not yet been "captured" and written out to a GoldenGate trail.
    Consider the case of doing the following: ggsci> add extract foo, tranlog, begin now
    After pressing "return" on that "add extract" command, any new transactions will be monitored by GoldenGate. Even if you never start extract foo, the GoldenGate + rman integration will keep those logs around. Note that this GG+rman integration is a relatively new feature, as of GG 11.1.1.1 => if "add extract foo" prints out "extract is registered", then you have this functionality.
    Another common "problem" is deleting "extract foo", but forgetting to "unregister" it. For example, to properly "delete" a registered "extract", one has to run "dblogin" first:
    ggsci> dblogin userid <userid> password <password>
    ggsci> delete extract foo
    However, if you just do the following, the extract is deleted, but not unregistered. Only a warning is printed.
    ggsci> delete extract foo
    <warning: to unregister, run the command "unregister...">
    So then one just has to follow the instructions in the warning:
    ggsci> dblogin ...
    ggsci> unregister extract foo logretention
    But what if you didn't know the name of the old extracts, or were not even aware if there were any existing registered extracts? You can run the following to find out if any exist:
    sqlplus> select count(*) from dba_capture;
    The actual extract name is not exactly available, but it can be inferred:
    sqlplus> select capture_name, capture_user from dba_capture;
    <blockquote>
    CAPTURE_NAME CAPTURE_USER
    ================ ==================
    OGG$_EORADF4026B1 GGS
    </blockquote>
    In the above case, my actual "capture" process was called "eora". All OGG processes will be prefixed by OGG in the "capture_name" field.
    Btw, you can disable this "logretention" feature by adding in a tranlog option in the param file,
    TRANLOGOPTIONS LOGRETENTION DISABLED
    Or just manually "unregister" the extract. (Not doing a "dblogin" before "add extract" should also work in theory... but it doesn't. The extract is still registered after startup. Not sure if that's a bug or a feature.)
    Cheers,
    -Michael

  • Rman delete archivelog until time 2hrs

    guys,
    I want to use this inside rman.
    rman{
    RUN{
    ALLOCATE CHANNEL ch01 TYPE DISK FORMAT 'blah lah';
    BACKUP
    ARCHIVELOG ALL
    DELETE archivelog until time "older than 2 hrs ago" backed up 1 times to device type sbt; ;
    RELEASE CHANNEL ch01;
    how do i translate this "older than 2 hrs ago" to RMAN language
    Edited by: user2579172 on Mar 29, 2010 1:19 PM

    this served my purpose :
    DELETE archivelog until time "sysdate-1/30" backed up 1 times to device type disk ;
    but
    rman is prompting whether to delete the archivelogs or not
    ex:
    List of Archived Log Copies
    Key Thrd Seq S Low Time Name
    4303374 1 11623
    Do you really want to delete the above objects (enter YES or NO)?
    Error occurred getting response - assuming NO response
    released channel: ch01
    RMAN>
    HOW i heck I tell RMAN inside the run {   to delete the archive logs without prompting me for YES OR NO                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem creating physical Standby database with RMAN

    Hi All
    I am trying to learn oracle dataguard and as part of the process learning creating standby database.
    Platform : Sun-Fire-V250 Sparc, Solaris 10
    Database Version - Oracle 11R2
    I am creating standby database on same server, so directory structure is different.
    Following the instructions on Oracle site I managed to create a functional physical standby database. But I am not able to create standby database using RMAN. These are the steps that I followed-
    1.Set up all necessary parameters on primary database as done while creating physical standby database manually, eg setting force logging, creating standby logs etc.
    2.Edited parameter file on primary database as done while creating manual pysical standby database creation. Some of the changes done are-
    On Primary Database:
    *.FAL_CLIENT='orcl11020' #Primary database unique name
    *.FAL_SERVER='stdby_11' #Standby database unique name
    db_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020'
    log_file_name_convert='/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11/redo_mem','/<dir>/oradata/orcl11020/redo_mem'
    standby_file_management=auto
    *.log_archive_config='DG_CONFIG=(orcl11020,stdby_11)'
    *.log_archive_dest_1='LOCATION=/<dir>/flash_recovery_area/ORCL11020/archivelog
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=orcl11020'
    *.log_archive_dest_2='SERVICE=stdby_11 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=stdby_11'
    *.LOG_ARCHIVE_DEST_STATE_1='ENABLE'
    *.LOG_ARCHIVE_DEST_STATE_2='ENABLE'
    *.LOG_ARCHIVE_FORMAT='%t_%s_%r.arc'
    *.LOG_ARCHIVE_MAX_PROCESSES=30
    Copied same pfile for standby database and modified following-
    *.control_files='/<dir>/oradata/stdby_11/stdby_11.ctl','/<dir>/fra_stdby/stdby_11/stdby_11.ctl'
    *.db_name='orcl1102'
    *.db_unique_name='stdby_11'
    *.FAL_CLIENT='stdby_11'
    *.FAL_SERVER='orcl11020'
    db_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11'
    log_file_name_convert='/<dir>/oradata/orcl11020','/<dir>/oradata/stdby_11','/<dir>/oradata/orcl11020/redo_mem','/<dir>/oradata/stdby_11/redo_mem'
    standby_file_management=auto
    *.log_archive_dest_1='LOCATION=/<dir>/fra_stdby/STDBY_11/archivelog
    VALID_FOR=(ALL_LOGFILES,ALL_ROLES) db_unique_name=stdby_11'
    *.log_archive_dest_2='SERVICE=orcl11020 LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)
    db_unique_name=orcl11020'
    3. Add relevant information in tnsnames.ora and listener.ora files and then restart listener.
    3. Created password file with same credential as primary database.
    4.Up-to-date RMAN backup of primary database available.
    5.Create standby controlfile with rman
    While primary database s open (I tried with primary database in mount mode as well)-
    $>rman catalog rman/paswd@rman target /
    RMAN> BACKUP CURRENT CONTROLFILE FOR STANDBY;
    6. Open a new terminal and startup standby database in nomount mode using parameter file created -
    $>ORACLE_SID=stdby_11
    $>export ORACLE_SID
    $>sqlplus / as sysdba
    SQL>STARTUP NOMOUNT pfile='<location/initfilename.ora'
    SQL>quit
    $> rman AUXILIARY / target sys/passwd@orcl11020 catalog rman/passwd@rman
    RMAN>DUPLICATE TARGET DATABASE FOR STANDBY DORECOVER;
    RMAN finishes without error but archive logs are not being tranported. Looking at the log, following caught my eye-
    Error 1017 received logging on to the standby
    Check that the primary and standby are using a password file
    and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
    and that the SYS password is same in the password files.
    returning error ORA-16191
    FAL[client, ARC2]: Error 16191 connecting to orcl11020 for fetching gap sequence
    Errors in file /<>dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: Primary log shipping client not logged on standby
    Errors in file /<dir>/diag/rdbms/stdby_11/stdby_11/trace/stdby_11_arc2_24321.trc:
    ORA-16191: Primary log shipping client not logged on standby
    So on both primary and standby I confirmed
    SQL> show parameter remote_login_passwordfile
    NAME TYPE VALUE
    remote_login_passwordfile string EXCLUSIVE
    To make double sure that password files are same, I shutdown both databases, delete password files and recreated with same credentials.
    Password files are called - orapworcl11020 and orapwstdby_11
    Can someone guide me where thisngs are going wrong here please.

    Not sure if I understood it clearly.
    SELECT * FROM V$ARCHIVE_GAP;
    returns no rows so there is no gap.
    But could you please explain me the result of the previous query. To catch up again, on standby when I check
    SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG
    SEQUENCE# APPLIED
    75 NO
    74 NO
    76 NO
    77 NO
    I understand that though archive files have been copied across but they are not applied yet.
    On primary when I give your query -
    SELECT name as STANDBY,SEQUENCE#,applied, completion_time
    2 FROM v$archived_log
    3 where dest_id=2
    4 and sequence# BETWEEN 74 and 80;
    I get -
    STANDBY SEQUENCE# APPLIED COMPLETIO
    stdby_11 74 YES 28-JUN-11
    stdby_11 75 YES 28-JUN-11
    stdby_11 76 YES 29-JUN-11
    stdby_11 77 YES 29-JUN-11
    stdby_11 78 YES 29-JUN-11
    stdby_11 79 YES 29-JUN-11
    stdby_11 80 YES 29-JUN-11
    stdby_11 75 NO 07-JUL-11
    stdby_11 74 NO 07-JUL-11
    stdby_11 76 NO 07-JUL-11
    stdby_11 77 NO 07-JUL-11
    stdby_11 78 NO 07-JUL-11
    I have intentionally given
    sequence# BETWEEN 74 and 80
    because I know in the current incarnaion of the database, max sequence is 78.
    So my understanding is, the rows between 28-29 June are from previous incarnation, correct me if I am wrong
    Archive files of the current incarnation, since I successfully created standby database are shipped but yet to be applied - am I right?
    Then my final question is, when will these archives be applied to standby database?
    I am sorry to ask too many questions but I am just trying to understand how it all works.
    Thanks for your help again

  • Tablespace Point in Time Recovery fails with RMAN-06026:

    I have cataloged with RMAN the datafiles from Snapshot backup. Still it fails with the following error.
    RMAN> RECOVER TABLESPACE TSPC UNTIL TIME "to_date('03-apr-2013 02:18:00','dd-mon-yyyy hh24:mi:ss')" AUXILIARY DESTINATION '/tmp/auxpran';
    Starting recover at 03-APR-13
    using channel ORA_DISK_1
    RMAN-05026: WARNING: presuming following set of tablespaces applies to specified point-in-time
    List of tablespaces expected to have UNDO segments
    Tablespace SYSTEM
    Tablespace UNDOTBS1
    Creating automatic instance, with SID='Ebgt'
    initialization parameters used for automatic instance:
    db_name=ORCL
    db_unique_name=Ebgt_tspitr_ORCL
    compatible=11.2.0.0.0
    db_block_size=8192
    db_files=200
    sga_target=280M
    processes=50
    db_create_file_dest=/tmp/auxpran
    log_archive_dest_1='location=/tmp/auxpran'
    #No auxiliary parameter file used
    starting up automatic instance ORCL
    Oracle instance started
    Total System Global Area 292933632 bytes
    Fixed Size 1336092 bytes
    Variable Size 100666596 bytes
    Database Buffers 184549376 bytes
    Redo Buffers 6381568 bytes
    Automatic instance created
    Running TRANSPORT_SET_CHECK on recovery set tablespaces
    TRANSPORT_SET_CHECK completed successfully
    contents of Memory Script:
    # set requested point in time
    set until time "to_date('03-apr-2013 02:18:00','dd-mon-yyyy hh24:mi:ss')";
    # restore the controlfile
    restore clone controlfile;
    # mount the controlfile
    sql clone 'alter database mount clone database';
    # archive current online log
    sql 'alter system archive log current';
    # avoid unnecessary autobackups for structural changes during TSPITR
    sql 'begin dbms_backup_restore.AutoBackupFlag(FALSE); end;';
    executing Memory Script
    executing command: SET until clause
    Starting restore at 03-APR-13
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=19 device type=DISK
    channel ORA_AUX_DISK_1: restoring control file
    channel ORA_AUX_DISK_1: copied control file copy
    input file name=/tmp/auxpran/controlbc.ctl
    output file name=/tmp/auxpran/ORCL/controlfile/o1_mf_8opkv8v4_.ctl
    Finished restore at 03-APR-13
    sql statement: alter database mount clone database
    sql statement: alter system archive log current
    sql statement: begin dbms_backup_restore.AutoBackupFlag(FALSE); end;
    contents of Memory Script:
    # set requested point in time
    set until time "to_date('03-apr-2013 02:18:00','dd-mon-yyyy hh24:mi:ss')";
    # set destinations for recovery set and auxiliary set datafiles
    set newname for clone datafile 1 to new;
    set newname for clone datafile 3 to new;
    set newname for clone datafile 2 to new;
    set newname for clone tempfile 1 to new;
    set newname for datafile 5 to
    "+DG_DATA/orcl/datafile/tspc.268.811733685";
    # switch all tempfiles
    switch clone tempfile all;
    # restore the tablespaces in the recovery set and the auxiliary set
    restore clone datafile 1, 3, 2, 5;
    switch clone datafile all;
    executing Memory Script
    executing command: SET until clause
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    renamed tempfile 1 to /tmp/auxpran/ORCL/datafile/o1_mf_temp_%u_.tmp in control file
    Starting restore at 03-APR-13
    using channel ORA_AUX_DISK_1
    One or more auxiliary set datafiles could not be removed
    Removing automatic instance
    shutting down automatic instance
    database dismounted
    Oracle instance shut down
    Automatic instance removed
    auxiliary instance file /tmp/auxpran/ORCL/controlfile/o1_mf_8opkv8v4_.ctl deleted
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 04/03/2013 02:32:55
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 2 found to restore
    RMAN-06023: no backup or copy of datafile 3 found to restore
    RMAN-06023: no backup or copy of datafile 1 found to restore
    Could anyone please reply ASAP?
    Regards,
    Pranam

    I had created a snapshot of the database(datafiles and archivelogs) and cataloged them.
    CATALOG START WITH "+TBL_DG_DATA/ORCL/DATAFILE/" NOPROMPT;
    catalog start with "+DG_ARCH/ORCL/ARCHIVELOG/" NOPROMPT;
    The time i gave was after the snapshot was created.
    When it failed the first time I created another controlfile using
    sql "alter database backup controlfile to ''/tmp/auxpran/controlbc.ctl''";
    And ran the recover command after the time after i generated this controlfile. Changed nothing else. TSPITR completed successfully. But it had failed first time. Cannot figure how it ran the second time but failed the first time.
    Removing automatic instance
    Automatic instance removed
    auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_temp_8opndd87_.tmp deleted
    auxiliary instance file /tmp/auxpran/ORCL/onlinelog/o1_mf_3_8opnd1o6_.log deleted
    auxiliary instance file /tmp/auxpran/ORCL/onlinelog/o1_mf_2_8opncy32_.log deleted
    auxiliary instance file /tmp/auxpran/ORCL/onlinelog/o1_mf_1_8opncv7d_.log deleted
    auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_sysaux_8opn516p_.dbf deleted
    auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_undotbs1_8opn4j14_.dbf deleted
    auxiliary instance file /tmp/auxpran/ORCL/datafile/o1_mf_system_8opmyvly_.dbf deleted
    auxiliary instance file /tmp/auxpran/ORCL/controlfile/o1_mf_8opmy14q_.ctl deleted
    Finished recover at 03-APR-13

Maybe you are looking for

  • Is it really possible to operate iTunes from external hard drive?

    The internal hard drive on my Mac Book Pro is full and most of it is music for iTunes. I have been told that it is possible to operate iTunes from a library on an external drive but it hasn't worked for me. I have moved the iTunes folder on to my ext

  • Error - 1242021 Syntax error

    So I am attempting to grant access for JExport. Please help. MAXL> grant codeBase "file:\\Hyperion\AnalyticServices\java\udf\ExportCDF.jar" { permission java.security.AllPermission}; I am receiving this message: ERROR - 1242021 - (1) Syntax error nea

  • How can I install and use a mouse on an iPad.

    How can I install and use a mouse on an iPad?

  • Audio gone after EyeTV Update

    I've just updated to EyeTV 2.3.2 (Everything was fine on 2.3.1) and now find there is no audio through the digital output on the iMac. If I unplug the connector from the digital out on the back of the computer then plug it back in while eyeTV is runn

  • Costing tables

    Hi, I have developed a product wise utility report ,in which activity cost i fetched from S027 table against a process order,plant and activity type. But can anyone let me know from where i can get the quantity against process order,plant and activit