Chinaunix首页 | 论坛 | 博客
  • 博客访问: 261096
  • 博文数量: 47
  • 博客积分: 1444
  • 博客等级: 上尉
  • 技术积分: 585
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-14 15:10
文章分类
文章存档

2009年(20)

2008年(27)

我的朋友

分类: Oracle

2008-03-12 09:27:56

Connected to Oracle9i Enterprise Edition Release 9.2.0.1.0
Connected as ssfxpg

SQL>
SQL> alter database clear logfile group 3;
Database altered
SQL> select * from v$log;
    GROUP#    THREAD#  SEQUENCE#      BYTES    MEMBERS ARCHIVED STATUS           FIRST_CHANGE# FIRST_TIME
---------- ---------- ---------- ---------- ---------- -------- ---------------- ------------- -----------
         1          1        203  104857600          1 NO       CURRENT                7177324 2008-3-12 6
         2          1        201  104857600          1 NO       INACTIVE               6976247 2008-3-11 1
         3          1          0  104857600          1 NO       UNUSED                 7016482 2008-3-11 1
SQL> alter database clear logfile group 2;
Database altered
SQL> alter system switch logfile;
System altered
SQL> select * from v$log;
    GROUP#    THREAD#  SEQUENCE#      BYTES    MEMBERS ARCHIVED STATUS           FIRST_CHANGE# FIRST_TIME
---------- ---------- ---------- ---------- ---------- -------- ---------------- ------------- -----------
         1          1        203  104857600          1 NO       ACTIVE                 7177324 2008-3-12 6
         2          1        204  104857600          1 NO       CURRENT                7206347 2008-3-12 9
         3          1          0  104857600          1 NO       UNUSED                 7016482 2008-3-11 1
SQL> alter system switch logfile;
System altered
SQL> select * from v$log;
    GROUP#    THREAD#  SEQUENCE#      BYTES    MEMBERS ARCHIVED STATUS           FIRST_CHANGE# FIRST_TIME
---------- ---------- ---------- ---------- ---------- -------- ---------------- ------------- -----------
         1          1        203  104857600          1 NO       INACTIVE               7177324 2008-3-12 6
         2          1        204  104857600          1 NO       INACTIVE               7206347 2008-3-12 9
         3          1        205  104857600          1 NO       CURRENT                7206352 2008-3-12 9
SQL> alter database clear logfile group 1;
Database altered
SQL> alter system switch logfile;
System altered
SQL> select * from v$log;
    GROUP#    THREAD#  SEQUENCE#      BYTES    MEMBERS ARCHIVED STATUS           FIRST_CHANGE# FIRST_TIME
---------- ---------- ---------- ---------- ---------- -------- ---------------- ------------- -----------
         1          1        206  104857600          1 NO       CURRENT                7206431 2008-3-12 9
         2          1        204  104857600          1 NO       INACTIVE               7206347 2008-3-12 9
         3          1        205  104857600          1 NO       ACTIVE                 7206352 2008-3-12 9
SQL>
阅读(1806) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~