Oracle 11g R2 Download
http://www.oracle.com/technology/software/products/database/index.html
/etc/sysctl.conf ÆÄÀÏÀ» ¿¾î ´ÙÀ½ ³»¿ëÀ» Ãß°¡ÇÑ´Ù.
kernel.shmmax = 536870912
kernel.shmall = 2097152
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default=262144
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=1048586
kernel.shmax¿Í kernel.shmallÀº Default°ªÀÌ ÀÖ¾î ±âÁ¸°ÍÀ¸·Î ¼³Á¤Çß´Ù.
±âº»°ªÀÌ ÀÖÀ» °æ¿ì À§°ªº¸´Ù ³ôÀ¸¸é »ó°ü¾ø´Ù.
/sbin/sysctl -p ½ÇÇà
/etc/security/limits.conf ÆÄÀÏÀ» ¿¾î ¾Æ·¡³»¿ë Ãß°¡
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
/etc/pam.d/login ÆÄÀÏÀ» ¿¾î ¾Æ·¡³»¿ë Ãß°¡
session required pam_limits.so
/etc/selinux/config ÆÄÀÏÀ» ¿¾î SELINUX¸¦ disabled ½ÃÄÑÁØ´Ù.
¼ÂÆðªÀ» Àû¿ëÇϱâ À§ÇØ OS¸¦ ¸®ºÎÆà ½ÃŲ´Ù.
ºÎÆÃÈÄ CentOS ½Ãµð³ª À̹ÌÁö¸¦ ¸¶¿îÆ® ½ÃŲ´Ù.
/media/CentOS_5.4_Final/CentOS·Î °¡¼ ÇÊ¿äÇÑ ÆÐÅ°Áö¸¦ ¼³Ä¡ÇÑ´Ù.
ÀÎÅͳݿ¡ ¿¬°áµÈ´Ù¸é yum installÀ» ÀÌ¿ëÇØ ¼³Ä¡Çصµ »ó°ü¾ø´Ù.
ÇÊ¿äÇÑ ÆÐÅ°Áö ¸ñ·Ï
- compat-libstdc++-33-3.2.3-61
- elfutils-libelf-0.125-3.el5
- elfutils-libelf-devel-0.125-3.el5
- glibc-2.5-12
- glibc-devel-2.5-12
- glibc-common-2.5-12
- gcc-4.1.1-52.el5
- gcc-c++-4.1.1-52.el5
- kernel-headers
- libgcc-4.1.1-52.el5
- libaio-0.3.106-3.2
- libaio-devel-0.3.106-3.2
- libstdc++-4.1.1-52.el5
- libstdc++-devel-4.1.1-52.el5
- unixODBC-2.2.11-7.1
- unixODBC-devel-2.2.11-7.1
- sysstat-7.0.0-3.el5
- binutils-2.17.50.0.6-2.el5
- make-3.81-1.1
| |
|
ÆÐÅ°Áö ¼³Ä¡ ¸í·É¾î
- rpm -Uvh compat-libstdc++-33*
- rpm -Uvh elfutils-libelf*
- rpm -Uvh glibc-2.*
- rpm -Uvh glibc-devel-2.*
- rpm -Uvh glibc-common-2.*
- rpm -Uvh glibc-headers-2.*
- rpm -Uvh gcc-4.*
- rpm -Uvh gcc-c++-4.*
- rpm -Uvh ksh*
- rpm -Uvh libgcc-4.*
- rpm -Uvh libaio-0.*
- rpm -Uvh libaio-devel-0.*
- rpm -Uvh libgomp-4.*
- rpm -Uvh libstdc++-4.*
- rpm -Uvh libstdc++-devel-4.*
- rpm -Uvh unixODBC-2.*
- rpm -Uvh unixODBC-devel-2.*
- rpm -Uvh sysstat-7.*
- rpm -Uvh binutils-2.*
- rpm -Uvh make-3.*
| |
oinstall°ú dba±×·ìÀ» ¸¸µé°í oracle °èÁ¤À» ¸¸µç´Ù.
/oracle µð·ºÅ丮¸¦ ¸¸µç´Ù.
¿À¶óŬ ¼³Ä¡ÇÒ ±âº» µð·ºÅ丮´Â /oracle/11g´Ù.
¼ÒÀ¯ÀÚ¸¦ oracle·Î º¯°æÇÏ°í ¾²±â°¡ °¡´ÉÇϵµ·Ï Æ۹̼ÇÀ» º¯°æÇÑ´Ù.
oracle °èÁ¤À¸·Î Á¢¼ÓÇÏ¿©(su - oracle)
.bash_profile ÆÄÀÏ¿¡ ´ÙÀ½³»¿ëÀ» Ãß°¡ÇÑ´Ù.
SIDÀÇ °æ¿ì NEMI¶ó´Â À̸§À¸·Î ÁöÁ¤ÇÏ¿´´Ù.
ORACLE_HOSTNAME=localhost.localdomain; export ORACLE_HOSTNAME
ORACLE_BASE=/oracle/11g; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=NEMI; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
SAMBA³ª FTP(oracle°èÁ¤)¸¦ ÅëÇØ Oracle 11g R2 zipÆÄÀÏ 2°³¸¦ ¼¹ö·Î Àü¼ÛÇÑ´Ù.
¾Æ·¡¿Í °°ÀÌ ¾ÐÃàÀ» Ǭ´Ù.
unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip
ÀÌÁ¦ºÎÅÍ xmingÀ» ÅëÇØ InstallÀ» ÇÒ °ÍÀÌ´Ù.
xmingÀº ¿ø°ÝÀ¸·Î GUI¿ë LinuxÇÁ·Î±×·¥À» À©µµ¿ìȸ鿡¼ º¼ ¼ö ÀÖ°Ô ÇØÁÖ´Â ÇÁ·Î±×·¥ÀÌ´Ù.
xmingÀÌ ¾Æ´Ï´õ¶óµµ CentOS ¸ÞÀΠȸ鿡¼ ¼³Ä¡ ÇÒ ¼ö ÀÖ´Ù.
Âü°í·Î export LANG=c ¸¦ ²À ÇØÁÖ¾î¾ß ±ÛÀÚ°¡ ¾È±úÁø´Ù.
¾ÐÃàǬ Æú´õ¿¡¼ ./runInstaller ¸¦ ½ÇÇà½ÃÅ°ÀÚ.
EmailÀ» ÀÔ·ÂÇÏ¸é º¸¾ÈÀ̽´ °ü·Ã ³»¿ëÀ» º¸³»ÁÖ´Â °Í °°´Ù.
Å©°Ô ÇÊ¿ä¾ø´Ù¸é üũ¹Ú½º¸¦ ÇØÁ¦ÇÏ°í Next¸¦ ´©¸¥´Ù.
µ¥ÀÌÅͺ£À̽º±îÁö »ý¼ºÇϱ⠶§¹®¿¡ ù¹ø°¸¦ ¼±ÅÃÇÑ´Ù.
¼¹ö¿ë ¼³Ä¡À̹ǷΠServer Class¸¦ ¼±ÅÃ
RAC¸¦ ÅëÇØ ÀÌÁßÈ ±¸¼ºÀ» ÇÏÁö ¾ÊÀ¸¹Ç·Î ½Ì±ÛÀνºÅϽº ¼±ÅÃ
±âº» ¼³Ä¡ÀÎ Typical Install ¼±ÅÃ
¼³Ä¡ À§Ä¡¸¦ Á¤ÇÒ ¼ö Àִ ȸéÀÌ´Ù.
±Û·Î¹ú µ¥ÀÌÅͺ£À̽º¸í°ú Æнº¿öµå¸¦ ÀÔ·ÂÇÑ´Ù.
¿À¶óŬ Àκ¥Å丮 ¼³Ä¡ À§Ä¡¸¦ Á¤Çϴ ȸé
¿À¶óŬ ¼³Ä¡Áß¿¡¼ Á¦ÀÏ Áß¿äÇÑ ºÎºÐÀÌ´Ù.
´Ù¸¥ ºÎºÐº¸´Ù ÆĶó¹ÌÅÍ¿Í ÆÐÅ°Áö´Â fail·Î ³ª¿À¸é ¾ÈµÈ´Ù.
ÆĶó¹ÌÅÍ°ªÀÌ failÀÏ °æ¿ì ±ÇÀå°ªÀ¸·Î º¯°æÇÏ°í
ÆÐÅ°Áö°¡ failÀÏ °æ¿ì rpmÀ̳ª yumÀ» ÅëÇØ ¹Ýµå½Ã ¼³Ä¡ÇÑ´Ù.
ÆÐÅ°ÁöÀÇ °æ¿ì ¹«½ÃÇÏ¸é ¼³Ä¡ Áß ¿¡·¯°¡ ³´Ù.
Å×½ºÆ®¿ë ¼¹ö¶ó ¸Þ¸ð¸®¿Í Swap »çÀÌÁî´Â ¹«½ÃÇÏ°í ¼³Ä¡ÇÏ¿´´Ù.
ignore All¸¦ üũÇÏ¸é ¹«½ÃÇÏ°í ¼³Ä¡°¡ ÁøÇàµÈ´Ù.
ÃÖÁ¾ ¼³Á¤ Á¤º¸¸¦ È®ÀÎÇÑ´Ù.
ƯÀÌ»çÇ×ÀÌ ¾øÀ¸¸é Finish¸¦ ´©¸¥´Ù.
¿À¶óŬ 11g ¼³Ä¡°¡ ÁøÇàµÈ´Ù.
µ¥ÀÌÅͺ£À̽º »ý¼º ȸé
¼³Ä¡°¡ ¿Ï·áµÇ¾ú´Ù.
Password Management¸¦ ´©¸£¸é À¯Àú Àá±Ý¿©ºÎ¿Í ¾ÏÈ£¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖ´Ù.
root°èÁ¤À¸·Î Á¢¼ÓÇÏ¿© 2°³ÀÇ ½ºÅ©¸³Æ®¸¦ ½ÇÇàÇÏÀÚ.
ÃÖÁ¾ÀûÀ¸·Î ¼³Ä¡°¡ ¿Ï·áµÈ´Ù.
sqlplus·Î Á¢¼ÓÇÏ¿© ÀνºÅϽº¸¦ È®ÀÎÇØ º¸ÀÚ.