BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: °³¶óŬ Raw device ¼³°è¼­ Á¶È¸¼ö: 8498


http://www.dbguide.net/dbqa/dbqa120001.jsp?mode=view&divcateno=243&divcateno_=243&pg=3&idx=707

Raw device ¼³°è¼­
1. Á¤ÀÇ
RAW DEVICE ´Â CHARACTER DEVICE DRIVER ¸¦ »ç¿ëÇÏ´Â HW DEVICE ÀÌ´Ù.
1.1 RAW DEVICE ÀåÁ¡
lRAW DEVICE ´Â OS KERNEL ¿¡ÀÇÇØ BUFFERING ÀÌ µÇÁö¾Ê°í USER BUFFER ¿Í DEVICE °£¿¡ Á÷Á¢ DATA °¡ Àü¼ÛµÇ¹Ç·Î ORACLE DISK I/O ¼º´É Çâ»óµÇ°í CPU OVERHEAD °¡ °¨¼ÒµÈ´Ù.
l OS FILE SYSTEM ÀÇ OVERHEAD ¸¦ ÇÇÇÒ¼öÀÖ´Ù.
l OS BUFFER SIZE ¸¦ ÁÙÀϼö ÀÖ´Ù.

1.2 RAW DEVICE ´ÜÁ¡
l SETUP Çϱ⠾î·Æ°í BACKUP ÀýÂ÷°¡ FILE SYSTEM º¸´Ù º¹ÀâÇÏ´Ù.
l RAW DEVICE ¿Í OS FILE À» È¥ÇÕÇÏ¿© »ç¿ë ÇÒ°æ¿ì OS FILE Àº ulimit PARAMETER ÀÇ SIZE º¸´Ù ÀÛ¾Æ¾ß ÇÑ´Ù. µû¶ó¼­ ulimit ¸¦ ÃÊ°úÇÏ´Â TABLE µéÀº RAW DEVICE ¸¦ »ç¿ëÇÏ¿©¾ß ÇÑ´Ù.
l OS ´Â CYLINDER 0 À»º¸È£ÇÏÁö ¸øÇϱ⠶§¹®¿¡ ORACLE ÀÇÇØ »ç¿ëµÈ RAW PARTITION ´Â CYLINDER 0 ¿¡¼­ ½ÃÀÛÇÏ¸é ¾ÈµÈ´Ù.
1.3 Database¿¡¼­ RAW DEVICE À» »ç¿ëÇÏ´Â ÀÌÀ¯
µð½ºÅ©¿¡¼­ I/O´Â ´À¸° ¹Ý¸é¿¡ ¸Þ¸ð¸®¿¡¼­ÀÇ I/O´Â ¼Óµµ°¡ ÈξÀ ºü¸£´Ù.
±×·¸±â ¶§¹®¿¡ ÀϹÝÀûÀ¸·Î OS¿¡¼­´Â ÆÄÀϽýºÅÛ¿¡ Á¢±ÙÇÒ¶§ direct I/O°¡ ¾Æ´Ñ buffered I/O¸¦ ÇÑ´Ù. ±×·±µ¥ DBMSµéÀº ÀÚüÀûÀ¸·Î bufferingÀ» ÇÑ´Ù.

»ç¿ëÀÚ°¡ ¾î¶² µ¥ÀÌÅ͸¦ ¿øÇÒ¶§ ¸¶´Ù µð½ºÅ©¿¡¼­ I/O¸¦ Çϱ⠺¸´Ù´Â ¸ÕÀú ÀÏÁ¤·®À» ¸Þ¸ð¸®¿¡ ¿Ã·Á³õ°í ¸Þ¸ð¸®¿¡¼­ »ç¿ëÀÚ°¡ ¿øÇÏ´Â µ¥ÀÌÅ͸¦ °¡Á®¿À´Â °ÍÀÌ ºü¸£±â ¶§¹®ÀÌ´Ù. ÀÌ·± »óȲ¿¡¼­´Â OS°¡ ÇÏ´Â buffering°ú DBMS°¡ ÇÏ´Â buffering effort°¡ ÁßøµÇ¼­ ³¶ºñ°¡ µÇ´Â °æ¿ì°¡ ¹ß»ýÇÑ´Ù.

ÇöÀç¿¡ ¿Í¼­´Â Disk ¼º´ÉÀÇ ¸¹Àº °³¼±À¸·Îraw device¿Í File system°£ÀÇ ¿ì¿­À» °¡¸®±â Èûµé°Å³ª ¿ÀÈ÷·Á »óȲ¿¡ µû¶ó¼­´Â File systemÀ» ÀÌ¿ëÇÏ´Â °ÍÀÌ DBMS ÀÔÀå¿¡¼­ ÁÁÀº °æ¿ìµµ ÀÖ´Ù.

ÇÏÁö¸¸ ¾ÆÁ÷±îÁöµµ ´ë±Ô¸ð µ¥ÀÌÅÍÀÇ I/O¸¦ ÇÊ¿ä·Î ÇÏ´Â DBMSÀÇ °æ¿ì direct I/O¸¦ ÃßõÇÑ´Ù.

Âü°íÀûÀ¸·Î ´ëºÎºÐÀÇ Unix¿¡¼­´Â direct I/O¸¦ À§Çؼ­ ÆÄÀϽýºÅÛ°ú °°Àº cooked device (buffered) ÇØ´ç µð½ºÅ©ÀÇ ÆÄƼ¼Ç/º¼·ýÀ» Á÷Á¢ accessÇÒ ¼ö ÀÖ´Â raw device(non-buffered)¸¦ Á¦°øÇÑ´Ù.

1.4 RAW DEVICE SETTING ¹æ¹ý
l FREE DISK PARTITION ÀÇ À̸§À» °áÁ¤ÇÑ´Ù.
FREE PARTITION Àº OS FILE SYSTEM ¿¡ÀÇÇØ »ç¿ë µÃ°ÍÀÌ ¾Æ´Ï¾î¾ßÇÑ´Ù.
l ORACLE ÀÇ RAW DEVICE SETTING
$ chown oracle /dev/rdsk/c0s0d1
$ chmod 600 /dev/rdsk/c0s0d1
l »õ·Î¿î PARTITION À» Ãß°¡ÇÑ´Ù.
create database SID
logfile '?/dbs/log1.f' size 100K, '?/dbs/log2.f' size 100K
datafile '/dev/rdsk/c0s0d1' size 10000K reuse ;
alter tablespace tablespace_name add datafile
'/dev/rdsk/c0s0d2' size 10000K reuse ;

1.5 RAW DEVICE ÀÇ GUIDLINE
lREDO LOG FILE °ú DATABASE FILE À» ¼­·Î ´Ù¸¥ DRIVE ¿¡ ³õ´Â´Ù.
l´Ù¸¥ DRIVE ¿¡ ÀÚÁÖ »ç¿ëµÇ´Â TABLE À» ºÐ»ê½ÃŲ´Ù.
lTABLE °ú ±× TABLE ÀÇ INDEX ¸¦ ºÐ¸®ÇÑ´Ù.
lORACLE °ú OS I/O ¸¦ ºÐ¸®ÇÑ´Ù.

1.6 RAW DEVICE ÀÇ BACKUP ¹æ¹ý

RAW DEVICE ¸¦ OS FILE ·Î COPY Çϰųª TAPE ·Î Á÷Á¢ COPY Çϰųª ¸ðµÎ dd ¸¦ »ç¿ëÇÏ¿©¾ß ÇÑ´Ù. TAPE ·Î COPY Çϴµ¥ ÇϳªÀÇ RAW DEVICE ¸¦ ¿©·¯°³ TAPE ¿¡ COPY °æ¿ì´Â ´ÙÀ½°ú °°´Ù.

ù¹ø° TAPE
$ dd if=/dev/rdsk/c0s0d1 of=/dev/rst0 bs=20k count=10000

µÎ¹ø° TAPE
$ dd if=/dev/rdsk/c0s0d1 skip=10000 of=/dev/rst0 bs=20k count=10000

°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2007/02/28 13:46 from 218.38.35.251

  exp°¡ ¾ÈµÉ¶§ ¸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ Opatch ¹æ¹ý  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡