Step 1 :-
- Put the tablespace in backup mode
- Copy the datafiles which tablespace in backup mode
- Once copy the datafiles is completed putout from the backup mode
- switch logfile
- archive log mode is enabled
Step 2 :-
sql> select tablespace_name from dba_data_files;
tablespace_name
----------------------------------
system
sysaux
users
undo
temp
example
sql>alter tablespace system begin backup;
sql>host copy E:\oracle\product\10.2.0\oradata\localdb\system01.dbf e:\oracle\backup;
1 files copied
sql>select * from v$backup;
file status change# time
-----------------------------------------------
1 active 1134456 22-nov-08
2 not active 0
" " "
sql> alter tablespace system end backup;
system altered.
After exec, you should check the any datafiles in backup mode. If any datafiles in backup mode ,you should exec end backup condition after taken backup datafiles.
sql>alter system switch logfile;
system altered.
0 comments:
Post a Comment