oracle ¼³Ä¡Çϱâ
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2003-10-14 14:36:49
 

Á¦°ø : Oracle Korea Customer Support Technical Bulletins
ORACLE7 INSTALL

1. InstallÀÛ¾÷ÀüÀÇ check»çÇ×
(1) H/W, O/S versionÀÌ installÇÏ°íÀÚ ÇÏ´Â Oracle VersionÀÌ ¼³Ä¡°¡´ÉÇÑ
°ÍÀÎÁö È®ÀÎÇÑ´Ù.
(2) Disk spaceÈ®ÀÎ : ¾à 1GÁ¤µµ ÇÊ¿ä
(3) ¹Ýµå½Ã C-Compiler°¡ ÀÖ¾î¾ß install°¡´É(make, cc file)
(4) Sun SolarisÀÇ °æ¿ì oracleÀÇ SGAÇÒ´çÀ» À§ÇÑ shared memory¹×
semaphoreÁöÁ¤
$cd /etc
vi system
set shmsys:shminfo_shmmax=8388608 (ÀÌ°ÍÀº installÀ» À§ÇÑ ÃÖ¼Ò
sizeÀ̸é, ½ÇÁ¦ ¿î¿µÀ» À§Çؼ­´Â 50MÀÌ»ó ¼³Á¤)
set shmsys:shminfo_shmmin=50
set shmsys:shminfo_shmmni=400
set shmsys:shminfo_shmseg=15
set semsys:seminfo_semmns=400
set semsys:seminfo_semmni=100
set semsys:seminfo_semmsl=100 (initSID.ora file³»ÀÇ processes°ª º¸´Ù Å©°Ô)

2. Install step1 (ȯ°æ¼³Á¤)
(1) root·Î login
(2) oracle area¸¦ creationÇØ ÁØ´Ù.
# cd /
# mkdir oracle
# chmod 777 oracle
(3) dba¶ó´Â group°ú oracle user-id¸¦ µî·ÏÇÑ´Ù.
groupadd, useradd¸¦ ÀÌ¿ëÇϰųª,
/etc/group, /etc/passwd file¿¡ µî·ÏÇÑ ÈÄ pwconv¸¦ ½ÇÇà½ÃŲ´Ù.
(4) oracle user·Î loginÇÑ ÈÄ .profileÀ̳ª .cshrc¸¦ ¼öÁ¤Çϰųª ½Å±Ô »ý¼ºÇÑ´Ù.

vi .profile (c shell»ç¿ëÀÇ °æ¿ì .cshrc¿¡ syntax¿¡ ¸Â°Ô ÀÔ·ÂÇؾßÇÔ)

***v7.3.2ÀÇ °æ¿ì
ORACLE_HOME = /oracle/app/oracle/product/7.3.2
***v7.3.3ÀÇ °æ¿ì
ORACLE_BASE=/oracle/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/7.3.3; export ORACLE_HOME

ORACLE_SID = ORA72;export ORACLE_SID
*** ȤÀº ORA73µî ÀÓÀÇÀÇ µ¥ÀÌŸº£À̽º¸¦ ÁöĪÇÒ À̸§À» ÁöÁ¤

PATH = $PATH:/opt/SUNWspro/bin:$ORACLE_HOME/bin:/usr/ccs/bin;
export PATH
***Âü°í: À̶§ /opt/SUNWspro/bin directory´Â C-compiler°¡ Á¸Àç
ÇÏ´Â directory¸¦ ÁöÁ¤ÇÏ¿©¾ß ÇÑ´Ù.

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib:/usr/openwin/lib;
export LD_LIBRARY_PATH

TERM=vt100; export TERM

ORACLE_TERM=vt100; export ORACLE_TERM
*** Âü°í: TERMÀ̳ª ORACLE_TERMÀº vt100, vt220, sun-cmdµî Àû´çÈ÷ ¼±ÅÃ

ORACLE_DOC=$ORACLE_HOME/doc;export ORACLE_DOC

NLS_LANG=American_America.KO16KSC5601; export NLS_LANG
***install½Ã¿¡´Â NLS_LANGÀ»
comment·Î ¸·°í ó¸®ÇÑ ÈÄ
installÀÌ ³¡³ª¸é comment¸¦ Ç®µµ·Ï ÇÑ´Ù.


ORA_NLS=$ORACLE_HOME/ocommon/nls/admin/data; export ORA_NLS
***v7.3ÀÇ °æ¿ì
ORA_NLS32=$ORACLE_HOME/ocommon/nls/admin/data; export ORA_NLS
TNS_ADMIN=$ORACLE_HOME/network/admin;export TNS_ADMIN

(5) .profileÀ» ½ÇÇà½ÃÄÑÁØ´Ù.
$. ./.profile
*** c shellÀÇ °æ¿ì $source .cshrc

(6) ÁöÁ¤µÈ ȯ°æº¯¼ö°¡ ¹Ù¸£°Ô ¼³Á¤µÇ¾ú´ÂÁö È®ÀÎÇÑ´Ù.
$env

3. Install step3
(1) CD-ROMÀÎ °æ¿ì
(a) #mkdir /cdrom (default·Î Á¦°øÇϱ⵵ ÇÑ´Ù.)
(b) #chmod 777 cdrom
(c) cdromÀ» mount½ÃŲ´Ù.
mount -t /dev/pdsk/2 /cdrom
sun: mount -r -F hsfs /dev/~ cdrom
(sunÀÇ °æ¿ì ´ëºÎºÐ auto mountµÈ´Ù.)
rs/6000: mount -rv cdrfs /dev/cd0 /cdrom

oracle·Î loginÇÑ ÈÄ
(d) $cd /cdrom
(e) $cd orainst
(f) $./orainst

Âü°í) ÀϺδ orainst¸¦ ¼öÇàÇϱâÀü ¸ðµç fileÀÌ ´ë¹®ÀÚ·Î ³ªÅ¸³ª´Â
°æ¿ì°¡ Àִµ¥, ÀÌ·± °æ¿ì´Â start.shÀ» ¼öÇàÇÏ¿© ÁÖ¸é µÈ´Ù.

(2) TAPEÀÎ °æ¿ì
(a) ¿øº»ÀÇ °æ¿ì: $cpio -imuvdBc < /dev/rmt/0h
tarÇüÅÂÀÎ °æ¿ì: $ cd $OACLE_HOME
$ tar xvf /dev/rmt/0h
(b) cd $ORACLE_HOME/newoi
(c) ./orainst

¼³Ä¡È­¸éÀÌ displayµÇ°í (¾à 2-3ºÐ Á¤µµ) orainst
directory¸¦ ÀÚµ¿À¸·Î »ý¼º½ÃÄÑÁØ´Ù.
(d) cd $ORACLE_HOME/orainst
(e) ./orainst

4. Install step4
(1) path, home directory, installation log file. ownerµîÀº profile¿¡
±â¼úÇÑ ³»¿ëÀÌ displayµÇ¹Ç·Î º°´Ù¸¥ ¼öÁ¤ »çÇ×ÀÌ ¾ø´Â ÇÑ OK¸¦ ¼±ÅÃÇÑ´Ù.
(2) install actions¿¡¼­ tapeÀÛ¾÷ÀÎ °æ¿ì, build staging area(from
tape only)¸¦ ¼±ÅÃÇÏ¿©¾ß error¹ß»ý½Ã ´Ù½Ã ÀÛ¾÷ÇϱⰡ ¿ëÀÌÇÏ´Ù.
(3) install°úÁ¤À» °Ë»öÇÏ·Á¸é: cd $ORACLE_HOME/orainstÇÑ ÈÄ
tail -f install.log
(4) cdÀÛ¾÷½Ã unix document library cd·ÎºÎÅÍ document¼³Ä¡¿©ºÎÈ®Àνà no¼±ÅÃ
(5) language¼±Åýà all language¼±ÅÃ
(6) charactersetÀº KO16KSC5601ÀÔ·Â
(7) V7.3ÀÇ °æ¿ì control fileÀ» ¸¸µé À§Ä¡ÀÇ mount point¸¦ ¹¯´Âµ¥
/oracle/app/oracleÁöÁ¤

5. Install step5
(1) $ORACLE_HOME/orainst/root.shÀ» root user·Î ¼öÇà
home, sid¿©ºÎ¸¦ checkÇϸé yes¼±ÅÃ
path /opt/binÀ» checkÇϸé yes¼±ÅÃ

(2) /oacleÀ» Æ÷ÇÔÇÑ ¸ðµç subdirectoryÀÇ owner¸¦ oracle, groupÀ» dba·Î º¯°æ

(3) /etc/services¿¡ orasrv(for sql*net v1)¿Í
listener(for sql*net v2)ÀÇ portÁöÁ¤

orasrv 1525/tcp
listener 1521/tcp


$ORACLE_HOME/network/admin/listener.ora
$ORACLE_HOME/network/admin/tnsnames.ora
$ORACLE_HOME/network/admin/sqlnet.ora
ÀÌ ÆÄÀϵéÀ» È®ÀÎÇÑ´Ù.

-------------------------------------------------------------
Oracle Korea Customer Support Technical Bulletins


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