[20140429]ora-01149.txt

[20140429]ora-01149.txt

$ oerr ora 1149
01149, 00000, "cannot shutdown - file %s has online backup set"
// *Cause: An attempt to shutdown normally found that an online backup is
//        still in progress.
// *Action: End the backup of the offending tablespace and retry this command.


--昨天测试环境,发现在shutdown immediate时出现错误,估计有人学习使用了用户备份模式.
--结束备份模式就可以解决这个问题,自己在模拟看看.

SYS@test> @ver
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production

SYS@test> alter tablespace test begin backup;
Tablespace altered.

SYS@test> select * from v$backup ;
     FILE# STATUS                CHANGE# TIME
---------- ------------------ ---------- -------------------
         1 NOT ACTIVE                  0
         2 NOT ACTIVE                  0
         3 NOT ACTIVE                  0
         4 NOT ACTIVE                  0
         5 NOT ACTIVE                  0
         6 NOT ACTIVE         3011239824 2012-11-08 15:43:19
         7 NOT ACTIVE                  0
         8 ACTIVE             3269974823 2014-04-29 08:59:13
         9 NOT ACTIVE                  0
        10 NOT ACTIVE                  0

10 rows selected.

--file#=8 ,在备份模式.

SYS@test> shutdown immediate
ORA-01149: cannot shutdown - file 8 has online backup set
ORA-01110: data file 8: '/u01/app/oracle11g/oradata/test/test01.dbf'

--不知道以前的版本有这些提示吗?自己从来没有使用这种模式备份.
SYS@test> alter tablespace test end backup;
Tablespace altered.

SYS@test> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.


SYS@test> select * from v$backup ;
     FILE# STATUS                CHANGE# TIME
---------- ------------------ ---------- -------------------
         1 NOT ACTIVE                  0
         2 NOT ACTIVE                  0
         3 NOT ACTIVE                  0
         4 NOT ACTIVE                  0
         5 NOT ACTIVE                  0
         6 NOT ACTIVE         3011239824 2012-11-08 15:43:19
         7 NOT ACTIVE                  0
         8 NOT ACTIVE         3269974823 2014-04-29 08:59:13
         9 NOT ACTIVE                  0
        10 NOT ACTIVE                  0

10 rows selected.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/267265/viewspace-1151276/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/267265/viewspace-1151276/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值