ALTER TABLESPACE BEGIN BACKUP MODE

Hi all
When we issue alter tablespace begin backup command then freezes the data file headers and all modified blocks will be written to streams and when we issue end backup command then the database will write the blocks changed to data files by accessing files redo.
my doubt is suppose archiver process archive redo files and all redo files are overwritten. now how the database will write the changed blocks to restore and database dealing with this task.

TIA

"Hot backup" is obsolete with 10g or more recent technology as Rman covers this much better.
Please switch to RMAN at your early convenience.

Also, as the database must be in archivelog backup online, it is not a problem, that the online redo log files are overwritten, like recovery will use two online redolog files and archived.
Your question doesn't make sense to me.
Redo are written in files LGWR, ARCH Archive files. Changes are written to the database by DBWR. All who are independent processes, and the changes are written to redo front to be written to the database.

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

Tags: Database

Similar Questions

  • Update and select ask when tablespace in backup mode

    Hello

    I have a question related to the DML statement when the tablespace is in backup mode. Suppose that when putting the tablespace in begin backup mode and then during user times run an update on this tablespace statement and validation of the transaction and any other user run the select query on the same data and image that will appear and where to display the data will be taken.

    steps to follow:

    alter tablespace users begin backup;

    Update emp set sal = 4000 where empno = 101;
    commit;
    Select * from emp where empno = 101;

    Now what result will appear and where data will get.

    Thank you
    Gulshan

    Hello

    alter tablespace users begin backup;
    
    update emp set sal=4000 where empno=101;
    commit;
    select * from emp where empno=101;
    

    As far as I KNOW, the database could function normally and you will not find the difference from the point of view of the transactions. If you check process and the Oracle architecture, bit blurry will be established towards the top and vectors to additional would be saved upward in the newspapers online redo - due to which size of redo would be higher than in normal operations. Second, you must be concerned about the backup - which may not be compatible. In order to better opt for RMAN instead of the user managed backups.

    -Pavan Kumar N

  • RMAN and Begin backup mode

    Hi guys I have a couple of questiopns...

    I want to know if data is written to the DBWR data files when the data file is starting in backup mode.

    What is the difference in the creation of archive log during normal operation of a database and a database for the RMAN backup operating?

    user13087302 wrote:

    Normally, Oracle should write that change in redolog files. But if the tablespace is in backup mode, then entire block will be set redolog as soon as this change is 1 took place on this block after activating the backup mode. Therefore, we log redo generation face massive if the tablespace in backup mode. So, logically you should be able to recover to the last CNS you have in hands.

    What do you mean by the last SNA. Does the SNA before putting the tablespace in backup mode? Does present data in other files will be also lost, even if they are written in the data files...

    PLS, look at:

    SQL> create tablespace myts1 datafile 'C:\app\oracle\oradata\testdb\myts1.dbf' size 10m;
    
    Tablespace created.
    
    SQL> create tablespace myts2 datafile 'C:\app\oracle\oradata\testdb\myts2.dbf' size 10m;
    
    Tablespace created.
    
    SQL> create table myt1 tablespace myts1 as select * from dba_objects where rownum<10001;
    
    Table created.
    
    SQL> create table myt2 tablespace myts2 as select * from dba_objects where rownum<10001;
    
    Table created.
    
    SQL> alter tablespace myts1 begin backup;
    
    Tablespace altered.
    
    SQL> create table myt1_1 tablespace myts1 as select * from dba_objects where rownum<10001; 
    
    Table created.
    
    SQL> create table myt2_1 tablespace myts2 as select * from dba_objects where rownum<10001;
    
    Table created.
    
    SQL> create table myt1_3 tablespace myts1 as select * from dba_objects where rownum<10001;
    
    Table created.
    

    Backup database:

    C:\Documents and Settings\Administrator>rman target /
    
    Recovery Manager: Release 11.2.0.1.0 - Production on Wed Nov 3 15:46:55 2010
    
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    
    connected to target database: TESTDB (DBID=2517263760)
    
    RMAN> backup database;
    
    Starting backup at 03-NOV-10
    
    using target database control file instead of recovery catalog
    
    allocated channel: ORA_DISK_1
    
    channel ORA_DISK_1: SID=44 device type=DISK
    
    channel ORA_DISK_1: starting full datafile backup set
    
    channel ORA_DISK_1: specifying datafile(s) in backup set
    
    input datafile file number=00001 name=C:\APP\ORACLE\ORADATA\TESTDB\SYSTEM01.DBF
    input datafile file number=00002 name=C:\APP\ORACLE\ORADATA\TESTDB\SYSAUX01.DBF
    input datafile file number=00003 name=C:\APP\ORACLE\ORADATA\TESTDB\UNDOTBS01.DBF
    input datafile file number=00005 name=C:\APP\ORACLE\ORADATA\TESTDB\EXAMPLE01.DBF
    input datafile file number=00006 name=C:\APP\ORACLE\ORADATA\TESTDB\MYTS1.DBF
    input datafile file number=00007 name=C:\APP\ORACLE\ORADATA\TESTDB\MYTS2.DBF
    input datafile file number=00004 name=C:\APP\ORACLE\ORADATA\TESTDB\USERS01.DBF
    
    channel ORA_DISK_1: starting piece 1 at 03-NOV-10
    channel ORA_DISK_1: finished piece 1 at 03-NOV-10
    
    piece handle=C:\APP\ORACLE\FLASH_RECOVERY_AREA\PRIM_DB\BACKUPSET\2010_11_03\O1_MF_NNNDF_TAG20101103T154701_6F2LXQ5C_.BKP tag=TAG20101103T154701 comment=NONE
    
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:35
    channel ORA_DISK_1: starting full datafile backup set
    channel ORA_DISK_1: specifying datafile(s) in backup set
    including current control file in backup set
    including current SPFILE in backup set
    channel ORA_DISK_1: starting piece 1 at 03-NOV-10
    channel ORA_DISK_1: finished piece 1 at 03-NOV-10
    piece handle=C:\APP\ORACLE\FLASH_RECOVERY_AREA\PRIM_DB\BACKUPSET\2010_11_03\O1_MF_NCSNF_TAG20101103T154701_6F2M0PJ3_.BKP tag=TAG20101103T154701 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
    Finished backup at 03-NOV-10
    
    Recovery Manager complete.
    
    SQL> select current_scn from v$database;
    
    CURRENT_SCN
    
    -----------
    
        1466019
    
    SQL> drop table myt1_3 purge;
    
    Table dropped.
    

    Thus, we abandoned table MYT1_3 and now trying to incomplete recovery.

    SQL> shutdown abort;
    
    ORACLE instance shut down.
    
    SQL> startup mount;
    
    ORACLE instance started.
    
    Total System Global Area  431038464 bytes
    
    Fixed Size                  1375088 bytes
    
    Variable Size             322962576 bytes
    
    Database Buffers          100663296 bytes
    
    Redo Buffers                6037504 bytes
    
    Database mounted.
    
    C:\Documents and Settings\Administrator>rman target /
    
    Recovery Manager: Release 11.2.0.1.0 - Production on Wed Nov 3 15:51:51 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: TESTDB (DBID=2517263760, not open)
    
    RMAN> run
    
    2> {
    
    3> set until scn 1466019;
    
    4> restore database;
    
    5> recover database;
    
    6> sql 'alter database open resetlogs';
    
    7> }
    
    executing command: SET until clause
    
    Starting restore at 03-NOV-10
    
    using target database control file instead of recovery catalog
    
    allocated channel: ORA_DISK_1
    
    channel ORA_DISK_1: SID=20 device type=DISK
    
    channel ORA_DISK_1: starting datafile backup set restore
    
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    
    channel ORA_DISK_1: restoring datafile 00001 to C:\APP\ORACLE\ORADATA\TESTDB\SYS
    
    TEM01.DBF
    
    channel ORA_DISK_1: restoring datafile 00002 to C:\APP\ORACLE\ORADATA\TESTDB\SYSAUX01.DBF
    
    channel ORA_DISK_1: restoring datafile 00003 to C:\APP\ORACLE\ORADATA\TESTDB\UNDOTBS01.DBF
    
    channel ORA_DISK_1: restoring datafile 00004 to C:\APP\ORACLE\ORADATA\TESTDB\USERS01.DBF
    
    channel ORA_DISK_1: restoring datafile 00005 to C:\APP\ORACLE\ORADATA\TESTDB\EXAMPLE01.DBF
    
    channel ORA_DISK_1: restoring datafile 00006 to C:\APP\ORACLE\ORADATA\TESTDB\MYTS1.DBF
    
    channel ORA_DISK_1: restoring datafile 00007 to C:\APP\ORACLE\ORADATA\TESTDB\MYTS2.DBF
    
    channel ORA_DISK_1: reading from backup piece C:\APP\ORACLE\FLASH_RECOVERY_AREA\
    
    PRIM_DB\BACKUPSET\2010_11_03\O1_MF_NNNDF_TAG20101103T154701_6F2LXQ5C_.BKP
    
    channel ORA_DISK_1: piece handle=C:\APP\ORACLE\FLASH_RECOVERY_AREA\PRIM_DB\BACKUPSET\2010_11_03\O1_MF_NNNDF_TAG20101103T154701_6F2LXQ5C_.BKP tag=TAG20101103T154701
    
    channel ORA_DISK_1: restored backup piece 1
    
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:45
    
    Finished restore at 03-NOV-10 
    
    Starting recover at 03-NOV-10
    
    using channel ORA_DISK_1 
    
    starting media recovery
    
    media recovery complete, elapsed time: 00:00:03 
    
    Finished recover at 03-NOV-10 
    
    sql statement: alter database open resetlogs
    
    RMAN>
    

    Now, the tables:

    SQL> select count(*) from myt1;
    
      COUNT(*)
    
    ----------
    
         10000
    
    SQL> select count(*) from myt2;
    
       COUNT(*)
    
    ----------
    
         10000
    
    SQL> select count(*) from myt1_3;
    
      COUNT(*)
    
    ----------
    
         10000
    
    SQL> select count(*) from myt2_1;
    
      COUNT(*)
    
    ----------
    
         10000
    

    Thus, it does not matter what is the status of any tablespace: backup or no mode. Incomplete recovery using archivelogs + redologs.

  • What do I need to use the database shall begin backup mode to perform the backup?

    Hi all

    I have a primary database to 10g (10.2.0.4) with intelligence on a solaris platform. I need to create a different primary eve for the same database.

    I stopped the recovery based on standby and began copy (copy of the os) the existing files pending at the 2nd backup server. But I didn't keep the (mounted) existing standby database into begin backup mode. Is this right?

    Thank you

    Arun

    For a mounted database backup mode?

    orclz >

    orclz > startup mount

    ORACLE instance started.

    Total System Global Area 788529152 bytes

    Bytes of size 3050600 fixed

    373293976 variable size bytes

    406847488 of database buffers bytes

    Redo buffers 5337088 bytes

    Mounted database.

    orclz >

    orclz > alter database begin backup;

    ALTER database begin backup

    *

    ERROR on line 1:

    ORA-01109: database is not open

    orclz >

  • Alter tablespace end backup

    Hey guys,.

    Just a small request:

    I have a 9i database hot backup is taken every day, now, when one of the tbspc is in backup mode, my server crashes (Windows)... and when the server is set up once again, my db is at the mount point (like the tbspz is always in backup mode)... now, when I request backup$ v It shows me that the file belonging to this tablespoons is in ACTIVE mode, so ideally what I do is Id o "alter backup end for the tbspz name", that takes my spoons soup out of backup mode and change the status of my file of data not ACTIVE... This is somethng I know and I saw... but I also learned to know when db is in Mount State of the file is ENABLED and I 'recover file data;'... .it retrieves my file and becomes the status of my data file no is NOT ACTIVE... no idea why and how this happens?

    Kind regards
    Aurélie

    Aurélie,

    Oracle claims recovery when it detects that the RCS in the header of the data file is lower than other database files. When you put a tablespace offline backup the header of the data files GET correspondents causing freezed in blocks broken inside the data file. When you exit the oracle of the backup mode thaws the header and retrieves the data files by applying redo data.

    Now if your system crashes, then the next time you start the oracle will ask for recovery of data files associated with the storage space, because header has been previously locked and SNA was not updated in the header. In the oracle recovery process thaws headers and apply redo data (unless the header is unfreezed THAT SCN cannot be updated, so the recovery process must thaw it).

    You can simulate this by putting one of the storage space to backup abort mode and stop (on the test ;)) environment

    Kind regards
    S.K.

    A request: Please do not use unnecessary shortcuts in the forum, which are usually used in the chat. as... shud qstns answr, dnt (some people consider abuse of language)

  • ALTER database begin backup question

    Where can I check in the data dictionary to check whether a database is in backup mode? I thought this would be the database of v$, but when I check the docs, I see not listed.

    http://docs.Oracle.com/CD/B13789_01/server.101/b10755/dynviews_1054.htm

    Guess2 wrote:
    Where can I check in the data dictionary to check whether a database is in backup mode? I thought this would be the database of v$, but when I check the docs, I see not listed.

    http://docs.Oracle.com/CD/B13789_01/server.101/b10755/dynviews_1054.htm

    Why are you still using the managed user backups?

  • database in backup mode

    Hi guys,.

    If I put my database in backup mode and perform the backup (hotbackup / online) of the database.

    When I need to do the restore, can I archive logs at all? (not necessary to recover to point in time) Can I restore data files and do an alter database open resetlogs?

    The database will be inconsistent and cannot start without applying archive logs at all? as the data is not stopping when you perform the backup.

    Thank you

    You have to do it all again (i.e. the ArchiveLogs):
    FROM: The time where the ALTER DATABASE BEGIN BACKUP (or the first ALTER TABLESPACE BEGIN BACKUP)
    To: The first ArchiveLog after BACKUP END EDIT (or the last BACKUP END of ALTER TABLESPACE)
    Therefore, you should always make ALTER SYSTEM ARCHIVE LOG CURRENT at the end of the backup mode and capture this archivelog in your backup.

    The database will be inconsistent (and DOES not) until and unless you apply the redo (archived).

    Hemant K Collette

  • What happens when the database in backup Mode?

    Hello

    What happens when we kept the database in backup mode, by using the command "Alter database Begin Backup" means;


    Thank you...
    ASIT

    OK, now my query is whether Oracle freeze the data file header and information is stored in the log file of restoration by progression. So if my backup job continues for 30 min and at the same time someone did some update of database, then how these updates to the information written back to the data file after "Alter Database End Backup'.»

    Oracle only blocks data file headers, no body. Modified blocks will be stored in data files (at control points) even in backup mode.
    If checkpoint has not arrived yet after this update and validation, and DB has decreased, then when it will start it will redo-log automated recovery.

    Published by: user11181920 on Sep 21, 2012 11:54

  • Information about the backup Mode

    Hello
    After you run the command: alter database begin backup or change the backup of the end, what data dictionary view shows the current status of backup?
    Thank you

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/dynviews_1026.htm#i1399625

  • How to Setup Data Guard with alter tablespace... begin backup approach

    Hello!

    I am writing this compilation of documents in a guard daata establishing in 10g. I was in charge to present different approaches in implementing on Rhel 5.

    I came across 3 procedures (which is to duplicate a database with RMAN, then configure it to a Data Guard feature). I read a process using (let's this is what the article said, but procedure was presented):

    alter tablespace... .begin backup;
    alter tablespace... .end backup;

    then copy the generated files and configure it to the data protection feature.

    Someone help it with that? Is there like a blogsite or steps I can take for this scenario?

    Hello;

    The best I found was: (and its same 10 Oracle! and not RMAN.)

    http://sites.Google.com/site/catchdba/physical-standby-database-using-HOTBackup

    There, an old link here on this topic:

    DataGuard configuration using hot backup files

    Hard to find much on this topic as "Hot Backup" almost always comes to RMAN.

    This collection of notes can also help:

    DataGuard knowledge browser Product Page [ID 267955.1]

    And the "Formidable" Powerpoint:

    www.dbspecialists.com/files/presentations/standbydb.ppt

    Seems that this method is dead somewhere between Oracle 8 and Oracle 9

    Best regards

    mseberg

    Published by: mseberg on March 16, 2012 20:31

  • How to change the 'Drive' for the BSO cubes (just like we do using "alter tablespace" for ASO cubes) using MAXL etc.?

    Hello team,

    I'm trying to make a backup copy of the cube by using the copy commands, BSO

    but after copy, I need to change the drive letter (for the data and indexes of the files) using MAXLs.

    I am able to do for cubes ASO using "Alter tablespace" i.e. for example, change "D:\" car ' to 'E:\. "for the tablespace files.

    I need to do the same for the BSO cubes? any idea?

    Kind regards

    Amit

    Don't forget while you can also change the drive it can't displace data. You would have to export the data, delete the database, change the disks, and then reload.

    For the actual command of MaxL watch the MaxL Alter Database command. You can add, dorp or set volumes of disk for ind and pag files

  • alter tablespace offline...

    Hello

    http://docs.Oracle.com/CD/E11882_01/server.112/e25494/tspaces005.htm

    just a quick question,
    alter tablespace....offline temporary
    A tablespace can be taken offline temporarily, even if there are error conditions for one or more files in the storage space. When you specify TEMPORARY offline, the database supports offline data files that are not already in offline mode, the control points as she does.
    If no file is offline, but you use the temporary clause, media recovery is not required to bring to the online storage space. However, if one or more files from the storage space are offline due to clerical errors, and you are taking the tablespace offline temporarily, the tablespace requires recovery before you can bring it online.

    Based on the explanation above, done means that these datafile (with the error condition) code with the storage space you want to use offline will not in offline mode.
    Oracle will be only offline these 'good' datafile associate with storage space?

    My confusiong early when he mentions:
    if one or more files of the tablespace are offline because of write errors,
    which make me feel that even in the midst of erros, all storage data files will be always taken offline.

    The documents also mention:
    Specify TEMPORARY only when you cannot take the tablespace offline normally. In this case, only the files taken offline because of errors need to be recovered before the tablespace can be brought online. Specify IMMEDIATE only after trying both the normal and temporary settings.
    In this case, based on my current knowledge, I mention since all data files are taken offline in the middle of the condition of erros, we just need to recover those files that have the condition of error on them. ???

    Published by: flaskvacuum on March 1, 2012 11:45

    >
    Oracle will be only offline these 'good' datafile associate with storage space?
    >
    Well, Yes, but it's because the files of data with errors will already be ordering offline offline will not be offline them.
    >
    that means the code of these datafile (with the error condition) with the tablespace you want to use offline will not be in offline mode
    >
    No - the doc says that data files wilth errors have been offline. And after ordering TEMPORARY if you try to put the storage space online, it will fail because it will try to put offline the with online also return errors.

    That's why the doc has this cautionary
    >
    Caution:

    If you take a tablespace offline, use the NORMAL clause (default) if possible. This setting ensures that the tablespace requires not coming online restore, even if after incomplete recovery, you reset the sequence of redo logs using an ALTER DATABASE OPEN RESETLOGS.
    >
    You should check the status of all data files before you use CONNECTION TEMPORARY offline, or if a data file is already offlilne because of a clerical error, you will find that what you thought was temporary will avoid you to bring online storage space unless you do a recovery.

  • is it OK to alter tablespace temp SYS of the running production database

    Dear,

    is it OK to alter tablespace temp of the user SYS of the running production database

    Business database version 10.2.0.5
    single instance on AIX

    We have two temp tablespace temp and temp2

    I'm trying to rebuild the index by using sys connection but its not working, cannot extend the temp tablepspace

    then I checked this system a default temp tablespace is of a size of 2 GB

    on the other hand, all other schemas has (including the owner of the index) have the temp of larger size.


    He suggests to change the tablespace temp of SYS.

    Ok. Then the answer is Yes, change the SYS temp tablespace should not be a problem. If you use SYS to reconstructions of index maintenance is another story. In any case, Yes, change the tablespace temp should not be a problem. Other sessions of this user would continue using the old tablespace until their completed transaction. New transactions will begin using the newly designated temp tablespace.

    Hope that helps,

    -Mark

  • HP2575v backup mode

    My color cartridge is bad and I want to print in backup mode.

    I can't enter this mode, I get either 'insert the left dropout color print cartridge"when no cartridge is installed, or 'remove and check color cartridge" where cratridge is the printer.

    Research on the Internet indicates I can get the printer in backup mode to print B & W or grayscale, but I can't see anyway to get there.

    How I really enter backup mode?

    Nothing I have seen on internet searches and web sites HP I can get there.

    I refuse to spend money on an ink cartridge new only to find the printer is bad.

    Once more, how can I get HP2575v backup printing mode?

    Not every printer with cartridges of part consisting of the cartridge and the black print head three colors have the ability to print reserve mode. If we took the color cartridge and tried to print without him, and that the printer has not reacted or given an error message. He is not one of the printers that have this capability. This is the way which those that tests if the printer is able to backup/reserve mode printing.

  • Missing ALTER TABLESPACE syntax... STRATEGY TO ADD DEFAULT ILM

    Hi all

    I'm checking the syntax of the statement:

    ALTER TABLESPACE tbs1

    STRATEGY TO ADD DEFAULT ILM

    STORE COMPRESS ADVANCED SEGMENT LINE AFTER 30 DAYS OF ACCESS LOW;

    The statement of work, but I found this syntax in the SQL (version 12.1) reference.   The song 'ILM add POLICY' after the 'DEFAULT' keyword is not documented.

    Did I miss something or Iit s a lack of documentation?

    Thank you

    Best regards

    Angelo Della Penna

    John,

    The OP post "alter TABLESPACE.

    (The DEFAULT clause for ALTER TABLESPACE for the TABLESPACE points CREATE documenttion).

    There is no clause of ILM for default for CREATE TABLESPACE.

    https://docs.Oracle.com/database/121/SQLRF/statements_7003.htm

    Therefore, it is undocumented (or a bug in the documentation)

    MK

Maybe you are looking for