JAKARTAPROJECT
JAKARTA TIPJSP TIPJSP Áú¹®&´äº¯DATABASE TIPJAVASCRIPT TIPWEBHACKING TIP±âŸ TIP
µ¥ÀÌÅͺ£À̽º ÆÁ
µ¥ÀÌÅͺ£À̽º ÆÁ
µ¥ÀÌÅͺ£À̽º ÆÁ °Ô½ÃÆÇ ÀÔ´Ï´Ù
Table, Index size °è»ê
GoodBug
À̹ÌÁö ½½¶óÀÌ´õ º¸±â

------------------------------------------------------
TABLE SIZE °è»ê °ø½Ä(ORACLE BLOCK SIZE : 2K ·Î °¡Á¤)
------------------------------------------------------
$ sqlplus scott/tiger
SQL> SELECT   GREATEST(4, ceil(ROW_COUNT /
              ((round(((1958 - (initrans * 23)) *
              ((100 - PCTFREE) /100)) / ADJ_ROW_SIZE)))) * BLOCK_SIZE)
              TableSize_Kbytes
     FROM dual;

*. ÇÑ °³ÀÇ BLOCK¿¡ Available ÇÑ Bytes - 1958
*. °¢ initrans ´Â 23 Bytes
*. PCT_FREE : Table ÀÇ pctfree °ª(default 10)
*. ADJ_ROW_SIZE : °¢ row ÀÇ Æò±Õ SIZE ÃßÁ¤Ä¡
*. ROW_COUNT : table ÀÇ row ÀÇ °¹¼ö
*. BLOCK_SIZE : 1 blockÀÇ Å©±â (´ÜÀ§: K)

¿¹) table À̸§ÀÌ EMP ÀÏ °æ¿ì

ROW_COUNT : select count(*) from emp;

ADJ_ROW_SIZE : analyze table emp compute statistics;
               (¶Ç´Â °Ç¼ö°¡ ¸Å¿ì ¸¹À» ¶§¿¡´Â compute ´ë½Å estimate »ç¿ë)

               select avg_row_len
               from user_tables
               where table_name='EMP';

---------------------
INDEX SIZE °è»ê °ø½Ä
---------------------
SQL> SELECT   GREATEST(4, (1.01) * ((ROW_COUNT /
              ((floor(((2048 - 113 - (initrans * 23)) *
              (1 - (PCTFREE/100))) /
              ((10 + uniqueness) + number_col_index +
              (total_col_length)))))) * DB_BLOCK_SIZE))
              IndexSize_Kbytes
     FROM dual;

*. ÇÑ °³ÀÇ block¿¡ available ÇÑ bytes ( 1935 or 2048 - 113 )
*. °¢ initrans ´Â 23 Bytes
*. ROW_COUNT : table ÀÇ row ÀÇ °¹¼ö
*. PCTFREE : Index ÀÇ pctfree °ª(default 10)
*. number_col_index : Index ¿¡¼­ column ÀÇ ¼ö
*. total_col_length : Index ÀÇ ±æÀÌ ÃßÁ¤Ä¡
*. uniqueness : ¸¸ÀÏ unique index À̸é 1, non-unique index À̸é 0.
*. DB_BLOCK_SIZE : 1 blockÀÇ Å©±â (´ÜÀ§: K)

from http://devworld.co.kr

2005-06-22 18:35:15
211.189.124.***

 

ÁÁÀº»ý°¢ ^^

0Á¡ (0¸í)
µ¡±Û 0°³ | ÅÂ±× 0°³ | °ü·Ã±Ûº¸±â
ű×ÀÔ·Â
½±Ç¥(,)±¸ºÐÀ¸·Î Çѹø¿¡ ¿©·¯ ű׸¦ ÀÔ·ÂÇÒ¼ö ÀÖ½À´Ï´Ù
À̸§ ºñ¹Ð¹øÈ£
µ¥ÀÌÅͺ£À̽º ÆÁ
µ¥ÀÌÅͺ£À̽º ÆÁ °Ô½ÃÆÇ ÀÔ´Ï´Ù
! ¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ÀÏÀÚ Á¶È¸
181 import DB ºÎºÐÀûÀÎ µ¥ÀÌÅÍ export / import ¹æ¹ý 2 kaiser 2008-12-29 7,795
180 NOT IN NOT EXISTS not in °ú not existsÀÇ °³³ä ÀÌÇØ 1 kaiser 2008-12-17 19,574
179 IP Á¢¼ÓÀÚ ¾ÆÀÌÇÇ º¸±â 1 GoodBug 2008-06-27 9,451
178 meta ¿À¶óŬ ½ºÅ°¸¶ ½ºÅ©¸³Æ® ¹Þ±â 1 GoodBug 2008-06-05 19,843
177 ORA-00054 ORA-00054: resource busy and acquire with NOWAIT specified 1 GoodBug 2007-10-27 13,058
176 ÇÑ±Û MYSQL ¼­¹ö ij¸¯¼ÂÀÌ EUCKRÀÌ ¾Æ´Ò°æ¿ì Ŭ¶óÀ̾ðÆ® ¼³Á¤ 1 GoodBug 2007-10-09 8,344
175 archive ¾ÆÄ«ÀÌºê ¼º´É Çâ»ó 1 GoodBug 2007-10-02 7,939
174 Dictionary Dict table 1 GoodBug 2007-10-02 7,224
173 ¿À¶óŬƩ´× redo log file ±¸¼º ¸ð´ÏÅÍ 1 GoodBug 2007-09-20 7,905
172 dictionary ÀÚÁÖ¾²´Â µñ¼Å³Ê¸® Á¤º¸ 1 1 GoodBug 2007-09-20 8,352
171 TableSpace Tablespace º° »ç¿ë·® È®ÀÎ 1 GoodBug 2007-09-20 8,766
170 ¿À¶óŬ üũÆ÷ÀÎÆ® °ü·Ã ÆĶó¹ÌÅÍ 2 GoodBug 2007-09-20 7,420
169 ¿À¶óŬƩ´× Å×ÀÌºí ½ºÄµ Åë°è 1 GoodBug 2007-09-19 7,265
168 ¿À¶óŬƩ´× v$filestat·Î µð½ºÅ© I/O ¸¦ È®ÀÎÇغ¸ÀÚ 1 GoodBug 2007-09-19 10,248
167 ¿À¶óŬƩ´× ORA-04031 ¿¡·¯ ´ëó¹ý ¹× ¿¹¹æ¹ý 1 GoodBug 2007-09-17 13,717
166 ¿À¶óŬƩ´× DB_FILE_MULTIBLOCK_READ_COUNT 1 GoodBug 2007-09-17 7,272
165 TableSpace TableSpace °ü¸® (Dictionary, Locally) 1 GoodBug 2007-09-16 7,774
164 ¿À¶óŬƩ´× ¹®Á¦ÇØ°á ¹× Æ©´× °ü·Ã ºä 2 GoodBug 2007-09-16 7,698
163 segment ¿À¶óŬ SEGMENT 1 GoodBug 2007-09-16 8,628
162 startup ¿À¶óŬ startup½Ã ´Ü°èº° ¿ÀÇ ÆÄÀÏ 1 GoodBug 2007-09-16 7,531
copyright 2005-2024 by Unicorn