Home » RDBMS Server » Server Administration » hotbackup taking tablespace offline
icon6.gif  hotbackup taking tablespace offline [message #118180] Tue, 03 May 2005 09:18 Go to next message
tycoonajayverma
Messages: 17
Registered: May 2005
Location: b'lore
Junior Member

Hi everyone.

My Q is related to hotbackup.

I am doing hotbackup given the command.

alter tablesapce <user_data> begin backup;
xcopy <user_data_files>
alter tablespace <user_data> end backup;

i need to know that when we apply the begin backup command the tablespace get offline correct me if i m wronge and user inserting into the user_data tablespace. I want to know where the data goes when we using the begin backup command. What is the concept behind it...

Thanks in advance...
Waiting for replies.................
Re: hotbackup taking tablespace offline [message #118187 is a reply to message #118180] Tue, 03 May 2005 09:46 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Most frequently asked question.
The tablespace doesnt get offline.
Records are still being inserted into tablespace.
There are some concerns here.
----------- from an article by Tim Gorman -------
When the ALTER TABLESPACE ... BEGIN BACKUP command is issued, a global
database checkpoint occurs. This means that the current system change number (SCN) is
logged to the redo log stream in a checkpoint record, and all buffers in the Buffer Cache
modified prior to that SCN must be flushed down to the datafiles. Once the checkpoint
completes, then the header block of each datafile in the tablespace is frozen, meaning that the
header will not be updated to record the SCN of future checkpoints.
However, the writing of database blocks to the body of the datafiles is
not changed in any way. During future checkpoints, while the tablespace remains in
backup mode, blocks continue to be written to the datafiles, just like normal. When
the DBWR process flushes blocks to the datafiles outside of checkpoint processing, this
continues in the datafiles belonging to the tablespace being backed up, just like
normal. Meanwhile, while this normal I/O occurs to and from the tablespace in
backup mode, some type of operating-system utility is copying the datafiles, backing
them up. This utility, which on UNIX might be the dd, cp, tar, cpio, or dump
commands, is actually backing up datafiles that are in flux. The files are being changed, as
they are being saved to backup media. To put it another way, the datafiles that are being
backed up are not consistent, and in one sense of the word, are corrupted.
Re: hotbackup taking tablespace offline [message #118193 is a reply to message #118187] Tue, 03 May 2005 10:04 Go to previous messageGo to next message
tycoonajayverma
Messages: 17
Registered: May 2005
Location: b'lore
Junior Member

Thanks man,

But the block that r in dbbc and process working on it that data for those block goes where. if it goes to same datafile then how the SCN updated in the header of datafile.

can u plz clear this point.

Ajay.
Re: hotbackup taking tablespace offline [message #118318 is a reply to message #118193] Wed, 04 May 2005 06:41 Go to previous messageGo to next message
girish.rohini
Messages: 744
Registered: April 2005
Location: Delhi (India)
Senior Member

During hotbackup the SCN got freezed in header of datafile.

The moment u give end backup, the datafile header gets updated with latest SCN from the control file.
Re: hotbackup taking tablespace offline [message #118452 is a reply to message #118318] Thu, 05 May 2005 06:42 Go to previous messageGo to next message
tycoonajayverma
Messages: 17
Registered: May 2005
Location: b'lore
Junior Member

hi,
header is freez i agree with u i m more interested to know that where is the data going when the tablespace in backup mode at that time user doing work on it.


Thanks
Re: hotbackup taking tablespace offline [message #118455 is a reply to message #118452] Thu, 05 May 2005 07:06 Go to previous messageGo to next message
tycoonajayverma
Messages: 17
Registered: May 2005
Location: b'lore
Junior Member

ok fine everybody i got the ans that the data is still going to the datafile. and when the tablespace endbackup occure the header of each file getupdated.

once again thanks everyone.

cool.....

Regards,
Ajay Verma
DBA
Re: hotbackup taking tablespace offline [message #118459 is a reply to message #118452] Thu, 05 May 2005 07:28 Go to previous message
sunil_v_mishra
Messages: 506
Registered: March 2005
Senior Member
Hi,

Check out below written thinks you will better understand this.... author of this answer is frank naude i m just posting it on forum so that other can see it and can get knowledge releated to it

----------------------------------------------------------------
Does Oracle write to data files in begin/hot backup mode?

Oracle will stop updating file headers, but will continue to write data to the database files even if a tablespace is in backup mode.

In backup mode, Oracle will write out complete changed blocks to the redo log files. Normally only deltas (changes) are logged to the redo logs. This is done to enable reconstruction of a block if only half of it was backed up (split blocks). Because of this, one should notice increased log activity and archiving during on-line backups.
-----------------------------------------------------------------

friend
sunil

Previous Topic: OPatch
Next Topic: UNDO Tablespace and ORA-01555
Goto Forum:
  


Current Time: Sat Jan 25 03:44:16 CST 2025