RMAN repository clean up

Hi,
I am having 10g db and backup policy uses RMAN.
Daily backup is taken by RMAN and my retention policy is default.
Now my total catalog db size is 12 GB,
but i want to remove entries before 1 months from repository because all the archives are already taken in backup and also applied to stand by db.
Is there any method to clean up RMAN repository ?
Thanks in advance

Viral,
This is what I do to reconcile the contents of the recovery catalog with the backup files on disk. Check out Oracle's documentation on RMAN commands before executing these commands.
Bill
$ su – oracle
$ export ORACLE_SID=<SID of target database>
$ rman rcvcat rman/<password>@<recovery catalog instance>
RMAN> connect target
RMAN> LIST EXPIRED BACKUP;
RMAN> CROSSCHECK BACKUP;
RMAN> LIST EXPIRED BACKUP;     
RMAN> DELETE EXPIRED BACKUP;               (Respond “y” to delete objects.)
RMAN> LIST EXPIRED BACKUP;     
RMAN> LIST BACKUP OF DATABASE;
RMAN> LIST BACKUP OF DATABASE SUMMARY;
RMAN> LIST EXPIRED ARCHIVELOG ALL;
RMAN> CROSSCHECK ARCHIVELOG ALL;
RMAN> LIST EXPIRED ARCHIVELOG ALL;
RMAN> DELETE EXPIRED ARCHIVELOG ALL;     (Respond “y” to delete objects.)
RMAN> LIST EXPIRED ARCHIVELOG ALL;
RMAN> LIST BACKUP OF ARCHIVELOG ALL;
RMAN> LIST BACKUP OF ARCHIVELOG ALL SUMMARY;

Similar Messages

  • Create a new RMAN Repository

    What are the steps/Commands to Create a new RMAN Repository?

    sqlplus / as sysdba
    SQL> create tablespace rmantbs;
    SQL> create user rman identified by rmansecretpassword default tablespace rmantbs temporary tablespace temp quota unlimited on rmantbs;
    SQL> grant recovery_catalog_owner to rman;
    rman catalog rman/rmansecretpassword
    RMAN> create catalog;

  • Rman repository and target

    Hi,
    my RMAN repository is in 10g R2, and target is in 8.1.7.4. I want to know when I backup by RMAN what would be the RMAN version executing the job ? RMAN 8.1.7 or RMAN 10g ? Thanks and regards.

    Yo would be using the RMAN executable in the target ORACLE_HOME (ie, RMAN would be 'local' to the database).

  • Where to backup RMAN repository?

    Oracle recommendation is to backup databases with RMAN using RMAN Repository Database. But how about RMAN Repository? Should it become client of the same repository(itself)? Right now I am using RMAN to backup repository database into control file.
    Not sure that's right thing to do though ... I need some guidance from experienced dba's.

    Hi,
    Include the recovery catalog in your backup and recovery strategy. If you do not back up your recover catalog and a disk crash occurs, you may lose some or all of your data.
    Make Logical Backups
    Make Regular Backups
    Back up the recovery catalog with the same frequency that you back up your target database. For example, if you make a weekly whole database backup of your target database, then back up your recovery catalog immediately after each target database backup. The backed up catalog will have a record of the target backup preceding it, so if you are forced to restore the catalog you will also be able to use it to restore the target database backup
    see this link
    http://www.pafumi.net/manage_rman_repository.htm#11.%20Backing%20Up%20and%20Recovering%20the%20Recovery

  • EM and RMAN repository...

    I need some more clarification on something.
    I know Enterprise Edition allows setup of Enterprise Manager repository and RMAN repository. Can those be setup on a different box then the one where the main database is? I ask this because I want to have some redundancy by not using the same box for monitoring and backups.

    Hello,
    YOu can setup grid control and monitor not only one but several database server from it. On db server you just have install agent to talk to grid control and you will be in business.
    Regards

  • RMAN repository maintenace and the availability

    I have 10 production and 10 test databases in 2 servers(Test and Production). RMAN Backups have setup and add all the 20 databses in to a repository in one of the Test server database called CODP.
    So my question is as all the databases added to CODP db repository and codp database also add in to the same database repository it self. If CODP database corrupted all the data in the repository will be lost and no way to recover unless there is a another backup or setup.
    So my question is what would be the best approach to handle this situation?? Appriciate any comments or advices.
    Regards
    Karunika

    Hello,
    Consider RMAN repository database as one of the production database and you should have a proper backup strategy for your RMAN repository database so that in case any problem happens, you immediately restore the RMAN repository. Put your RMAN repository in archivelog mode and take backups regularly and if appropriate, you can setup replication of RMAN repository schema in another remote database.
    Salman

  • Creating RMAN Repository for 2 production databases

    I have 2 production databases DB1& DB2 .
    I want to create a recovery catalogue database which will be used for storing the RMAN repository of Database DB1 and DB2 .
    What steps do i take to do the same.Can anyone guide me.
    Yachendra

    Hi :
    Please refer the following URL:
    It is good to create the catalog DB in a different Server other than the DB's.
    Here is a good pointer.
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96565.pdf
    Regards,
    BMP

  • Rman repository:control file

    Hi all,
    we know that rman uses target database controlfile instead of a recovery catalog.
    And it stores circular reuse and non circular reuse records.
    circular reuse records contains non critical information.
    non circular reuse records contains critical records like datafiles and redlogs.
    my quest is what the non critical information means....
    am a newbie here and i didnt get exact answer in google.
    thanks...
    Edited by: 944850 on Sep 5, 2012 9:22 PM

    hi,
    got the answer.
    controlfile contains two parts of memory.
    One is used to store the meta data of the target database and another one is to store information about the datafiles and redolog files .
    so the memory which stores the metadata will be reusable.
    the meta data will be retained in this reusable memory for 7 days by default.
    If we want to change the retention time, use "control_file_keep_record_time"
    so we came to know that during the database open process,from mount to open the informations about the datafile and redlog file will be collected from the controlfile of the target database which is non reusable.
    Thanks
    Edited by: 944850 on Sep 10, 2012 9:21 PM
    Edited by: 944850 on Sep 10, 2012 9:22 PM

  • Installation of ASM, RMAN repository

    All,
    I have a database instance running on a server together with its associated ASM group. I wish to create another database but when I go through the dbca assisstant and get to the page which asks the question about selecting the storage mechanism you would like to use for the database I do not know which option to select. If I select ASM I am told by dbca that asm is not installed on the server, yet it is. I therefore guess that each database has to have its own ASM?
    Is it possible to have therefore two ASM instances running on a server?
    another thought I had was to get a trace file of the existing database and use that as the basis for another database but because the existing database is ASM I get lines in the trace file as follows
    DATAFILE
    '+DG1/test/datafile/system.262.612197107',
    I do not know how to go about creating another database from this trace file. Is anyone able to help?
    ps
    the existing database has been RAC enabled, if this makes a difference.
    rgds
    Alan

    The single ASM instance can be used for multiple databases. How was the ASM instance created, manually or with DBCA? If manual, make sure there is an entry for it in /etc/oratab

  • GridControl & RMAN repository Schemas on one DB

    Is this good practice, what would be pros & cons? What are the best practices?

    My personal preference is to have them separate since:
    - The requirements are different and your OMR upgrade/patching is also going to affect your catalog which you may not want (already mentioned)
    - Your catalog, and OMR should be small separate instances from everything else, as each is the admin for their respective duties, i.e. (backup/recovery) and monitoring, and your catalog should contain backup/recovery data for everything including your OMR.
    If you are running a RAC and/or Data Guard and don't have a problem with your OMR patching affecting your catalog, or vice versa them here I don't see issues in combing the two.
    Now taking into consideration you are in a small shop, and assuming:
    - You probably don't have a lot of instances so you are not doing backups throughout much of the day (so you can plan your OEM outages around when you are not doing backups
    - You will be doing exp/imp for the catalog and/or using the control file as the catalog for this instance
    - You may have license concerns
    I would use a single instance for both schemas.
    Hope this helps in your decision and good luck.
    On another note, I think that we each have our own experiences from which our opinions are formed. It is not that all the time anyone is right or wrong, just that their experiences are different.

  • Database componentes required/excluded for RMAN and Grid control repository

    I'm planning creation of a centralized 10gR2 RMAN repository for my production/dev environment, and needed a basic, barebones database. We may also use that same database as a repository for 10g OEM Grid Control in the future, so I wanted to ensure I was prepared for that.
    None of the documentation says anything about particular required components for RMAN, only that a database is needed. So am I allowed to deselect all items from the following DBCA list? I didn't expect any problems with the optional components, but wanted to make sure that RMAN or Grid control would function, were I to disable Oracle JVM or XML DB. My standard loadout (for better or worse) is to include everything in my production/dev databases, and I didn't want that to be the case with this one.
    Database Components:
    Oracle Data Mining
    Oracle Text
    Oracle OLAP
    Oracle Spatial
    Enterprise Manager Repository
    Standard Database Components:
    Oracle JVM
    Oracle XML DB
    Oracle Intermedia

    Thanks. For that matter, do DBA's in the general population install those standard oracle components? I have them there in my default installs just because of the message 'Oracle recommends you have these installed.' in the DBCA screen.

  • How can i get no of database registered to RMAN catalog database.

    I want to know that how can I know that no of database are registered to particular RMAN repository database.
    And also i want to upgrade my reposiotry catalog as we are upgrading our database to 11g
    Kindly help me .

    Hi,
    Just connect to the catalog database as "rman" user and query the rc_database view.
    sqlplus <rman_user>/<rman_user_passwrd>@<catalog_db>
    SQL>select * from rc_database;
    user11958935
    Handle: user11958935
    Status Level: Newbie
    Registered: Nov 20, 2009
    Total Posts: 72
    Total Questions: 29 (22 unresolved) Please consider closing the unanswered questions and keeping the forum clean.

  • Will RMAN delete archive log files on a Standby server?

    Environment:
    Oracle 11.2.0.3 EE on Solaris 10.5
    I am currently NOT using an RMAN repository (coming soon).
    I have a Primary database sending log files to a Standby.
    My Retention Policy is set to 'RECOVERY WINDOW OF 8 DAYS'.
    Question: Will RMAN delete the archive log files on the Standby server after they become obsolete based on the Retention Policy or do I need to remove them manually via O/S command?
    Does the fact that I'm NOT using an RMAN Repository at the moment make a difference?
    Couldn't find the answer in the docs.
    Thanks very much!!
    -gary

    Hello again Gary;
    Sorry for the delay.
    Why is what you suggested better?
    No, its not better, but I prefer to manage the archive. This method works, period.
    Does that fact (running a backup every 4 hours) make my archivelog deletion policy irrelevant?
    No. The policy is important.
    Having the Primary set to :
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBYBut set to "NONE" on the Standby.
    Means the worst thing that can happen is RMAN will bark when you try to delete something. ( this is a good thing )
    How do I prevent the archive backup process from backing up an archive log file before it gets shipped to the standby?
    Should be a non-issue, the archive does not move, the REDO is transported and applied. There's SQL to monitor both ( Transport and Apply )
    For Data Guard I would consider getting a copy of
    "Oracle Data Guard 11g Handbook" - Larry Carpenter (AKA Dr. Paranoid ) ISBN 978-0-07-162111-2
    Best Oracle book I've read in 10 years. Covers a ton of ground clearly.
    Also Data Guard forum here :
    Data Guard
    Best Regards
    mseberg
    Edited by: mseberg on Apr 10, 2012 4:39 PM

  • How to find total size of RMAN backup files?

    Hi there
    env: Oracle 10gR2, RHEL 64bit
    My client has a production database where rman backups are taken: Level-0 backup every Sunday and Level-1 Monday thru Saturday.
    I have very limited access to this production database because it is being managed by third party and they won't provide me my required info (not sure why). I do not have access to their rman repository. To connect to the database I have to login to an intermediate server and then login to the database server. I have no access to Enterprise Manager. So in short, my access is limited. I want to gather the information on total size of rman backup files - both for a Level-0 and Level-1 backups separately. I understand that this info can be retrieved from rman repository. Are there any data dictionary views/tables where I may get this info?
    Best regards

    Hi,
    Have you searched in  forum check this:https://forums.oracle.com/thread/1097939
    HTH

  • Why use RMAN CATALOG ?

    Hi,
    Anybody tell me why use RMAN CATALOG and what benifits if i have create catalog ?

    No we have to configure it. I see. But did this user understand that when you quoted my reply ? We need to understand that a lot of users who post here need help and may not have the level of knowlege you have. So, a response like that adds more problems to the one they already have.
    So even if you are using nocatalog, if it is not configured to auto backup and it is not backed up, you can still loose your RMAN repository.

Maybe you are looking for

  • Logic board failure on Mac Book Pro. Backed up info via time machine with sea gate external hard drive. Help!

    I now have no access to any mac now, and the old mac while it still has my old information freezes immeadiatley upon starting. I am therefore switching to PC laptop that has be graciously given to me. My question is how do I get my information off my

  • Messages to my mail in process chains

    Hi - Can you help me in this reagard. I would like to create messages in my process chain. Saying that if the infopackage Load in PC fails .. A message with "Load failed" has to come to my mail box... This i tried on my PC -> select load infopack rig

  • Problem with Amarok/Opera/Virtualbox appearance

    I use a plain fluxbox session and only a few non-GTK apps, such as K3B, Amarok, Opera and Virtualbox. Thing is I have KDE 4 stuff installed, and I'm guessing these apps are still KDE 3.x, so in the new "systemsettings" control panel when I change the

  • Mail says it cannot find reply??

    On my Exchange account, when I hit the arrow indicating a relied message, an error message pops up telling me that Mail cannot find the reply, that I may have deleted it. However, the replies are sitting in my sent mail folder. These are messages tha

  • How to install 10g on windows 2000

    Hello Please guide me step by step as how to install 10g on windows 2000 . I am a beginner and I want to install this setup in my office.At present we are using oracle8i on windows 2000.We want to do a fresh installation in a new setup and hence for