ITPub博客

首页 > 数据库 > Oracle > ORA-01123 cannot start online backup; media recovery not enabled

ORA-01123 cannot start online backup; media recovery not enabled

原创 Oracle 作者:tolilong 时间:2012-10-20 11:47:30 0 删除 编辑
今天在执行begin backup的时候,发生了如下错误
SQL> alter tablespace users begin backup;
alter tablespace users begin backup
*
ERROR at line 1:
ORA-01123: cannot start online backup; media recovery not enabled
查询相关文档之后,原因是数据库没有启动归档.
[@more@]
今天在执行begin backup的时候,发生了如下错误
SQL> alter tablespace users begin backup;
alter tablespace users begin backup
*
ERROR at line 1:
ORA-01123: cannot start online backup; media recovery not enabled
查询相关文档之后,原因是数据库没有启动归档.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup mount
ORACLE instance started.
Total System Global Area 432013312 bytes
Fixed Size 2021344 bytes
Variable Size 134219808 bytes
Database Buffers 293601280 bytes
Redo Buffers 2170880 bytes
Database mounted.
SQL> alter database archivelog;
Database altered.
SQL> alter database open;
Database altered.
SQL> alter system set log_archive_dest_1='location="/u01/arch"';
System altered.
SQL> alter tablespace users begin backup;
Tablespace altered.
启动归档日志之后,就可以使用alter tablespace users begin backup;

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

请登录后发表评论 登录
全部评论

注册时间:2010-07-13

  • 博文量
    406
  • 访问量
    1208669