有人在网上问的问题
oracle10g设置手工存档时的问题
我使用alter database archivelog manual 启动数据库的手工归档模式,但是open数据库后发现:
SQL> archive log list;
数据库日志模式 存档模式
自动存档 启用
存档终点 USE_DB_RECOVERY_FILE_DEST
最早的联机日志序列 13
下一个存档日志序列 15
当前日志序列 15
为什么其中自动存档时启用,不是应该为禁用吗?各位大虾给解释下
我给他的解释如下
10g默认开启了归档就是自动的 通过alter database archivelog manual设置为手动归档。
你这里通过archive log list查看不是很正确
你可以用select log_mode from v$database;来查看
LOG_MODE
------------
MANUAL
你可以做一下实验,确定上面的log_mode是manual后。
你执行alter system switch logfile;
多执行几次,如果是log都切换完了后。你再alter system switch logfile;就会挂住了,
这里就是应该没有自动arhive导致的,redo没有archive,所以第一个不能重用了,从而hang住了。
在打开另一个sqlplus,执行alter database arhive log current,
上面挂着的,就可以执行了。这里就是手动归档以后redo可以重用了。
10g默认开启了归档就是自动的 通过alter database archivelog manual设置为手动归档。
你这里通过archive log list查看不是很正确
你可以用select log_mode from v$database;来查看
LOG_MODE
------------
MANUAL
你可以做一下实验,确定上面的log_mode是manual后。
你执行alter system switch logfile;
多执行几次,如果是log都切换完了后。你再alter system switch logfile;就会挂住了,
这里就是应该没有自动arhive导致的,redo没有archive,所以第一个不能重用了,从而hang住了。
在打开另一个sqlplus,执行alter database arhive log current,
上面挂着的,就可以执行了。这里就是手动归档以后redo可以重用了。
- 提供Oracle管理/故障处理/优化/安装/RAC/备份恢复技术服务,提供专业的Oracle培训和咨询服务。
- 邮件: inthirties@gmail.com
- MSN: inthirties@hotmail.com
- QQ: inthirties@qq.com
- 专业论坛 http://www.inthirties.com
- 技术博客 http://blog.csdn.net/inthirties
- 个人站点 http://blog.inthirties.com