重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4806|回复: 0
打印 上一主题 下一主题

数据库在手工热备份的过程中出现停电,如何解决?

[复制链接]
跳转到指定楼层
楼主
发表于 2012-8-14 23:07:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

数据库在手工热备份的过程中出现停电,如何解决?


1.首先启动数据库在mount状态,


2.检查目前哪些表空间处于备份模式

select a.name,b.status
from v$datafile a, v$backup b
where a.file#=b.file# and b.status='ACTIVE';

or

select a.tablespace_name,a.file_name,b.status
from dba_data_files a,v$backup b
where a.file_id=b.file#
and b.status='ACTIVE';

3.结束备份

This statement lists files with ACTIVE status. If the file is in ACTIVE state,
the corresponding tablespace is in backup mode.

The second statement gives the tablespace name also,
but this can't be used unless the database is open.

You need to end the backup mode of the tablespace with the following command:

alter tablespace tablespace_name end backup;

4.启动数据库

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-21 03:23 , Processed in 0.200583 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表