首页 > 其他 > 详细

热备份

时间:2015-01-11 17:41:29      阅读:241      评论:0      收藏:0      [点我收藏+]

热备份

alter tablespace users begin backup;  

cp +DATA/ora11g/USERS.259.833721555 +DATA/ora11g/backup/users.dbf

alter tablespace users end backup;

-----------------------------------------------------------------------------

 

col name for a21

select b.file#,d.name,b.status,b.time from v$datafile d join v$backup b on d.file#=b.file#;

 

 

SYS@ora11g>desc v$backup  (displays the backup status of all online datafiles.)

 Name                                      Null?    Type

 ----------------------------------------- -------- ----------------------------

 FILE#                                              NUMBER

 STATUS                                             VARCHAR2(18)

 CHANGE#                                            NUMBER

 TIME                                               DATE

 

FILE#      NUMBER      File identifier

STATUS  VARCHAR2(18)    File status: NOT ACTIVE,ACTIVE (backup in progress),OFFLINE NORMAL, or description of an error.

NOT ACTIVE indicates that the file is not currently in backup mode (that is, an ALTER TABLESPACE ... BEGIN BACKUP or ALTER DATABASE BEGIN BACKUP statement has not been issued), whereas ACTIVE indicates that the file is currently in backup mode.

 

CHANGE#     NUMBER      System change number when backup started

TIME      DATE      Time the backup started

 

热备份

原文:http://www.cnblogs.com/wwxbi/p/4216785.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!