archive启用归档模式

SQL*Plus: Release 11.2.0.1.0 Production on Wed Mar 26 15:41:16 2014
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> archive log list; --查看归档状态
Database log mode No Archive Mode --未启用归档模式
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 65
Current log sequence 67
SQL> shutdown immediate; --立即关闭数据库
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL> startup mount; --打开数据到mount状态
ORACLE instance started.
Total System Global Area 613797888 bytes
Fixed Size 2178216 bytes
Variable Size 192938840 bytes
Database Buffers 411041792 bytes
Redo Buffers 7639040 bytes
Database mounted.
SQL> select status from v$instance; --查看数据库打开状态
STATUS
------------
MOUNTED
SQL> alter database archivelog; --启用归档模式
Database altered.
SQL> alter database open; --打开数据库到open状态
Database altered.
SQL> select status from v$instance; -- 查看数据库打开状态
STATUS
------------
OPEN
SQL> archive log list; --查看是否归档
Database log mode Archive Mode --归档模式已启用
Automatic archival Enabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 65
Next log sequence to archive 67
Current log sequence 67
SQL>


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

转载于:http://blog.itpub.net/29267792/viewspace-1130006/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值