数据库

位置:IT落伍者 >> 数据库 >> 浏览文章

在Oracle10g里启动自动归档模式


发布日期:2019年12月28日
 
在Oracle10g里启动自动归档模式
在Oracleg中只要启动数据库的归档模式Oracle就会启用自动归档从而避免了g以前由于用户疏忽所带来的一系列问题

$ sqlplus / as sysdba

SQL*Plus: Release Production on Wed Apr ::

Copyright (c) Oracle All rights reserved

Connected to:

Oracle Database g Enterprise Edition Release bit Production

With the Partitioning and Data Mining 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

Current log sequence

SQL> show parameter log_archive_start

NAME TYPE VALUE

log_archive_start boolean FALSE

SQL> shutdown immediate;

Database closed

Database dismounted

ORACLE instance shut down

SQL> startup mount;

ORACLE instance started

Total System Global Area bytes

Fixed Size bytes

Variable Size bytes

Database Buffers bytes

Redo Buffers bytes

Database mounted

SQL> alter database archivelog;

Database altered

SQL> alter database open;

Database altered

SQL> archive log list;

Database log mode Archive Mode

Automatic archival Enabled

Archive destination USE_DB_RECOVERY_FILE_DEST

Oldest online log sequence

Next log sequence to archive

Current log sequence

SQL>

上一篇:oracle10g在Solaris10上的安装

下一篇:使用Windows工具管理Nt上的Oracle数据库