Regarding Rman

hi all,
Please tell me the difference between the below two commands,
1)backup database plus archivelog delete input;
2)backup database plus archivelog all delete input;
and what does this "delete input" will do,
please help me out in this.
Regards,
Vamsi.

Hi Vamsi;
To back up archived logs, datafile copies, or backup sets, then delete the input files from the operating system after the successful completion of the backup. RMAN also deletes and updates repository records for the deleted input files.
If you specify DELETE INPUT (without ALL), then RMAN deletes only the copy that it backs up. If you specify ALL, then RMAN deletes all copies of the specified logs that it finds in the V$ARCHIVED_LOG view.
Source:
Summary of RMAN Deletion Methods
http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmconc3.htm#462766
Regard
Helios

Similar Messages

  • Regarding RMAN backup and recovery using archivelogs during cloning process

    Hi there,
    We are running 9i database (RAC) in archivelog mode.We are in the process of cloning DEVELOPMENT database using our PRODUCTION database.
    For this we planned to take RMAN backup by keeping the production database in MOUNT stage.
    In this regard, will it be possible to make use of archivelogs generated during and after this backup (in mount stage), after some days during recovery time, if it asks for recovery after cloning process.
    Thanks,
    Balu.

    Hi Alok,
    why there is a need for standby here? you mean to say standby db?
    what i exactly need is , whether i will be making use of archivelogs which are all archived during that backup period (in mount stage) after some days, if i face any problem with the PRODUCTION Database..

  • Query regarding RMAN

    Hi Gurus,
    my rman backup has failed, i have not issued any log file for rman. Does the rman creates any alert log file. If yes, where it is created whether in target database or catalog.
    Thanks
    Shaan

    hi,
    how do you know it failed? I don't believe that a log file is written unless you ask for one.
    rgds
    alan

  • Regarding RMAN n Logical Backup

    Hi All,
    Will Select query affect the RMAN n logical Backup????

    hi yingkuan..
    VERSION
    10.1.0.5.0
    Its a select query which contain lots of conditions....
    please find below the query
    select distinct cci.consmr_no ,vin
    from lead_info li,
    lead_std_address lsa,
    cdr_consmr_info cci,
    cdr_address ca,
    cdr_product_info cpi
    where li.household_id=lsa.household_id and
    cci.consmr_no=ca.consmr_no and
    cci.consmr_no=cpi.consmr_no and
    cpi.extract_dt between '22-DEC-2005' and '31-DEC-2006' and
    li.last_name=cci.last_name and
    lsa.address_1=ca.address and
    lsa.city_name=ca.city_name and
    lsa.state=ca.state and
    lsa.zip=ca.zip and
    li.family_id is not null and
    cpi.family_id is null

  • Clarification regarding RMAN usage

    Hi refering to http://www.dba-oracle.com/real_application_clusters_rac_grid/recovery_catalog.html
    i have two DBs one CATDB(on oracle 9i) and other PRODdb(on 10g)
    now i have created recovery catalog in CATDB .
    My doubt is while registering the database. from which machine shall i run rman (machine having 10g or 9i or can i invoke RMAn from either of them).
    rman TARGET sys/oracle@PRODdb CATALOG rman/cat@catdb
    in the above given step i have doubt. which RMAN to use? 9i or 10g or it does not matter.
    Thanks

    user8896122 wrote:
    Hi refering to http://www.dba-oracle.com/real_application_clusters_rac_grid/recovery_catalog.html
    i have two DBs one CATDB(on oracle 9i) and other PRODdb(on 10g)
    now i have created recovery catalog in CATDB .
    My doubt is while registering the database. from which machine shall i run rman (machine having 10g or 9i or can i invoke RMAn from either of them).
    rman TARGET sys/oracle@PRODdb CATALOG rman/cat@catdb
    in the above given step i have doubt. which RMAN to use? 9i or 10g or it does not matter.
    ThanksYou should run this command from the server which you take a backup of it
    [Kamran Agayev A. |http://kamranagayev.wordpress.com] (OCP 9i/10g)
    Author of the upcoming book - *"Oracle Backup & Recovery: Expert secrets for using RMAN and Data Pump"*
    http://www.rampant-books.com/book_1002_rman_backup_recovery.htm

  • Regarding rman user session

    hi all,
    i need to create a trigger for tracing a particular user session or rman session so that only one trace file is used throughout, regardless of there number of logins or logoff
    thanks

    Create a logon trigger, that checks for a certain login-name
    We do the same for checking applications that log on.
    Remember that if you're calling a procedure from the logon trigger, you have to disable the trigger every time you work/develop on the procedure.
    Otherwise the trigger gets Invalid and all logons are denied
    I can't show you the code we use now, because our storage-network has failed
    Edit: Back online
    The code
    CREATE OR REPLACE TRIGGER check_logon_logging
      after logon on database
    begin
      illegal_appl_prc;
    end;

  • How to read RMAN data into an ORACLE Table?

    Hallo,
    With regards to RMAN, how should we store the data into a database table, from the commands which can run only on RMAN prompt without using Recovery Catalog?
    For Example:
    RMAN> Report need backup days 3;
    RMAN DATA:
    RMAN-03022: compiling command: report
    Report of files whose recovery needs more than 3 days of archived logs
    File Days Name
    1 1203 D:\ORACLE\ORADATA\TEST\SYSTEM01.DBF
    2 1203 D:\ORACLE\ORADATA\TEST\RBS01.DBF
    3 1203 D:\ORACLE\ORADATA\TEST\USERS01.DBF
    Should it done via UTL_FILE?
    If so, could someone give simple example/code how to do that, in order to write this RMAN data into an Oracle Database table?
    I also set the utl_file_dir parameter to a particular directory in my database.
    Thanks
    W.Benvort

    Actually, I am not using Recovery Catalog, so the views like RC_database, Rc_tablespaces etc , which are specific to recovery catalog are not available.
    r.- this make sense at 100% because those views belong to the recovery catalog.
    So, I wanted that these information, which we can get via using the commands like above, transfer into an Oracle table
    r.- If you want to access the views of the Recovery Catalog to store part of that information in tables you have to have the database registered in a Recovery Catalog.
    Should we keep the Recovery Catalog in Control file? Instead of using separate Schema.
    r.- I recommend you to create a catalog for your database because the space the controlfile to store information regarding RMAN is reused and you can lose important information about your backups.
    Can we run Catrman.sql script as a sys in order to keep the recovery catalog in sys schema?
    r.- As you know, this is not recommended at all.
    Conclusion : Create a Recovery Catalog and you will be able to perform all that you want regardind what you mentioned above.
    I have a thread for this:
    RMAN ( CATALOG CREATION ) STEP BY STEP by Joel Pérez
    Joel Pérez
    http://otn.oracle.com/experts

  • Setting up RMAN -- Best Practice

    On the readings I've done regarding RMAN, I've seen recommendations that RMAN should have a recovery catalog configured, even though that's optional. Further, I've seen recommendations that RMAN's recovery catalog should have its own database.
    I've got one machine, that I want to run RMAN on, with the backups residing on that machine and disks. I then plan on archiving the backup files that RMAN produces to another set of cheaper, though less efficient, disks.
    What I thought I'd do in configuring an RMAN recovery catalog is create a separate tablespace for it, and store the RMAN schema there instead of creating a separate database on the same machine.
    It seems to me that unless you have an environment where you have one RMAN backing up multiple oracle instances, a separate RMAN database isn't justified.
    Comments?
    === Al

    hi,
    What I thought I'd do in configuring an RMAN recovery
    catalog is create a separate tablespace for it, and
    store the RMAN schema there instead of creating a
    separate database on the same machine.
    However if you just create a separate tablespace and you need to recover that database you will have major problems. If you are going to use the recovery catalog option then create a separate database ideally on a separate machine.
    It seems to me that unless you have an environment
    where you have one RMAN backing up multiple oracle
    instances, a separate RMAN database isn't justified.if you have just a couple of databases to manage then use RMAN controlfile backup.
    regards
    Alan

  • RMAN-03002: failure of delete command

    DB:10.2.0.3.0
    OS:AIX 64 bits
    Hi All,
    We have configured backup default device on Disk.
    On using the command within run block:
    delete noprompt obsolete;
    We get the error:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of delete command at 02/06/2009 11:07:04
    RMAN-06091: no channel allocated for maintenance (of an appropriate type)
    RMAN>
    Recovery Manager complete.
    Return Code: 1
    Now when we use the commmand :RMAN> delete noprompt obsolete device type disk;
    We do not get the above error.
    Question: Is it necessary to issue the command - "device type disk"; as above with "delete noprompt obsolete " though default backup device type is configured to DISK.Won't RMAN itself identify the default device type - Disk.
    Thanks for your time!
    Regards,

    RMAN> show all;
    starting full resync of recovery catalog
    full resync complete
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK;
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
    CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/production_dump/database/EW01/Backup%d_DB_%u_%s_%p_%T';
    CONFIGURE MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/apps/ew01/oracle/10.2.0/dbs/snapcf_ew01.f'; # default
    RMAN>
    RMAN>

  • Resize online redolog files, make RMAN obsolute backups as usable

    Dear Guru's,
    I have following doubts, please clarify me on the same. thanks in advance
    1. why can not we resize online redolog files instead of re-creating the same with large size and remove the older onces.
    2. How can we make RMAN obsolute backups as usable ?
    Thanks.

    vasuoracledba wrote:
    Hi Aman,
    Thanks for replay...
    Regarding RMAN, plz look into below issue.
    I configured RMAN backup recovery window of 15 days. after 15 days the backupsets which were older then 15 days are obsolute. now i have to restore the backup of 15 days older(obsolute backupsets) backupsets to the database. but when i do restore it defaulty takes latest backupsets other then obsolute onces.
    how do i restore older(obsolute backupsets) backupsets to the database?
    If i used the CHANGE cmd, how to do that.
    RMAN> change backupset tag weekly_backup_20052013_02:45 _______________
    do i make latest backupsets unavaliable to restore the older once....
    RMAN> change backupset tag weekly_backup_20062013_02:00;
    Thanks in advance...........
    Obsolete backups are always usable, until you delete them with DELETE OBSOLETE.
    If you want to restore from a backup other than the latest, use an until clause:
    run {set until time = 'sysdate - 15';
    restore database;}

  • Setting Up RMAN

    Dear Experts
    I am new in Database field please help me out regarding RMAN
    Please guide me how can I achieve this
    One thing I want to ask is ............ Minimum how much Databases (servers) required to achieve this?
    -----------> I have a Dell machine and Oracle 9i Database on it on Windows 2003 Server
    -----------> I want to Impliment RMAN on it
    Please any one send me a simple document through whic I achieve my goal?
    It would be highly appriciated
    thanks and regards

    user2108660 wrote:
    Dear Experts
    I am new in Database field please help me out regarding RMAN
    Please guide me how can I achieve this
    One thing I want to ask is ............ Minimum how much Databases (servers) required to achieve this?
    -----------> I have a Dell machine and Oracle 9i Database on it on Windows 2003 Server
    -----------> I want to Impliment RMAN on it
    Please any one send me a simple document through whic I achieve my goal?
    It would be highly appriciated
    thanks and regardsYou need only one database :) You don't need more than database to test RMAN
    I'd suggest you to refer to the documentation
    [Oracle9i Recovery Manager Quick Reference|http://download.oracle.com/docs/cd/B10501_01/server.920/a96564/toc.htm]
    [Oracle9i Recovery Manager User's Guide|http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/toc.htm]
    As a first step, put the database in ARCHIVELOG mode, connect to RMAN and take your first backup as follows:
    SHUTDOWN IMMEDIATE
    STARTUP MOUNT
    ALTER DATABASE ARCHIVELOG
    ALTER DATABASE OPEN Then connect to RMAN from OS
    [code
    C:\rman target /
    RMAN>BACKUP DATABASE;
    That's all. By following above steps, you'll take your first backup. Then, read the manuals I've posted and start practicing
    Good Luck

  • Rman backup level 0 doubt

    Hi guys,
    I have a doubt regarding Rman.
    When I do a Level 0 backup (backup incremental level 0 database) it put in the file the empty blocks or
    it saves only the used blocks in my database ?
    I know the incremental backups (level 1 and 2) gets only the new blocks.
    and I would like to know if rman files can be compressed during the process.
    Thanks,
    Felipe

    Which is the version of its database?
    If he will be 10g, sees the documentations.
    RMAN Incremental Backups:
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup004.htm#BRBSC133
    Binary Compression of Backup Sets:
    http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta009.htm#RCMRF107

  • RMAN backup time increased

    Hi All,
    I need details about some diagnostic test regarding RMAN backup on my instance.
    The following are the current configuration of details:
    SQL> select release_name from fnd_product_groups;
    RELEASE_NAME
    11.5.8
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    PL/SQL Release 9.2.0.8.0 - Production
    CORE 9.2.0.8.0 Production
    TNS for Solaris: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    ===============================================
    Database Size
    1.5 TB
    Earlier the RMAN backup used to take 20 -23 hours, now for the last 2 months, it has started taking 40 hours.
    We want to identify the reason behind the increase in time.
    Please let us know methods that we can use to diagnose the root cause.
    Thanks
    Peeks

    Hi Talip,
    Thanks for you suggestions.
    I tried the three queries suggested by you, please find below the output:
    SQL>  select set_stamp from v$backup_async_io where to_date(open_time,'dd.mon.rr')='05.mar.12';
    SET_STAMP
    777154038
    777154038
    777154038
    777154038
    777154038
    777154038
    777154038
    777154038
    777154038
    777154038
    777167658
    SET_STAMP
    777167658
    777167658
    777167673
    777167673
    777167673
    16 rows selected.The we checked the effective_bytes_per_second "mb/sec" column for the 777154038 and 777167658 Set_stamps.
    SQL> select device_type "Device",
    type,
    open_time,close_time,
    elapsed_time/100 "Ela",
    effective_bytes_per_second/1024/1024 "mb/sec",
    filename
    from v$backup_async_io
    where set_stamp = &a
    order by close_time desc;  2    3    4    5    6    7    8    9
    Enter value for a: 777154038
    old   8: where set_stamp = &a
    new   8: where set_stamp = 777154038
    Device          TYPE      OPEN_TIME       CLOSE_TIME             Ela     mb/sec FILENAME
    SBT_TAPE        OUTPUT    05-MAR-12       05-MAR-12            13498 3.03509712 bk_87606_1_777154038
    SBT_TAPE        OUTPUT    05-MAR-12       05-MAR-12            13475 3.03425884 bk_87605_1_777154038
    DISK            AGGREGATE 05-MAR-12       05-MAR-12            13476   3.041852
    DISK            INPUT     05-MAR-12       05-MAR-12             2832 2.90395451 /u1141/oradata/PRD1/rbs03.dbf
    DISK            AGGREGATE 05-MAR-12       05-MAR-12            13446  3.0486393
    DISK            INPUT     05-MAR-12       05-MAR-12             2829 2.90703392 /u1141/oradata/PRD1/rbs01.dbf
    DISK            INPUT     05-MAR-12       05-MAR-12             5332 3.07276821 /u1140/oradata/PRD1/ard01.dbf
    DISK            INPUT     05-MAR-12       05-MAR-12             5314 3.08317661 /u1140/oradata/PRD1/applsysx01.dbf
    DISK            INPUT     05-MAR-12       05-MAR-12             5309 3.08608055 /u1140/oradata/PRD1/gld01.dbf
    DISK            INPUT     05-MAR-12       05-MAR-12             5300 3.09132099 /u1140/oradata/PRD1/applsysd01.dbf
    10 rows selected.
    SQL> /
    Enter value for a: 777167658
    old   8: where set_stamp = &a
    new   8: where set_stamp = 777167658
    Device          TYPE      OPEN_TIME       CLOSE_TIME             Ela     mb/sec FILENAME
    SBT_TAPE        OUTPUT    05-MAR-12       06-MAR-12            13323 3.07180786 bk_87607_1_777167658
    DISK            AGGREGATE 05-MAR-12       06-MAR-12            13289 3.08224869
    DISK            INPUT     06-MAR-12       06-MAR-12             2652 3.08898926 /u1141/oradata/PRD1/rbs02.dbf
    DISK            INPUT     06-MAR-12       06-MAR-12             5330  3.0739212 /u1140/oradata/PRD1/invd01.dbf
    DISK            INPUT     05-MAR-12       06-MAR-12             5305 3.08840752 /u1140/oradata/PRD1/arx01.dbf
    SQL>The above output looks fine, but when i checked the long wait uery, it showed high percentage usage for OUTPUT streams. The below is the output:
    TYPE        IO_COUNT      READY SHORT_WAITS LONG_WAITS    LIO_PCT FILENAME
    INPUT          16385      15361           0       1024 6.24961855 /u1140/oradata/PRD1/applsysd01.dbf
    INPUT          16385      15361           0       1024 6.24961855 /u1140/oradata/PRD1/applsysx01.dbf
    INPUT          16385      15361           0       1024 6.24961855 /u1140/oradata/PRD1/ard01.dbf
    INPUT          16385      15361           0       1024 6.24961855 /u1140/oradata/PRD1/gld01.dbf
    INPUT           8225       7711           0        514 6.24924012 /u1141/oradata/PRD1/rbs01.dbf
    INPUT           8225       7711           0        514 6.24924012 /u1141/oradata/PRD1/rbs03.dbf
    OUTPUT         10222       7662           0       2560 25.0440227 bk_87605_1_777154038
    OUTPUT         10242       7678           0       2564  25.034173 bk_87606_1_777154038
    AGGREGATE      40995      38433           0       2562 6.24954263
    AGGREGATE      40995      38433           0       2562 6.24954263
    10 rows selected.
    TYPE        IO_COUNT      READY SHORT_WAITS LONG_WAITS    LIO_PCT FILENAME
    INPUT          16385      15361           0       1024 6.24961855 /u1140/oradata/PRD1/arx01.dbf
    INPUT          16385      15361           0       1024 6.24961855 /u1140/oradata/PRD1/invd01.dbf
    INPUT           8193       7681           0        512 6.24923715 /u1141/oradata/PRD1/rbs02.dbf
    OUTPUT         10232       7669           0       2563 25.0488663 bk_87607_1_777167658
    AGGREGATE      40963      38403           0       2560 6.24954227So, as per the output please suggest possible solutions to decrease the backup time, if not possible any other option.
    Is there any problem with the tape device or is it an oracle issue.
    Thanks
    Peeks

  • Where is RMAN or backup/recovery sub-forum?

    Hi
    I had a question regarding RMAN but could not find the rman-subforum? I may be looking at wrong place - I think it existed in the older version of Oracle Forums.
    Best regards

    It's under High Availability

  • RMAN Priviligies and Role to Create backups

    Hi everyone,
    I have some questions regarding RMAN backup options in my mind and want your help in their clarification.
    1) We want to taken backup of Database with RMAN and for that we want to create a new Database user to take the backup rather than sys user. For this what prives this users need other than connect, quota etc. What we want to do is that we want to ensure that this RMAN user can only take backups and nothing else. I've read in the documentation that in order to take backup through RMAN ; the RMAN users must have sysdba role. Is this necessary? Don't you think this can compromise the db security?
    Kindly note that currently we are using control file as RMAN repository so no need the discussion of Recovery catalog in our case.
    Regards,
    Kamran

    All RMAN database connections require SYSDBA privilege. So if you are using any other user other than SYS then you should grant it SYSDBA privilege.
    http://docs.oracle.com/cd/B19306_01/backup.102/b14192/setup003.htm#i1005954

Maybe you are looking for

  • Deleting a program duplicated in Admin/another account name

    Background: My newly updated Firfox browser on my regular user account (herein called User) works fine. I transfered it via usb stick to my Admin account because I want it there too. The Admin account version is causing major weirdness to my system (

  • Macbook Pro 8,2 (2011) - Unable to locate a BIOS ROM

    Hi, everyone! I've had pretty good luck getting Arch running on my MBP 8,2 with hybrid graphics, using the integrated intel device. However, I'd very much like to be able to use VGA switcheroo and have an external display available. I've extracted th

  • I face a problem  while making a confirmation on portal.

    Hello , Can anyone help me I am facing a problem while making confirmation in the portal. the system pops up an error as mentioned below. Please help •     Folgender Fehlertext wurde im System SRP prozessiert: Speicherungsform der Produkt-ID ist im C

  • Calendar no longer syncing with desktop

    I have a Centro that has decided to stop syncing with my desktop on the calendar.  Not sure how long it's been doing this--but just double booked myself for an appt and realized my calendars are discrepant from desktop to handheld.  I do NOT sync wit

  • Links in email messages not working since 2.2 update

    When I click on a link in an email, it normally would go to the web page.  Now it just goes back to the original email.  This started with the 2.2 update.  Any suggestions?