RMAN backup and cross-checking script

Hello

I just joined a new company this week. As would any s/n, I was going just through the RMAN backup scripts used in the new environment.
Here we run weekly RMAN backup complete for some of the databases that I am responsible for managing. The script and schedules are as follows.

Every Sunday from 21:00, we organize a weekly job overlap

Connect target username/pwd@DBNAME
Connect catalog username/pwd@DBNAME

Run {}
CROSS-CHECKING OF BACKUP;
DUPLICATION OF COPY;
OVERLAP BACKUPSET;
OVERLAP ARCHIVELOG ALL;
DELETE NOPROMPT OBSOLETE;
}

Every Sunday from 9:30, we run the RMAN backup command which is

Connect target username/pwd@DBNAME
Connect catalog username/pwd@DBNAME

run
{
CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
SQL 'alter system archive log current';
backup as backupset database include current controlfile;
SQL 'alter system archive log current';
ARCHIVELOG BACKUP of time ' SYSDATE-8';
DELETE ARCHIVELOG ALL COMPLETED BEFORE ' SYSDATE-15';
}


A database that I will handle has been set up just over a week before I join.
28 FEV 21:00 - no set of backup/copy/backup of overlap. I hope it will be cuts across all archive logs available in the database. No obsolete backup/copy/backup/archivelogs to remove.
28 FEV 21:30 - sets the retention policy at 7 days, full backup of database backup and backup all archivelogs (sysdate-8). No newspaper archive to remove the database was created (migrated) less than 15 days back.

7 March 21:00 - contre-vérifie the backupset (taking the 28 fev 21:30). No backup/copy of overlap.
Question 1: Is there a backup obsolete here to delete?
Own thought: Recovery window is 7 days. RMAN needs a backup in order to recover the database in any time-7 days to the present time (7 March 21:00 - 7 days = 28 fev 21:00). No obsolete backup to delete.

7 March 21:30 - full database backup and fails to save all logs archiving (sysdate-8). No space in the Flash recovery disk group. As the archivelog backup failed and RMAN complete, it has not removed the archivelogs ' sysdate-15'.

Backup is running again on 14 March. Of course, it will fail because there is no enough space in the Group of recovery disks.

Future: I'm confused
March 14, 21:00: contre-vérifie the backupset (supported March February 21:30). No backup/copy of overlap.
Question 2: How do I know what is here obsolete? From the window of 7 days recovery, 14 March 21:00-7 days is March 7, 21:00. Last backup was taken on March 7, 21:30.
To get back to 21:00, RMAN makes keep the backup of 28 March?... Does this mean whenever I'll have copies of backup 3?...

14 March 21:30 - backup database... Log Archive backup will fail because there is no space. (I think to make a compressed backup).

Question 3: How those wise commands?
ARCHIVELOG BACKUP of time ' SYSDATE-8';
DELETE ARCHIVELOG ALL COMPLETED BEFORE ' SYSDATE-15';

If I take a successful backup of the archivelogs sysdate-8, why I need to keep the archivelogs before that? What could be the reason the previous DBA kept DELETE ARCHIVELOG COMPLETED BEFORE ANY 'SYSDATE-15 '; Rather than give DELETE ARCHIVELOG FINISHED FIRST and FOREMOST ' SYSDATE-8 "?

Thanks in advance for your help.

Published by: user8907052 on March 11, 2010 12:10

If your database to 9i and above, then you don't need to pass - sql 'alter system archive log current;' before you perform the backup as RMAN automatically archives the log during recovery.

Tags: Database

Similar Questions

  • RMAN backup and restore into Production KEEPS RAC and DATA

    Hi gurus of the Oracle

    We need the expert advice for tune and cross check the RMAN Script for Production environment below below

    Please suggest any corrections or comments on below mention scripts which will be executed on RAC and Production DATA GUARD environment

    LINUX RHEL 5.5 64-bit
    ORACLE GRID Infrastructure R2 Version 11.2.0.3.0 (we use ASM Cluster File system)
    ORACLE11g R2 Version 11.2.0.3.0

    We planned for basically rman backup drive using control file target instead of recovery catalog database

    We will have Data Guard Setup between 2 remote sites of database and two remote sites have running the local 2-node RAC database

    =========================RMAN_Full_Backup.sh=========================================================================
    #! / bin/bash
    . /Home/orarac/.bash_profile
    logloc = 'date' + rman_backup_lvl0_orcldb_ %m %y hour %M %S %d ".log
    # Start rman backup
    Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
    run
    {
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    database backup incremental level 0 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL0_%D_%M_%Y'
    include current controlfile
    tag 'datafile_full ';
    }

    run
    {
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    overlap archivelog all;
    SQL 'alter system archive log current';
    backup ARCHIVELOG all delete them all input FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_ARCHIVELOG_%D_%M_%Y'
    tag 'archivelog_full ';
    }
    cross-checking of backup;
    delete noprompt obsolete;
    Save the list of database;
    EXIT;
    EXPRESSIONS OF FOLKLORE
    ==================================================================================================
    =========================================RMAN_Inc_Backup.sh ===========================================
    #! / bin/bash
    . /Home/orarac/.bash_profile
    logloc = 'date' + rman_backup_lvl1_orcldb_ %m %y hour %M %S %d ".log
    # Start rman backup
    # use only the following line if this script is run via the root CRON
    Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF

    Run {}
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    database backup incremental level 1 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL1_%D_%M_%Y'
    include current controlfile
    tag 'datafile_Incr ';
    }
    Run {}
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    overlap archivelog all;
    SQL 'alter system archive log current';
    backup ARCHIVELOG all delete them all input FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_ARCHIVELOG_%D_%M_%Y'
    tag 'archivelog_full ';
    }
    cross-checking of backup;
    delete noprompt obsolete;
    backup from the list;
    EXIT;
    EXPRESSIONS OF FOLKLORE
    -bash - $3.2
    ====================================================================================================
    ===================================RMAN_DB_Restore.sh====================================================
    -bash-3, $ 2 cat /home/orarac/RMAN_Scripts/RMAN_DB_Restore.sh
    #! / bin/bash
    . /Home/orarac/.bash_profile
    logloc = 'date' + rman_restore_orcldb_ %m %y hour %M %S %d ".log
    # use only the following line if this script is run via the root CRON
    Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
    Run {}
    BOOTABLE MEDIA FORCE;
    RESTORE THE DATABASE;
    RECOVER THE DATABASE;
    ALTER DATABASE OPEN;
    }
    EXIT;
    EXPRESSIONS OF FOLKLORE
    ====================================================================================================

    Concerning
    Hitgon

    Thank you mseberg

    This command is the full backup or a backup of level 0?

    full backup as compressed backupset
    data include current controlfile more archivelog deletion entry;

    We use command below for the full backup of database.
    database backup incremental level 0 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL0_%D_%M_%Y'
    include current controlfile
    tag 'datafile_full ';

    We use the command below to the increment backup
    database backup incremental level 1 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL1_%D_%M_%Y'
    include current controlfile
    tag 'datafile_Incr ';

    What is the different when we use
    CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON STANDBY;

    or

    full backup as backupset compressed database include controlfile current more archivelog delete all input;

    Concerning
    Hitgon

  • RMAN backup BOF EBS R12

    Hello

    I've done I have backup for EBS R12 with RMAN script with the following parameters:
    run {
         CONFIGURE CONTROLFILE AUTOBACKUP ON;
         CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/mnt/EVA-DISK/RMAN/data/%F';
         CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/mnt/EVA-DISK/RMAN/data/snapcf_PROD.f';
         backup format '/mnt/EVA-DISK/RMAN/data/%d_LVL0_%T_%u_s%s_p%p' database;
         delete obsolete;
         }
    and I have this 3 files as emergency exit.
    [root@orafin data]# ls -l /mnt/EVA-DISK/RMAN/data
    total 21089360
    -rw-r-----  1 oraprod dba    31817728 Apr 11 18:10 c-94644369-20090411-00
    -rw-r-----  1 oraprod dba 21510840320 Apr 11 18:10 PROD_LVL0_20090411_04kc7jd6_s4_p1
    -rw-r-----  1 oraprod dba    31735808 Apr 11 18:10 snapcf_PROD.f
    These 3 files are complete? What else I need or miss in order to recover my database disaster.

    Thank you very much

    Hello

    You need to check yourself. Restore the RMAN backup and verify that your backup is valid (I think you already have links to RMAN documentation is another thread).

    Kind regards
    Hussein

  • restore from RMAN backup

    Hello

    We communicated in code. For this we will have option rollback is that take a full RMAN backup and restore the backup in the database. This is to check if we can able to recover the database before the output of code.

    10.2.0.4 database
    AIX OPERATING SYSTEM

    There is no change in the locations of the files (control file, file data, all). on the same server and the same database.

    Just to recover from a backup.

    can you tell me how we can get there.

    Hello;

    RMAN point to the recovery time.

    Example of

    Connect to RMAN
    
    RMAN> startup mount;
    
    RMAN> restore database until time "to_date('5-NOV-2012 11:23:00','dd-mon-rrrr hh24:mi:ss')";
    
    RMAN> recover database until time "to_date('5-NOV-2012 11:23:00','dd-mon-rrrr hh24:mi:ss')";
    
    RMAN> alter database open resetlogs;
    
    Note:
    
    You should perform a full backup.
    

    Best regards

    mseberg

  • Only RMAN backup, restore the temporary files?

    DB version: 11.2
    Operating system platform: Solaris 10

    Can RMAN backup and restore temp files?
    I'm to recreate a database in a new server, when restoring, it's recommended to restore a temporary RMAN backup file? (if Rman can indeed save and restore temporary files). Or is it better to manually create temporary files in the new server?

    N ° RMAN does not backup TEMPFILEs. (so it does not restore them).
    You can not even explicitly issue a command to BACKUP for TEMPFILEs.

    The TEMPORARY file is re-created automatically when you OPEN the database - it is created at the location specified in the controlfile.

    Hemant K Collette

  • Backup and recovery with EXPDP and IMPDP

    Hello

    I have a problem of beginner!

    My environment is 10.2.0.4 & 11.2.0.2.

    I wish
    to backup a small database with EXPDP (FULL=Y)
    and to recover it with IMPDP(FULL=Y). ( *I don't want to use RMAN in this case*)
    My question:
    + what have I more to backup ( e.g. Passwordfile, control files, init.ora..) to be able to recover  
      successfully with IMPDP?
    + what are the steps to recover with IMPDP?
    I tried looking for a Howto in INTERNET, but in vain so far!

    Can any expert answer me? or show me a place to get a good HOWTO?

    Thanks and greetings

    hqt200475

    So that's a little different situation from the initial, general issue.

    This situation Yes, create a new instance when the user that contains the data catalog rman since your last export import. The rman catalog is usually low volume enough this import will have no problem (we will assume that the export has not held while all backups rman-ducts were running).

    We know that your environment already relies on rman, since it is the rman catalog you save, you must familiarize yourself with rman still. Set up rman backup and restore for your sounds of database catalog rman as the perfect learning exercise that you improve on the procedures of your predecessor.

    Backup and recovery quick start for 10.2 Guide: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14193/toc.htm

    Backup and Guide recovery for 11.2: http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/toc.htm
    A section of this guide to a direct interest (protection Recovery Catalog): http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmcatdb.htm#CHDEBDJG

  • recover the database by using the RMAN backup archivelogs

    Hello

    I tried to find the resolution of this problem in google a lot but couldn't find something useful.

    Location:

    We try to clone the dev environment of production that are completely on different servers and do not share a common mount point.
    Backup RMAN of PROD with RMAN as well as arch newspapers are kept in this mount point.
    We took control of backup files of PROD restored in DEV fired restore with recovery until a when not.
    Turns out that the sequence was not saved in right backupsets there if recovery has not requested more arch newspapers that are present in the PROD.
    Archs are stored in ASM and only way out is to take of RMAN backup of them.
    We control the file as a repository for RMAN.

    my questions are

    1. surely, I need to take backup of the control file after I take the log arch by RMAN backup and restore this file command in the DEV of so that when I start RMAN recovery in DEV, database will be able to find the backupset with arch newspapers. But the new restore a control file will delete the data files restored information?

    2. If we did not have a point of common Assembly and then after sending the backup destination elements how the database would be the locations of the game copied to the new location of the control file that is restored from the backup source?

    Suppose that in the source backups are stored in/backup/rman
    in destination copy us in/backup/clone
    in the PROD control file, their locations are saved in/backup/rman
    so if I restore this command file in custom DEV it find the elements of backup in/backup/rman?
    is it possible to save a backup of outside item in the control of a database file?


    3 al ' ASM, is there another way to extract the PROD archive logs and apply them to a cloned instance? (sending of newspapers without DR)

    The help is very appreciated.

    Kind regards
    Marjorie Dutta

    1. .... But the new restore a control file will delete the data files restored information?

    N ° provided that you do not have renamed, moved or abandoned any of the data files that were already copied in DEV. (also, subject that you did not add da new Production data between two backups - otherwise the new controlfile file will wait as datafile also to be present at DEV).
    You will do an incomplete recovery until a certain SNA / sequence # if information subsequent archivelogs beyond your point of recovery in the controlfile are redundant. In addition, a RESETLOGS would be done when you OPEN the database.

    2... how to know the locations of the game copied to the new location of the control file that is restored from the backup source database?

    What is the order CATALOG. In 9i, CATALOGUE could only of catalog datafilecopy. In 10g and more, you can BackupPieces CATALOGUER. Thus, it would "update" the controlfile (which is the RMAN Repository) with information about the BackupPieces that are present in a replacement / new location.
    See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta011.htm#sthref230

    3. ... ASM, is there another way to extract the PROD archive logs and apply them to a cloned instance?

    According to the version you are using, ASMCMD has a 'cp' command to copy the files from the DSO for the operating system. However, you cannot use ASM to apply directly the archivelogs. You always use the 'RECOVER' of RMAN or SQL command line command.

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • extract the rman backup data file

    Hello
    I want to search when logical corruption occurs in my database, so I want to extract my rman backup and test a file with db_verify.
    But I don't want to recover the database. How to extract a file without recovery and destroing database work?

    thnx
    Podkov

    You must perform the RESTORE in an auxiliary instance - preferably on another server.

    Note: If you do it on the same server, make sure that
    a. you do not connect to the same database instance
    b. you set NEWNAME so that the data file is extracted to a different location

  • cross-checking of backup and delete obsolete;

    Hello
    10 g R2 on a Win 2003 server. Connected to the catalog and target database, that I run:
    RMAN > backup duplication

    RMAN > remove obsolete;
    FILE 1
    FILE 2
    ....
    .....
    .....
    You want to delete the above file? O/N: YES

    And then:
    RMAN > backup duplication
    RMAN > remove obsolete;
    FILE 1
    FILE 2
    ....
    .....
    .....
    You want to delete the above file? Y/N

    I don't understand. If the first time that I answered YES and the obsolete table then deleted why they appear again and again?
    Can we all be kind to explain to me?
    Thank you.

    "crossover" has nothing to do with obsolete backups, this command verifies backups, which are always saved in the controlfile/recovery catalog, but do not exist physically on the disk/tape. The order correct after 'overlap' is 'remove expired', 'deprecated' are backups is more necessary because of the defined retention policy.
    I guess that your backups are both obsolete and outdated, but "remove obsolete" does not work, because these backups were abducted outside RMAN. It could also be a permission problem, RMAN is not allowed to delete the backups at the OS level. This happens on Windows, when using shared disks.

    Werner

  • content managed rman backup crushing and selection procedure of the tape media

    Hello Experts.

    I have a question about the backupset rman tape media manage tape of the osb.

    [ENV]

    Exadata rman backup assistance OSB(version: 10.4.0.3.0) SL500 LTO5 4 Tape Drive with rman scripts and full backup is working well.

    1 Appendix backup on OS crontab

    -Each backup full day at 00:00 AM

    2 rman view all:

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    using the control file of the target instead of recovery catalog database

    RMAN settings for database with db_unique_name TESTDW are:

    CONFIGURE RETENTION POLICY TO 3 DAY RECOVERY WINDOW;

    CONFIGURE BACKUP OPTIMIZATION # by default

    CONFIGURE THE TYPE OF DEFAULT DEVICE TO 'SBT_TAPE ';

    SET UP THE DEVICE TYPE 'SBT_TAPE' PARALLELISM 4 TYPE OF BACKUP BACKUPSET.

    CONFIGURE CONTROLFILE AUTOBACKUP ON;

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    3 rman backup scirpts

    Run {}

    allocate channels c01 type 'sbt_tape' connect 'sys/manager@testdw1';

    allocate channel c02 type 'sbt_tape' connect 'sys/manager@testdw2';

    allocate channel c03 type 'sbt_tape' connect 'sys/manager@testdw1';

    allocate channels c04 type 'sbt_tape' connect 'sys/manager@testdw2';

    Backup section size 900g database;

    output channel c01;

    output channel c02;

    output channel c03;

    output channel c04;

    }

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    1st quarter > after several weeks and I run the command as "#obtool u admin Pei welcome1 lsvol-L lib1.

    and are used in many media of rman backup band (about 50EA media, perhaps 46EA are full and 4EA are appendble)

    So, I issue the command 'lsvol - a - c' and could not display expired on all media content.

    Why OSB no has not select and replace the tape media despite the rman rman default retention policy (3days) all show the setting.

    Why OSB does not have the expired status of rman content on tape media?

    -> I need the rman (delete expired, delete obsolete etc...) command to share the summary status of OSB and rman rman?

    Q2 > selection procedure for the tape media all backup rman

    Suppose the total number of tape media is 5EA. (1,2,3,4,5) with an available tape LTO5 drive.

    Status: 1 (full-rman content already expired), 2 (content integral-rman not expired), 3 (editable, remaining space), 4 (new media), 5 (currnet wring media)

    If OSB burn now 5 and reach at the end of the Strip and possibly another media, media to be selected by the OSB?

    Advanced thanks.

    If I place the order obsolete in the rman script as 'delete type 'SBT_TAPE' noprompt obsolete device;' the results will be the same as your

    the syntax because rman default setting (CONFIGURE RETENTION POLICY to RECOVERY WINDOW OF 3 DAYS ;) has already been fixed on the command "Show all", right? @)

    Yes.

    I use the catalog of recovery on a different database and backup script has catalog db connection string.

    And if I only use controlfile instead of recovery catalog to save the backup information and put in place "control_file_record_keep_time" a default of 7 days to 365 days, "remove obsolete" command to remove several weeks backupset works well, is it not?

    Possible problem are existing backups for several weeks if you left default control_file_record_keep_time. Change now will not help unless you catalog later manually all the old pieces not catalogued on tape backup.

    After you clean up the situation and particularly to remove obsolete in your script, rman, you will never make problems with control_file_record_keep_time from this moment. By default will do just fine because it is larger than your window of recovery.

    Kind regards

    Mitja

  • How knowledge/check if the RMAN backup was performed using a current control file or database catalog?

    Hello

    How knowledge/check if the RMAN backup was performed using a current control file or database catalog? I mean RMAN prompt or sqlplus is it possible to know.

    Thank you

    You're welcome my friend

    You can see them using two methods.

    as I mentioned above, you can see them connect to the catalog database and you can query using the view that I sent

    http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmreprt.htm#BRADV89601

    the other method is the list command, you must use the list command after connecting using rman "rman target / catalog cat_user/cat_pass@catdbtns" command

    http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmreprt.htm#BRADV8136

    Check the value of the control_file_record_keep_time parameter. The default value is 7 days. in the output of the list command, if you can see the old backups to the value, you must be sure that the backup information comes from the catalogue database

    SELECT * FROM parameter $ v where name = 'control_file_record_keep_time '.

    an example of command list

    the list of completed database before backup ' sysdate-10'.

    Concerning

  • [RMAN BEGINNER] Backup and recovery

    Hi all

    Can I ask a question?

    1. they are the same ARCHIVELOG = newspapers archived DB log?

    2. can I use the tracking order cross server

    #Server 1

    RMAN > run {}

    immediate stop

    Startup mount

    allocate channels disk1 disk format='d:\backup\ora_d%_%T.bak'

    backup current controlfile

    database backup and archiving log

    }

    # Server 2

    RMAN > run {}

    allocate channels disk1 disk format='d:\backup\ora_d%_%T.bak'

    restore database

    output channel disk1

    }

    I have to create before catalog?

    (1) logs archiving is essentially a copy of your recovery logs, once it is filled.  Archivelog and db archivelog terms can be used interchangeably, but essentially in a database there is a redo log, then a newspaper archive.

    Archives Redo Log Management

    (2) what do you mean cross server?  Tell you backup a database on a server and then restore to another?

    If so then Yes, you can back up a database on a single server and restore to another.  If your database is in archivelog mode, then you don't need to stop the database first.

    http://docs.Oracle.com/CD/B19306_01/backup.102/b14191/rcmrecov.htm#i1007814

    Before you launch your start command to restore your database in nomount mode, restore the controlfile, set up the database and then do your restore, recover and then open resetlogs:

    SQL > startup nomount

    RMAN > restore controlfile from "xyz";

    SQL > bootable media.

    RMAN:

    Run {}

    restore the database;

    recover the database;

    ALTER database open resetlogs;

    }

    (3) you do not need a catalog of recovery, RMAN will use the controlfile.  However, if you have several database in your environment, you can use a recovery catalog.

  • Vulnerable Webhelp for XSS cross site scripting checking. Reason - document.location.href

    Online help, created by the team through a security vulnerability checking now. It was found that integration of webhelp with the application, document.location.href is a vulnerable point according to the XSS cross site scripting. Please your thoughts and all the methods that you have that can contain this situation. Its emergency, please help.

    You can update your copy with the help > update or web page: http://www.adobe.com/downloads/updates/

  • RMAN backup shell script

    Hello
    on 10 G R2 in AIX 6.1

    I'm looking for an RMAN backup Shell script.

    In addition, if we should connect like this:
    rman nocatalog target sys/password@myDB << EOF
    backup as compressed backupset format '$savdir/ctl_%d_%T_%s_%p' current controlfile;
    exit
    EOF
    How to avoid writing the password in shell script?

    Thank you.

    There is a standard 'backup' option in the control of the database.
    You don't need any shell script and you're wasting your time by establishing a.

    -------
    Sybrand Bakker
    Senior Oracle DBA

  • Create the new database of complete hot RMAN, atrchivelog and backup control files

    Hi all

    I'm trying to create the new database U1234 of P1234 of full hot RMAN, atrchivelog and control P1234 file backup.

    Here are my steps

    (1) to restore the control file

    #! / bin/sh
    ORACLE_SID = P1234
    export ORACLE_SID
    RMAN nocatalog target / < < EOF | Tee restorecontrol.out
    startup nomount pfile=/u01/oradba/admin/U1234/scripts/restore/restore071009U1234/initP1234.ora;
    the value of DBID 6767676;
    run
    {
    allocate channel d1 type disk;
    controfile catering to ' / u02/oradba/U1234/control/P1234_control01.ctl';
    Restore controlfile to ' / orarman/restore/P1234/cf_P1234_c-00';
    change the editing of the database;
    }
    EXPRESSIONS OF FOLKLORE

    (2) database stop then restart the database with the new contraol file using pfile.

    (3) restore data files

    #! / bin/sh
    ORACLE_SID = P1234
    export ORACLE_SID
    RMAN nocatalog target / < < EOF | Tee restore_dbfiles.out
    Run {}
    the value of newname for datafile 1 to ' / u05/oradba/U1234/dbfile/U1234_system01.dbf';
    the value of newname for datafile 2 to ' / u05/oradba/U1234/dbfile/U1234_undotbs01.dbf';
    the value of newname for datafile 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
    the value of newname for datafile 4 to ' / u06/oradba/U1234/dbfile/U1234_users_d01.dbf';
    the value of newname for datafile 5 to ' / u06/oradba/U1234/dbfile/U1234_tools_d01.dbf';
    the value of newname for datafile 6 to ' / u08/oradba/U1234/dbfile/U1234_audt_x01.dbf';
    the value of newname for datafile 7 to ' / u07/oradba/U1234/dbfile/U1234_audt_d01.dbf';
    the value of newname for datafile 8 to ' / u07/oradba/U1234/dbfile/U1234_audt_d02.dbf';
    the value of newname for datafile 9 to ' / u08/oradba/U1234/dbfile/U1234_lh_x01.dbf';
    restore the database;
    switch datafile;
    }
    EXPRESSIONS OF FOLKLORE


    ORA-27063: number of bytes read or written is incorrect
    SVR4 error: 28: no space is available on the device

    Now, I missed the space during the restoration of data files and want to restore remaining who is 3 and 4 of datafile datafile.

    Can you please let me know how I can restore it.

    I need to change the names of database after the successful restoration.

    DBVERSION 10.2.0.1
    operating system: solaris 10

    Thanks in advance.

    Hello..

    Do you have free space? If Yes, then you can try: -.

    RUN {}
    SET NEWNAME for DATAFILE 3 to ' / u05/oradba/U1234/dbfile/U1234_sysaux01.dbf';
    RESTORE THE 3 DATA FILE;
    DATAFILE 3 SWITCH;
    }

    [http://www.oracle-base.com/articles/9i/DBNEWID.php]

    Anand

Maybe you are looking for

  • Power DVD Cyberlink media: Re: Reinstall Cyberlink Power DVD.

    A month after our upgrade of Windows 10, Cyberlink Power DVD 12 sent an update, the update has caused damage to this app and so a new facility is needed.  A Cyberlink istall failed and their ratings are because he is a type of OEM bundle, recorded at

  • Mousepad for computer laptop finger

    How can I get my scroll bar Acer Aspire 5336 notebook finger mousepad to start to work? [Moved from comments]

  • Replace C: drive on laptop with Vista 64 Ultimate

    I have a laptop HP with two internal hard drives.  I use C: for operating system, programs, etc. and D: for data.  I replaced D: with a bigger drive, no problem.  I copied all the data from the original D: files to a portable player, then replaced th

  • Windows does not read cd/dvd drive that were

    computer in windows vista does not read the cd/dvd as a reader is on th computer.

  • OfficeJet Pro 8620: Missing DLL

    every time I start outlook, I get the following error "there was a problem starting c:\prograsm HP HP officejet pro 8600\bin\hpstatusbl.dll the specified module could not be found."  I don't have a 8600 I now a 8620.  This error started after I recen