Home > Database > Mysql Tutorial > body text

ORA-01123:无法启动联机备份;未启用介质恢复.

WBOY
Release: 2016-06-07 17:29:12
Original
1232 people have browsed it

今天学习了下Oracle备份 在执行了alter tablespace users begin backup; 然后出现: 第 1 行出现错误:ORA-01123: 无法启动联机备

今天学习了下Oracle备份

在执行了alter tablespace users begin backup;

然后出现:

第 1 行出现错误:
ORA-01123: 无法启动联机备份; 未启用介质恢复

貌似是没有启动归档,原因是:在noarchive模式下不能做alter tablespace XXX begin backup,联机备份只有在数据库位于archivelog模式中才能进行。

然后执行了下,archive log list

数据库日志模式 非存档模式
自动存档 禁用
存档终点 USE_DB_RECOVERY_FILE_DEST
最早的联机日志序列 5
当前日志序列 7

没有启动归档,然后关闭数据库,在归档模式下启动数据库

然后执行:

startup mount

alter database archivelog;

SQL> alter database archivelog;

数据库已更改。

SQL> archive log list;
数据库日志模式 存档模式
自动存档 启用
存档终点 USE_DB_RECOVERY_FILE_DEST
最早的联机日志序列 5
下一个存档日志序列 7
当前日

SQL> alter database open ;

数据库已更改。

SQL> alter tablespace users begin backup;

表空间已更改。

SQL> host cp /u01/app/oracle/oradata/JIAGULUN/datafile/o1_mf_users_7p5b157q_.dbf /u01/app/oracle/backup/users01.dbf

现在在backup 目录下就有users01dbf 了。。。。。。

SQL> alter tablespace users end backup;

表空间已更改。

OK了

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!