oracle归档停用,如何启用和关闭数据库的Oracle归档模式

本文简单介绍如何启用和关闭数据库的Oracle归档模式。

一、shutdown normal或shutdown immediate关闭数据库 oracle培训

1 .oracle@jumper oracle]$ sqlplus "/ as sysdba"

2.SQL*Plus: Release 9.2.0.4.0 - Production on Sat Oct 15 15:48:36 2005

3.Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

4.Connected to:

5.Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production

6.With the Partitioning option

7.JServer Release 9.2.0.4.0 - Production

8.SQL> shutdown immediate;

9.Database closed.

10.Database dismounted.

11.ORACLE instance shut down.

二、启动数据库到mount状态

1.SQL> startup mount;

2.ORACLE instance started.

3.Total System Global Area 101782828 bytes

4.Fixed Size 451884 bytes

5.Variable Size 37748736 bytes

6.Database Buffers 62914560 bytes

7.Redo Buffers 667648 bytes

8.Database mounted.

三、启用或停止归档模式

如果要启用Oracle归档模式,此处使用

1.alter database archivelog 命令。

2.SQL> alter database archivelog;

3.Database altered.

4.SQL> alter database open;

5.Database altered.

6.SQL> archive log list;

7.Database log mode Archive Mode

8.Automatic archival Enabled

9.Archive destination /opt/oracle/oradata/conner/archive

10.Oldest online log sequence 148

11.Next log sequence to archive 151

12.Current log sequence 151

posted on 2013-08-22 15:00 亲爱的小孩 阅读(137) 评论(0)  编辑  收藏

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值