target=_blank>http://iweb.ok.ac.kr/%7Ekjh/bbs/zboard.php?id=jh4&no=16
Oracle 9i Install
1. ÀÏ´Ü root±ÇÇÑÀ¸·Î ÇØ¾ß ÇÏ´Â ÀÛ¾÷
dba ±×·ìÀ» »ý¼ºÇÑ´Ù
# groupadd -g 5000 dba
oracle À¯Àú »ý¼º
# useradd oracle -g dba -s /bin/bash
oracle À¯Àú Æнº¿öµå ÁöÁ¤
# passwd oracle
2. ¿À¶óŬ 9i¸¦ ¶§·Á¹Þ´Â´Ù
http://otn.oracle.com ¿¡¼ oracle9i Database¸¦ ¹Þ´Â´Ù
ÃÑ 3ÀåÀÇ Disk·Î ±¸¼º µÇ¾îÀÖ´Ù
¼³Ä¡µµÁß¿¡ ¸ðµÎ ¿ä±¸µÇ¹Ç·Î ¸ðµÎ ¹Þ±â¸¦ ¹Ù¶õ´Ù
À̶§ ¹ÞÀ» ¶§ oracle °èÁ¤À¸·Î ·Î±äÇÏ¿© ¹Þ±â ¹Ù¶õ´Ù(±ÇÇÑ ¹®Á¦°¡ ¹ß»ýÇÒ ¼ö ÀÖÀ¸¹Ç·Î)
lnx_920_disk1.cpio.gz
lnx_920_disk2.cpio.gz
lnx_920_disk3.cpio.gz
ÀÌ·¸°Ô 3°³ÀÇ ÆÄÀÏÀ» ¹Þ¾ÒÀ» °ÍÀÌ´Ù
´ÙÀ½°ú °°Àº ¸í·ÉÀ¸·Î ÀÏ´Ü cpio ÆÄÀÏ·Î ¾ÐÃàÀ» ÇØÁ¦½ÃŲ´Ù
# gunzip lnx_920_disk1.cpio.gz
# gunzip lnx_920_disk2.cpio.gz
# gunzip lnx_920_disk3.cpio.gz
cpio ÆÄÀÏ·Î º¯È µÇ¾îÀÖÀ» °ÍÀÌ´Ù
À̸¦ ´Ù½Ã ´ÙÀ½°ú °°Àº ¸í·ÉÀ¸·Î ¾ÐÃàÀ» ÇØÁ¦ÇÑ´Ù
# cpio -idmv <lnx_920_disk1.cpio
# cpio -idmv <lnx_920_disk2.cpio
# cpio -idmv <lnx_920_disk3.cpio
¾Æ·¡¿Í °°Àº µð·ºÅ丮°¡ »ý¼ºµÇ¾î ÀÖÀ» °ÍÀÌ´Ù
Disk1
Disk2
Disk3
3. ÀÌÁ¨ ȯ°æº¯¼ö¸¦ ¼³Á¤ÇØ º¸ÀÚ
oracle °èÁ¤À¸·Î ·Î±äÇÑÈÄ ÀÛ¾÷ÇØ¾ß ÇÑ´Ù
/home/oracle/.bash_profile ÆÄÀÏ¿¡ Ãß°¡ÇÑ´Ù
# vi /home/oracle/.bash_profile
## Environment variables for Oracle
export ORACLE_HOME=/home/oracle/
export NLS_LANG=AMERICAN_AMERICA.KO16KSC5601
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
export ORACLE_SID=RAC1
##CLASSPATH must include the following JRE locations:
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
:wq
4. ÀÌÁ¨ ¿À¶óŬ9i¸¦ ÀνºÅç Çغ¸ÀÚ
¿À¶óŬ9i¼³Ä¡ ÆÄÀÏÀÌ ÀÖ´Â µð·ºÅ丮¿¡¼ runInstaller ÆÄÀÏÀ» ½ÇÇà½ÃÄѼ ÀνºÅçÀ» ½ÃÀÛÇÑ´Ù
# ./runInstaller
- Inventory Location ȸéÀÌ ³ª¿Â´Ù
½Ã½ºÅÛ¿¡ ¿À¶óŬÀ» óÀ½ ÀνºÅçÇÒ ¶§ ¹°¾îº¸´Â ȸéÀ¸·Î ÀνºÅç ÆÄÀÏ¿¡ ´ëÇÑ ±âº» µð·ºÅ丮¿¡ ´ëÇÑ À§Ä¡¸¦ ¹°¾îº»´Ù.
À§Ä¡¸¦ ÁöÁ¤ÇÏ°í (OK)¸¦ ¼±ÅÃÇÏ¿© ´ÙÀ½À¸·Î ÁøÇàÇÑ´Ù
- Unix Group Name ȸéÀÌ ³ª¿Â´Ù
½Ã½ºÅÛ¿¡ ¿À¶óŬ ¼ÒÇÁÆ®¿þ¾î¸¦ ¼öÁ¤Çϱâ À§ÇÑ ±ÇÇÑ À» ¾ò±â À§ÇÑ Unix Group NameÀ» ¹°¾îº¸´Â ȸéÀÌ´Ù.
dba¸¦ ÀÔ·ÂÇÑ ÈÄ Next¸¦ ¼±ÅÃÇÏ¿© ´ÙÀ½À¸·Î ÁøÇàÇÑ´Ù
- OrainstRoot.sh ȸéÀÌ ³ª¿Â´Ù
´Ù¸¥ À©µµ¿ìâ¿¡¼ root°èÁ¤À¸·Î
# /tmp/orainstRoot.sh ¸¦ ¼öÇàÇÏ°í Continue¸¦ ¼±ÅÃÇÑ´Ù
- File Location ȸé
¼³Ä¡ÇÒ Á¦Ç°ÀÌ µé¾î ÀÖ´Â À§Ä¡¸¦ ÁöÁ¤ÇÏ°í Á¦Ç°ÀÌ ¼³Ä¡µÉ ORACLE_HOME µð·ºÅ丮¸¦ ÁöÁ¤ÇÑ ´ÙÀ½ Next ¹öÆ°À» ¼±ÅÃÇÏ¿©
´ÙÀ½À¸·Î ÁøÇàÇÑ´Ù.
Âü°í·Î ORACLE_BASE¶ó´Â ȯ°æº¯¼ö¸¦ ÁöÁ¤ÇÑ °æ¿ì¿¡´Â Path: ºÎºÐ¿¡ ORACLE_BASEÀÇ È¯°æº¯¼ö °ªÀÌ ÀÚµ¿À¸·Î Ç¥½ÃµÇ¹Ç·Î ÀÌ º¯¼ö °ª ´ÙÀ½¿¡ ÇØ´ç °æ·Î(¿¹:/home/ora815)¸¦ Ãß°¡ÇÏ¸é µÈ´Ù.
Ç¥½ÃµÈ °ªÀ» È®ÀÎÇÏ°í (OK)¸¦ ¼±ÅÃÇÑ ÈÄ ´ÙÀ½À¸·Î ÁøÇàÇÑ´Ù
- Available Products ¼±Åà ȸé
µ¥ÀÌÅͺ£À̽º¸¦ ±¸¼ºÇϱâ À§Çؼ´Â Oracle9i 9.0.1.0.0À» ¼±ÅÃÇÑ´Ù. Client/Serverȯ°æ±¸ÃàÀ» ¿øÇÏ´Â °æ¿ì¿¡´Â µ¥ÀÌÅͺ£À̽º ±¸¼ºÀÌ ³¡³ ´ÙÀ½ Client·Î »ç¿ëÇÒ ½Ã½ºÅÛ¿¡¼ OUI¸¦ »ç¿ëÇÏ¿© Oracle9i Client¸¦ ¼³Ä¡ÇÑ´Ù.
Product Language¸¦ ¼±ÅÃÇÑ´Ù
- Product Language ¼±Åà ȸé
»ç¿ëÇÒ ¾ð¾î¸¦ ¼±ÅÃÇÑ´Ù. ÁÂÃøÀÇ ¸®½ºÆ® ¾È¿¡¼ KoreanÀ» ¼±ÅÃÇÑ ÈÄ >¸¦ ¼±ÅÃÇÑ ÈÄ OK¸¦ ÇÑ´Ù.
Next ¸¦ ¼±ÅÃÇÑ´Ù
- Installation Types ¼±Åà ȸé
TypicalÀ» ¼±ÅÃÇÏ¸é °¢Á¾ ¼ÒÇÁÆ®¿þ¾î ¹× µ¥ÀÌÅͺ£À̽º¸¦ »çÀü¿¡ ±¸¼ºµÈ ÇüÅ·Π¼³Ä¡ÇØ ÁØ´Ù. MinimalÀº ÃÖ¼ÒÇÑÀÇ µ¥ÀÌÅͺ£À̽º ±â´É¸¸À» »ç¿ëÇÏ°íÀÚ ÇÒ ¶§ ¼±ÅÃÇÏ¸é µÈ´Ù. »ç¿ëÀÚ°¡ ¿øÇÏ´Â ÇüÅ·Π¿©·¯ °¡Áö ȯ°æÀÇ ¼¼ºÎÀûÀÎ ±¸¼ºÀ» ÇÏÀÚ¸é CustomÀ» ¼±ÅÃÇÑ´Ù. ¿©±â¿¡¼´Â ORACLE 9i RAC¸¦ ¼³Ä¡Çϱâ À§Çؼ´Â ¹Ýµå½Ã CustomÀ» ¼±ÅÃÇÏ¿©¾ß ÇÑ´Ù
- Available Product Components ȸé
¼³Ä¡¸¦ ¿øÇÏ´Â Á¦Ç°¿¡ üƮ¸¦ ÇÑ´Ù. Á¦Ç°¿¡ ´ëÇÑ ¼³¸íÀº ¸¶¿ì½ºÆ÷ÀÎÅ͸¦ °¡±îÀÌ °¡Á®°¡¸é À§ÀÇ ³ë¶õ ¹Ú½º¿¡¼Ã³·³ Ç¥½Ã°¡ µÈ´Ù. ¿À¶óŬ 9i RAC¸¦ ¼³Ä¡ Çϱâ À§Çؼ Oracle 9i Real Application Clusters 9.0.1.0.0À» ¼±ÅÃÇÑ´Ù.
Enterprise Oracle Management Server´Â ¼±ÅÃÇÏÁö ¾Ê´Â´Ù. ¼³Ä¡ Áß repository¿¡ »ý¼º¿¡ °üÇÏ¿© ¹¯´Âµ¥ Database¸¦ ³ªÁß¿¡ »ý¼ºÇϱ⠶§¹®¿¡ »ý¼ºÇÒ ¼ö ¾ø´Ù
- Component Locations ȸé
ÀÌ È¸é¿¡ Ç¥½ÃµÈ ±¸¼º ¿ä¼ÒµéÀº ¿øÇÏ´Â À§Ä¡¿¡ ¼³Ä¡ ÇÒ ¼ö ÀÖ´Ù. Ưº°ÇÑ °æ¿ì°¡ ¾Æ´Ï¸é ±×³É Next¸¦ ´·¯ ÁøÇàÇϵµ·Ï ÇÑ´Ù
- Shared Configuration File Name ÀԷ ȸé
Oracle 9i RAC¸¦ À§ÇØ ¹Ì¸® Á¤ÀǵǾî ÀÖ´Â quorumÀ¸·Î Á¤ÀǵǾî ÀÖ´Â raw device¸íÀ» ÀÔ·ÂÇÑ ÈÄ Next¸¦ ¼±ÅÃÇÑ´Ù
- Cluster Nodes Selection
Oracle 9i RAC°¡ ¼³Ä¡µÉ node¸¦ ÀÔ·ÂÇÏ¸é µÈ´Ù. ±×·¯¸é Primary node¿¡ software ¼³Ä¡ÇÑ ÈÄ ´Ù¸¥ node¿¡ software¸¦ ¼³Ä¡ÇÑ´Ù. ´Ù¸¥ node¸íÀ» ÀÔ·ÂÇÑ ÈÄ Next¸¦ ¼±ÅÃÇÑ´Ù.
¹°·Ð »çÀü¿¡ ´Ù¸¥ node¿¡ rcp³ª rshÀÇ ¸í·É¾î°¡ Á¤»óÀûÀ¸·Î ¼öÇàµÇ¾î¾ß ÇÑ´Ù
-Privileged Operating System Groups ȸé
µ¥ÀÌÅͺ£À̽º¸¦ »ý¼ºÇϱâ À§Çؼ OS»óÀÇ ÀÎÁõÀ» ¾ò±â À§ÇÑ GROUP ¸íÀ» ÀÔ·ÂÇϴ ȸéÀÌ´Ù. DBA¸¦ ÀÔ·ÂÇÑ ÈÄ NEXT¸¦ ¼±ÅÃÇÑ´Ù
- JDK Home Directory ȸé
½Ã½ºÅÛ¿¡ ¼³Ä¡µÈ JDKÀÇ À§Ä¡¸¦ ÀÔ·ÂÇÑ´Ù. ÀÔ·ÂÇÑ ÈÄ Next¸¦ ¼±ÅÃÇÑ´Ù
- Summary ȸé
¼³Ä¡ÇÒ Á¦Ç°°ú °¢Á¾ °ü·Ã Á¤º¸°¡ Àϸñ¿ä¿¬ÇÏ°Ô Ç¥½ÃµÈ´Ù. À߸øµÈ °ÍÀÌ ÀÖÀ¸¸é ÀÌÀüÀ» ´·¯ ¼öÁ¤ÇÑ ´ÙÀ½ ÁøÇàÇÑ´Ù
- Install ȸé
ÀνºÅç ÀÛ¾÷ÀÌ ÁøÇàµÈ´Ù
- Cdrom change ȸé
ÀνºÅç °úÁ¤¿¡¼ ´Ù¸¥ CD¸¦ ¿ä±¸ÇÏ´Â µ¥ À̸¦ À§Çؼ´Â (/mnt¿¡ mount µÇ¾ú´Ù°í °¡Á¤)
#umount /mnt or eject (Auto mountÀÎ °æ¿ì)
#mount /dev/cdrom /mnt
ÀÌ ¹®¼¸¦ º¸°í óÀ½ºÎÅÍ µû¶óÇÑ »ç¶÷À̶ó¸é Disk2 µð·ºÅ丮¸¦ ÁöÁ¤ÇÏ¸é µÈ´Ù
À§ÀÇ ÀÛ¾÷À» ´Ù¸¥ â¿¡¼ ¼öÇàÇÑ ÈÄ °è¼Ó OK¸¦ ¼±ÅÃÇÏ¸é µÈ´Ù
- Setup Privileges ȸé
´Ù¸¥ â¿¡¼ root.sh script¸¦ root ±ÇÇÑÀ» °¡Áö°í ¼öÇà½ÃÄÑ ÁØ´Ù. ¸¸¾à µð·ºÅ丮°¡ ¾ø´Ù´Â ¸Þ½ÃÁö¸¦ º¸À̸é /var/opt/oracle direcory¸¦ »ý¼ºÇÑ ÈÄ chown ¸¦ ÀÌ¿ëÇÏ¿© owner¿Í groupÀ» º¯°æÇÑÈÄ root.sh script¸¦ ¼öÇàÇÑ´Ù. ±×¸®°í OK¸¦ ¼±ÅÃÇÑ´Ù.
# mkdir /var/opt/oracle
# chown oracle:dba /var/opt/oracle
# cd $ORACLE_HOME
#./root.sh
- End of Installation
Oracle Software installÀÌ ¿Ï·á µÇ¾ú½À´Ï´Ù. ´Ù¸¥ ¼ÒÇÁÆ®¿þ¾î¸¦ Install Çϱâ À§Çؼ´Â Next InstallÀ» ¼±ÅÃÇÏ°í ´õ ÀÌ»óÀÇ ¼³Ä¡°¡ ¾øÀ» ¶§¿¡´Â Exit¸¦ ¼±ÅÃÇÏ°í Á¾·áÇÑ´Ù
|