RH9.0 ¿¡ Oracle 9.2.0.1 ¼³Ä¡Çϱâ
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2005-08-29 18:42:32
 

[root@ora9 kernel]# vi /etc/sysctl.conf
°¡Àå ¸¶Áö¸·¿¡ ´ÙÀ½À» Ãß°¡ÇÕ´Ï´Ù.
kernel.shmmax = 2147483648
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range=1024 65000
ÀúÀåÇÏ°í ºüÁ® ³ª¿Â´Ù. (¡°Esc¡± Å° ´©¸£°í ¡°:wq¡±¸¦ ÀÔ·Â ÇÑ ÈÄ Enter)
½Ã½ºÅÛ ¸®¼Ò½º¸¦ Á¦ÇÑÇÏ´Â ¼³Á¤ÆÄÀÏ¿¡ ´ÙÀ½À» Ãß°¡ÇÑ´Ù.
[root@ora9 kernel]# vi /etc/security/limits.conf
°¡Àå ¸¶Áö¸·¿¡ ´ÙÀ½À» Ãß°¡ÇÕ´Ï´Ù.
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384
oracle hard nproc 16384
ÀúÀåÇÏ°í ºüÁ® ³ª¿Â´Ù. (¡°Esc¡± Å° ´©¸£°í ¡°:wq¡±¸¦ ÀÔ·Â ÇÑ ÈÄ Enter)

´Ù) ¼³Ä¡ ȯ°æ¼³Á¤
¨ç Oracle 9i ¾ÐÃà Ç®±â
¿À¶óŬ »çÀÌÆ®¿¡¼­ ´Ù¿î ¹ÞÀº ÆÄÀÏÀ» /usr/local/src Æú´õ¿¡ ³Ö¾îµÓ´Ï´Ù.
[root@ora9 /]# cd /usr/local/src
¾ÐÃàÀ» ÇØÁ¦ÇÕ´Ï´Ù. (½Ã°£ÀÌ »ó´çÈ÷ °É¸³´Ï´Ù. ´À±ßÇÏ°Ô ±â´Ù¸³½Ã´Ù.)
[root@ora9 src]# zcat lnx_920_disk1.cpio.gz | cpio -idmv
[root@ora9 src]# zcat lnx_920_disk2.cpio.gz | cpio -idmv
[root@ora9 src]# zcat lnx_920_disk3.cpio.gz | cpio -idmv

¨è JDK ¼³Ä¡
¡°RedHat Linux 9.0 ±â¹ÝÀÇ jdk 1.3.1 ¼³Ä¡Çϱ⡱ ¹®¼­¸¦ ÀÌ¿ëÇÏ¿© ¼³Ä¡ÇÏ¿© Áֽʽÿä.

¨ê ¿À¶óŬ »ç¿ëÀÚ¿Í ±×·ì »ý¼º
¿À¶óŬ Á¦Ç° ¼³Ä¡ ¹× ¼³Á¤º¯°æÀ» ´ã´çÇÒ oinstall°ú ½Ã½ºÅÛ ³»ÀÇ ¿À¶óŬ µ¥ÀÌÅͺ£À̽º¸¦
°ü¸®ÇÒ dba ±×·ìÀ» »ý¼ºÇÑ´Ù.
[root@ora9 src]# groupadd oinstall
[root@ora9 src]# groupadd dba
oracle À» »ç¿ëÀÚ·Î ¼³Á¤ÇÏ°í initial groupÀ» oinstall°ú groupÀ» dba·Î ±×·ìÀ» ÇÒ´çÇÑ´Ù.
[root@ora9 src]# useradd -g oinstall -G dba oracle
oracle °èÁ¤ÀÇ Password¸¦ ¼³Á¤ÇÑ´Ù.
[root@ora9 src]# passwd oracle

¨ë RPM ÆÐÅ°Áö È®ÀÎ
ÀϺΠRPM ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÏ°í ¸î¸îÀº ´Ù¿î±×·¹À̵å ÇÑ´Ù.
[root@ora9 src]# rpm -qa | grep  binutils compat-gcc compat-libgcj \
> compat-libstdc++ cpp gcc nss_db-compat pdksh \
> glibc glibc-devel glibc-common glibc-kernheaders
[root@ora9 src]# rpm -Uvh binutils-2.13.90.0.18-9.i386.rpm
[root@ora9 src]# rpm -Uvh compat-gcc-7.3-2.96.118.i386.rpm
[root@ora9 src]# rpm -Uvh compat-libgcj-7.3-2.96.118.i386.rpm
[root@ora9 src]# rpm -Uvh compat-libstdc++-7.3-2.96.118.i386.rpm
[root@ora9 src]# rpm -Uvh cpp-3.2.2-5.i386.rpm
[root@ora9 src]# rpm -Uvh gcc-3.2.2-5.i386.rpm
[root@ora9 src]# rpm -Uvh nss_db-compat-2.2-20.i386.rpm
[root@ora9 src]# rpm -Uvh pdksh-5.2.14-21.i386.rpm
[root@ora9 src]# rpm -Uvh glibc-kernheaders-2.4-8.10.i386.rpm
¸¶Áö¸·À¸·Î glibc °ü·Ã ÆÐÅ°Áö¸¦ ´Ù¿î±×·¹À̵å ÇÑ´Ù.
[root@ora9 src]# rpm --import /usr/share/rhn/RPM-GPG-KEY
[root@ora9 src]# rpm –checksig glibc-2.3.2-5.i386.rpm \
> glibc-devel-2.3.2-5.i386.rpm glibc-common-2.3.2-5.i386.rpm
[root@ora9 src]# rpm -Uvh --oldpackage glibc-2.3.2-5.i386.rpm \
> glibc-devel-2.3.2-5.i386.rpm glibc-common-2.3.2-5.i386.rpm

¨ì ¿À¶óŬ Á¦Ç°ÀÌ ¼³Ä¡µÉ Mount Point¸¦ »ý¼ºÇÑ´Ù.
/opt/oracle µð·ºÅ丮¸¦ »ý¼ºÇÏ¿© ÇÏÀ§ µð·ºÅ丮±îÁö ¿À¶óŬ »ç¿ëÀÚ°¡ °ü¸®Çϵµ·Ï ÇØÁØ´Ù.
[root@ora9 src]# mkdir /opt/oracle
[root@ora9 src]# chown -R oracle.oinstall /opt/oracle/

¨í oracle »ç¿ëÀÚ °èÁ¤ÀÇ È¯°æÀ» ¼³Á¤ÇÑ´Ù.(´ÙÀ½ ³»¿ëÀ» ºüÁü¾øÀÌ ÀÛ¼ºÇÑ´Ù.)
[root@ora9 src]# vi /home/oracle/.bashrc
# for ORACLE

export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/product/9.2.0.1.0
export ORACLE_OWNER=oracle
export ORACLE_SID=ora9
export ORACLE_TERM=ansi
export DISPLAY=localhost:0.0
export TNS_ADMIN=$ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN_AMERICA.KO16KSC5601
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/demo
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export PATH=$PATH:$ORACLE_HOME/JRE/bin:$ORACLE_HOME/bin
export LD_ASSUME_KERNEL=2.4.1
export THREADS_FLAG=native
export TEMPDIR=/tmp
export EDITOR=vi
export LANG=ko_KR.eucKR
# for DBA/User

alias oh='cd $ORACLE_HOME'
alias ob='cd $ORACLE_BASE'
alias cls='clear'
alias ls=¡¯ls -F¡¯
alias rm=¡¯rm –i¡¯
umask 022

# for java
export JAVA_HOME="/usr/jdk"
CLASSPATH=".:$JAVA_HOME/lib/tools.jar"
CLASSPATH="$CLASSPATH:$ORACLE_HOME/jdbc/lib/classes12.jar"
CLASSPATH="$CLASSPATH:$ORACLE_HOME jdbc/lib/nls_charset12.jar"
CLASSPATH="$CLASSPATH:$ORACLE_HOME/rdbms/jlib/xsu12.jar"
CLASSPATH="$CLASSPATH:$ORACLE_HOME/lib/xmlparserv2.jar"
CLASSPATH="$CLASSPATH:$ORACLE_HOME/lib/classgen.jar"
CLASSPATH="$CLASSPATH:$ORACLE_HOME/lib/oraclexsql.jar"
CLASSPATH="$CLASSPATH:$ORACLE_HOME/lib/xmlplsql.jar"
CLASSPATH="$CLASSPATH:$ORACLE_HOME/lib/xschema.jar"
export CLASSPATH
ÀúÀåÇÏ°í ºüÁ® ³ª¿Â´Ù. (¡°Esc¡± Å° ´©¸£°í ¡°:wq¡±¸¦ ÀÔ·Â ÇÑ ÈÄ Enter)

¶ó) ¼³Ä¡
¼³Ä¡½Ã root°èÁ¤À¸·Î ·Î±×ÀÎ ÈÄ X-Window¸¦ ½ÇÇàÇÏ°í Å͹̳ΠâÀ» µÎ°³ ¶ç¿ö
À§ÂÊ Ã¢Àº root °èÁ¤À¸·Î ¾Æ·¡ÂÊ Ã¢Àº oracle °èÁ¤À¸·Î ÀÛ¾÷Çϵµ·Ï ÇÑ´Ù.
[root@ora9 root]# su oracle
·ÎÄÿ¡¼­ OUI¸¦ ¶ç¿ì±â À§ÇÏ¿© Çã°¡±ÇÀ» ³»ÁØ´Ù.
[root@ora9 root]# xhost + 127.0.0.1
´Ù¿î¹ÞÀº ¿À¶óŬ ¼³Ä¡ ÇÁ·Î±×·¥ÀÇ ¾ÐÃàÀ» Ǭ µð·ºÅ丮·Î À̵¿ÇÕ´Ï´Ù.
[oracle@ora9 oracle]$ cd /usr/local/src/Disk1
[oracle@ora9 Disk1]$ ./runInstaller


¼³Ä¡°¡ °ÅÀÇ ³¡³¯ ¹«·Æ ¿¡·¯°¡ ³³´Ï´Ù.

$ORACLE_HOME/ctx/lib/env_ctx.mk ÆÄÀÏÀ» ¿±´Ï´Ù.

$ORACLE_HOME/ctx/lib/env_ctx.mk ÆÄÀÏÀÇ 1365ÁÙ·Î À̵¿ÇÕ´Ï´Ù.
°ÅÀÇ ¸¶Áö¸· ºÎºÐ¿¡ ÀÖÀ¸¹Ç·Î °¡Àå ¸¶Áö¸·¿¡¼­ À§·Î ã¾Æ ¿Ã¶ó°©´Ï´Ù.

INSO_LINK = -L$(CTXLIB) $(LDLIBFLAG)m ´ÙÀ½¿¡ $(LDLIBFLAG)dl À» Ãß°¡ÇÏ¿© ÁÝ´Ï´Ù.
ÀÌ ¿À·ù´Â 9.2.0.1.0 ¿¡¼­¸¸ ³ªÅ¸³ª´Â ¿À·ùÀÔ´Ï´Ù. 9.2.0.4.0¿¡¼­´Â ³ªÅ¸³ªÁö ¾Ê½À´Ï´Ù.

¡°Àç½Ãµµ¡±¹öÆ°À» Ŭ¸¯ÇÏ¿© °è¼Ó ¼³Ä¡¸¦ ÁøÇàÇÕ´Ï´Ù.



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

¼³Ä¡ÇÏ´Ùº¸¸é ¿ª½Ã³ª ¿¡·¯(ins_oemagent.mk) ³³´Ï´Ù. ±×¶§ Àá½Ã ¸ØÃ߽ðí "$ORACLE_HOME/ctx/lib/env_ctx.mk" ÀÌ ÆÄÀÏÀ» ¼öÁ¤ÇϽʽÿä (ÇöÀç ¿¡·¯¿Í´Â ÇϵîÀÇ °ü°èµµ ¾ø´ÂµíÇÕ´Ï´Ù. ±×·¡µµ ÇØÁÖ¼¼¿ä µÚ¿¡³ª¿Ã ¿¡·¯°¡ ¾ø¾îÁý´Ï´Ù. --;)
¼öÁ¤³»¿ëÀº À§¿¡ Çѹø ¾ð±ÞÀÌ µÆ½À´Ï´Ù. ÆÐÄ¡¸¦ Çϸ鼭 ÆÄÀÏÀÌ »õ·Î ¾þ¾î½á Áý´Ï´Ù. óÀ½ ÀνºÅç½Ã¿¡ Çß´ÙÇϽôõ¶óµµ ´Ù½Ã ¼öÁ¤ÇϽʽÿä.

´Ù½ÃÇѹø ¸»ÇÏÀÚ¸é
======================================================================

================
INSO_LINK = -L$(CTXLIB) $(LDLIBFLAG)m $(LDLIBFLAG)dl $(LDLIBFLAG)sc_ca $(LDLIBFLAG)sc_fa $(LDLIBFLAG)sc_ex $(LDLIBFLAG)sc_da $(LDLIBFLAG)sc_ut $(LDLIBFLAG)sc_ch $(LDLIBFLAG)sc_fi $(LDLIBFLAG)sc_lo $(LLIBCTXHX) $(LDLIBFLAG)c -Wl,-rpath,$(CTXHOME)lib $(CORELIBS) $(SYSLIBS) $(COMPEOBJS)
======================================================================

================
±â¾ï³ª½ÃÁÒ "$(LDLIBFLAG)dl" <- À̺κÐÀÌ Ãß°¡µÈ°Ì´Ï´Ù.

±×´ÙÀ½¿¡ "$ORACLE_HOME/ctx/lib/ins_ctx.mk" À̳𵵠¹Ì¸® ¼öÁ¤ÇØÁֽʽÿä.
(³ªÁß¿¡ Çصµ µÇ´Â°Å °°Àºµ¥ ±×³É ¹Ì¸® Çعö·È½À´Ï´Ù. Ȥ½Ã³ªÇؼ­)
======================================================================

================
ctxhx: $(CTXHXOBJ)
$(LINK) $(CTXHXOBJ) $(INSO_LINK)

to:

ctxhx: $(CTXHXOBJ)
$(LINK) -ldl $(CTXHXOBJ) $(INSO_LINK)
======================================================================

================
"-ldl" <- ÀÌ°Å Çϳª¸¸ Ãß°¡µÈ°Ì´Ï´Ù.

¿©±â¼­ "retry"¹é³¯´­·¯ºÁ¾ß »ç½Ç ¼Ò¿ëÀº ¾ø½À´Ï´Ù --; Èʳ¯À» ´ëºñÇØ ¼öÁ¤ÇÑ°Ì´Ï´Ù.
±×³É ½½Â½ "ignore"Çϼ¼¿ä"

À߳Ѿ°Ì´Ï´Ù.


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦