首页 > 代码库 > oracle 11g 更改日志组大小

oracle 11g 更改日志组大小

    1、创建新的日志组
  1.alter database add logfile group 4 (‘/u01/app/oracle/oradata/jian/redo04.log’) size 1024k;
  2.alter database add logfile group 5 (‘/u01/app/oracle/oradata/jian/redo05.log’) size 1024k;
  2、切换当前日志到新的日志组
  1.alter system switch logfile;
  2.alter system switch logfile;
  3、删除旧的日志组
  1.alter database drop logfile group 1;
  2.alter database drop logfile group 2;
  3.alter database drop logfile group 3;
  4、操作系统下删除原日志组1、2、3中的文件
  5、重建日志组1、2、3
  1.alter database add logfile group 1 (’/u01/app/oracle/oradata/jian/redo01.log’) size 10M;
  2.alter database add logfile group 2 (’/u01/app/oracle/oradata/jian/redo02.log’) size 10M;
  3.alter database add logfile group 3 (’/u01/app/oracle/oradata/jian/redo03.log’) size 10M;
  6、切换日志组
  1.alter system switch logfile;
  2.alter system switch logfile;
  3.alter system switch logfile;
  7、删除日志组4、5
  1.alter database drop logfile group 4;
  2.alter database drop logfile group 5;
  8、到操作系统下删除原日志组4、5中的文件
  9、备份当前的最新的控制文件
   SQL> alter database backup controlfile to trace resetlogs

本文出自 “8671833” 博客,请务必保留此出处http://8681833.blog.51cto.com/8671833/1538915