Home  >  Article  >  Database  >  Oracle 归档模式与非归档模式的切换

Oracle 归档模式与非归档模式的切换

WBOY
WBOYOriginal
2016-06-07 17:34:091121browse

Oracle 归档模式与非归档模式的切换 1.查看oracle是否处于归档模式 arichive log list; 数据库日志模式 非存档模式自

Oracle 归档模式与非归档模式的切换

1.查看oracle是否处于归档模式

arichive log list;

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

显示oracle此时为非归档模式,,下面将它设置为归档模式。

2.输入:shutdown

数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。


3.以mount模式启动数据库,输入:startup mount

数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。


4.修改为归档模式,alter database arichive;

数据库已更改。

此时已经修改完成,查看一下:arichive log list

数据库日志模式            存档模式
自动存档            启用
存档终点            USE_DB_RECOVERY_FILE_DEST
最早的联机日志序列    6
下一个存档日志序列  8
当前日志序列          8

相关阅读:

Oracle 11G RAC 修改归档模式

Oracle手工完全恢复案例(归档模式)

Oracle手工恢复案例(非归档模式)

Oracle归档模式设置的相关指令与简要说明

Oracle 10g 归档模式下备份脚本

linux

Statement:
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