Home > Database > Mysql Tutorial > body text

Oracle调整联机重做日志大小(change redo log size)

WBOY
Release: 2016-06-07 17:27:34
Original
1259 people have browsed it

Oracle 联机日志加上Oracle归档日志记录了整个数据库完整的变更信息。是Oracle体系结构中的重要组成部分。因此联机日志的规划也相

Oracle 联机日志加上Oracle归档日志记录了整个数据库完整的变更信息。是Oracle体系结构中的重要组成部分。因此联机日志的规划也相当重要。但随着业务的增加或当前联机日志文件的大小成为数据库瓶颈之一时,不得不调整联机日志的大小。本文演示了如何调整联机日志的大小。

有关联机日志、归档日志规划,设置等其参考:

Oracle 联机重做日志文件(ONLINE LOG FILE)

Oracle 归档日志

1、演示环境

sys@CNBO1> select * from v$version where rownum

BANNER
----------------------------------------------------------------
Oracle Database 10g Release 10.2.0.3.0 - 64bit Production

sys@CNBO1> archive log list;
Database log mode              Archive Mode    -->已处于归档模式
Automatic archival            Enabled
Archive destination            /u02/database/CNBO1/archive/
Oldest online log sequence    4881
Next log sequence to archive  4884
Current log sequence          4884

2、日志使用情况

sys@CNBO1> @log_stat

    GROUP# MEMBER                                        SEQUENCE#    SIZE_MB STATUS
---------- --------------------------------------------- ---------- ---------- -------
        1 /u02/database/CNBO1/redolog/log1aCNBO1.log          4881        20 ACTIVE
        1 /u02/database/CNBO1/redolog/log1bCNBO1.log          4881        20 ACTIVE
        2 /u02/database/CNBO1/redolog/log2aCNBO1.log          4882        20 ACTIVE
        2 /u02/database/CNBO1/redolog/log2bCNBO1.log          4882        20 ACTIVE
        3 /u02/database/CNBO1/redolog/log3aCNBO1.log          4883        20 ACTIVE
        3 /u02/database/CNBO1/redolog/log3bCNBO1.log          4883        20 ACTIVE
        4 /u02/database/CNBO1/redolog/log4aCNBO1.log          4884        20 ACTIVE
        4 /u02/database/CNBO1/redolog/log4bCNBO1.log          4884        20 CURRENT

8 rows selected.

sys@CNBO1> select group#,archived,status from v$log;

    GROUP# ARC STATUS
---------- --- ----------------
        1 YES ACTIVE
        2 YES ACTIVE
        3 YES ACTIVE
        4 NO  CURRENT

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template