Hot Backup Of Database

How much time would oracle take if I take Hot Backup (using Imp/Exp statement) of a 60 GB database? Are there some other ways also of taking Hot BackUp ? How much would it effect oracle's performance while backup is taking place as the database is 24 x 7 and is taking uploads every few seconds?

Do not use IMP/EXP as a backup strategy. These utilities are intended for moving data about. Backup means taking a copy of the OS files - data files, redo logs, etc. To find out more please read the docs.
Cheers, APC

Similar Messages

  • When i start my hot backup my database getting very slow

    Hi,
    I am using following commands for enabling hot backup
    SQL>ALTER SYSTEM ARCHIVE LOG CURRENT;
    SQL>ARCHIVE LOG LIST;
    SQL >ALTER DABATBASE BEGIN BACKUP;
    Database altered.
    SQL>SELECT FILE#,STATUS FROM V$BACKUP;
    FILE# STATUS
    1 ACTIVE
    2 ACTIVE
    3 ACTIVE
    4 ACTIVE
    and using cp -rp command to copy the file (backup copying speed good) but database performance very slow
    How to improve performance ...
    Regards
    Vignesh C

    Uwe Hesse wrote:
    It is very likely that you experience slow performance with ALTER DATABASE BEGIN BACKUP , because until you do ALTER DATABASE END BACKUP , every modified block is additionally written into the online logfiles . Doesn't that happen only the first time the block is modified?
    >
    The command was introduced for split mirror backups, when this period is very short. Else ALTER TABLESPACE ... BEGIN/END BACKUP for every tablespace one at a time reduces the amount of additional redo during non-RMAN Hot Backup. There appear to be only 4 files. We don't know how big or sparse they are.
    >
    RMAN doesn't need that at all - much less redo - and also archive - generation then.
    Furthermore, you can use BACKUP AS COMPRESSED BACKUPSET DATABASE to decrease the size of the backup even more - if space is an issue.
    In short: Use RMAN :-)
    Agree with that! Unless the copy is actually going to an NFS mount or something, where I would be concerned whether it is the type of NFS that Oracle likes. I'd also advise a current patch set, as the OP didn't tell us the exact version, and I have this nagging unfocused memory of some compression problems of the "oh, I can't recover" variety.
    I'd like to see some evidence on I/O and cpu usage before giving advice. When I used to copy files like this, it would choke out everyone else. RMAN was a savior, but had to wait for local SAN upgrade.

  • Why we cannot take hot backup if database is in noarchive log mode

    Hi,
    I am aware that if database is in noarchive log mode, we cannot take hot backups and only cold backup is possible.
    I would like to know the technical reason behind this restriction?
    Thank You
    Sarayu

    Hot backups are fuzzy backups, inconsistent, in other words, since something is always happening in the database.  When you recover, you restore data files and then apply redo to make the transactions consistent.  You can do a complete recovery or recover to a point in time.  So where does the redo come from?  That's what we call archiving redo logs.  When the online redo gets full, it gets archived.
    In the case of an instance crash, the redo is there in the online redo logs, so Oracle can recover automatically.  Anything beyond that, having to do with storage media, is a media recovery, and requires those archived logs.  So unless you have some other way to get your data back, always run in archivelog mode.
    It is really important to understand the concepts.  Please read the docs.
    http://docs.oracle.com/cd/E11882_01/server.112/e25789/cncptdba.htm#CNCPT031
    http://docs.oracle.com/cd/E11882_01/backup.112/e10642/rcmintro.htm#i1005488
    It may be worth your while to get a third party backup and recovery book too.

  • Hot Backup for oracle database?

    Dear all,
    I want to change Cold Backup to Hot Backup. Does anyone how to do Hot Backup and has some simple document I can follow? If the database is running in ARCHIVELOG mode, is the size grow very fast or other effect will overcome?
    Please advice,
    Amy

    I want to change Cold Backup to Hot Backup. Does
    anyone how to do Hot Backup and has some simple
    document I can follow?online/hot backup don’t need to shutdown the database we can put the database in backup mode and then start taking backup even though users database activity read/write data going on. This strategy useful if ours database goes for 24x7.
    For online/hot backup the database should be in archive mode.
    I hope you know how to turn on archive.Before turning on check the archive on or not.
    SQL> archive log list
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     1
    Next log sequence to archive   2
    Current log sequence           2
    SQL> you may also check it by connecting to database as sys
    SQL> select log_mode from v$database;
    LOG_MODE
    ARCHIVELOG
    SQL> if yours database is not in archive mode then first enable archive,please before turning on the archive take cold backup.
    SQL>shutdown immediate
    SQL>startup mount
    SQL>alter database archivelog
    SQL>alter database open;
    SQL> archive log list
    Now you are able to take hot/online backup ,its upto you you use user managed backup and recovery or use RMAN oracle own shipped free tool for backup and recovery ,however my recommendation would goes for RMAN.
    http://download-uk.oracle.com/docs/cd/A97630_01/server.920/a96572/toc.htm
    http://www.oracle.com/technology/deploy/availability/htdocs/rman_overview.htm
    ARCHIVELOG mode, is the size grow very fast or other
    effect will overcome?However, the growing size pace either fast or slow everyday can be impractical it alls depends on activity of yours database operation.You will have to observe it yourself by turning on archive log its vary database to database activity.
    Khurram

  • Need some advice about hot backup under linux

    hi, I want some advice about db files hot backup between two machines(Named A and B).A is primary machine which will write and read database and have the lastest db file. B is backup role and no database file in it.
    Now I want hot backup A's db file to B in order to B have the lastest db file too.
    At A,my db file support transaction and environment, and I set autoremove unnecessary log files.
    The code such as follows:
    dbenv->set_flags(dbenv, DB_AUTO_COMMIT |DB_LOG_AUTOREMOVE | DB_TXN_WRITE_NOSYNC, 1);
    ret = dbenv->open(dbenv, NULL,
    DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL | DB_INIT_TXN ,0)
    I don't want to use db_hotbackup utility. and db_hotbackup may be backup files to the same machine with different dir.
    How can I make machine A's db files backup to machine B.
    Thanks for your help.
    Best Regards
    hangsy

    Hi Hangsy
    Now I want hot backup A's db file to B in order to B
    have the lastest db file too.What do you mean? Do you want to have the latest version... from when you did the latest backup, or you want to keep it updated in the same time with the main database?
    I don't want to use db_hotbackup utility. and
    db_hotbackup may be backup files to the same machine
    with different dir.You can copy the backup anywere you want.
    If you want to run recovery on a different machine, it must be the same pointer size and endianness as the original machine.
    Database and log file archival: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/archival.html
    It is usually simpler to take the hot backup on the main machine and run recovery there before copying the databases to the remote system.
    In this setup, only the databases are required on the remote system, not the log files.
    Since you are using NOSYNC, you should run a checkpoint which will ensure you that the database files are up to date.
    Please read "Recovery procedures" ( http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/recovery.html ) first. "you cannot perform a hot backup of databases and log files, restore the backup and then run normal recovery -- you must always run catastrophic recovery when using hot backups."
    Regards,
    Bogdan Coman

  • How to take a Hot backup of Oracle database

    1: put the db in archive log mode
    2: set the db_sid to correct one
    3: login to sqlplus
    4: verify the name of the db that you are connected to
    select name from v$database;
    5: check if the db is in archive log made
    select log_mode from v$database;
    if not in archive log mode
    another command to check
    archive log list;
    6: find where on disk oracle writes archive log when it is in archive log mode
    sql> show parameter log_archive_dest_1;
    if the value is found to be 0, that means no values will be recorded, so we need to change it
    sql> alter system set log_archive_dest_1='LOCATION=c:\database\oradata\finance\archived_logs\'
    scope=spfile;
    7: shutdown immediate; < this is done just to prepare the db for hot backups >
    8: startup the db in mount mode
    startup mount;
    ( 3 startup types : nomount - just starts the instance, mount - locates the control files and open up according to the values, open - finds the datafiles from the control files and opens up the db )
    9: put the db in archive log mode
    alter database archivelog;
    10: open the database
    alter database open;
    11: check the status of the db
    select log_mode from v$database;
    SQL> archive log list;
    12: create a directory for archived log
    check if its empty, if empty we need to switch
    sql> alter system archive log current;
    run it 5 times < need to put / and enter > , then check the archive log dir , we will find files
    13: make a table in the database and insert data in it
    create table employees (fname varchar(2));
    check the table
    desc employees;
    insert values
    insert into employees values ('Mica');
    14: tablespace must be in hot backup mode
    check the status
    select * from v$backup;
    if found not active, then we need to change
    we cannot put the db in hot backup mode, unless it is archive log mode
    change to hot backup mode
    alter database begin backup;
    check the status
    select * from v$backup;
    15: now we can only COPY DBF FILES
    copy *dbf <distination location>
    16: need to take the db out to hot backup mode
    alter database end backup;
    17: need to make another archive log switch
    alter system archive log current;
    18: need to copy control files now, need to do a binary bckup
    alter database backup controlfile to '<location>\controlbackup';
    19: insert more values to the table
    insert into employess values ('NASH')
    COMMIT;
    make another archive log switch : alter system archive log current;
    do the same process for more values
    20 : backup all the archive logs to a new location
    21: shutdown the db and simulate a hw error, delete all the files from the database folder
    22: try to start the sqlplus and db ::: error
    23: copy all the backups to the db dir
    need to copy the control files, rename the binary backup of the control file and make the copies as needed
    24: try to mount the db, error < must use reset logs or noreset logs >
    25: need to do a recovering of the database
    shutdown
    restore the archive logs
    startup mount;
    recover database until cancel using backup controlfile;
    it will ask for a log file :
    yes for recovery
    cancel for cancelling recovery
    26: check status: open the database in readonly
    alter database open read only;
    check the tables to see the data
    shutdown immediate
    shartup mount;
    recover again : recover database until cancel using backup controlfile;
    if oracle is asking for a log that do nto exist , all we have to do is type cancel
    27: open the database
    alter database open;
    need to do reset logs
    alter database open resetlogs;
    28: check the db that you are connected, check the tables
    thanks and regards
    VKN
    site admin
    http://www.nitrofuture.com

    A very long list ... let me make it shorter.
    SQL> archive log list;If I see this:
    Database log mode              No Archive ModeI put the database into archivelog mode and leave it there forever.
    If it is in archivelog mode:
    RMAN> TARGET SYS/<password>@<service_name> NOCATALOG
    RMAN> BACKUP DATABASE PLUS ARCHIVELOG;Though there are a lot of things one could do better such as incrementals with block change tracking, creating an RMAN catalog, etc.

  • Is possible to recover hot.backup of a nonarchive database?

    I have read on several books that hot backups must be done on a database set with ARCHIVELOG mode, but it is physically possible to recover a hot-backup of a database that was in NOARCHIVELOG mode. Obviously some transactions would be lost, but it is possible to do it?
    I'm trying to do it unsuccesfully (when I try to startup the data base he asme for recovering the database and then always ask me for a archive log file.......)
    Thanks

    What you have red is correct.
    You can't do hot backup on non-archivelog database.

  • Hot backups for essbase planning databases

    Hi gurus
    Can please tell me best advice for making hot backups of our essbase planning databases for disaster recoveries?
    We try doubletake but files are locked unless essbase is put in read-only mode.
    Any good tools for this? Certified stuff? Heard maybe VBE?
    TIA
    M.

    Hi,
    First of all have you read the document of backing up essbase :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/hfm_backup.pdf
    If you are taking a backup while essbase is running then you will need to put the databases into read only mode, this can be done by using a maxl script and once again to take it out of read only mode.
    There are lots of 3rd party applications out there for backing up file structures, it all depends on what you want it to do and how much you want to pay.
    If it is a small installation you could even script it yourself depensing on your knowledge to back up files and copy them to a san or backup drive.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • HOT Backups for smaller databases

    Should we schedule hot backups for small databases? the database size is around 1.5 GB. We have already scheduled daily FULL DB Export.
    The database is Oracle 8i.

    RMAN> run {
    2> allocate channel ch1 type disk format 'e:\rman_backup\backup%d_DB_%u_%p';
    3> backup database;
    4> backup archivelog all;
    5> release channel ch1;
    6> }
    RMAN-03022: compiling command: allocate
    RMAN-03026: error recovery releasing channel resources
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: allocate
    RMAN-06172: not connected to recovery catalog database
    RMAN>

  • Problem to copy database from the hot backup

    Oracle9i Enterprise Edition Release 9.2.0.4.0
    SunOS 5.8
    Hi all,
    I wrote the UNIX script to copy the production Oracle 9i database from the hot backup to the Oracle 9i development database. I already did it manually without any problems using Metalink document Note:18070.1
    The script stops after the command
    recover database until cancel using backup controlfile ,
    because I have to apply all archived logs manually.
    How is it possible to get rid of this problem and automatically apply archived logs?
    Thank you in advance for your help.
    Alex
    P.S. We are not authorized to use RMAN.

    P.S. We are not authorized to use RMAN. We dont get your point?
    Who stops you using RMAN?
    How did you take the hot backup then?
    There are couple of good notes on metalink, and below is one of them,
    RMAN Duplicate Database in Oracle9i / Oracle 10G Doc ID:      Note:228257.1
    Jaffar

  • How to restore RMAN hot backup to another database on another server?

    I want to know how to restore RMAN hot backup from production server to another database on a testing server.
    The hot backup is from a database named PROD on the production server
    The database to be restored with the hot backup is TEST on the testing server. There is already a PROD database on the testing server and this PROD database must be kept.
    I have read some threads about changing initTEST.ora to PROD to restore such backup but (I think) will not work in my case since I already have a PROD database on the testing server.
    The version is 11gR2 on Linux but the compatible parameter is set to 10.2.0.1.0.
    Thanks for any help.

    Hi,
    Since you are on 11g, hope this helps you http://shivanandarao.wordpress.com/2012/04/28/duplicating-database-without-connecting-to-target-database-or-catalog-database-in-oracle-11g/
    881656     
    Handle:     881656
    Status Level:     Newbie
    Registered:     Aug 25, 2011
    Total Posts:     53
    Total Questions:      31 (31 unresolved)
    Looks like forum is of no help to you. To get better responses, consider closing your threads by providing appropriate points if you feel that they have been answered. Keep the forum clean !!

  • Creating RAC database thru RMAN hot backup

    Hi Guys,
    I am having ERP PROD database on 2 nodes 116 and 117(RAC) server. We have a scheduled RMAN HOT backup of this database
    WE also have ASM implemented.
    We have another 2 servers named 36 and 37(RAC and ASM) which has ERP Test Database and the thing is that we want to refresh this
    test database using ERP PROD RMAN backup.
    Can someone please post the proper steps to restore the RMAN backup to ERP Test database as ASM is alos there.
    As it is little urgent for us.
    help will be appreciated.
    Regards,
    Milan Rathod

    1. take the backup of production database
    rman connect target /
    backup as compressed backupset database plus archivelog format '/u01/db/backup/%d_%I_%s_%T';
    move the backup to test server (same location /u01/db/backup/ bcoz rman checks for backupset in the same location only)
    add the below two lines in the test database-- initTEST.ora file
    comment cluster_ parameters in initTEST.ora file
    eg:-
    DB_FILE_NAME_CONVERT = (+EBAOUATDATADG1/prod/,/u01/db/app/admin/test/)
    LOG_FILE_NAME_CONVERT = (+EBAOUATDATADG1/prod/,/u01/db/app/admin/test/)
    check the connectivity between prod and test database.
    from test
    $tnsping PROD
    from prod machine
    $tnsping TEST
    in test server
    startup nomount
    rman target sys@proddb auxiliary /
    duplicate target database to test;
    after completion of duplicate/clone step convert the single instance test to rac instance by uncomment the cluster_ parameters in initTEST.ora parameter
    startup mount the second node in TEST
    ALTER DATABASE ENABLE PUBLIC THREAD 2 ;
    alter database open;
    hope, this will helps you.
    Good Luck

  • Hot backup centralized of database distributed

    I will like to know if it is possible to make a hot backup of the data base distant
    help!

    you might want to elaborate what you plan to do. What's the OS ?
    Can you connect remotely to server to run the backup job, but the actual job will be run locally on server.

  • Unique Error while doing hot backup Cloning!

    Dear All,
    I am using EBS 11.5.10.2 with DB 9.2.0.6.
    I am doing hot backup cloning by referring *[Cloning Oracle Application 11i /R12 with Rapid Clone - Database (9i/10g/11g) Using Hot Backup on Open Database|https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=760772.1]*
    I am facing a unique issue, when I run adcfgclone.pl dbconfig <my_context_file>, application of my Production Server start misbehaving and it gives me an error:
    Node Id does not exist for the current application server id.When I check the FND_NODE table I found that there server id was empty in it.
    I have to run than run the following steps as the resolution:
    1. Shutdown all the services.
    2. EXEC FND_CONC_CLONE.SETUP_CLEAN;
    3. COMMIT;
    4. Run AutoConfig on all tiers, firstly on the DB tier and then the APPS tiers,to repopulate the required system tables.
    5.start all the services and verify the issue.
    Than application behaves normally.
    Is there any additional step to be followed while Hot Backup Cloning other than mentioned in the above mentioned ML Doc?
    Please suggest,
    Anchorage :)

    I am facing a unique issue, when I run adcfgclone.pl dbconfig <my_context_file>, application of my Production Server start misbehaving and it gives me an error:
    Node Id does not exist for the current application server id.Where did you get this error?
    This is very strange, how come this happens in Production, when you are doing cloning in TEST/DEV instance.
    Is there any additional step to be followed while Hot Backup Cloning other than mentioned in the above mentioned ML Doc?I feel there are no other additional steps, as I Recently did successfully hotbackup cloning using the same document.

  • How to find out which archived logs needed to recover a hot backup?

    I'm using Oracle 11gR2 (11.2.0.1.0).
    I have backed up a database when it is online using the following backup script through RMAN
    connect target /
    run {
    allocate channel d1 type disk;
    backup
    incremental level=0 cumulative
    filesperset 4
    format '/san/u01/app/backup/DB_%d_%T_%u_%c.rman'
    database
    }The backup set contains the backup of datafiles and control file. I have copied all the backup pieces to another server where I will restore/recover the database but I don't know which archived logs are needed in order to restore/recover the database to a consistent state.
    I have not deleted any archived log.
    How can I find out which archived logs are needed to recover the hot backup to a consistent state? Can this be done by querying V$BACKUP_DATAFILE and V$ARCHIVED_LOG? If yes, which columns should I query?
    Thanks for any help.

    A few ways :
    1a. Get the timestamps when the BACKUP ... DATABASE began and ended.
    1b. Review the alert.log of the database that was backed up.
    1c. From the alert.log identify the first Archivelog that was generated after the begin of the BACKUP ... DATABASE and the first Archivelog that was generated after the end of the BACKUP .. DATABASE.
    1d. These (from 1c) are the minimal Archivelogs that you need to RECOVER with. You can choose to apply additional Archivelogs that were generated at the source database to contininue to "roll-forward"
    2a. Do a RESTORE DATABASE alone.
    2b. Query V$DATAFILE on the restored database for the lowest CHECKPOINT_CHANGE# and CHECKPOINT_TIME. Also query for the highest CHECKPOINT_CHANGE# and CHECKPOINT_TIME.
    2c. Go back to the source database and query V$ARCHIVED_LOG (FIRST_CHANGE#) to identify the first Archivelog that has a higher SCN (FIRST_CHANGE#) than the lowest CHECKPOINT_CHANGE# from 2b above. Also query for the first Archivelog that has a higher SCN (FIRST_CHANGE#) than the highest CHECKPOINT_CHANGE# from 2b above.
    2d. These (from 2c) are the minimal Archivelogs that you need to RECOVER with.
    (why do you need to query V$ARCHIVED_LOG at the source ? If RESTORE a controlfile backup that was generated after the first Archivelog switch after the end of the BACKUP ... DATABASE, you would be able to query V$ARCHIVED_LOG at the restored database as well. That is why it is important to force an archivelog (log switch) after a BACKUP ... DATABASE and then backup the controlfile after this -- i.e. last. That way, the controlfile that you have restored to the new server has all the information needed).
    3. RESTORE DATABASE PREVIEW in RMAN if you have the archivelogs and subsequent controlfile in the backup itself !
    Hemant K Chitale

Maybe you are looking for