ITPub博客

首页 > 数据库 > Oracle > Archive Log 学习笔记

Archive Log 学习笔记

原创 Oracle 作者:vmoemplus 时间:2007-04-22 21:42:17 0 删除 编辑
Archive Log 学习笔记[@more@]

Archive Log 学习笔记


1、启用和停用archivelog


C:Documents and SettingsAdministrator>sqlplus "/ as sysdba"
 
SQL*Plus: Release 9.0.1.0.1 - Production on 星期日 7月 23 23:48:19 2006
 
(c) Copyright 2001 Oracle Corporation. All rights reserved.
 
连接到:
Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
With the Partitioning option
JServer Release 9.0.1.1.1 - Production
archive">sys@oralocal>archive log list ——此处是显示当前的归档模式
数据库日志模式 存档模式
自动存档 启用
存档终点 D:oracleora90RDBMS
最早的概要日志序列 171
下一个存档日志序列 173
当前日志序列 173
 
shutdown">sys@oralocal>shutdown immediate——关闭数据库
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
 
startup">sys@oralocal>startup mount——启动到mount状态
 
ORACLE 例程已经启动。
 
Total System Global Area 118255568 bytes
Fixed Size 282576 bytes
Variable Size 83886080 bytes
Database Buffers 33554432 bytes
Redo Buffers 532480 bytes
数据库装载完毕。
 
alter">sys@oralocal>alter database noarchivelog——关闭数据库的归档状态(因为原来是打开的,现在设置成关闭)
2 ;
 
数据库已更改。
 
archive">sys@oralocal>archive log list
数据库日志模式 非存档模式
自动存档 禁用
存档终点 D:oracleora90RDBMS
最早的概要日志序列 171
当前日志序列 173
alter">sys@oralocal>alter database archivelog——开启归档模式
2 ;
 
数据库已更改。
 
archive">sys@oralocal>archive log list
数据库日志模式 存档模式
自动存档 禁用
存档终点 D:oracleora90RDBMS
最早的概要日志序列 171
下一个存档日志序列 173
当前日志序列 173
archive">sys@oralocal>archive log start——开启自动归档模式
已处理的语句
archive">sys@oralocal>archive log list
数据库日志模式 存档模式
自动存档 启用
存档终点 D:oracleora90RDBMS
最早的概要日志序列 171
下一个存档日志序列 173
当前日志序列 173
 
sys@oralocal>


2、设置自动归档随数据库一起启动
停库后修改init.ora文件,添加一行:
log_archive_start=true
重启数据库。

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

下一篇: oracle 培训手册
请登录后发表评论 登录
全部评论
  • 博文量
    43
  • 访问量
    57496