Oracle 유지보수 온라인 레 도 로그

    redo log 

Oracle Database - Enterprise Edition - Version 11.2.0.4 to 11.2.0.4  
 
 
1.       redo log   :             
[oracle@oracle ~]$ sqlplus / as sysdba
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

   SQL> select group#, bytes, status from v$log; 
   

    GROUP#      BYTES STATUS
---------- ---------- ----------------
         1   52428800 CURRENT
         2   52428800 INACTIVE
         3   52428800 INACTIVE                        

      redo log  50M,     100M                               
                                  

2.                                                      
                                                    
   SQL> select group#, member from v$logfile;                                    
                                                       
    GROUP# MEMBER
---------- --------------------------------------------------
         3 /oracle/oradata/orcl/redo03.log
         2 /oracle/oradata/orcl/redo02.log
         1 /oracle/oradata/orcl/redo01.log
                      
                                                                
3.    group# 4/5/6   100M redolog
                           
                            
   SQL> alter database add logfile group 4                              
           '/oracle/oradata/orcl/log4PROD.dbf' size 100M;                                 
                                 
   SQL> alter database add logfile group 5                                  
           '/oracle/oradata/orcl/log5PROD.dbf' size 100M;     
        
   SQL> alter database add logfile group 6          
           '/oracle/oradata/orcl/log6PROD.dbf' size 100M;   
        

4.       redo log   :                                   
                                                                         
   SQL> select group#, status from v$log;                                       

      GROUP# STATUS
---------- ----------------
         1 CURRENT
         2 INACTIVE
         3 INACTIVE
         4 UNUSED
         5 UNUSED
         6 UNUSED      
      
  
   redolog  ,group 1         ,group2、3 inactive,       50M group 1、2、3
   group 1         ,     ,      inactive group 2、3
   
   SQL> alter database drop logfile group 2;  
      Database altered.   
                            
   SQL> alter database drop logfile group 3;
      Database altered.
      
5.   switch log    ,  group 1 inactive  ,:                                  

    SQL> alter system checkpoint; 

    System altered.

 
    SQL> alter system switch logfile;

    System altered.


   SQL> select group#, status from v$log;                                       

      GROUP# STATUS
---------- ----------------
         1 INACTIVE
         4 UNUSED
         5 UNUSED
         6 UNUSED 
         
  SQL> alter database drop logfile group 1;  
      Database altered.          

 :  checkpoint,       inactive,       checkpoint

    SQL> alter system checkpoint global;

    System altered
                                                             


6.            :   
                                                         
                                                                
SQL> select group#, bytes, status from v$log;

    GROUP#      BYTES STATUS
---------- ---------- ----------------
         4  104857600 INACTIVE
         5  104857600 CURRENT
         6  104857600 UNUSED
 
   
9.            redolog
    
[oracle@oracle orcl]$rm /oracle/oradata/orcl/redo01.log
[oracle@oracle orcl]$rm /oracle/oradata/orcl/redo02.log  
[oracle@oracle orcl]$rm /oracle/oradata/orcl/redo03.log                                                
                                                  

10.  redo log            ,  reodlog               

좋은 웹페이지 즐겨찾기