[oracle@fmw ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Mon May 27 15:07:23 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup nomount
ORACLE instance started.
Total System Global Area 2137886720 bytes
Fixed Size 2215064 bytes
Variable Size 1879049064 bytes
Database Buffers 251658240 bytes
Redo Buffers 4964352 bytes
SQL> alter database mount;
Database altered.
SQL> alter database open
2 ;
Database altered.
SQL> desc v$log;
Name Null? Type
----------------------------------------- -------- ----------------------------
GROUP# NUMBER
THREAD# NUMBER
SEQUENCE# NUMBER
BYTES NUMBER
BLOCKSIZE NUMBER
MEMBERS NUMBER
ARCHIVED VARCHAR2(3)
STATUS VARCHAR2(16)
FIRST_CHANGE# NUMBER
FIRST_TIME DATE
NEXT_CHANGE# NUMBER
NEXT_TIME DATE
SQL> set pagesize 10000
SQL> set linesize 1000
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ ---------
1 1 73 52428800 512 1 NO INACTIVE 2041538 18-MAY-13 2080853 20-MAY-13
2 1 74 52428800 512 1 NO CURRENT 2080853 20-MAY-13 2.8147E+14
3 1 72 52428800 512 1 NO INACTIVE 1967403 18-MAY-13 2041538 18-MAY-13
SQL> alter system switch logfile;
System altered.
SQL> /
System altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ ---------
1 1 76 52428800 512 1 NO CURRENT 2094335 27-MAY-13 2.8147E+14
2 1 74 52428800 512 1 NO ACTIVE 2080853 20-MAY-13 2094332 27-MAY-13
3 1 75 52428800 512 1 NO ACTIVE 2094332 27-MAY-13 2094335 27-MAY-13
SQL> alter system switch logfile;
System altered.
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ ---------
1 1 76 52428800 512 1 NO INACTIVE 2094335 27-MAY-13 2094344 27-MAY-13
2 1 77 52428800 512 1 NO CURRENT 2094344 27-MAY-13 2.8147E+14
3 1 75 52428800 512 1 NO INACTIVE 2094332 27-MAY-13 2094335 27-MAY-13
SQL> desc v$Logfile
Name Null? Type
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
GROUP# NUMBER
STATUS VARCHAR2(7)
TYPE VARCHAR2(7)
MEMBER VARCHAR2(513)
IS_RECOVERY_DEST_FILE VARCHAR2(3)
SQL> select * from v$logfile;
GROUP# STATUS TYPE MEMBER IS_
---------- ------- ------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ---
3 ONLINE /app/oracle/database/oradata/fmw/redo03.log NO
2 ONLINE /app/oracle/database/oradata/fmw/redo02.log NO
1 ONLINE /app/oracle/database/oradata/fmw/redo01.log NO
SQL> col member for a100
SQL> /
GROUP# STATUS TYPE MEMBER IS_
---------- ------- ------- ---------------------------------------------------------------------------------------------------- ---
3 ONLINE /app/oracle/database/oradata/fmw/redo03.log NO
2 ONLINE /app/oracle/database/oradata/fmw/redo02.log NO
1 ONLINE /app/oracle/database/oradata/fmw/redo01.log NO
SQL> alter system switch logfile;
System altered.
SQL> select * from v$Log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ ---------
1 1 76 52428800 512 1 NO INACTIVE 2094335 27-MAY-13 2094344 27-MAY-13
2 1 77 52428800 512 1 NO ACTIVE 2094344 27-MAY-13 2094444 27-MAY-13
3 1 78 52428800 512 1 NO CURRENT 2094444 27-MAY-13 2.8147E+14
SQL> EXEC SYS.DBMS_LOGMNR.ADD_LOGFILE('/app/oracle/database/oradata/fmw/redo02.log', SYS.DBMS_LOGMNR.NEW)
PL/SQL procedure successfully completed.
SQL> EXEC SYS.DBMS_LOGMNR.START_LOGMNR(OPTIONS => SYS.DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG)
PL/SQL procedure successfully completed.
SQL> create table t as select * from V$LOGMNR_CONTENTS ;
Table created.
SQL> desc t;
EXEC SYS.DBMS_LOGMNR.END_LOGMNR