标题: 更改重做日志文件的大小 [打印本页] 作者: jiawang 时间: 2019-3-14 13:46 标题: 更改重做日志文件的大小 --查看现有日志组及其文件大小
SQL> set lines 200
SQL> col member for a120
SQL> select group#, bytes/1024/1024, status from v$log;
GROUP# BYTES/1024/1024 STATUS
---------- --------------- ----------------
1 50 CURRENT
2 50 INACTIVE
3 50 INACTIVE
SQL> select GROUP#,MEMBER from v$logfile order by 1,2;
GROUP# MEMBER
---------- ------------------------------------------------------------------------------------------------------------------------
1 /u01/app/oracle/oradata/orcl/redo01.log
2 /u01/app/oracle/oradata/orcl/redo02.log
3 /u01/app/oracle/oradata/orcl/redo03.log
--创建3个磁盘组,每个磁盘组大小200m
SQL> alter database add logfile group 4 '/u01/app/oracle/oradata/orcl/redo04.log ' size 200M;
Database altered.
SQL> alter database add logfile group 5 '/u01/app/oracle/oradata/orcl/redo05.log ' size 200M;
Database altered.
SQL> alter database add logfile group 6 '/u01/app/oracle/oradata/orcl/redo06.log ' size 200M;
Database altered.
SQL> select group#, bytes/1024/1024, status from v$log;