iWiz ShareBase

IT Specialist À±ÅÂÇöÀÇ iWiz ShareBase´Â IT»Ó ¾Æ´Ï¶ó °¢Á¾ Àâ´ÙÇÑ Áö½ÄµéÀ» ÇÔ²² ³ª´©´Â Áö½Ä°øÀ¯ Ä¿¹Â´ÏƼÀÔ´Ï´Ù.

iWiz,ShareBase,À±ÅÂÇö,Java,JSP,EJB,IT,Á¤º¸±â¼ú,À¥ÇÁ·Î±×·¡¹Ö,PHP,ASP,DBMS,MySQL,¼­¹ö,³×Æ®¿öÅ©,server,network,WAS,À¥¾ÖÇø®ÄÉÀ̼Ç,ºí·Î±×,blog,À¥¼­¹ö,DB,¿À¶óŬ,oracle,mysql,JRun,À¥·ÎÁ÷,ÅèĹ,tomcat,¾ÆÆÄÄ¡,ÀÚµ¿Â÷,EF½î³ªÅ¸,·Î¶Ç 6/45

°¶·¯¸® Pixelgrapher.com | ·Î¶Ç 6/45 ¹øÈ£»ý¼º ¹× Åë°è µ¥ÀÌÅÍ | Àüü±â»çº¸±â | Àüü±Û #1 | Àüü±Û #2 | Àüü±Û #3 | Àüü±Û #4 | Àüü±Û #5 | Àüü±Û #6 | Àüü±Û #7 | Àüü±Û #8 | Àüü±Û #9 | Àüü±Û #10 |
HOME iWiz
ShareBase
Remember 0523 & 0818
Áö½ÄÀº ³ª´­¼ö·Ï Ä¿Áý´Ï´Ù - iWiz's ShareBase
µ¥ÀÌÅͺ£À̽º µ¥ÀÌÅͺ£À̽º(DBMS)¿¡ °ü·ÃµÈ °¢Á¾ ÀÚ·áµéÀÔ´Ï´Ù.


  ¹ÚÁã(2004-03-31 11:17:39, Hit : 7340, Vote : 39

LogMiner


1. LogMiner ¶õ?

    LogMiner¶õ ¸®µÎ·Î±× ÆÄÀÏÀÇ ³»¿ëÀ» SQL¹®ÀåÀ¸·Î ¹ø¿ªÇÏ´Â ÇÁ·Î½ÃÁ®.

    

2. LogMiner »ç¿ë¹æ¹ý

   1) ·Î±×¸¶À̳ʴ SQL¹®ÀåÀÇ ºÐ¼®À» À§ÇØ µñ¼Å³Ê¸® ÆÄÀÏÀ» »ý¼ºÇØÁÖ¾î¾ß ÇÑ´Ù.

       - initSID.ora ÆÄÀÏ ¼öÁ¤

          ###########################################

          # LogMiner

          ###########################################

          utl_file_dir=/home/ora920/admin/asean3/log/

       - DBMS_LOGMNR ÆÐÅ°Áö¸¦ »ý¼ºÇϱâ À§ÇØ ¿À¶óŬ¿¡¼­ Á¦°øµÇ´Â ½ºÅ©¸³À» ½ÇÇàÇÑ´Ù.

          SQL> @/home/ora920/product/rdbms/admin/dbmslm.sql

          Package created.

          Grant succeeded.                  

       - ÇÁ·Î½ÃÀú¸¦ »ý¼ºÇÏ´Â ½ºÅ©¸³À» ½ÇÇàÇÑ´Ù.

          SQL> @/home/ora920/product/rdbms/admin/dbmslmd.sql

          Procedure created.

          No errors.

          Grant succeeded.

          PL/SQL procedure successfully completed.

          Package created.

       - µñ¼Å³Ê¸® ÆÄÀÏÀ» »ý¼ºÇϱâ À§ÇÑ ÇÁ·Î½ÃÀú ½ÇÇà

          SQL> EXECUTE DBMS_LOGMNR_D.BUILD('v920dict.ora','/home/ora920/admin/asean3/log/');

          PL/SQL procedure successfully completed.

 

   2) ·Î±×¸¶ÀÌ³Ê ¼¼¼ÇÀ» ¼³Á¤ÇÏ´Â ´Ü°è : ÀÌ ´Ü°è´Â ¸®µÎ·Î±×ÆÄÀÏÀ» ºÐ¼®ÇÏ´Â ¼³Á¤ ´Ü°è¶ó ÇÒ ¼ö ÀÖ´Ù.

       - V$LOGMNR_CONTENTS ºä¸¦ ¼³Á¤Çϱâ À§ÇØ ¸®µÎ·Î±× ÆÄÀÏÀ» ¸í½ÃÇØÁØ´Ù.

          SQL> EXECUTE DBMS_LOGMNR.ADD_LOGFILE('/home/ora920/oradata/asean3/redo01.log',                  

                   DBMS_LOGMNR.NEW);     --> ù¹ø° ·Î±×ÆÄÀÏ

          PL/SQL procedure successfully completed.

          SQL> EXECUTE DBMS_LOGMNR.ADD_LOGFILE('/home/ora920/oradata/asean3/redo02.log',                    DBMS_LOGMNR.ADDFILE);      --> ±âŸ ·Î±×ÆÄÀÏ

          PL/SQL procedure successfully completed.

          SQL> EXECUTE DBMS_LOGMNR.ADD_LOGFILE('/home/ora920/oradata/asean3/redo03.log',                    DBMS_LOGMNR.ADDFILE);       --> ±âŸ ·Î±×ÆÄÀÏ

          PL/SQL procedure successfully completed.

   

   3) ·Î±×¸¶À̳ʸ¦ ½ÃÀÛÇÏ´Â ´Ü°è : ºÐ¼®ÀÌ ½ÃÀ۵Ǵ ´Ü°è

       SQL> EXECUTE DBMS_LOGMNR.START_LOGMNR(DICTFILENAME=>                 '/home/ora920/admin/asean3/log/v920dict.ora');

       PL/SQL procedure successfully completed.

       [Option]

        - StartScn : SCNÀÇ ½ÃÀÛ(SCN:System Change NumberÀÇ ¾à¾î·Î, ƯÁ¤½ÃÁ¡¿¡¼­ÀÇ µ¥ÀÌŸº£À̽ºÀÇ »óÅÂ)

        - EndScn : SCNÀÇ ³¡

        - StartTime / EndTime : ±»ÀÌ ¼³¸íÀÌ ÇÊ¿ä¾øÀ» µí....

       

   4) ¸®µÎ·Î±×ÆÄÀÏÀÇ ³»¿ëÀ» SQL¹®ÀåÀ¸·Î º¸±â À§ÇØ V$LOGMNR_CONTENTS ºä Á¶È¸

       SQL> SELECT DISTINCT SQL_REDO, SESSION# FROM V$LOGMNR_CONTENTS

                WHERE LOG_ID=912;

       SQL_REDO                                                                                          SESSION#

       ------------------------------------------------------------------------

       update "SYS"."SEQ$" set "INCREMENT$" = '1', "MINVALUE" = '1',           19

       "MAXVALUE" = '9999999999', "CYCLE#" = '0', "ORDER$" = '0',

       "CACHE" = '0', "HIGHWATER" = '2238907', ...

       [Çʵ弳¸í]

        - LOG_ID : log sequence number

        - SEG_NAME : table name

 

   5) ·Î±×¸¶ÀÌ³Ê ¼¼¼ÇÀ» ²÷´Â ´Ü°è

       SQL> EXECUTE DBMS_LOGMNR.END_LOGMNR;

       

* iWiz´Ô¿¡ ÀÇÇؼ­ °Ô½Ã¹° À̵¿µÇ¾ú½À´Ï´Ù (2010-02-03 17:06)



22   ¿À¶óŬ ¹«·á °ü¸® ÅøÀÌ À־ ¼Ò°³ ÇÕ´Ï´Ù. [1]  ±è±â¿µ 2007/04/28 8292 0
21   ¿Ü¿öµµ ¿Ü¿öµµ ±î¸Ô´Â ¿À¶óŬ ÇÔ¼ö (¹Ø¿¡²¨ ÆÛ°¡´Â ´ë½Å ¤¾) [1]  ÀÌÁØÈ£ 2004/07/15 11955 43
20   Default Temporary Tablespace ¼öÁ¤  ¹ÚÁã 2004/05/03 8965 44
19   ¸®µÎ·Î±× ÆÄÀÏÀÇ drop / add / relocation ¹× rename  ¹ÚÁã 2004/04/22 7059 33
18   ¿À¶óŬ ±âº» ¸í·É¾î Á¤¸® [2]  iWiz 2004/04/07 9790 42
17   ¿À¶óŬÀÇ Undo Segment [3]  ¹ÚÁã 2004/04/06 9090 38
16   ER Diagram ÀÛ¼º ÇÁ·Î±×·¥ ERWin »ç¿ë ¹æ¹ý  iWiz 2004/04/04 13143 38
15   import À¯Æ¿¸®Æ¼ [3]  ¹ÚÁã 2004/04/01 6538 35
14   ¼¼¼Ç°ü¸®  ¹ÚÁã 2004/03/31 8165 31
  LogMiner  ¹ÚÁã 2004/03/31 7340 39
12   ¿À¶óŬ¿¡¼­ÀÇ ¹é¾÷...  ¹ÚÁã 2004/03/30 6336 40
11   ¿À¶óŬÀÇ Constraint(Á¦¾àÁ¶°Ç)  ¹ÚÁã 2004/03/26 37575 38
10   Export À¯Æ¿¸®Æ¼ [1]  ¹ÚÁã 2004/03/23 5693 35
9   ºñ±³ / ³í¸® ¿¬»êÀÚ ¹× ¿¬»ê ¿ì¼± ¼øÀ§  ¹ÚÁã 2004/03/22 9336 41
8   NULLÀ̶õ?? [2]  ¹ÚÁã 2004/03/22 7993 32

1 [2]
 

Copyright 1999-2024 Zeroboard / skin by zero
iWiz ShareBase, ¨ÏCopyleft by iWiz.  For more information contact .
º» À¥»çÀÌÆ®¿¡ °Ô½ÃµÈ À̸ÞÀÏ ÁÖ¼Ò°¡ ÀüÀÚ¿ìÆí ¼öÁý ÇÁ·Î±×·¥À̳ª ±× ¹ÛÀÇ ±â¼úÀû ÀåÄ¡¸¦ ÀÌ¿ëÇÏ¿© ¹«´ÜÀ¸·Î ¼öÁýµÇ´Â °ÍÀ» °ÅºÎÇϸç, À̸¦ À§¹Ý½Ã¿¡´Â Á¤º¸Åë½Å¸Á¹ý¿¡ ÀÇÇØ Çü»çó¹úµÊÀ» À¯³äÇϽñ⠹ٶø´Ï´Ù. [°Ô½ÃÀÏ 2004. 1. 31]