oracle修改redo大小

前端之家收集整理的这篇文章主要介绍了oracle修改redo大小前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
创建过渡redo
alter database add logfile group 4 '/home/oracle/app/oracle/oradata/soc/redo04.log' size 500M;
alter database add logfile group 5 '/home/oracle/app/oracle/oradata/soc/redo05.log' size 500M;
alter database add logfile group 6 '/home/oracle/app/oracle/oradata/soc/redo06.log' size 500M;


@H_404_10@

切换到过渡redo@H_404_10@

alter system switch logfile;@H_404_10@


@H_404_10@

查看是否切换到过渡的redo@H_404_10@

select group#,bytes/1024/1024,status from v$log;@H_404_10@


@H_404_10@ 删除组群
alter database drop logfile group 1;
alter database drop logfile group 2;
alter database drop logfile group 3;


通过操作系统删除老的redo01.log、redo02.log、redo03.log
rm -rf redo01.log、redo02.log、redo03.log


重建redo01.log、redo02.log、redo03.log
alter database add logfile group 1 '/home/oracle/app/oracle/oradata/soc/redo01.log' size 500M;
alter database add logfile group 2 '/home/oracle/app/oracle/oradata/soc/redo02.log' size 500M;
alter database add logfile group 3 '/home/oracle/app/oracle/oradata/soc/redo03.log' size 500M;


@H_404_10@

@H_404_10@

切换到新建的redo@H_404_10@

alter system switch logfile;@H_404_10@


@H_404_10@

查看是否切换到新建的redo@H_404_10@

select group#,status from v$log;@H_404_10@
删除作为中间过渡的redo alter database drop logfile group 4; alter database drop logfile group 5; alter database drop logfile group 6; 通过操作系统删除老的redo04.log、redo05.log、redo06.log rm -rf redo04.log、redo05.log、redo06.log 原文链接:https://www.f2er.com/oracle/213140.html

猜你在找的Oracle相关文章