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-04-06 11:55:32, Hit : 9090, Vote : 38

¿À¶óŬÀÇ Undo Segment


1. Undo Segment¶õ

    µ¥ÀÌŸº£À̽º¿¡¼­ ÇÁ·Î¼¼½º°¡ µ¥ÀÌŸ¸¦ º¯°æÇÒ ¶§, old value°ªÀ» ÀúÀåÇϱâ À§ÇØ »ç¿ëµÇ´Â °ÍÀ¸·Î, Transaction

    Rollback, Transaction Recovery, Read Consistency¸¦ À§ÇØ »ç¿ëµÈ´Ù.

 

2. Undo SegmentÀÇ Å¸ÀÔ

    Å©°Ô SYSTEM Undo Segment¿Í Non-SYSTEM Undo Segment·Î ³ª´­ ¼ö ÀÖ´Ù.

    1) SYSTEM Unod Segment : µ¥ÀÌŸº£À̽º°¡ ¸¸µé¾î Áú ¶§ SYSTEM Å×ÀÌºí½ºÆäÀ̽º¿¡ ¸¸µé¾îÁö´Â °ÍÀ¸·Î, ½Ã½ºÅÛ

                                                Å×ÀÌºí½ºÆäÀ̽ºÀÇ ¿ÀºêÁ§Æ®¿¡ ´ëÇÑ change°ªÀ» ÀúÀåÇϱâ À§ÇØ »ç¿ëµÈ´Ù.

    2) Non-SYSTEM Undo Segment :

 

3. Automatic Undo Segment

    1) °³³ä : ¿À¶óŬ ¼­¹ö´Â undo data¸¦ UNDOÅ×ÀÌºí½ºÆäÀ̽º¸¦ »ç¿ëÇÏ¿© ÀÚµ¿À¸·Î °ü¸®ÇÒ ¼ö ÀÖÀ¸¸ç, ¼¼±×¸ÕÆ®´Â

                  _SYSSMUn$ÀÇ Çü½ÄÀ¸·Î ÇÒ´çµÈ´Ù.

    2) ÆĶó¹ÌÅÍ ÆÄÀÏ ¼³Á¤

        $vi initasean3.ora

        ...

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

        # System Managed Undo and Rollback Segments

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

        undo_management=AUTO

        undo_tablespace=UNDOTBS1

        undo_retention=10800                       -->Read Consistency¸¦ À§ÇØ undo data°¡ ¾ó¸¶³ª ¿À·§µ¿¾È À¯ÁöµÇ¾î¾ß

                                                                      ÇÏ´ÂÁö¸¦ ÃÊ ´ÜÀ§·Î ³ªÅ¸³»´Â ÆĶó¹ÌÅÍ

        ...

        - ¸¸¾à µ¥ÀÌŸº£À̽º »ý¼º½Ã UNDO_MANAGEMENT=TRUE·Î ¼³Á¤ÇÏ°í UNDO_TABLESPACEÀýÀ» »ý·«ÇÏ¸é µ¥ÀÌ

           Å¸º£À̽º´Â SYS_UNDOTBS Å×ÀÌºí½ºÆäÀ̽º¿Í 'dbu1<sid>.dbf'µ¥ÀÌŸ ÆÄÀÏÀ» ÀÚµ¿À¸·Î »ý¼ºÇÑ´Ù.

    3) UNDO TablespaceÀÇ ÃÖÀûÀÇ Å©±â °è»ê

        SQL> SELECT (UR*(UPS*DBS))+(DBS*24) FROM

                 (SELECT VALUE AS UR FROM V$PARAMETER WHERE NAME='undo_retention'),

                 (SELECT (SUM(undoblks)/SUM(((end_time-begin_time)*86400))) AS UPS FROM v$undostat),

                 (SELECT VALUE AS DBS FROM V$PARAMETER WHERE NAME='db_block_size');

        (UR*(UPS*DBS))+(DBS*24)

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

        31178159.9

        - À§ °ªÀ» MB·Î ³ªÅ¸³»±â À§ÇØ 1048576À¸·Î ³ª´©¾î ÁÜ

    4) UNDO Tablespace »ý¼º

        SQL>CREATE UNDO TABLESPACE UNDOTBS01

                DATAFILE '/home/ora920/oradata/asean3/undotbs1.dbf' SIZE 30M;

        Tablespace created.

    5) UNDO Tablespace »èÁ¦ : ÇöÀç ÀνºÅϽº¿¡ ÀÇÇØ undo tablespace°¡ »ç¿ëÁßÀ̰ųª, Æ®·£젹¼ÇÀÌ ÀϾ°í ÀÖÀ»

                                                ¶§´Â »èÁ¦°¡ ¾ÈµÊ.

        - »õ·Î¿î UNDO Tablespace·Î Switch

           SQL> ALTER SYSTEM SET UNDO_TABLESPACE=UNDOTBS01;

           System altered.

        - ÇöÀçÀÇ ¸ðµç Æ®·¢Á§¼Ç ¿Ï·áÈÄ Å×ÀÌºí½ºÆäÀ̽º »èÁ¦

           SQL> SELECT N.NAME, S.STATUS

                    FROM V$ROLLNAME N, V$ROLLSTAT S

                    WHERE N.NAME IN (SELECT SEGMENT_NAME FROM DBA_SEGMENTS WHERE                                                    TABLESPACE_NAME='UNDOTBS1')

                    AND N.USN=S.USN;

           NAME                           STATUS

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

           _SYSSMU1$                      PENDING OFFLINE    --> ÇöÀç Æ®·£Á§¼ÇÀÌ È°¼ºÈ­ µÇ¾î ÀÖÀ½À» Ç¥½Ã, ¾Æ¹« °ªµµ ¾ø

                                                                                          ´Â °ÍÀº Æ®·£Á§¼Ç ¿Ï·á¸¦ ³ªÅ¸³¿.

           SQL>DROP TABLESPACE UNDOTBS1;              --> À§ÀÇ STATUS°ªÀÌ ¾øÀ» °æ¿ì Å×ÀÌºí½ºÆäÀ̽º »èÁ¦

    6) UNDO Segment Á¤º¸

        - DBA_ROLLBACK_SEGS : offlin»óÅÂÀÎ UNDO SegmentÁ¤º¸±îÁö º¼ ¼ö ÀÖ´Ù.

           (ºä¸¦ ÅëÇؼ­´Â offlineÁ¤º¸´Â º¼ ¼ö ¾ø´Ù.)

           SQL> SELECT SEGMENT_NAME, OWNER, TABLESPACE_NAME, STATUS

                    FROM DBA_ROLLBACK_SEGS;

           SEGMENT_NAME          OWNER         TABLESPACE_NAME    STATUS

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

           _SYSSMU9$                 PUBLIC          UNDOTBS1                  ONLINE

           _SYSSMU10$               PUBLIC          UNDOTBS1                  ONLINE

           _SYSSMU11$               PUBLIC          UNDOTBS01                OFFLINE

        - V$UNDOSTAT : 10ºÐ °£°ÝÀ¸·Î undo segment¿¡ ¼öÁýµÇ´Â µ¥ÀÌŸÀÇ Åë°è¸¦ º¼ ¼ö ÀÖ´Ù.

           SQL>SELECT BEGIN_TIME, END_TIME, UNDOBLKS FROM V$UNDOSTAT;

           BEGIN_TIM END_TIME    UNDOBLKS

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

           02-APR-04 02-APR-04         19

           02-APR-04 02-APR-04         19

       - V$ROLLSTAT

          Column     Datatype      Description  

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

          USN            NUMBER        Rollback segment number

          EXTENTS    NUMBER        Number of extents in rollback segment

          RSSIZE       NUMBER        Size in bytes of rollback segment.

                                                  This values differs by the number of bytes in one database block from

                                                   the value of the BYTES column of the ALL/DBA/USER_SEGMENTS views.

          WRITES      NUMBER         Number of bytes written to rollback segment

          XACTS        NUMBER         Number of active transactions

          GETS         NUMBER         Number of header gets

          WAITS        NUMBER         Number of header waits

          OPTSIZE    NUMBER        Optimal size of rollback segment

          HWMSIZE    NUMBER        High water mark of rollback segment size

          SHRINKS    NUMBER        Number of times the size of a rollback segment decreases

          WRAPS      NUMBER        Number of times rollback segment is wrapped

          EXTENDS    NUMBER        Number of times rollback segment size is extended

          AVESHRINK  NUMBER        Average shrink size

          AVEACTIVE  NUMBER        Current size of active extents, averaged over time.

          STATUS     VARCHAR2(15)  Rollback segment status

          CUREXT     NUMBER        Current extent

          CURBLK     NUMBER        Current block

 

 

 

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

iWiz (2004-04-07 01:26:42)  
°áÈ¥ ÃàÇÏÇÕ´Ï´Ù! ¾ÕÀ¸·Îµµ À߸԰í Àß»ì±â¸¦... ¤»¤»
±Ùµ¥ Áú¹®ÀÌ Àִµ¥¿ä... undo ¼¼±×¸ÕÆ®¿Í ·Ñ¹é ¼¼±×¸ÕÆ®´Â ¾î¶»°Ô ´Ù¸¥Áö ¼³¸íÀ» ºÎŹµå·Á¿ä~
¹ÚÁã (2004-04-07 15:18:21)  
°á·ÐºÎÅÍ ¸»ÇÏ¸é °°Àº ÀÇ¹Ì ÀÔ´Ï´Ù. ¿À¶óŬ 8iÀÌÀü¿¡´Â ·Ñ¹é¼¼±×¸ÕÆ®¶ó´Â ¿ë¾î¸¦ ½è´Âµ¥, 9i·Î ³Ñ¾î¿À¸é¼­ ·Ñ¹é¼¼±×¸ÕÆ®¶ó´Â ¿ë¾î°¡ undo¼¼±×¸ÕÆ®·Î ¹Ù²î¾úÁö¿ä..
À̸§ÀÌ ´õ ¸ÚÀ־ ¹Ù²å³ª??(³­ ·Ñ¹é¼¼±×¸ÕÆ®°¡ ´õ ¸ÚÀִµ¥..¤»¤»)
iWiz (2004-04-07 16:16:08)  
À̸§ÀÌ ¹Ù²î°Ô µÈ °ÍÀ̱º¿ä. ¾Æ¸¶ ¿ë¾î¸¦ ´õ ½±°Ô ¹Ù²Ù°Ô µÈ °Í °°³×¿ä. ¾Æ¹«·¡µµ ·Ñ¹éÀ̶ó´Â ¿ë¾î´Â µ¥ÀÌÅͺ£À̽º¿¡¼­ ÁÖ·Î »ç¿ëµÇÁö¸¸, ¾ðµÎ´Â ±¤¹üÀ§ÇÑ ÇÁ·Î±×·¥¿¡¼­ »ç¿ëÁßÀÎ ¿ë¾îÀ̱⠶§¹®¿¡ Á» ´õ ½±°Ô ´Ù°¡°¥ ¼ö ÀÖÀ» °Ì´Ï´Ù.


22   ¿À¶óŬ ¹«·á °ü¸® ÅøÀÌ À־ ¼Ò°³ ÇÕ´Ï´Ù. [1]  ±è±â¿µ 2007/04/28 8292 0
21   ¿Ü¿öµµ ¿Ü¿öµµ ±î¸Ô´Â ¿À¶óŬ ÇÔ¼ö (¹Ø¿¡²¨ ÆÛ°¡´Â ´ë½Å ¤¾) [1]  ÀÌÁØÈ£ 2004/07/15 11955 43
20   Default Temporary Tablespace ¼öÁ¤  ¹ÚÁã 2004/05/03 8966 44
19   ¸®µÎ·Î±× ÆÄÀÏÀÇ drop / add / relocation ¹× rename  ¹ÚÁã 2004/04/22 7059 33
18   ¿À¶óŬ ±âº» ¸í·É¾î Á¤¸® [2]  iWiz 2004/04/07 9790 42
  ¿À¶óŬÀÇ 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 8166 31
13   LogMiner  ¹ÚÁã 2004/03/31 7341 39
12   ¿À¶óŬ¿¡¼­ÀÇ ¹é¾÷...  ¹ÚÁã 2004/03/30 6336 40
11   ¿À¶óŬÀÇ Constraint(Á¦¾àÁ¶°Ç)  ¹ÚÁã 2004/03/26 37576 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]