RMAN :: Delete Obsolete Command Without Confirmation?

Mar 12, 2013

I've created a small script witch delete the obsolete and expired backups of RMAN.

The problem is: the "delete obsolete" and the "delete expired backup" command needs a confirmation with YES. I don't need to confirm the command and he deletes the backups directly?

Here is my little script:

#!/bin/ksh
export ORACLE_SID=dbtest2
export ORACLE_HOME=/home/oracle/srv/ora/product/11.2.0/dbtest_2
export ORACLE_BIN=/home/oracle/srv/ora/product/11.2.0/dbtest_2/bin
alias RMAN=$ORACLE_BIN/rman

[code].....

View 9 Replies


ADVERTISEMENT

Recovery Manager (RMAN) :: Delete Obsolete Command Not Deleting Backupset Automatically

Nov 30, 2012

I am trying to delete the backupset using Delete Obsolete command, but i am unable to get the success. As per the oracle Doc after completion of Retention Period oracle automatically deletes the backupset. I have set the retention period of 8 days.

View 7 Replies View Related

Report Obsolete And Delete Obsolete Commands In RMAN

Sep 9, 2012

I am getting the below error while executing "report obsolete" and "delete obsolete " commands in RMAN. except these two all the RMAN commands are working fine like "list backup summary" "list backup" .....

Error:

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 08/28/2012 11:03:04
RMAN-06004: ORACLE error from recovery catalog database: ORA-01403: no data found
OS: IBM AIX
Oracle Version: 9.2.0.8

View 14 Replies View Related

Backup & Recovery :: How To Delete Obsolete (RMAN)

Aug 8, 2007

I am working on Oracle 10g Rel 2. I am unable to delete the OBSOLETE from rman

previously my senior use to take backup on remote m/c.

While giving the command

rman>delete obsolete

RMAN-06207: WARNING: 228 objects could not be deleted for DISK channel(s) due
RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status
RMAN-06210: List of Mismatched objects
RMAN-06211: ==========================
RMAN-06212: Object Type Filename/Handle
RMAN-06213: --------------- ---------------------------------------------------
RMAN-06214: Backup Piece \192.168.1.162BACKUPFINPRODDB_T619092194_S12_P1
RMAN-06214: Backup Piece \192.168.1.162BACKUPFINPRODDB_T619093015_S13_P1

View 14 Replies View Related

Backup & Recovery :: Delete Obsolete Backups Using RMAN

Jul 4, 2011

I have a problem in running delete obsolete or report obsolete using rman. Although the retention policy is set to "CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 60 DAYS;", when running delete obsolete or report obsolete it deletes or returns all the backupsets till sysdate. What should I do to solve this issue?

View 8 Replies View Related

Backup & Recovery :: Delete Obsolete Backup From RMAN?

Jul 17, 2013

Environment: 2 Node Oracle(10.2.0.4.0) RAC on Aix 6.1.

Backups using RMAN utility.Our system is configured to take backups on Tape library using TSM server.

We take incremental level 1 backup on all days and Level 0 backup on Wednesday.We would like to keep the RMAN retention period of 14 days.I delete the backups that are 7 days old from the disk to save space and 14 days older backup from Tape.

I am getting below error in my RMAN backup logfiles.Also attached

RMAN-06207: WARNING: 147 objects could not be deleted for DISK channel(s) due
RMAN-06208: to mismatched status. Use CROSSCHECK command to fix status
RMAN-06210: List of Mismatched objects
RMAN-06211: ==========================
RMAN-06212: Object Type Filename/Handle
RMAN-06213: --------------- ---------------------------------------------------

The configuration of RMAN is:

RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 14 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';
CONFIGURE CONTROLFILE AUTOBACKUP ON;

[code].....

How to avoid this error ? Can we set "Retention period" as 14 days in RMAN level and delete the backups in disk which is older than 7 days?Should the deletion of tape backup be handled in TSM level ?

View 1 Replies View Related

Data Guard :: RMAN Archive Log Backup With Delete Input Command

Mar 17, 2012

I have following query in Dataguard ..

If I want to take Rman archive log backup with delete input command , how the archive logs will be copied to standby database

For eg

I am taking archive backup as

RMAN>backup archivelog all delete input;

here consider few archives are not copied to standby database (due to nw issue) then how standby will receives these missing archives as those are deleted by rman backup at primary side.

I am not getting any document related to above query.

View 7 Replies View Related

Backup & Recovery :: Delete Obsolete Backups

Mar 17, 2011

We observed that our RMAN backup was taking more time to complete. CROSSCHECK is the main culprit as because of having data in the catalog for more than 3 years.

So in the part of script we added delte obsolete recovery windoe of 14 days. (Redundancey 1).

Here the problem is we are getting error as

RMAN-03002 - failure of delete command
RMAN-06091 - NO channel allocated for maintenance (of an appropriate type).

Reason: Till 2 years back the backup was stored in tape and after that it got changed to disk. So allocating channel disk to delete obsolet is not working. How we can over come this.

We tried like allocating channel tape sbt_type. It got failed as no media manager information configured. We dont have that information.

How we can overcome this.

Oracle 10g
AIX 5.1

View 9 Replies View Related

RMAN :: 11g Archivelog Backups Not Going Obsolete?

Mar 11, 2013

We have EM (Cloud 12c) initiated scheduled backup jobs that perform (all below are online backups, obviously archivelog mode)

- level 0 Incremental 3AM on Sunday - with options backup all archive logs, delete input, delete obsolete

- level 1 Incremental (non cumulative) 3AM every other day - same options

Recovery window is set to 3 days, other options below:

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 2;

[code]....

Everything appears to be working normally (archive logs are being backed up and once they are the archive logs themselves are being deleted from the FRA), but I'm having some trouble understanding the behavior of the delete obsolete.

With a recovery window of 3 days, on Monday at 11AM my expectation would be that I would find in backups the following:

- level 0s from day before (Sunday) and the previous Sunday (8 days prior)

- all level 1s from previous Sunday on (so Mon-Sat and this morning)

- archivelog backups from Friday until this morning

What I'm not understanding is that I'm seeing archivelog backups from last Monday, Tuesday, etc. - i would have thought these would have gone obsolete based on my recovery window, yet when I run report obsolete in RMAN nothing is showing up.

View 16 Replies View Related

Backup & Recovery :: Restore Database From Obsolete Backup Using RMAN

Dec 13, 2011

can we restore database from obsolete backup using rman

View 2 Replies View Related

Backup & Recovery :: Rman Backup Doesn't Become Obsolete

May 30, 2011

I have a policy running every night and it makes:

- level 0 for datafiles not backed up,

- level 1 for datafile not backed up since 'sysdate-1' then another policy makes:

- level 0 when the datafiles become read only

The recovery windows is set to 1 day.

In the following situation:

RMAN> list backup of datafile 394;

List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
12721 Incr 0 13.25M SBT_TAPE 00:01:13 25-MAY-11
BP Key: 12777 Status: AVAILABLE Compressed: NO Tag: ST_TRONLINE_FB20110525
Handle: bk_13201_1_752082473 Media: A00003

[code]....

I expect that the first L0 backup is going to become obsolete, but even if I run crosscheck, it never become obsolete.

View 10 Replies View Related

Delete Statement Doesn't Work - SQL Command Not Properly Ended

Aug 28, 2007

The following script doesnt work.

DELETE
FROM PSPROJECTITEM I
WHERE I.PROJECTNAME = 'TEMP1'
and (I.OBJECTTYPE between 79 and 84
or (I.OBJECTTYPE = 58
and I.OBJECTID1 = 104

[code]...

It gives the following error:

Error at Command Line:12 Column:6
Error report:
SQL Error: ORA-00933: SQL command not properly ended
00933. 00000 - "SQL command not properly ended"
*Cause:
*Action:

View 7 Replies View Related

SQL & PL/SQL :: Print Update Confirmation?

Apr 13, 2013

I'm trying to create an output statement that will show that the update was successful, but everything that I'm trying doesn't seem to be working.

I have a procedure and an anonymous block that calls on the procedure.

So far after the begin in my anonymous block I have.

BEGIN
procedure_name(variable1, variable2);
dbms_output.put_line('Successfully Updated');
END;

Now I know that the procedure and the anonymous block without the dbms output works as the update takes place in the table, but I can't get any text string output to confirm this.

View 4 Replies View Related

RMAN - Set Command ID

Dec 27, 2011

I can successfully SET COMMAND ID inside an RMAN run block

CODErman <<EOF
connect target
connect catalog ....
CROSSCHECK BACKUP DEVICE TYPE DISK;
CROSSCHECK ARCHIVELOG ALL;
RUN {
[code]...

Can this be setup without a RUN block? I am running on 11.1.07 and 11.2.0.2

View 2 Replies View Related

SQL & PL/SQL :: Confirmation Of Statement Execution In Block

Jul 12, 2010

I have a set of sql statements which i have to execute inside a pl/sql block. But i need to know the response of each statement and confirmation whether it is executed successfully.

Practically i need to get info as such in sqlplus status msg for each sql statement

E.g. :
SQL> insert into test values(1);

1 row created.

or similar to this.

View 7 Replies View Related

RMAN :: What Does (change) Command Do

Sep 12, 2013

What the "change" RMAN command does? For example, what is the effect of following command: 

change archivelog until time 'SYSDATE-7' delete 

And what is the difference between following commands: 

change archivelog all validate;change archivelog all crosscheck;change archivelog all; 

I checked the following doc but could not find anything:[URL]I am using Oracle 10gR2 on RHEL 64-bit.

View 3 Replies View Related

RMAN :: How To Delete Old Backups In 10g And 11g

Sep 5, 2012

if I run below rman command lines in 10g and 11g RMAN, it works well, but NOT in RMAN (Release 8.1.7.4.0), so which commandlines I should use to get to the same pursposes in RMAN 8.1.7.4?

run {
ALLOCATE CHANNEL c1 TYPE 'sbt_tape';
ALLOCATE CHANNEL c2 TYPE 'sbt_tape';
ALLOCATE CHANNEL c3 TYPE 'sbt_tape';

[Code]...

View 5 Replies View Related

Delete Archive Log Files Using RMAN

Jul 26, 2013

I am trying to remove archive log file on my standby site but I am getting the following message. There are lots of archive logs are present on the storage but rman is unable to displaying that.

RMAN> list archivelog all;

specification does not match any archived log in the repositoryRMAN> 

View 7 Replies View Related

RAC & Failsafe :: RMAN Command To Reduce Space Usage

Sep 21, 2010

How to reduce the space usage in RMAN commands.

View 3 Replies View Related

RMAN :: 03009 - Failure Of Backup Command On Channel?

Sep 17, 2013

 I've attempted to backup my database using RMAN but i got the ERROR that follows: 

RMAN> backup database; output:Starting backup at 16-SEP-13using target database control file instead of recovery catalogallocated channel: ORA_DISK_1channel ORA_DISK_1: SID=20 device type=DISKchannel ORA_DISK_1: starting full datafile backup setchannel ORA_DISK_1: specifying datafile(s) in backup setinput datafile file number=00001

[code]...

View 4 Replies View Related

RMAN :: Duplicate Command Failed In Without Catalog On Different Server

Jun 29, 2012

i am creating duplicate DB from rman backup it failed as all steps is as below:

$ vi pfile.ora
$
$
$ export ORACLE_SID=tim
$
$
$ sqlplus

SQL*Plus: Release 11.2.0.1.0 Production on Sun Jul 8 10:35:10 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.

Enter user-name: / as sysdba
Connected to an idle instance.

SQL> !pwd
/oracle1/oraerp/tech_st/dbhome_1/dbs
[code]....

View 10 Replies View Related

RMAN :: Cloning Using Duplicate Command - Retain Conversion

Feb 7, 2013

While cloning using RMAN DUPLICATE command, one can convert all files from various locations to new locations by using DB_FILE_NAME_CONVERT. One can also retain the same locations with no conversion by using NOFILENAMECHECK. My question is what if I want to convert some, and not convert others?

View 3 Replies View Related

RMAN :: Delete Archivelog Backupsets Automatically

Aug 30, 2012

I have a standby database in which I am backing up my database from. I also backup my archivelogs on my primary site as well as the control file. My issue is that I cannot find the correct RMAN command that will allow me to delete the actual backupsets from disk after say 7 days.

I know how to delete automatically the actual archivelog files, but not how to only have 7 days of archivelog backupsets available at any one given time.

View 3 Replies View Related

RMAN :: Backup And Delete Single Archivelog?

Dec 14, 2012

May I know what is the command for rman to backup and delete single archive log?

View 15 Replies View Related

RMAN :: Delete Archive Logs On Standby

Aug 30, 2012

My oracle database is 11.2.0.2 RAC RDBMS on RHEL 5.6

We recently created physical standby database. How do we delete standby archive logs from physical standby?

View 2 Replies View Related

RMAN :: Delete Backup And Complete Job Details

May 21, 2013

I deleted all my RMAN backup with delete backup command .but when i run query on v$rman_backup_job_details, show information, i don't know that v$rman_backup_job_details read data from where? and how to delete complete that v$rman_backup_job_details don't show any thing?

View 8 Replies View Related

Backup & Recovery :: RMAN Command Hang Long Time?

Mar 20, 2012

We would take backup regulary by RMAN(catalog). Last two days we could not take backup. Backup start but after take backup some datafile then rman does not do anything.

View 4 Replies View Related

RMAN-03009 / Failure Of Backup Command On ORA_DISK_2 Channel

Jul 4, 2010

when im taking backup on rman it showing the error like this

RMAN-03009:failure of backup command on ORA_DISK_2 channel
ORA-19502:write error on file "disk1/oradata/car/rm/Oalhudpe.bkp". block number 16385(block size =8192)
ORA-27072:FILE I/O ERROR
Linux Error:2:no such file directory
addittional information:4
addittional information:16385
addittional information:823296

View 2 Replies View Related

Recovery Manager (RMAN) :: Information For List And Restore Command

May 15, 2013

Version 11.2.0.1

Control file record time = 7 days

I am not using recovery catalog

RMAN> list archivelog all;

It shows archivelogs from logsequence 179 - 206

But on my o.s I have archivelogs from log sequence 104 - 206 (I have not deleted them for long 1 month). It is not showing form 104 - 178. Since control file record time is 7 days it doesnt keep old archivelogs history.(i.e from 104-206) Hence it is showing only from 179 - 206

My question is

1)If we use rman recovery catalog will these info is maintained forever until deleted. And can i see them in list command. (i.e from 104-206)
2)If i use rman catalog then from where did rman get the information of archives and backup (for list and restore command) from catalog or from control file.

View 1 Replies View Related

Recovery Manager (RMAN) :: How To Delete All Archivelog Backups Of The Day

Sep 3, 2013

Oracle 10gR2 on 64-bit RHEL.Backup Strategy:There will be a level-0 backup of the database every Sunday and level-1 every weekday.Archivelogs will be backed up up every 30 minutes. 

Q: How can I delete ALL the archivelog backups that were taken that day (every 30 minutes) right after successful completion of level-0 or level-1 backup?

I want to delete them because they may not be of any use after the level-0 or level-1 backup (am I right)? 

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved