日志格式化

oracle数据库安装,一般需要对日志文件进行日志格式化。



SQL> select group#,status,member from v$Logfile;
+DATA/ORCL/ONLINELOG/group_3.284.979319979

#
alter database add logfile thread 1 group 21('+DATA','+DATA') size 512m;
alter database add logfile thread 1 group 22('+DATA','+DATA') size 512m;
alter database add logfile thread 1 group 23('+DATA','+DATA') size 512m;
alter database add logfile thread 1 group 24('+DATA','+DATA') size 512m;
alter database add logfile thread 1 group 25('+DATA','+DATA') size 512m;


alter database add logfile thread 2 group 31('+DATA','+DATA') size 512m;
alter database add logfile thread 2 group 32('+DATA','+DATA') size 512m;
alter database add logfile thread 2 group 33('+DATA','+DATA') size 512m;
alter database add logfile thread 2 group 34('+DATA','+DATA') size 512m;
alter database add logfile thread 2 group 35('+DATA','+DATA') size 512m;

#


alter database drop logfile group 3;
alter database drop logfile group 4;
alter database drop logfile group 5;
alter database drop logfile group 6;
alter database drop logfile group 7;


alter database drop logfile member '/picclife/app/oracle/oradata/cdbdev/redo03.log';

#
 alter system archive log current;
alter system checkpoint;
#RAC
alter system checkpoint global;
/opt/oracle/oradata/filenet/redo03.log alter database add logfile thread 1 group 21('/picclife/app/oracle/oradata/cdbdev/redo21.log') size 512m; alter database add logfile thread 1 group 22('/picclife/app/oracle/oradata/cdbdev/redo22.log') size 512m; alter database add logfile thread 1 group 23('/picclife/app/oracle/oradata/cdbdev/redo23.log') size 512m; alter database add logfile thread 1 group 24('/picclife/app/oracle/oradata/cdbdev/redo24.log') size 512m; alter database add logfile thread 1 group 25('/picclife/app/oracle/oradata/cdbdev/redo25.log') size 512m; alter database add logfile thread 1 group 26('/picclife/app/oracle/oradata/cdbdev/redo26.log') size 512m; -- alter database drop logfile group 4; alter database drop logfile group 5; alter database drop logfile group 6; alter database drop logfile group 7;
查询当前环境日志组状态
select group#,THREAD#,sequence#,bytes/1024/1024,status from v$log;

    GROUP#    THREAD#  SEQUENCE# BYTES/1024/1024 STATUS
---------- ---------- ---------- --------------- --------------------
        71          1     247102            1024 INACTIVE
        72          1     247103            1024 INACTIVE
        73          1     247104            1024 INACTIVE
        74          1     247105            1024 CURRENT
        75          1     247101            1024 INACTIVE
        81          2     257860            1024 CURRENT
        82          2     257856            1024 INACTIVE
        83          2     257857            1024 INACTIVE
        84          2     257858            1024 INACTIVE
        85          2     257859            1024 INACTIVE

10 rows selected.

 

转载于:https://www.cnblogs.com/lvcha001/p/10312695.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
>