Consistent Backup Of Online Database

Hi
How can I take consistent backup of online database.
If I open database in read only mode and take RMAN backup + Full Cold Backup from operating system commands.
Did the above backups will be consistent?
If yes please advise how to alter the status of system to read only.
Wishes
Jawad

Cold backups are known to be a consistent backups , while Hot Backups are not considerd as conssistent backups, you required archivelogs to make them consistent . I am bit strange that you are using two backup methods . I would suggest you to use Hot Backups , if you have production database , otherwise cold backups will do the trick for you .
Hare Krishna
Alok

Similar Messages

  • Consistent backup of online system (NOARCIVE mode)

    Hi
    Is there anyway I can make consistent backup of online system running in NOARCIVE mode?
    Wishes
    Jawad

    There's only one kind of backup possible, if a database is running in noarchivelog mode, it's a cold backup, i.e. the database is down. In the past some people said an export with option 'consistent=y' is a consistent backup, but that's no longer the state of the art.

  • Consistent backup RMAN

    hi ,
    10gR2 on win 2003
    i want to take the consistent backup of the database using RMAN using controlfile i fired these queries
    datbase is open & database is in noarchivelog mode
    my question why i everytime fail to mount the database from RMAN? i tried it with archive log option also but the result is same.
    or AM i missing a step if yes suggest me steps required.
    C:/rman target /@orcl
    rman> shutdown immediate;
    using target database control file instead of recovery catalog
    database closed
    database dismounted
    Oracle instance shut down
    RMAN> startup force dba;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 07/20/2009 11:44:57
    ORA-12514: TNS:listener does not currently know of service requested in connect
    rman> startup mount
    RMAN> startup mount
    RMAN-00571: ====================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ========
    RMAN-00571: ====================================================
    RMAN-03002: failure of startup command at 07/20/2009 11:47:47
    RMAN-06171: not connected to target database
    Thanks

    Hi,
    Please follow the procedure...
    1. First please check if your listener is listnening for your database service by entering the Listener prompt
    Lsnrctl
    Then execute the command "Services"
    C:\Documents and Settings\admin>lsnrctl
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 20-JUL-2009 13:07:13
    Copyright (c) 1991, 2005, Oracle.  All rights reserved.
    Welcome to LSNRCTL, type "help" for information.
    LSNRCTL> services
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=abc)(PORT=1522)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
      Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    Service "orcl" has 1 instance(s).
      Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    The command completed successfully2. If it is listening to your database service....go the machine from where you want to connect to the database and check your tnsnames.ora file for the entry for your database listener. In your case i suppose its already there as you have already pasted your file and it contains entry for the ORCL.
    3. Go to the command prompt and try TNSPING ORCL...See if its working.
    4. Go to to the RMAN prompt...
    C:\Documents and Settings\admin>rman
    Recovery Manager: Release 10.2.0.1.0 - Production on Mon Jul 20 13:10:19 2009
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    RMAN> connect target sys/oracle@abc
    connected to target database: ABC (DBID=3898979772)
    RMAN>Please let us know if you still face any issues connecting to the Database through RMAN
    Regards

  • I formatted my harddrive, did not backup my mozilla (on accident), but I was wondering if there might be an online backup with your database?

    I was hoping there might be some information that's sent to an online database, because I had literally forgot to backup that specific file, and now I'm hoping to find out if there is anyway to recovery what I lost in the formatting of my harddrive.

    This is rather hard to follow, and figuring out just what went wrong and when won't really help much, as all you want to do now is be sure you've got everything.
    If I understand it correctly, you now have all the right data, much copied via the Finder. If so, check for permissions problems that can occur if you do this, especially in a multi-user environment. If there are many problems, you might do better by using the normal TM interface to select and restore the files & folders.
    If all you're now missing are separate Applications folders for each user, use the TM interface to restore them, also.
    Note that you probably won't see the backups you want via +Enter Time Machine.+ TM keeps the backups for each Mac separate, and normally only shows the ones for the Mac it's running on, even if there are other Macs' backups on its disk/partition.
    To see these "other" backups, you need the (badly named) +Browse Other Time Machine Disks+ option. It's available by holding down the Option key while selecting the TM icon in your Menubar, or by control-clicking (right-clicking) the TM icon in your Dock.
    You'll see a selection screen showing all the disks/partitions that have TM backups on them. Select the one you want, and you'll be taken to the normal TM "Star Wars" interface, where you should see all the backups on that disk/partition. You can restore from such backups to an alternate location, by selecting the desired items, clicking the "gear" icon in the TM Finder window's toolbar, and selecting the +Restore <item> to ...+ option.
    Also note that when you start doing TM backups from the new Mac, the old ones will be "stranded" -- TM won't delete the oldest ones when it needs room for backups of your new Mac. It will delete the oldest backups from the NEW Mac instead. So your best bet may be, once you're sure you've got everything, to erase your TM disk with Disk Utility and let TM start fresh with the new Mac.

  • Online Database Backup Error

    Hi,
    While trying to take the Online database backup , i get the following error
    BR0278E Command output of 'LANG=C cd /oracle/CPD/sapdata1/sr3_1 && echo sr3.data1 | LANG=C cpio -ovB > /dev/rmt0.1':
    <sr3.data1> ?
    BR0280I BRBACKUP time stamp: 2007-09-14 15.42.29
    BR0279E Return code from 'LANG=C cd /oracle/CPD/sapdata1/sr3_1 && echo sr3.data1 | LANG=C cpio -ovB > /dev/rmt0.1': 255
    BR0222E Copying /oracle/CPD/sapdata1/sr3_1/sr3.data1 to/from /dev/rmt0.1 failed due to previous errors
    Is there anything related with the expiration period as i had made changes withthat too.
    Kindly suggest what needs to be done?
    Regards,
    Radeesh V

    Hi Radeesh,
    Pls check the following
    1)The file to be backed up cannot be read. this can be due to hardware problems on the disk on which the file is stored.
    2)The file to be backed up cannot be written to the volume. this can be due to hardware problems with the volume or the backup device.
    3)The backup device is not responding, for example if no volume (tape) was inserted in the backup device.
    4) The input or output file cannot be opened. The operating system user is experiencing authorization problems.
    5) The physical end of the tape was reached. However, since a parallel backup is performed or the option -c force was used, cpio cannot request a cpio continuation volume. The tape size (parameter tape_size) must be reduced.
    Hope this is useful
    Regards
    Umesh

  • Online backup of RAC database

    HI,
    Is it possible to take hot backup of RAC database ?
    If so, may i know wht is the process.
    and what are the files inluded in this backup?
    Thnx

    Plz check this doc
    http://download.oracle.com/docs/cd/B19306_01/rac.102/b14197/rmanops.htm
    regards,
    Shaan

  • RMAN and consistent backup

    Hi,
    in10g, I stop my DB and make a cold backup of my database (it's then a consistent backup).
    Can RMAN use this backup ? How ?
    Thank you.

    Yes, you can use a Cold Backup that was not taken by RMAN -- provided that you have the controlfile included in the backup. In RMAN you'd have to CATALOG each of the files in the backup as DATAFILE COPYies before RMAN can be "aware" of them.
    If the backup was taken with an OS command, you simple use the revers e to restore it. If your backup did not include the Online Redo Logs, you'd need to use
    STARTUP MOUNT
    ALTER DATABASE RECOVER
    CANCEL
    ALTER DATABASE OPEN RESETLOGSin SQLPlus.
    If you want to Apply ArchiveLogs generated after the backup, then don't  open resetlogs !
    continue with
    RECOVER DATABASE USING BACKUP CONTROLFILE UNTIL CANCELand CANCEL when you have applied the last available archivelog, after which you will
    ALTER DATABASE OPEN RESETLOGSHemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Aug 30, 2009 11:31 PM

  • Howto take a CONSISTENT backup of AS-Java WITHOUT shutting down?

    According to the official documentation one needs to shutdown the Java instance (EP, KM, BI-Java) and backup filesystem and database at the same time to ensure consistency, so far I understood.
    Since there is no easy way of finding out, who's logged in at a specific moment, we have no chance to inform logged in/working users about an imminent downtime/shutdown.
    Things become even worse, if backups are taken at night when different timezones are using the system productively.
    What is a recommended "best practice" for those kind of setups? Is there anywhere an information on which of the running applications writes data into the filesystem so we could probably keep it in sync with the database "manually" in case we need to recover a backup, that was taken online?
    Any input greatly appreciated.
    Markus

    Hi Markus,
    my strategy is to take an online (cons) backup every night and an offline backup every sunday at 00:00.
    There is a way to take an online cons backup, and now is supported in 2004s (maybe too in NW04 but NOT in was 6.20).
    Here are my scripts for online/offline backup.
    Online :
    xcopy E:\usr\sap E:\BO\j2e /Q /E /C /H /R /O /Y
    xcopy E:\FSDB E:\BO\fsdb\ /Q /E /C /H /R /O /Y
    brbackup -p initp1pOnline.sap -d disk -t online_cons -m all -c -u system/password -k no -e 0 -l E -a -p initp1pOnline.sap -save_delete -d disk -n 10000 -c -u system/password -k no -l E
    Offline :
    stopsap name=p1p nr=00 sapdiahost=sapep1p
    stopsap name=p1p nr=01 sapdiahost=sapep1p
    net stop SAPP1P_00
    net stop SAPP1P_01
    xcopy E:\usr\sap E:\bof\j2e /Q /E /C /H /R /O /Y
    xcopy E:\FSDB E:\bof\fsdb /Q /E /C /H /R /O /Y
    brbackup -c -u system/password
    net start SAPP1P_01
    net start SAPP1P_00
    startsap name=p1p nr=01 sapdiahost=sapep1p
    startsap name=p1p nr=00 sapdiahost=sapep1p
    I tested both backups and was able to restore from scratch without problem.
    Brad

  • Consistent Backup

    Dear Friends,
    I am learning backup&recovery. Sometimes I feel confused during reading the guide. Here are 2 question:
    1. When I take a tablespace offline normally, oracle takes a checkpoint to the tablespace's datafiles. So, All the committed data should be written to these files from online redo log, right? And these files may contain some uncommitted data, right?
    2. If I shutdown the database with immediate option. Does the data files in this database contain uncommitted data? If yes, when I want to do a whole consistent backup, that's why I also need to backup the undo tablespace? is my understanding right?
    Thanks,
    Ricky

    from the documentation regarding question A
    When a tablespace goes offline, Oracle does not permit any subsequent SQL statements to reference objects contained in that tablespace. Active transactions with completed statements that refer to data in that tablespace are not affected at the transaction level. Oracle saves rollback data corresponding to those completed statements in a deferred rollback segment in the SYSTEM tablespace. When the tablespace is brought back online, Oracle applies the rollback data to the tablespace, if needed.

  • How can i use offline & online database in the same time?

    how can i use offline & online database in the same time?
    my database in another server when the connection true it connect
    but if not does not work
    i wanna make offline database if the server not connected it connect offline then the server is on it alter all data from the offline to the server.

    User, please tell us your Jdev version!
    There is no such functionality build into the framework. The offline data base is only for designing the db, not to have a backup db.
    If you can't connect to the db the application will not work.
    Timo

  • Rman backup with  standby database

    Hi All,
    I am looking for some suggestions for rman backup with standby  database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at  sql 'alter system archive log current' in rman  with standby as target. which gives following errors  with or without noswitch clause
    RMAN> sql 'alter system archive log current noswitch';
    sql statement: alter system archive log current noswitch
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
    RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
    ORA-01109: database not open
    Recovery Manager: Release 11.2.0.1.0
    Oracle databaes  Release 11.2.0.1.0 64 bit
    OS:RHEL 6 x86-64 bit
    Secondly, do I need to cancel manged recovery while taking rman backups on standby.
    I scanned thru MOS but could find solutions for rman with active DG.
    Thanks in advance

    726d07e6-b870-431f-8c22-a499c3ec4e0c wrote:
    Hi All,
    I am looking for some suggestions for rman backup with standby  database with datagaurd but no active DG. I wanted to do a rman tablespace backup. but I am stuck at  sql 'alter system archive log current' in rman  with standby as target. which gives following errors  with or without noswitch clause
    RMAN> sql 'alter system archive log current noswitch';
    sql statement: alter system archive log current noswitch
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 10/05/2013 18:15:12
    RMAN-11003: failure during parse/execution of SQL statement: alter system archive log current noswitch
    ORA-01109: database not open
    Recovery Manager: Release 11.2.0.1.0
    Oracle databaes  Release 11.2.0.1.0 64 bit
    OS:RHEL 6 x86-64 bit
    Secondly, do I need to cancel manged recovery while taking rman backups on standby.
    I scanned thru MOS but could find solutions for rman with active DG.
    Thanks in advance
    "I scanned thru MOS but could find solutions for rman with active DG."
    Howto make a consistent RMAN backup in an Standby database in Active DataGuard mode (Doc ID 1419923.1)

  • Cold backup with online redo logs

    I am working on 10G in AIX for a single instance
    It is just a general db backup & restore question, but I have something confused.
    I am going to perform a cold backup with my ARCHIVELOG database.
    No wonder why I perform a cold backup because it is a testing database which can suffer from data lost and down time during backup.
    I read some guides. They all mentioned to backup all the datafiles and control files.
    During the restoration, I have to copy all the backed up datafiles and control files to the default location.
    Then Startup mount;
    The last step before open the database is recover database until cancel;
    For the acknowledgement, I have to do the command of recover database, because the online redo logs were not backed up, thus we have to recover it in order to reset the redo logs.
    For my question,Would I be able to skip the command of recover database, then directly startup the database if I have backed up the online redo logs and copy the default location during the restoration?
    However, I read many documents which mention that it is not suggested to backup the online redo logs. Is it just the case which ONLY applied in hot backup? Do you all think that for my case, cold backup for online redo logs is recommended?
    Thanks all

    jgarry wrote:
    Edit: And never forget, those test databases are some developers production.Absolutely true according to my experience. Loosing the work of a payed developer is just as bad as loosing the work of a production system and may even be worse because it may not be possible to re-enter missing data into the system.
    I think a cold backup is only suitable on special occasions, for instance, to relocate/copy the database to a different storage media, or if the database doesn't change or if loosing changes is absolutely irrelevant. Otherwise, put the database into archivelog mode and do a hot backup. After that you will also have alternative options which can make the restore and recovery of the database very easy and efficient, like flashback database, etc. but it will take substantial additional disk space.

  • What commands used for taking backup of oracle database using BR*Tools

    Can somebody please help me urgently to know what are the commands used for taking backup of oracle database using BR TOOLS.Also specifythe commands in detail which can be used for taking backups of oracle database ,Online Redo log files in databse using BRBACK tool,Archiving of offline, redo log files using BRARCHIVE, and Restoring a Database using BRRESTORE tool Commands(Plese specify the commands with their Syntax used).Also specify the commands with their Syntax which are used for taking backup of oracle database(online,Offline redo log files) into Tapedrives using BRTOOLS commands.
    Thanking You for helping (in advance).

    Dear Ashish,
    BRBACKUP / BRARCHIVE calls the operating system command to copy the files.
    Simple approach to get the commands is as follows.
    1. Set the BR_TRACE (as given in the SAP note 29321) and run the command for which you need to know the OS / SQL commands.
    2. This will generate the log file with the trace information. This trace has the information of the commands used by the job you have run.
    Hope this helps.
    Regards,
    Madhukar

  • AUXILIARY database update using full backup from target database

    Hi,
    I am now facing the problem with how to implement AUXILIARY database update to be consistent with the target database during a certain period (a week). I did a fully backup on our target database everyday using rman. I know it is possible to use expdp to realize it but i want to use the current fully backup to do it. Does anybody has idea or experience with that? Thanks in advance!
    Regards,
    lik

    That's OK. If you don't use RMAN to clone your database. You can create a database just using the cold backup of the primary database simply.
    Important things are
    1) you must catalog all datafiles as image copy level 0 in the cloned database
    RMAN> connect catalog rman/rman@rcvcat (in host 1)
    RMAN> connect target sys/manager@clonedb (in host 2)
    RMAN> catalog datafilecopy
    '/oracle/oradata/CLONE/datafile/abc.dbf',
    '/oracle/oradata/CLONE/datafile/def.dbf',
    '/oracle/oradata/CLONE/datafile/ghi.dbf'
    level 0 tag 'CLONE';
    2) You need to make incrementals of the primary database to refresh the clone database.Make sure that you need to specify a tag for the incremental and the name of tag is the exactly same as the one used step (1).
    RMAN> connect catalog rman/rman@rcvcat (in host 1)
    RMAN> connect target sys/manager@prod (in host 3)
    RMAN> backup incremental level 1 tag 'CLONE' for recover of copy with tag 'CLONE' database format '/backup/%u';
    3) Copy the newly created incrementals (in host 3) to the clone database site (host 2). Make sure the directory must be exactly same.
    $ rcp /backup/<incr_backup> /backup/
    -- rcp <the loc of a incremental in host 3> <the loc of a incremental in host 2>
    4) Apply incrementals to update the clone database. Make sure you provide the tag you specified.
    RMAN> connect catalog rman/rman@rcvcat
    RMAN> connect target sys/manager@clone
    RMAN> recover copy of database with tag 'CLONE';
    5) After update the clone database, then delete the incremental backups and uncatalog the image copies
    RMAN> delete backup tag 'CLONE';
    RMAN> change copy like '/oracle/oradata/CLONE/datafile/%' uncatalog;
    *** As you can see, you can clone a database using any methods. The key is you have to catalog the clone database when you refresh it. After finishing it, then uncatalog..

  • Restore RMAN consistent backup

    Hi Team,
    Please let me know how to restore only my consistent backup in RMAN?
    Example: Sunday consistent incremental level 0 backup by keeping the database in mount state and Monday-Saturday incremental level 1 backup.
    If my database crash on Tuesday, I want to restore only the sunday consistent backup and open the database and I don't want to run the recover database command. (restore database -> alter database open). Please let me know how to do this in RMAN.
    Thanks,

    Thanks Hemant for the Solution.
    Action Taken:_
    RMAN> startup nomount
    RMAN> RUN
    ALLOCATE CHANNEL c1 DEVICE TYPE sbt
    restore controlfile;
    ALTER DATABASE MOUNT;
    restore database;
    recover database noredo;
    alter database open RESETLOGS;
    Reference:
    How to Restore a Cold Backup and Open Resetlogs via RMAN Without Applying Redo [ID 257326.1]
    Thanks,
    Mukarram

Maybe you are looking for

  • PDF Exaprom, problem with multitext in one header

    Problem is,that according to my simply thiking when I connect two elements Append Text HF one by one serialy with some text in header, and in their properties I set alligment both of them at left- MIDDLE in my opinion it suppose to overwrite one text

  • Display HTML code in WebDynpro for ABAP

    Hi, I would like to display a html page in a WebDynpro View, ie: I have the html code in a "string" variable and would now display this string now not with the html tags visible, but as a "real" html page. I found a thread in WebDynpro for ABAP but I

  • XPERIA SUPPORT - why do you leave me alone?

    Four months ago, I dared to switch from BlackBerry to Sony. The Xperia Z3 Compact was the first Android phone that really attracted my attention - so I bought it.Until two weeks ago, I was pretty content with it, I didn't regret my decision. Until I

  • Passing many form fields to servlet

    Hi all, In my web application I need to populate a class with form values. From inside a JSP, it's quite easy: <jsp:useBean id="beanId" class="myClass" /> <jsp:setProperty name="beanId" property="*"/>And the values are set automatically. Can use some

  • OK I had to pay in order to download Itunes!

    Now I know you are going to give me all kinds of advice. But check this out. Early New Years Morning. (Friday) I had a computer that I had done a format and restore on. And hadn't downloaded Itunes yet. So I went to several different sites/web pages,