archivelogmode oracle,请问如何进入Archivelog Mode模式?

我的一点订正

initSID.ora中的参数设置

LOG_ARCHIVE_START=true

数据库应该在MOUNT状态下进行模式转换。

因为这是数据库的运行状态。

如果你不打开controlefile如何记录归档信息。

metalink的步骤如下

To Prepare to Switch Database Archiving Mode

============================================

1. Shut down the database instance.

SVRMGRL>  shutdown

An open database must be closed and dismounted and any associated

instances shut down before the database's archiving mode can be switched.

Archiving cannot be disabled if any datafiles need media recovery.

2. Backup the database.

This backup can be used with the archive logs that you will generate.

3. Perform any operating system specific steps (optional).

4. Start up a new instance and mount, but do not open the database.

SVRMGRL> startup mount

NOTE: If you are using the Oracle Parallel Server, you must mount the

database exclusively using one instance to switch the database's

archiving mode.

5. Switch the database's archiving mode.

SVRMGRL> alter database archivelog;

6. Open the database.

SVRMGRL> alter database open;

7. Verify your database is now in archivelog mode.

SVRMGRL> archive log list;

Database log mode               Archive Mode

Automatic archival              Enabled

Archive destination             for example: $ORACLE_HOME/dbs/arch

Oldest on-line log sequence     275

Next log sequence               277

Current log sequence            278

8. Archive all your redo logs at this point.

SVRMGRL> archive log all;

9. Ensure these newly created Archive log files are added to the backup

process.

See the Oracle7 Parallel Server Concepts & Administration guide for more

information about switching the archiving mode when using the Oracle Parallel

Server.

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值