Weird RMAN catalog issue

I am on 10.2.0.4, RMAN + RMAN catalog + Data Gurad and I am desporate :)
My db crashed with the following:
ORA-27063: number of bytes read/written is incorrect
SVR4 Error: 49: Disc quota exceeded
A look in the FRA showed that it was 100% full. Archived logs take all of the space. I delete archived logs via OS method and then do delete expired archvied log all. If I am connected to recovery catalog while doing this, Oracle DOES NOT delete archieved logs from FRA (I don't see them on diks, but FRA stays full). If I connect to target only and do not connect to the catalog and do the same thing, FRA gets emptied out. WHY???? Thank you for any input!!!
p.s. Here is my delete archvied log script:
#!/bin/ksh -x
# Script to delete archive logs older then 4 days
find /data/archive/PROD/archivelog -mtime +4 -exec rm -r {} \;
. /data/app/oracle/.profile
export ORACLE_SID=PROD
export DATESTAMP="`date +"%y:%m:%d"`"
rman <<EOF
SPOOL MSGLOG TO '/data/app/home/dba/backup_files/archive_logs/PROD_clear_a
rch${DATESTAMP}.log'
@/data/app/home/dba/scripts/connect_nocat.rman
run {
allocate channel d1 device type disk;
crosscheck archivelog all;
delete noprompt expired archivelog all;
release channel d1;
EXIT;
EOF

hi,
you wrote: +"...Oracle DOES NOT delete archieved logs from FRA..."+
If you try to delete needed files (depends on your retention policy:
show RETENTION POLICY;
report need backup;
restore archivelog all preview summary;
) you may have to use "force" option in the statement. Even if they don't exist on disk, RMAN will throw errors.
What is the output of:
crosscheck archivelog all;
delete noprompt expired archivelog all;
P.S. it's better not to delete oracle files in OS if RMAN handles B&R policy ;-)

Similar Messages

  • RMAN Cataloging issue

    Hi Guys
    I am trying to restore a QA database from the backups in our standby database. I am using an NFS mount to access the backup from the QA machine.
    When I catalog the backups they are all found and added to the QA catalog. When I list the summary the backups are returned out of order. When I list the full backup (Incremental level 0) I am interested in there are datafiles that are not listed. I have listed the backup in the standby database and the datafiles are all shown as being present.
    I have copied the full backup files to our QA machine and cataloged them on a local disk to try and remove NFS mounts from the equation and get the same issue, although the datafiles that are shown as missing are different to those that were missing previously.
    I have also tried cataloging in our development environment and have the same issue, however the datafiles that are missing are different to those in our QA environment.
    Does anyone have any thoughts on this one?
    For your info we are using 10g on Redhat EL5, running on VMWare.

    Yep, the mount point is correct - the backups are found by the catalog command, they just are not including the datafiles correctly.
    Something that I have noticed is that in our Standby Database the datafiles are listed as Incremental Level 0 whereas in QA they are listed as Full. I am wondering if it is the fact that we are doing an Incremental Level 0 instead of an explicit Full that is causing ths issue.

  • RMAN  script issue ....

    Oracle Server - Enterprise Edition - Version: 10.2.0.3
    RMAN Catalog : 10.2.0.4
    I am using the follwoing script for backup :
    4> run
    5> {
    6>     allocate channel dev1 type disk format 'Z:\Rbackup\DMP\db_t%t_s%s_p%p';
    7>     allocate channel dev2 type disk format 'Z:\Rbackup\DMP\db_t%t_s%s_p%p';
    8>     backup database FILESPERSET 20 ;
    9>     backup archivelog all archivelog until time 'sysdate-1' delete all input ;
    10>     release channel dev1 ;   
    11>     release channel dev2 ;   
    12> }The issue is with backup archivelog all archivelog until time 'sysdate-1' delete all input ;
    This command gives error
    ORA-19588: Archived Log Recid Stamp Is No Longer Valid
    even after doing crosscheck .
    Referred Metalink ID : 1189883.1
    which clearly indicates that the statement
    backup archivelog all archivelog until time 'sysdate-1' delete all input ;
    is wrong by logic and is the reason for the issue .
    And suggests to use
    backup archivelog until time 'sysdate-1' delete all input ;
    or
    backup archivelog all delete input ;
    which definitely do not serve the purpose .
    The logic that needs to be implemented is
    I need to backup all archivelogs and delete archivelogs until sysdate-1  .....
    How can I do this ? Please help ....
    Regards
    Renjith Madhavan

    Of course. You have asked Oracle to backup files as of 1 day old. Your command is explicitly stating that it is not to backup files newer than 1 day old.
    Read and understand "archivelogRecordSpecifier" at
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta008.htm#sthref121
    UNTIL TIME "Specifies the end date for a sequence of archived redo log files"
    It is actually used when doing RECOVER and RESTORE so as to do Point In Time Recovery.
    Backups are not done with UNTIL TIME. The only scenario where someone would backup until TIME is when he is writing separate sets of backups deliberately to different backupsets (e.g. one backupset representing 01-Dec will subsequently be copied to another location or to Tape-1, the next backupset representing 02-Dec will be copied to a different location or to Tape-2 etc).
    However, when you do a BACKUP DATABASE today, you have to ensure that you BACKUP ARCHIVELOG upto the latest archivelog else, you will NOT be able to use today's database backup for restore and recovery.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Dec 6, 2010 2:57 PM

  • A possible bug in RMAN CATALOG command in 10g on Linux (SLES9 SP3)

    Hi,
    I ran into this issue while using RMAN command "CATALOG DATAFILECOPY <filename> TAG <tagname>". In this instance, RMAN is actually trying to write 8K data at block 1. Since a copy is being cataloged, it doen't make any sense to modify it. Please note that this modification doesn't happen without TAG option. This behavious doesn't seem to be present on Oracle 9 on Solaris 8. For more details, please check the following thread:
    help with RMAN CATALOG command
    Thanks,
    Raghu.

    Hi Steve,
    Unfortunately this is a bug, bug 3612370 in fact. I've published the bug so that it can be tracked via metalink if you have a support contract.
    The bug is as you suspected with JDev's parse of the modules. We don't have a workaround at the moment but I'll post here again if we make any progress.
    Thanks for reporting this,
    Geoff
    JDev Test Team

  • 10G RMAN catalog in 9i

    Hi,
    I can't find this information in any documentation, so this is the best place for it.
    Can we create a 10g RMAN catalog on 9i database? If no why? If yes, then is
    there any known issue/problem with this?
    Thanks....

    Hi,
    You can create !!
    But you might experience the problems, with Backward compatability..
    I suppose.. that..
    Thanks
    Pavan Kumar N

  • Set RMAN catalog default setting for all databases

    Hi,
    I am running a 11gR1 RMAN catalog.
    I am wondering if is it possible to change a default configuration setting in the RMAN catalog  so that all the new databases will inherit it.
    For example, I would like all the new databases registered to the catalog to have:
    BACKUP OPTIMIZATION ON
    RETENTION POLICY TO REDUNDANCY 7
    Thanks,
    massi

    No, the catalog cannot "dictate" configurations for databases.  Each database retains configuration in the controlfile and this can be updated only by an rman connection (i.e. rman connecting to the database as a target). The CONFIGURE command in rman is used to set a "permanent" configuration parameter for a database but must be issued for each database individually.
    Hemant K Chitale

  • How to restore the control fie? without having RMAN catalog.

    Hi ,
    can anyone help me out here.???
    How can i restore the control file.if i dont have the RMAN catalog.
    Please provide me steps that'll be helpful. I am frsher in oracle DBA
    Please mail me: [email protected]
    Regards
    Vikas Singh

    Hi Vikas,
    You can restore the control if you have the full backup of your database in some location.
    Lets assume you have the full backup piecs in loc "/u02/backup/..bkp"
    steps:
    shut abort;
    startup nomount;
    catalog start with "/u02/backup/..bkp"
    restore spfile from '/u02/backup/..bkp";
    restore controlfile from "/u02/backup/..bkp"
    shut immediate;
    startup mount;
    alter database open;
    Once the db is up with controlfile immediately take the full database backup of your database.
    Let me know having issue after following this.
    -- rohit
    http://dbarohit.blogspot.in/

  • Centralized RMAN Catalog Database

    Hello,
    I have two 10g R2 databases on two separate servers.
    I am trying to centralize my RMAN backup by creating a RMAN_DATABASE in 11G.
    - I create RMAN_DATABASE
    - I created RMAN user and tablespaces
    - I edited my TNSNAMES.ORA so that I could connect to my two 10G R2 databases
    When I run the command:
    rman catalog=rman/password@rman_database target=sys/password@10g_db1I get the following error:
    Recovery Manager incompatible with TARGET database: RMAN 8.0.4.0 to 10.2.0.0 req
    uired
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-06429: TARGET database is not compatible with this version of RMAN
    When I google the error it indicates to change the binary files, but that doesn't work either, unless I don't understand what that entails.
    Any suggestions?

    By saying that you have amended your tnsnames.ora to connect to the 10gR2 databases, I assume you are running the rman command on your 11gR1 server. This means that your RMAN client version is 11gR1, and your target database is 10gR2. This is not permitted, see the [compatibility matrix|http://download.oracle.com/docs/cd/B28359_01/backup.111/b28273/compat003.htm#i634479].
    I suggest you try this on each of your 10gR2 servers:
    1. Amend tnsnames.ora to include an entry for the 11gR1 rman_database
    2. Ensure your oracle environment variables are set correctly, especially ORACLE_HOME and ORACLE_SID
    3. rman target=sys/password catalog=rman/password@rman_database
    This means you will be using the 10gR2 RMAN client on the 10gR2 target database which ensures no incompatibility problems. There is no issue with the fact your recovery catalog schema is at 11gR1, this is permitted to be greater than the RMAN client being used.

  • SQL Reports Bad Idea Against RMAN Catalog?

    11.2.0.1 SPARC 64
    We use OEM to manage/execute our backups. The MML is NetBackup. One downside to this is that the "job" within OEM executes the backup for 20+ databases. In a serial fashion the backups occur in NetBackup...but most are queued - they throttle through and over time they complete. To this end, we have no way of seeing the true backup duration. We know the rman start and completion times, but they're not "actual."
    I started looking at creating a sql statement/report/[pl/sql] block that would give us the granular informatin on the true timings of the backup "pieces" as they relate to a "set."
    Research out on the wire shows a number of high level solutions, but nothing to which a report shows the data files, etc. Usually when I see this I start to question..."hey, is this even a good approach?"
    I do realize that through the RMAN utility there are a number of reports which are available...this post, however, is focused on the idea of sql reports against the rman catalog.
    Any advice would be welcome.
    Conceptual report:
    -> INCREMENTAL LEVEL 0
    --> BACKUP SET
    ---> BACKUP PIECE
    ----> HANDLE, TAG, DATAFILE, START, COMPLETION
    I'm NOT looking for the sql...I can work that out, I just want to know if this is a smart approach or best to stay out of the catalog.
    -abe
    Boulder, Colorado
    Edited by: user10863631 on Mar 10, 2011 7:43 AM
    Edited by: user10863631 on Mar 10, 2011 7:56 AM

    I think this is the wrong forum for such a question. The Database - General (General Database Discussions might be better suited. Or maybe the RMAN forum (Recovery Manager (RMAN)

  • How to upgrade RMAN catalog from 10.2.0.4 to 11?

    Hi, we are on Oracle 10.2.0.4, Solaris 5.10. Our RMAN catalog is 10.2.0.4 version and we have several 11g databases that need to connect to the catalog and obviously cannot. So we need to upgrade the catalog to 11. Does anyone have any docs on how to do it. Do I need to upgrade RMAN database to 11 via conventional upgrade and then do UPGRADE CATALOG? Really confusing, any help would be very appreciated.
    Thank you!

    You need to:
    1 - upgrade the recovery catalog database
    2 - upgrade the recovery catalog Schema
    Please check the details on note *452529.1 Recovery catalog for RMAN backup*.
    Normally newer databases (target) can be cataloged on previous version catalog database, but with 11g there is the bug 6756872 (RMAN REGISTER OF 11G TARGET INTO 10G CATALOG FAILS WITH ORA-04028) which force you to upgrade the catalog.
    You can also review RMAN Compatibility Matrix (Note 73431.1) which has all valid version combinations.
    If your scenario is simple enough, another option could be create a new 11g RMAN catalog and register there your databases, without importing data from the 10.2 catalog.
    Regards.

  • Can't register a database in RMAN catalog (PL/SQL package not current)

    Hi RMAN experts. I'm trying to register a 10.2.0.1.0 database into a 10.2.0.5.0 RMAN catalog but I get the following error (Note: following was done on the rman server machine, ORACLE_SID=rman, target database is remote)
    $ rman catalog rman/rman target sys@MPOWER
    Recovery Manager: Release 10.2.0.5.0 - Production on Sat Apr 30 12:54:16 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    PL/SQL package SYS.DBMS_BACKUP_RESTORE version 10.02.00.00 in TARGET database is not current
    PL/SQL package SYS.DBMS_RCVMAN version 10.02.00.00 in TARGET database is not current
    connected to target database: MPOWER (DBID=**********)
    connected to recovery catalog database
    RMAN> register database;
    database registered in recovery catalog
    starting full resync of recovery catalog
    RMAN-00571: ===============
    RMAN-00569: =========ERROR MESSAGE STACK FOLLOWS
    RMAN-00571: =================
    RMAN-03008: error while performing automatic resync of recovery catalog
    ORA-00904: : invalid identifier
    Basically the error says that there are two packages in the TARGET database (SYS.DBMS_BACKUP_RESTORE and SYS.DBMS_RCVMAN) which are not compatible with the RMAN catalog.
    I cannot register the target database into the RMAN catalog.
    I highly appretiate if you give me an advice on this.
    Regards

    user13064912 wrote:
    Hi RMAN experts. I'm trying to register a 10.2.0.1.0 database into a 10.2.0.5.0 RMAN catalog but I get the following error (Note: following was done on the rman server machine, ORACLE_SID=rman, target database is remote)
    $ rman catalog rman/rman target sys@MPOWER
    Recovery Manager: Release 10.2.0.5.0 - Production on Sat Apr 30 12:54:16 2011
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    PL/SQL package SYS.DBMS_BACKUP_RESTORE version 10.02.00.00 in TARGET database is not current
    PL/SQL package SYS.DBMS_RCVMAN version 10.02.00.00 in TARGET database is not current
    connected to target database: MPOWER (DBID=**********)
    connected to recovery catalog database
    RMAN> register database;
    database registered in recovery catalog
    starting full resync of recovery catalog
    RMAN-00571: ===============
    RMAN-00569: =========ERROR MESSAGE STACK FOLLOWS
    RMAN-00571: =================
    RMAN-03008: error while performing automatic resync of recovery catalog
    ORA-00904: : invalid identifier
    Basically the error says that there are two packages in the TARGET database (SYS.DBMS_BACKUP_RESTORE and SYS.DBMS_RCVMAN) which are not compatible with the RMAN catalog.
    I cannot register the target database into the RMAN catalog.
    I highly appretiate if you give me an advice on this.
    RegardsCould you try to run the rman at the target database server (MPOWER), instead of rman catalog server ant try to register your database?
    Your rman client is higher than your target server. That could be the problem.
    Best Regards,
    Gokhan
    If this question is answered, please mark appropriate posts as correct/helpful and the thread as closed. Thanks

  • Question: Which is better and why....RMAN catalog or Flashback Recovery

    Hey All,
    Newly testing and reading up on 10g. I am on information overload and would appreciate pro's advice on which to choose and why.
    Thanks,
    d.

    Different things, not necessarily alternative. That is, RMAN catalog is normally (at least should be) on another machine, and does not contain physical backups, but only information about them : physical backups are normally stored on external devices, like tapes.
    Flashback Recovery technique is based on Flashback logs in Flash Recovery Area, which is a disk area on local machine, and so cannot be unlimited.
    Therefore, Flashback Recovery is much faster than Media Recovery, since you don't need to restore anything, but you have limits in using that : your disks size.
    On the other hand, RMAN backups are safer, being physically elsewhere.
    See http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14220/backrec.htm#g1023042

  • To Find the instance name in RMAN catalog

    Hi ,
    I have rman catalog which got registered 150 databases. Am able to get the dbname,id for the 150 databases but not able to get the server name (host name) of the correspoding databases in catalog views as well as in db views.
    Kindly revert us if you know any other analyisis or way to find the server names.
    Regards
    Krishnan

    What does RMAN care if RAC is involved or not?
    Oracle provides RMAN for backing up and restoring the database. RMAN enables you to back up, copy, restore, and recover datafiles, control files, SPFILEs, and archived redo logs. RMAN is included with the Oracle server and it is installed by default. You can run RMAN from the command line or you can use it from the Backup Manager in Oracle Enterprise Manager. The procedures for using RMAN in RAC environments do not differ substantially from those for Oracle single-instance environments. Refer to the Oracle Backup and Recovery documentation set for more information about single-instance RMAN backup procedures.

  • 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.

  • Unregistering of a database from RMAN Catalog

    Hello,
    We had set up RMAN backup though RMAN Catalog for one of our database.
    We later decided not to take the backups of this particular database. One of the DBA did something but what we can see now is that -
    1. Target database is not registered in the catalog so no information can be gathered rman prompt after connecting to catalog through target database
    2. But the recovery catalog "rc_backup_datafile" is showing as if it has old backups
    We know that the tapes don't have the backup of this database.
    Question - How to remove information from recovery catalog for a database in such a situation where although the database is not registered in the catalog but somehow the information related to old backups still persists in the catalog tables.
    Thanks!

    Thanks Tycho, for my purpose DBMS_RCVCAT.UNREGISTERDATABASE worked fine.
    I have another question though -
    We have compressed backup for one of the database/
    If I look at backupset by executing "list backupset xxxxxxx;" command it shows the correct compressed value (in GB) of the backup set.
    BUT when I look at the rc_backup_datafile table of the rman catalog for the size of of the backupset, it shows the uncompresses size of the backupset. I am using following query -
    select BS_KEY,SUM(blocks*block_size)/1024/1024/1024 GB from rc_backup_datafile where DB_NAME='CCSTG04' and BS_KEY=1 group by BS_KEY;
    Question - How to check the compressed size of the backupset from the Catalog tables/views?
    Thanks for your help on this!
    Thanks!
    ,

Maybe you are looking for

  • Agent Determination in Workflow

    Hi, I am implementing a workflow for change in basic pay, the problem is i am not clear how to go about agent determination,  i need to follow my organizational structure but not completely like its not like the complete hierarchy. I need ideas, and

  • Status of part query help

    Hi, I have a part, and it can be received, accepted, rejected, corrected and shipped. This is held in the status field. It is on the line level, so each part also has a line number associated with the transactions status, i.e. Part PO Line Status 123

  • 100% Discount in Free of Cost Invoice??

    Hi, There is a requirement of passing the total excise duty charged in an FOC invoice to an expenses G/L which is currently debiting the customer account. I created condition type R100 by copying K007 and also created an account key for assignment to

  • PRODUCTION ORDER NO. DISPLAY IN QUERY REPORT

    Hello Sir, I need to display production order number in the following query, can you please reply that query, select distinct t1.DocNum,t1.DocDate,t1.NumAtCard,t1.CardName,t4.U_desc,t4.DocEntry[GRNNO],t4.U_recqun[GRN-QTY],t6.U_PREACPT[Accepted],t6.U_

  • Can't Run Bluetooth Examples (Error 1)

    I am trying to set up Labview to control an Arduino via Bluetooth. I'm just starting out by attempting to connect my smartphone using the Advanced  Bluetooth Server/Advanced Bluetooth Client example vis. I plugged in my Bluetooth dongle and the dongl