B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-27 Friday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  Go Unix Power Tools Online Book Go Bash Guide
Read No. 24 article 2001-08-13 05:42:54
NickName   Ç®ºñ´©
Subject   Oracle 8.1.7 for HANCOM LINUX 2.0
±Û¾´ÀÌ: Azac

·¹µåÇò 7.1À» ÇѱÛÈ­ Çؼ­ ¿À¶óŬÀ» ¼³Ä¡ÇÏ·Á Çߴµ¥.. ÇѱÛÈ­ ÇÏ´Ï OS°¡ ³Ê 
¹« ¹«°Ì°Ô ´À²¸Á®¼­(¹» À߸øÇß´ÂÁö --a) ÇÑÄÄ ¸®´ª½º¿¡ ¿À¶óŬ ¼³Ä¡¸¦ ¸· ³¡ 
³»°í ±ÛÀ» ¿Ã¸®°Ô µÇ¾ú½À´Ï´Ù. ÀÌ°÷ Àú°÷¿¡¼­ ¸ðÀº ÀڷḦ Åä´ë·Î ÇÑÄÄ ¸®´ª 
½º¿¡¼­ ¼³Ä¡ÇØ º¸¾Ò½À´Ï´Ù. Á¦ÀÏ ¸¹ÀÌ ÂüÁ¶ÇÑ°ÍÀº WOW LINUX 7.0¿¡ ORACLE 8 
i ¼³Ä¡Çϱ⿴´Âµ¥ ¾îµð¼­ ÀڷḦ ã¾Ò´ÂÁö ±â¾ïÀÌ °¡¹°°¡¹°.. Çã¶ô¾øÀÌ ±ÛÀ» 
ÆÛ´Ù ³õ¾Ò´Ù¸é À̸éÀ» ºô¾î Á˼ÛÇÏ´Ü ¸»¾¸µå¸®°í¿ä.Çã¶ôÀ» ¹ÞÀ¸·Á Çص¿ ¾îµð 
¼­ °¡Á®¿Ô´ÂÁö ±â¾ïÀÌ..Åë..^^;; 
±×¸®°í ÀÌ ¼³Ä¡´Â Test¸¦ ¹æ±Ý ¸¶Ä£ µû²öµû²öÇÑ Á¤º¸ ÀÔ´Ï´Ù. 
8i¶ó¸é ÀÌ ¼³Ä¡°úÁ¤À» ±×´ë·Î µû¸£¸é µÉ°ÍÀ̶ó »ý°¢µÇ°í¿ä. redhat7.1¿¡¼­µµ 
ÀÌ°úÁ¤À» µû¸£¸é ¾Æ¸¶µÎ µÇÁö ¾ÊÀ»±î... ÇÏ´Â »ý°¢ÀÔ´Ï´Ù. 

±×¸®°í ÃßÇåÁø´Ô²²¼­ ¸Çµå·¹ÀÌÅ© 8.0 °ú °ü·ÃÇÏ¿© ¸Çµå·¹ÀÌÅ© »ç¿ëÀÚµéÀº 
glibcÀÇ ¾÷µ¥ÀÌÆ®°¡ ÇÊ¿äÇÏ´Ù°í ¾Ë·ÁÁּ̽À´Ï´Ù.¸Çµå·¹ÀÌÅ© ȨÆäÀÌÁö¿¡¼­ 
¿À¶óŬ¼³Ä¡¿Í °ü·ÃÇÑ ¾÷µ¥ÀÌÆ® ÆÄÀÏÀ» ´Ù¿î¹Þ¾Æ¼­ ¼³Ä¡ÇϽðí ÇØ°áÇϼ̴٠
°í ¸ÞÀÏ º¸³»Áּ̽À´Ï´Ù. °¨»çÇÕ´Ï´Ù. 

±×¸®°í db»ý¼º½Ã ÇÊ¿äÇÑ °ø°£¿¡ ´ëÇؼ­µµ ¸»¾¸ÇØ Á̴ּµ¥..dbassist¿¡¼­ 
db°ü·Ã ÆÄÀÏÅ©±â¸¦ »ç¿ëÀÚ°¡ ÁöÁ¤ÇØ ÁÖ½É µË´Ï´Ù. ÀÓÀÇ·Î ¿À¶óŬÀ» °øºÎ 
ÇÏ´Â ¸ñÀûÀ̶ó¸é db°¡ ±×¸® Ŭ ÇÊ¿ä´Â ¾øÀ¸¸®¶ó »ý°¢µË´Ï´Ù. µðÆúÆ®·Î ÀÛ 
¾÷ÇϽŴٸé db¸¦ À§ÇØ 1GÁ¤µµÀÇ ¿©À¯´Â °¡Áö½Ã´Â°Ô ÁÁÀ¸¸®¶ó »ý°¢µË´Ï´Ù. 
¿À¶óŬ tar ÆÄÀϺÎÅÍ ½ÃÀÛÇؼ­ ¾ÐÃàÀ» ǬÈÄ ÆÄÀϱîÁö »ý°¢ÇϽŴٸé..2GÀÌ 
»ó ÇÊ¿äÇÏ°ÚÁÒ.. ÀúÀÇ °æ¿ì´Â ³ëÆ®ºÏ¿¡ ±×³É °øºÎÇÒ ¸ñÀûÀ¸·Î ±ò¾Ò±â ¶§¹® 
¿¡ ¸®´ª½º ÆÄƼ¼ÇÀ» 3.5G·Î Àâ¾Æ ÀÌ°ÍÀú°Í ¼³Ä¡ÇÏ´Ùº¸´Ï..^^;; dbassist 
ÇϱâÀü¿¡ tarÆÄÀÏ ¾ÐÃà Ǭ ÆÄÀÏ ´Ù Áö¿ì°í db¸¦ ¸¸µé¾ú½À´Ï´Ù. ¹°·Ð µðÆú 
Æ® Å©±âº¸´Ù ÁÙ¿©¼­¿ä ^^. ¾÷¹«¿ëÀ¸·Î »ý°¢ÇϽô ºÐµéÀº µð½ºÅ©¸¦ µû·Î 
µÎ½Ã¸®¶ó »ý°¢µÇ±â ¶§¹®¿¡ À̺κÐÀº °³ÀÎÀÌ ¿¬½ÀÇϽǶ§ ÇØ´çÇÏ°ÚÁÒ.. 
¿©´ãÀÌ¿´½À´Ï´Ù. 

============================================================= 
¼³Ä¡ ¼ø¼­ 
------------------------------------------------------------- 
1. JDK1.1.8 ¼³Ä¡ 
2. glibc 2.1 ¼³Ä¡- gcc, cc, ld ¹× libÆÄÀÏ º¯°æ 
3. oracle °èÁ¤ ¹× dba ±×·ì »ý¼º 
4. oracle ȯ°æº¯¼ö ¼³Á¤ 
5. oracle tar file Ç®±â 
6. oracle ¼³Ä¡ ¹× À缳ġ 
7. ¹ö±× ÆÐÄ¡ ÈÄ dbcreat.sh »ý¼º 
8. initSID.ora ÆÄÀÏÀÇ mts_dispatchers ºÎºÐ ÁÖ¼®Ã³¸® 
9. shell script¸¦ ½ÇÇàÇÏ¿© database »ý¼º 
10. adapters oracleÀ̶ó´Â ¸í·ÉÀ¸·Î SID¿¡ ¸µÅ©µÈ ÇÁ·ÎÅäÄÝ È®ÀÎ 
11. relink all À̶ó´Â ¸í·ÉÀ¸·Î ÆÄÀÏ¿¬°á À籸¼º 
12. svrmgrl À» ½ÇÇàÇؼ­ startup ¹× shutdown Å×½ºÆ® 
13. ¸®½º³Ê ±¸¼º ¹× ±¸µ¿ 
14. svrmgrl¿¡¼­ »ç¿ëÀÚ Ãß°¡ ¹× ±ÇÇÑ ¼³Á¤ 
15. sqlplus USERID/PASSWORD ·Î Á¢¼Ó È®ÀÎ 
16. glibc µÇµ¹¸®±â. 

------------------------------------------------------------- 
¡Ø Âü°í»çÇ× 
$ ·Î ½ÃÀÛÇÏ´Â ¸í·ÉÀº ¼³Ä¡Áß ¸¸µé oracle °èÁ¤À¸·Î ÇÏ´Â °ÍÀÓ 
# ·Î ½ÃÀÛÇÏ´Â ¸í·ÉÀº root °èÁ¤À¸·Î ÇÏ´Â °ÍÀÓ 
------------------------------------------------------------- 
jdk118_v3-glibc-2.1.3.tar.bz2 
i386-glibc-2.1-linux.tar.gz 
linux81701.tar 
Áغñ. 
------------------------------------------------------------- 
1. JDK1.1.8 ¼³Ä¡ 
------------------------------------------------------------- 
# /usr/local 
# su - root 
# cd /usr/local 
# tar -xvIjf jdk118_v3-glibc-2.1.3.tar.bz2 
# ln -s /usr/local/jdk118_v3 /usr/local/java 

8.1.7¹öÀü¿¡¼­´Â /usr/local/java µð·ºÅ丮¸¦ »ç¿ëÇÑ´Ù. 

------------------------------------------------------------- 
2. glibc 2.1 ¼³Ä¡- gcc, cc, ld ¹× libÆÄÀÏ º¯°æ 
------------------------------------------------------------- 
Oracle8i´Â glibc 2.1ÀÌ ¹Ýµå½Ã ÇÊ¿äÇÏ´Ù. 2.2¿¡¼­´Â Oracle DB »ý¼º¿¡ ÀÖ¾î 
¼­ ¸µÅ©ÀÇ ¹®Á¦°¡ ¹ß»ýÇÏ¿© Á¦´ë·Î DB »ý¼ºÀÌ µÇÁö ¾Ê´Â´Ù.glibc 2.2¿¡¼­ »ç 
¿ëÇÏ´Â gcc, cc, ld¸¦ glibc 2.1·Î ´ëÄ¡ÇÏ´Â ÀÛ¾÷ÀÌ ÇÊ¿äÇÏ°í, Oracle DB »ý 
¼º ÈÄ µÇµ¹¸± ¼ö ÀÖ´Ù. 

# cd /usr 
# tar -xfz i386-glibc-2.1-linux.tar.gz 

# cd /usr/bin 
# mkdir backup 
# mv gcc cc ld backup 
# ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-gcc gcc 
# ln -s gcc cc 
# ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-ld ld 

(¸µÅ©¸¦ ²À È®ÀÎÇ϶ó.) 

# cd /usr/lib 
# mkdir backup 
# mv libc.so libdl.so libm.so libpthread.so backup 
# mv libc.a libdl.a libm.a libpthread.a backup 
 
¡Ø DB¸¦ »ý¼ºÇÑ ÈÄ ¿ø·¡´ë·Î µÇµ¹·Á ³õÀ»°ÍÀÌ´Ù. 

------------------------------------------------------------- 
3. oracle °èÁ¤ ¹× dba ±×·ì »ý¼º 
------------------------------------------------------------- 

# groupadd -g 5000 dba 
# adduser -g dba oracle 
# passwd oracle (¿øÇÏ´Â ºñ¹Ð¹øÈ£ÀÔ·Â) 

------------------------------------------------------------- 
4. oracle ȯ°æº¯¼ö ¼³Á¤ 
------------------------------------------------------------- 
# su oracle 
$ cd 
$ vi .bash_profile (¾Æ·¡ÀÇ ³»¿ëÀ» Ãß°¡) 

export ORACLE_BASE=/oracle/app/oracle 
export ORACLE_HOME=$ORACLE_BASE/product/8.1.7 
export ORACLE_OWNER=oracle 
export ORACLE_SID=oracle 
export TMPDIR=$ORACLE_BASE/tmp 
export PATH=.:$ORACLE_HOME/bin:/usr/local/java/bin:$PATH 
export TNS_ADMIN=$ORACLE_HOME/network/admin 
export NLS_LANG=American_America.KO16KSC5601 
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data 
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH 
export LANG=C 
umask 022 

¡Øexport LANG=C¸¦ ÇÏÁö ¾ÊÀ¸¸é Net8 ¼³Ä¡½Ã È­¸éÀÇ ±ÛÀÚ°¡ ¾Èº¸ÀÓ 

------------------------------------------------------------- 
5. oracle tar file Ç®±â 
------------------------------------------------------------- 

¼³Ä¡½Ã oracle °èÁ¤¿¡¼­ ÇؾßÇÔÀ¸·Î..¼ÒÀ¯±Çº¯°æÈÄ Ç®±â. 
# mkdir /backup 
# mv linux81701.tar /backup (ÀڽŸ¸ÀÇ µð·ºÅ丮) 
# chown oracle.dba linux81701.tar 
# tar -xvf linux81701.tar (Disk1 µð·ºÅ丮¿¡ ¿À¶óŬ ¼³Ä¡ ÆÄÀϵéÀÌ Ç®¸°´Ù) 

------------------------------------------------------------ 
6. oracle ¼³Ä¡ ¹× À缳ġ 
------------------------------------------------------------- 
¡Ø logoutÈÄ oracle °èÁ¤À¸·ÎÀ¸·Î ·Î±×ÀÎÇÑ´Ù.(su - oracle Çصµ µÊ) 

$ su - 
 root pass ÀÔ·Â 
# mkdir /oracle/app/oracle/oraInventory -p 
# chown oracle.dba /oracle -R 
# exit 

$ cd /backup/Disk1 
$ ./runInstaller 


Welcome È­¸é : Next ¹öÆ° 

File Locations È­¸é 

UNIX Group Name È­¸é 
UNIX Group Name¿¡ dba ÀÔ·Â 

Oracle Universal Installer È­¸é 
/oracle/app/oracle/product/8.1.7/orainstRoot.shÀ» root±ÇÇÑÀ¸·Î ½ÇÇàÇÏ 
¶ó´Â ¾Ë¸²Ã¢. 

ÇÑÅÒÀ» Çϳª ´õ ¶ç¿ö¼­ ¾Æ·¡¿Í °°ÀÌ ½ÇÇà 
$ su - 
 pass enter 
# /oracle/app/oracle/product/8.1.7/orainstRoot.sh 

Retry ¹öÆ° 

Available Products È­¸é 
Oracle8i Enterprise Edition 8.1.7.0.1 ¼±Åà 

Installation Types È­¸é 
Custom ¼±Åà 


Available Product Components È­¸é 
Net8 Products¸¦ ÀüºÎ üũÇØÁØ´Ù. ³ª¸ÓÁö´Â ÇÊ¿ä¿¡ µû¶ó üũÇØ ÁÖ¸é µÈ´Ù. 


È­¸é»ó´Ü¿¡¼­ ¼³Ä¡¿¡ ÇÊ¿äÇÑ ÆÄÀÏ ·ÎµùÁß.... 

Component Locations È­¸é 
Java Runtime Environment 1.1.8 


È­¸é»ó´Ü¿¡¼­ ¼³Ä¡¿¡ ÇÊ¿äÇÑ ÆÄÀÏ °è¼Ó ·ÎµùÁß.... 

Privileged Operating System Groups È­¸é 
Database Administrator (OSDBA) Group : dba 
Database Operator (OSOPER) Group : dba 


È­¸é»ó´Ü¿¡¼­ ¼³Ä¡¿¡ ÇÊ¿äÇÑ ÆÄÀÏ °è¼Ó ·ÎµùÁß.... 

Create Database È­¸é 
No ¼±Åà 


È­¸é»ó´Ü¿¡¼­ ¼³Ä¡¿¡ ÇÊ¿äÇÑ ÆÄÀÏ °è¼Ó ·ÎµùÁß.... 

Summary È­¸é 
Install 


Setup Privileges È­¸é 
ÀÌ È­¸éÀÌ º¸ÀÌ´Â »óÅ¿¡¼­ ·çÆ®°èÁ¤ÀÇ µÎ¹ø° ÇÑÅÒ¿¡¼­ ¾Æ·¡¿Í °°ÀÌ ½ÇÇàÇÑ 
´Ù. 

# /oracle/app/oracle/product/8.1.7/root.sh 
# ¹¹¶ó°í ³ª¿À´Â´Âµ¥ ±×³É ¿£ÅÍ 

Ok ¹öÆ° 

Configuration Toos È­¸é 
Net8 Configuration Assistant in progress... 
¿©±â¿¡¼­ ¼³Ä¡°¡ ´õ ÀÌ»ó µÇÁö ¾ÊÀ¸¹Ç·Î Á¾·áÇÏ°í ³ª¿Â´Ù. 

adapters¶ó´Â ¸í·ÉÀ¸·Î ¼³Ä¡µÈ ÇÁ·ÎÅäÄÝÀ» È®ÀÎÇØ º»´Ù. 
$cd $ORACLE_HOME/bin 
$adapters 

¸î°¡Áö°¡ ¼³Ä¡µÇ¾î ÀÖÁö¸¸ TCP/IP´Â ¼³Ä¡µÇ¾î ÀÖÁö ¾Ê´Ù.µû¶ó¼­ ÀÌ°ÍÀ» ´Ù½Ã 
¼³Ä¡ÇØ ÁÖ¾î¾ß ÇÑ´Ù. 

´Ù½Ã runInstaller¸¦ ½ÇÇàÇÑ´Ù. 

$ ./runInstaller (À̶§ Ȥ½Ã È­¸é ¶ßÁö ¾ÊÀ¸¸é ¾Æ·¡ÀÇ ¸í·ÉÀ» ½ÇÇàÇÑ´Ù) 
$ killall -9 jre 
$ ./runInstaller 

¼³Ä¡ÇÒ Á¦Ç° ¼±Åÿ¡¼­ Net8 ºÎºÐµéÀ» ¸ðµÎ üũÇؼ­ À缳ġ ÇÑ´Ù. 

¼³Ä¡ Áß ins_names.mk ¸¦ ºÎ¸£´Âµ¥ ¿À·ù°¡ ¹ß»ýÇß´Ù´Â È­¸éÀÌ ³ª¿À¸é ¹«½Ã¸¦ 
´©¸£°í °è¼Ó ¼³Ä¡ÇÑ´Ù. ¼³Ä¡°¡ Á¾·áµÈ ÈÄ ´Ù½Ã adapters¶ó´Â ¸í·ÉÀ» ½ÇÇàÇØ 
¼­ TCP/IP ÇÁ·ÎÅäÄÝÀÌ Á¦´ë·Î ¼³Ä¡µÇ¾ú´ÂÁö È®ÀÎÇÑ´Ù. 
À̹ø¿¡´Â TCP/IP°¡ ³ª¿Ã °ÍÀÌ´Ù. 

------------------------------------------------------------- 
7. ¹ö±× ÆÐÄ¡ ÈÄ dbcreat.sh »ý¼º 
------------------------------------------------------------- 
ÀÌÁ¦ ´ÙÀ½¿¡´Â database¸¦ »ý¼ºÇÑ´Ù. database¸¦ »ý¼ºÇϱâ Àü¿¡ ¹ö±× ÆÐÄ¡¸¦ 
ÇØÁÖ¾î¾ß ÇÑ´Ù. 

/backup/Disk1/patch µð·ºÅ丮¿¡ °¡¸é bug·Î ½ÃÀÛÇÏ´Â µÎ°³ÀÇ µð·ºÅ丮°¡ ÀÖ 
´Ù. 
$ cd /backup/Disk1/patch/bug1542738 
$ sh README.1542738 

±â¾ïÇϱâ·Î´Â ÀÌ ÆÐÄ¡¸¦ ÇÏÁö ¾Ê°í °ð¹Ù·Î dbassist¸¦ ½ÇÇàÇϸé ldap ¾î¼°í 
Àú¼°í ÇÏ¸ç ¿¡·¯ ¸Þ½ÃÁö¸¦ ¿©·¯ÁÙ »Ñ¸±°ÍÀÌ´Ù. 

´ÙÀ½¿¡´Â bug1538440 µð·ºÅ丮·Î °¡¼­ ½ÇÇàÇÑ´Ù. 

$ cd /backup/Disk1/patch/bug1538440 
$ export TOP_PATCH_DIR=/backup/Disk1/patch/bug1538440 
$ sh README.1538440 

ÀÌ·¸°Ô ÆÐÄ¡¸¦ ÇÏ¸é ¹º°¡ ÆÐÄ¡¸¦ ÇÑ´Ù.ÀÌ ÆÐÄ¡´Â ¸®½º³Ê ¼³Á¤¿¡ °ü·ÃµÈ ±ÇÇÑ 
¼³Á¤ ¿À·ù¸¦ °íÄ¡´Â °ÍÀ¸·Î ÆľÇÇÏ°í ÀÖ´Ù. 

ÀÌÁ¦ database¸¦ »ý¼ºÇÏÀÚ. 


$ dbassist 

µ¥ÀÌŸº£À̽º »ý¼º ¹æ¹ýÀº CustomÀ» ¼±ÅÃÇÑ´Ù. 

ÀÌÁ¦ °ÅÀÇ ¸ðµç ¼³Á¤Àº µðÆúÆ® °ªÀ» »ç¿ëÇÑ´Ù. 
´Ü Character SetÀº ¾Æ·¡¿Í °°ÀÌ ÇÑ´Ù. 

Oracle Database Configuration Assistant È­¸é 
Global Database Name: oracle 
SID : oracle 
Change Character Set.. ¹öÆ° Ŭ¸¯ 

Character Set È­¸é 
Character Set : KO16KSC5601 ·Î º¯°æ 

¸¶Áö¸·À¸·Î database¸¦ Áö±Ý »ý¼º ¾Æ´Ï¸é ½ºÅ©¸³Æ®·Î ÀúÀåÇÏ°Ú´À³Ä´Â Áú¹®¿¡ 
¼± Áö±Ý ½ºÅ©¸³Æ®·Î ÀúÀåÀ» ¼±ÅÃÇ϶ó. 

¸¸¾à ¹Ù·Î »ý¼ºÇÏ°Ú´Ù´Â °ÍÀ» ¼±ÅÃÇϸé ORA 00102 ÀÇ ¿¡·¯ ¸Þ½ÃÁö âÀ» ¸¸³¯ 
°ÍÀÌ´Ù. 

Oracle Database Configuration Assistant È­¸é 
Save information to a shell script 

Popup È­¸é 
Enter file name: dbcreate.sh (½ºÅ©¸³Æ® À̸§À» dbcreate.sh ·Î ÇÑ´Ù.) 

ÀÌÁ¦ dbcreate.shÀ̶ó´Â µ¥ÀÌŸº£À̽º »ý¼º ½ºÅ©¸³Æ®¸¦ ¸¸µé¾ú´Ù. 
ÀÌ°ÍÀº $ORACLE_HOME/assistant/dbca/ ¾Æ·¡¿¡ ÀÖ´Ù. 


ÀÌ°ÍÀ» ½ÇÇàÇϱâ Àü¿¡ Áß¿äÇÑ ÇÑ°¡Áö¸¦ ¼öÇàÇØ¾ß ÇÑ´Ù. 

------------------------------------------------------------- 
8. initSID.ora ÆÄÀÏÀÇ mts_dispatchers ºÎºÐ ÁÖ¼®Ã³¸® 
------------------------------------------------------------- 
$vi $ORACLE_HOME/dbs/initoracle.ora 

¸¦ ½ÇÇàÇؼ­ mts_dispatchers·Î ½ÃÀÛÇÏ´Â ¼³Á¤À» ÁÖ¼®À¸·Î ó¸®ÇÑ´Ù. 
ÁÖ¼®Ã³¸® µÇÁö ¾Ê´À°÷Àº µÎ°÷ÀÌ´Ù. ÇÏ´Ü¿¡ À§Ä¡. 
ÁÖ¼®Ã³¸® ÇÏÁö ¾ÊÀ¸¸é DB»ý¼ºÇÒ ¶§ ora 00102 ¿¡·¯ ¹ß»ýÇÏ¿© db»ý¼º 
ºÒ°¡. 

------------------------------------------------------------- 
9. shell script¸¦ ½ÇÇàÇÏ¿© database »ý¼º 
------------------------------------------------------------- 
ÀÚ ÀÌÁ¦ database »ý¼º ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÏÀÚ.»ý¼ºÇϴµ¥ °É¸®´Â ½Ã°£Àº ¼¼½Ã 
°£ Á¤µµ °É¸°´Ù. 

$ cd /oracle/app/oracle/product/8.1.7/assistants/dbca 
$ ./dbcreate.sh 

------------------------------------------------------------- 
10. adapters oracleÀ̶ó´Â ¸í·ÉÀ¸·Î SID¿¡ ¸µÅ©µÈ ÇÁ·ÎÅäÄÝ È®ÀÎ 
------------------------------------------------------------- 
ÀÌÁ¦ Listener ±¸¼ºÀ» ÇÏÀÚ. 
±×Àü¿¡ ¸¶Áö¸·À¸·Î adapters oracleÀ̶ó´Â ¸í·ÉÀ¸·Î ¼³Ä¡µÈ ÇÁ·ÎÅäÄÝÀ» È®ÀÎ 
Çغ»´Ù. 
$ cd /oracle/app/oracle/product/8.1.7/bin 
$ ./adapters oracle 
¿©±â¼­ Á»Àü¿¡ adapters¸í·ÉÀ¸·Î º¸¾Ò´ø ÇÁ·ÎÅäÄݵéÀ» ´Ù º¼¼ö ¾ø´Ù. 

------------------------------------------------------------- 
11. relink all À̶ó´Â ¸í·ÉÀ¸·Î ÆÄÀÏ¿¬°á À籸¼º 
------------------------------------------------------------- 
TCP/IP°¡ ºüÁ® ÀÖÀ» °ÍÀÌ´Ù. runInstallerÀÇ ¹ö±×¶§¹®¿¡ TCP/IP ÇÁ·ÎÅäÄÝÀ» 
À缳ġ ÇØÁÖ¾ú´Âµ¥ oracle(½ÇÇàÆÄÀÏ)°ú TCP/IP ¸µÅ©°¡ Á¦´ë·Î µÇÁö ¾Ê¾Æ¼­ÀÏ 
°ÍÀÌ´Ù. µû¶ó¼­ relink all À̶ó´Â ¸í·ÉÀ¸·Î ´Ù½Ã ¸µÅ©¸¦ °Ë»çÇؼ­ °íÃÄÁÖ¸é 
µÈ´Ù 

$ relink all 

À§¸¦ ½ÇÇàÇÏ°í ³ª¼­ ´Ù½Ã ¾Æ·¡¿Í °°ÀÌ Çϸé TCP/IP °¡ oracle Ç׸ñ¿¡ ³ªÅ¸³ª 
ÀÖÀ» °ÍÀÌ´Ù. 

$ cd $ORACLE_HOME/bin 
$ ./adapters oracle 


------------------------------------------------------------- 
12. svrmgrl À» ½ÇÇàÇؼ­ startup ¹× shutdown Å×½ºÆ® 
------------------------------------------------------------- 

$ svrmgrl 
SVRMGRL> connect internal; 
SVRMGRL> startup; 
SVRMGRL> shutdown; 
SVRMGRL> exit 

------------------------------------------------------------- 
13. ¸®½º³Ê ±¸¼º ¹× ±¸µ¿ 
------------------------------------------------------------- 

$ netca 

¸¸¾à âÀÌ Á¦´ë·Î ¶ßÁö ¾ÊÀ¸¸é ÇÑÅÒÀ» Á¾·áÇÏ°í »õ·Ó°Ô ¶ç¿î´Ù. 
±×Àü¿¡ netca¸¦ È®½ÇÇÏ°Ô Á¾·á½ÃÅ°ÀÚ. ¾Æ·¡¿Í °°ÀÌ. 

$ killall -9 netca 
$ killall -9 jre 

´Ù½Ã ÇÑÅÒÀ» ¶ç¿ì°í netca¸¦ Çϸé È­¸éÀÌ ³ªÅ¸³¯°ÍÀÌ´Ù. 

¸®½º³Ê¸í: LISTENER 
ÇÁ·ÎÅäÄÝ: TCP 
Æ÷Æ®: 1521 (±âº») 

·ÎÄà ³×Æ® ¼­ºñ½º À̸§ ±¸¼º 
¼­ºñ½º À̸§: test 
ÇÁ·ÎÅäÄÝ: TCP 
È£½ºÆ® À̸§: 210.111.111.1 (ÀÚ±â ȯ°æ¿¡ ¸Âµµ·Ï ¼öÁ¤) 
TCP/IP Æ÷Æ®: 1521 
³×Æ® ¼­ºñ½º À̸§: oracle 

À§ÀÇ °úÁ¤À» °ÅÄ¡°Ô µÇ¸é listener.ora ¹× tnsnames.ora°¡ »ý¼ºµÇ´Âµ¥ 
ÆÄÀϵéÀÇ À§Ä¡´Â $ORACLE_HOME/network/admin¿¡ ÀÖ´Ù. sample µð·¹Å丮 ³»¿ë 
À» ÂüÁ¶Ç϶ó. 
¾Æ·¡´Â ±×°ÍÀ» »ç¿ëÇÏ¿© ±¸¼ºÇßÀ» ¶§ »ý¼ºÇÑ ÆÄÀÏ ³»¿ëÀÌ´Ù. 
ÀÌ °úÁ¤Àº vi·Î ÆíÁýÇÏ¿©µµ µÈ´Ù. 
============================================================= 
# LISTENER.ORA Network Configuration File: 
/oracle/app/oracle/product/8.1.7/network/admin/listener.ora 
# Generated by Oracle configuration tools. 

LISTENER = 
(DESCRIPTION = 
(ADDRESS = (PROTOCOL = TCP)(HOST = 210.111.111.1)(PORT = 1521)) 
) 

SID_LIST_LISTENER = 
(SID_LIST = 
(SID_DESC = 
(GLOBAL_DBNAME = oracle) 
(ORACLE_HOME = /oracle/app/oracle/product/8.1.7) 
(SID_NAME = oracle) 
) 
) 
============================================================= 



============================================================= 
# TNSNAMES.ORA Network Configuration File: 
/oracle/app/oracle/product/8.1.7/network/admin/tnsnames.ora 
# Generated by Oracle configuration tools. 

ORACLE.MINIGATE.COM = 
(DESCRIPTION = 
(ADDRESS_LIST = 
(ADDRESS = (PROTOCOL = TCP)(HOST = 210.111.111.1)(PORT = 1521)) 
) 
(CONNECT_DATA = 
(SERVICE_NAME = test) 
) 
) 
============================================================= 
listener ±¸µ¿ 
Listener°¡ Àç´ë·Î µ¿ÀÛÇÏ´ÂÁö È®ÀÎÇÑ´Ù. 
lsnrctl start (¸®½º³Ê ½ºÅ¸Æ®) 
------------------------------------------------------------------------ 
LSNRCTL for Linux: Version 8.1.7.0.0 - Production on 25-MAR-2001 12:36:25 
(c) Copyright 1998 Oracle Corporation. All rights reserved. 
Starting /oracle/app/oracle/product/8.1.7/bin/tnslsnr: please wait... 

TNSLSNR for Linux: Version 8.1.7.0.0 - Production 
System parameter file is 
/oracle/app/oracle/product/8.1.7/network/admin/listener.ora 
Log messages written to /oracle/app/oracle/product/8.1.7/network/log/listener.log 
Listening on: 
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=oracle.minigate.com)(PORT=1521))) 
Connecting to 
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.minigate.com)(PORT=1521))) 
STATUS of the LISTENER 
------------------------ 
Alias LISTENER 
Version TNSLSNR for Linux: Version 8.1.7.0.0 - Production 
Start Date 25-MAR-2001 12:36:25 
Uptime 0 days 0 hr. 0 min. 0 sec 
Trace Level off 
Security OFF 
SNMP OFF 
Listener Parameter File 
/oracle/app/oracle/product/8.1.7/network/admin/listener.ora 
Listener Log File /oracle/app/oracle/product/8.1.7/network/log/listener.log 
Services Summary... 
oracle has 1 service handler(s) 
The command completed successfully 
------------------------------------------------------------------------ 

lsnrctl status (¸®½º³Ê »óÅ ȮÀÎ) 
lsnrctl stop (¸®½º³Ê Á¾·á) 

lsnrctl services 
------------------------------------------------------------------------ 
LSNRCTL for Linux: Version 8.1.7.0.0 - Production on 25-MAR-2001 12:37:51 
(c) Copyright 1998 Oracle Corporation. All rights reserved. 
Connecting to 
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=oracle.minigate.com)(PORT=1521))) 
Services Summary... 
oracle has 1 service handler(s) 
DEDICATED SERVER established:0 refused:0 
LOCAL SERVER 
The command completed successfully 
------------------------------------------------------------------------ 


------------------------------------------------------------- 
14. svrmgrl¿¡¼­ »ç¿ëÀÚ Ãß°¡ ¹× ±ÇÇÑ ¼³Á¤ 
------------------------------------------------------------- 
´ÙÀ½À¸·Î ½ÇÁ¦·Î ¸®½º³Ê°¡ ¸®¸ðÆ®¿¡¼­µµ µ¿ÀÛÇÏ´ÂÁö Å×½ºÆ®Çغ»´Ù. 
»ç¿ëÀÚ¸¦ Ãß°¡ÇÏ°í connect±ÇÇÑÀ» ÁØ´Ù. 

$ svrmgrl 

SVRMGRL> connect internal; 
SVRMGRL> starup; 
SVRMGRL> create user USERID identified by PASSWORD; 
SVRMGRL> grant connect,resource to USERID; 
SVRMGRL> exit 


------------------------------------------------------------- 
15. sqlplus USERID/PASSWORD ·Î Á¢¼Ó 
------------------------------------------------------------- 
16. glibc µÇµ¹¸®±â.. 
------------------------------------------------------------- 
#cd /usr/bin 
#rm -f gcc cc ld 
#cd /usr/bin/backup 
#mv * .. 
#cd .. 
#rm -rf backup 

#cd /usr/lib/backup 
#mv * .. 
#cd .. 
#rm -rf backup 

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

ÀÌ»óÀÓ´Ï´Ù. ¿À¶óŬ ¼³Ä¡ ´õÀÌ»ó µÎ·ÆÁö ¾Ê´Ù. 

-- 
write by saack
Regist Addr [ 127.0.0.1 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.06 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®