Cold with RMAN backup

Dear all,

db_version: 10.2.0.4
OS_Version:window 2003 Server
Environment: Test

I want to perform cold backup with RMAN for the same thing I want to know the following:

1. What is the script / command?

2. how to completely restore a cold backup (ex:-if I lost all my data, redo and archive)

3. is it compulsory to open the database in mode RESETLOG after recovery (since I was a backup to cold)?

Thanks in advance

A backup 'Cold' is called a 'Cohérent' backup
See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/bkup003.htm#sthref297

Backup:
From the RMAN command line:

SHUTDOWN IMMEDIATE
STARTUP MOUNT
BACKUP DATABASE
BACKUP CURRENT CONTROLFILE  -- to get the controlfile in a separate backupset

Restoration:

STARTUP MOUNT
RESTORE DATABASE
ALTER DATABASE OPEN

If you use a SPFILE, you can have a backup SPFILE included automatically with the backupset controlfile with CONFIGURE CONTROLFILE AUTOBACKUP on and CONFIGURE CONTROLFILE AUTOBACKUP FORMAT...

Read the documentation.

Hemant K Collette

Tags: Database

Similar Questions

  • Backup with rman backup sets

    Hi experts. I know about backup of backup without rman example sets but I want to know is there a way to backup with rman backup sets.

    Perhaps it works for your condition.

    RMAN > backupset backup is complete before ' sysdate-1';

    Kind regards

    Shivananda

  • Cold DB RMAN backup & restore on the other server: best procedure?

    Hello

    A few days ago I did a cold backup of the GR 2 CARS DB 11 with the following commands:

    srvctl stop database d DBPOC

    RMAN target / < < EOF

    bootable media;

    run

    {

    assign the channel c1 type disc format ' / tmp/dump/coldBkp/%T_%d_DBID%I_s%s_p%p.bkp';

    backup of database TAG 'BKPCOLDDBPOCC' keep until 'sysdate + 1000';

    backup current controlfile TAG 'BKPCOLDDBPOC_CTL' keep until 'sysdate + 1000';

    backup spfile TAG 'BKPCOLDDBPOC_SPF' keep until 'sysdate + 1000';

    output channel c1;

    }

    SHUTDOWN IMMEDIATE;

    quit smoking;

    FO %

    srvctl start database-d DBPOC

    srvctl start service d DBPOC

    Then noticing that I need a copy of controlfile I also did:

    backup current controlfile copy format in ' / opt/dump/oracle/coldBkp/currentctlfile.ctl';

    He made a set of files in the file/tmp/dump/coldBkp system that I copied to another server, resembling:

    20130912_DBPOC_DBID23987234897_s371_p1.BKP... plus my currentctlfile.ctl.

    I copied everything on another machine in/tmp/rest, where the same structure of fs and ASM

    starts existed; then run the following commands to restore this DB on

    This new server:

    1 / set some env variables

    2 / cp initDBPOC.ora /opt/oracle/app/ora11g/product/11.2.0/db_1/dbs

    3 / sqlplus: Startup nomount pfile=/opt/oracle/app/ora11g/product/11.2.0/db_1/dbs/initDBPOC.ora

    4 / rman: restoring controlfile to ' / location/of/coldbackup/files/currentctlfile.ctl';

    5 / rman: sql 'alter database mount;

    6 / rman: catalogue start with "/ location/of/coldbackup/files";

    [Type here YES]

    7 / rman: restore the database;

    8 / sqlplus: recover database using backup controlfile until CANCEL;

    [immediately cancelled the first required archive log]

    9 / sqlplus: alter database open resetlogs;

    The procedure has worked.

    But I'm not happy with this, I thought I could have done with RMAN. However, I discovered

    e.g. a CONTROLFILE RECOVER with the HELP of BACKUP is not possible with RMAN etc etc.

    and I had to swith back to sqlplus, surprisingly.

    Am I missing orders RMAN should I used? Y at - it another way - more simple? -of

    perform this restore/recovery simple thanks to the RMAN utility only? Or is my error in backup

    the first place and I should have used other commands for backup?

    Thank you very much in advance for any advice you can give me...

    Kind regards

    Sébastien

    Hello

    You can use

    RMAN > RECOVER DATABASE;

    and for the time being, you can use

    Set until clause with TIME/SCN/restore point

    HTH

  • restore user managed with RMAN backup hot

    Is it possible to restore hot backup with RMAN user managed and recover the database?

    What is use of command RMAN CATALOG?

    Oracle doc said: [http://docs.oracle.com/cd/B14117_01/server.101/b10770/rcmsynta11.htm#79814]

    (1) order catalog added a copy of the data file information, archived redo log or copy of control in the repository files.
    (2) add metadata to a copy of the data file managed by users, copy of control files, archived log or backup piece to the RMAN Repository.

    After using the 'CATALOGUE' to add metadata to managed backup in the catalog of recovery and after having made "RESYNC CATALOG", I still don't see my backup listed in the output of

    RMAN > list backup

    Published by: Gaurav Mhatre on April 23, 2013 10:35

    Gaurav Mhatre says:
    After using the 'CATALOGUE' to add metadata to managed backup in the catalog of recovery and after having made "RESYNC CATALOG", I still don't see my backup listed in the output of

    RMAN > list backup

    backup of the list won't show you the results.your not done backup with rman directly taken by data copy.so file

    RMAN > list copy;

    above cmd will show that you have desired results check it out.

  • Creating a new controlfile with RMAN backup data files

    Hello

    I use oracle 10g (10.2.0.1) in RHEL5 server. I am trying to restore a RMAN backup from one server to another server again with the new name of the comic. I took on the RMAN backup spfile and created her pfile and edited the file pfile with new dbname and directory structure and launched the db in nomount with new pfile. Today I restored the backup controfile RMAN has tried to put the database in State of Mount. But it failed due to the error below

    RMAN-03002: failure of alter db command at 21:44:56 05/11/2012
    ORA-01103: name "ORADB" in the control of the database file is not 'DEVDB '.

    So I stop the database and started the db in nomount with new pfile and tried to create the controlfile with new db name, but he didn't like it is looking for the data files.

    ORA-01503: CREATE CONTROLFILE failed
    ORA-01565: error in file identification
    ' / u01/app/oracle/oradata/DEVDB/datafile/o1_mf_system_80jq0kfw_.dbf'
    ORA-27037: unable to get file status
    Linux error: 2: no such file or directory
    Additional information: 3

    All my data files in my RMAN backup. How to get the data files of RMAN backup in the above scenario?

    Kind regards
    007

    restaurer restore as ORADB, then rename the database with DBNEWID
    http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dbnewid.htm

    or use duplicate instead of restore

  • Two questions relating to the archive redo logs with RMAN backup

    DB version: 11g

    I am new to RMAN.

    My database is in ARCHIVELOG mode. I intend to make a weekly backup for my db (02:00 every Monday). There will be all the incremental backups between these windows(Monday-to-Monday) of backup that I have would function for retrieving archived redo logs.


    Question1.
    I want to save the archived logs every day (for example at 23:00). How can I configure that?

    These are the configuration setting, that I intend to implement. I don't know how to set up the archive log backup
    configure default device type to disk;
    configure retention policy to redundancy;
    configure device type disk parallelism 1;
    configure channel 1 device type disk clear;
    configure channel 2 device type disk clear;
    configure channel 1 device type disk format '/u05/rman1/datafiles/rmnabackup1_%U';
    configure channel 2 device type disk format '/u05/rman2/datafiles/rmnabackup2_%U';
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '/u05/rman1/control_files/rmnabackup1_%U';
    Question2.
    After that a new full backup is taken at 02:00 on Mondays, the archived redo logs accumulated since the last 7 days become unnecessary. How can I automate the removal of the archive redo logs with RMAN?

    Archive the log delete them all input command will take the destination of the log archiving log backup archive and delete this destination.

    In the log archive destination he has archived log in the sequence 1 to 100 then will he take the backup and delete any of the destination (Monday 23:00).

    In the log archive destination he has archived sequence journal 101 to 150 then will he take the backup and remove those in the destination (Tuesday 23:00).

    In the log archive destination he has archived log in the sequence from 151 to 180 so will he take the backup and delete any of the destination (Wednesday 10:00).

    It will continue like that.

    Concerning
    Asif Kabir

    -If you help brand the response as correct/useful.

  • How to create the new database with rman backup

    Hello
    I took an rman backup with nocatelog. can I make a new database with the rman backup.
    If so, how? I m using oracle 9i.


    thxs

    If it is useful, see the following:

    http://www.shutdownabort.com/QuickGuides/clone_rman.php

  • archivelogs with RMAN backup

    Hello.

    Version of the database is 11.2.0.4

    I implement RMAN. I'm setting up FRA and I have a general question.

    I understand that the DB_RECOVERY_FILE_DEST is necessary for FRA - this is where the logs archive saved will be stored?

    The location of archive records however (which must be separated from the FRA) - this still can be set according to the LOG_ARCHIVE_DEST parameter?

    Thank you

    DA.

    What I managed to do runs than incremental backups with block change tracking.

    It was surprising speed backups then connected - 25 minutes to a little more than 1 minute!

  • RAC with RMAN backup

    Hi gurus

    I want to know what is the reason that we need to make a backup of all the ways to instacnes why rman needs to create a channel for all instances while performing a backup? Since CARS use a shared storage, then we can take a backup of an instance of one is enough right? Clarfiy me please.


    Concerning
    Bathrinath

    You must backup all archive log threads one instance.
    If all your redologs archived for all threads are on the shared storage, AFAIK you don't need multiple channels.
    If these wires are on local storage, you need to allocate a channel instance or you won't have a full backup.

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

  • We can schedule with rman backup in the windows platform?

    My question is about the backup settings of my

    the idea is to all on the windows platform

    a weekly full backup (compressed backupset level 0)
    daily incremental backup of (cumulative) (even, level 1)
    an incremental backup every hour (bonus) (level 1)



    could you please tell me if the following examples will be adapted to my needs
    Thanks to you all

    I think you would need to do a .cmd file plan and then using the Windows Task Scheduler. I suggest you do a cmd simple backup file, try to plan and see how it goes.

    HTH
    Aman...

  • Duplicate RMAN with specific backup location

    Hello

    I explain here my architecture:

    -Server Oracle 11.2.0.4 production: prod db with the instance name PROD with RMAN backups on the F: drive

    -Test the Oracle 11.2.0.4 Server: test-db with the instance name TEST with RMAN backups on the F: drive and production available on the G: drive backup drive

    -Customer name: customer

    My goal is to reproduce the production server to the test server instance and I can't achieve this goal. The connection is client-side.

    I do it like this:

    -startup nomount TEST

    -On the client, run the following "rman target sys/pass@PROD auxiliary sys/pass@TEST.

    Then in RMAN, I run the following:

    RUN

    {

    CHANNEL AUXILIARY ALLOCATE ch01 DEVICE TYPE DISK;

    CHANNEL AUXILIARY ALLOCATE ch02 DEVICE TYPE DISK;

    DUPLICATE THE DATABASE TO THE LOCATION OF THE BACKUP TEST "G:\RMAN";

    }

    RMAN does not see my "LOCATION of BACKUP" command because it tries to reproduce the F: drive and can't find the backup files.

    I have the thing like this:

    CH01 channel: reading of the element of backup F:\RMAN\CTRLFILES\CTRL-PROD-C-2267984545-20150826-00

    CH01 channel: ORA-19870: error when restoring full backup, F:\RMAN\CTRLFILES\CTRL-PROD-C-2267984545-20150826-00

    ORA-19505: impossible to identify the file "F:\RMAN\CTRLFILES\CTRL-PROD-C-2267984545-20150826-00 '

    ORA-27041: could not open the file

    04002 - OSD: could not open the file

    S/O-error: (OS 2) the system cannot find the file specified.

    Single quote, double quote, tried almost everything and RMAN always look for the backup in the F: drive. Can you help me to use the G: drive?

    And at the beginning of this thread someone told me not to connect to the target database.

    You use the clauses unwanted duplicating without connecting to the target database. SPFILE clause is not necessary, but you seem to use it in the block of the RACE.

    Create a simple PFILE with all the parameters required for the auxiliary instance, startup nomount and run the duplicate.

    Also worth db_file_name_convert log_file_name_convert parameters in the PFILE to the auxiliary instance file, run the duplicate.

    run

    {

    CHANNEL AUXILIARY ALLOCATE ch01 DEVICE TYPE DISK;

    CHANNEL AUXILIARY ALLOCATE ch02 DEVICE TYPE DISK;

    DUPLICATE THE DATABASE TO THE LOCATION OF THE BACKUP TEST "G:\RMAN";

    output channel ch01.

    output channel ch02;

    }

    HTH

    Duplication of data without a connection to the target database or catalog of database in Oracle 11 g | Shivananda Rao

    -Jonathan Rolland

  • With RMAN for backup, but not with the archive logs

    We run a 10.2.0.4 database and the rest 11.2.0.3. All databases are on RHEL 5.7.

    Our backups are via RMAN, with the data files, controlfiles and spfile saved to disk, then each day, it is copied off site to a backup server.

    My question is around logs archiving and RMAN.
    Our current situation is:
    -We do not save the logs to archive via RMAN. for example: backup of the list of the archivelog all; gives "specification does not match backups in the repository.
    -We set the archive_lag_target so archiving logs is produced every 30 minutes.
    -a cron job running on a remote server runs periodically to synchronize data (rsync server) the directory of archives with a remote control.
    -daily archive logs on the server host are bzip. Purge of these newspapers is scheduled for more than 3 days rman 'window of recovery '.

    I'm interested in feedback as to if our strategy around archiving logs is correct or not.

    Should we be backup logs archiving via RMAN? Are there potential problems with our approach?
    We just kept our backups in this way the DBA in the past want to see newspapers archived as opposed to it while a backupset.

    Curious to know what others are doing.

    Hello

    Welcome to OTN!

    Archivelogs with RMAN backup is a better option. When the archives are supported by RMAN, RMAN would be aware of the backup items which are required at the time of the recovery archives. You don't have to do it manually.

    On the disk space, you can delete the archives once they were saved by RMAN.

    RMAN > delete any backup archivelog entry;

    This supports the archivelogs and then remove the archives from the disk.

    If you have a dataguard configured, you can set the deletion policy 'applied on Eve', which removes the archives as and when they are applied to the database ensures there by the management of disk space again.

    RMAN > configure archivelog political of deletion to applied pending;

  • It is advisable to use RMAN backups?

    Hello

    Currently in our production databases, they took only the export dumps in every day.

    Is it advisable if we use RMAN backups?

    Expdp/impdp we can import the dump and create a database in UAT as same as production.

    If we opt for RMAN, is it possible to restore the backup as expdp to test if necessary?

    Thanks in advance.

    2

    679362 wrote:

    Hello

    Currently in our production databases, they took only the export dumps in every day.

    Is it advisable if we use RMAN backups?

    As others have said or implied, it is MORE than advisable.  I would declare it like this: If you want to stay independent as a DBA, it is mandatory.  Without him, there will come a time where you will lose data.  And which violates the Prime Directive for the DBA.

    Expdp/impdp we can import the dump and create a database in UAT as same as production.

    Which may or may not be very well to "Refresh" a test database, but it is not acceptable for the recovery of a database of lost output unless you accept BOTH of the following:

    (1) potentially to recreate an 'empty' database to replace the lost production database.

    1 a) potentially lose required components of database and/or configurations because you have forgotten/don't do them after the recreation of the empty database

    (2) lose all data that has been added to the database once your instant export has been taken.

    Do you think all the foregoing as an acceptable risk for your organization?

    If we opt for RMAN, is it possible to restore the backup as expdp to test if necessary?

    Definitely.  Why wouldn't be?  With rman for your primary backup strategy does not prevent you to export for any purpose you want to do with them.

    I have 4 key production databases.  For three of them, I update their counterparts in test with rman backups. For the fourth, I use exports.

    Thanks in advance.

  • Can RMAN backup in 2 places due to the lack of space?

    Oracle 11.2.0.4 on RHEL 6.4

    We have a DB production with RMAN backup (L0) enlarged with compression of 400 GB. We usually tape backup. But, today, I need to save this DB for the local file system.

    I don't have a single file with 400 GB of free space system. But, I

    /ora_backup with 300 GB freespace

    and

    /U04 with 150 GB freespace

    Is it possible to load RMAN instead of 300 GB of backup in the directory/ora_backup/rman pieces and the remaining items of backup to the directory/u04/rman ?

    Hello

    You can use a running script rman with two channels and write each channel on a different disk location, but be sure to choose the number of data file (size of the data file).

    RMAN > run

    {

    ALLOCATE CHANNEL c1 DEVICE TYPE DISK FORMAT ' / ora_backup/%U';

    ALLOCATE CHANNEL c2 DEVICE TYPE DISK FORMAT ' / u04/%U';

    BACKUP INCREMENTAL LEVEL = 0

    (CHANNEL DATAFILE 1,2,3,4 c1)

    (DATAFILE 5,6,7 CHANNEL c2);

    }

    In this example:

    I choose to backup datafile 1, 2, 3 and 4 on the /ora_backup directory, I choose to backup datafile 5, 6 and 7 on the /u04 directory.

    Best regards

  • How to remove a deleted database RMAN backups?

    Hi people,

    1, created a 10g database
    2, rman (with recovery catalog) to create and manage backups
    3, dropped to the database (I forgot to use the drop backup option)


    Is it possible to purge with rman backups now? Or will I have to manually delete all the files?

    Thanks in advance

    rogers42

    You can cancel the registration of catalogue database, but you must delete the backups manually. To uregister execute under connection as the owner of the catalog. First get DBID form rc_database view and anticipate that, as an argument to the procedure below:

     exec dbms_rcvcat.unregisterDatabase(db_id => 3888161139);
    

    Kind regards
    Julien

Maybe you are looking for

  • I need mx records

    Hi, I have recently finished my subsscription with one.com domain and to cancel, I lost my email that I greeted with Thunderbird. I contacted field society, and they said to use my old email address I need MX records. I asked one.com and they say the

  • Think that rescue and recovery - Vantage won't erase the previous backups

    I use the current version of the tool think Vantage Need to make more space for backups, so I had to delete the previous backups. It goes into deleting previous backup mode with the red dots transiting via the command prompt. But it does not stop...

  • LaserJet 2840: LaserJet 2840 Stopped printing in color

    My 2840 has just stopped printing in color only in black and white.  It comes from working well for over a year.  Help!

  • Change the color of a label that is already made

    Is this possible? The TextStyle of AbstractTextControl definition is read-only. The label does not seem to have any method to repaint. At the moment I'm to create two identical labels and hiding one at first, then when I "change the color of the labe

  • Error signature: "could not find the signature key file: author.p12.

    I'm trying to configure PhoneGap development HTML5, but get a strange error message. Author.p12, barsigner.csk, and barsigner.db files are placed under C:\Users\[user]\AppData\Local\Research on the move, as explained in https://developer.blackberry.c