×°ÁË5±é£¬»ù±¾Ê²Ã´ÎÊÌⶼÓö¼ûÁË£¬Ð¡µÜ°Ñ³É¹¦±Ê¼Ìù¹þ£¬ºÙºÙ
Ë«CPU1.6GHZ ÄÚ´æ2G
Red Hat Linux AS3U2 Ï°²×° ORACLE9.2.0.4
Ê×ÏÈ,×¼±¸°²×°ÐèÒªµÄÈí¼þ°üºÍ²¹¶¡°ü:
´ÓÍøÉÏÏÂÔØÉý¼¶²¹¶¡°ü,ÓÃÓÚ½«Oracle9.2.0Éý¼¶µ½9.2.0.4:
p3006854_9204_LINUX.zip
ËùÓеIJ¹¶¡ËµÃ÷ÈçÏ£º
p3095277_9204_LINUX.zip 9.2.0.4.0µÄÉý¼¶²¹¶¡°ü.
p3006854_9204_LINUX.zip ÔÚÔËÐÐ runInstaller ֮ǰ´ò.
p3119415_9204_LINUX.zip ÔÚÉý¼¶µ½9.2.0.4.0Ö®ºó´ò.
p2617419_210_GENERIC.zip ´ò3119415²¹¶¡ËùÐèÒªµÄ²¹¶¡.
1.ÓÃrpm -qa©¦grep compat ²é¿´ÏµÍ³ÖÐÊÇ·ñ°²ÓÐÒÔϼ¸¸öÈí¼þ°ü£º
¼ÓÔØÎļþÃüÁ#rpm -ivh /mnt/cdrom/RedHat/RPMB/file.rpm
compat-libstdc++-7.3-2.96.122
compat-gcc-c++-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122
compat-db-4.0.14-5
compat-gcc-7.3-2.96.122
tcl-devel-8.3.5-92.i386.ipm
ÆäËûÏà¹ØÈí¼þ°ü£¨°²×°ÉÏÊöÈí¼þ°üʱ¿ÉÄÜÐèÒª£©£º
glibc-kemheadsers-2.4-8.34.i386.rpm
glib-headers-2.3.2-95.20.i386.rpm
glib-derel-2.3.2-95.20.i386.rpm
2. rpm -qa ©¦ grep openmotif²é¿´ÏÂÁÐÈí¼þ°ü
openmotif21-2.1.30-8
3. rpm -qa ©¦ grep setarch²é¿´:
setarch-1.3-1
µÚ¶þ,×¼±¸°²×°¹ý³ÌÖÐÐèÒªµÄÓû§ºÍÓû§×é
ÔÚ°²×°µÄ¹ý³ÌÖÐÎÒÃÇʹÓÃÁ½¸öÓû§Í¬Ê±½øÐУ¬ÆäÖÐÒ»¸öÊÇrootÓû§£¬ÁíÍâÒ»¸öÊÇÄãн¨Á¢µÄoracleÓû§¡£
1¡¢´ò¿ªÒ»¸öÖնˣ¬ÒÔrootÓû§µÇ¼»òÕßÊÇ£ºsu - root
2¡¢½¨Á¢oracle Óû§ºÍÃÜÂë
# groupadd oinstall (ÔÚ°²×°oracleʱUNIX Group name£ºoinstall)
# groupadd dba
# useradd -g oinstall -G dba oracle
# passwd oracle
µÚÈý,°²×°×¼±¸²½Öè.
1¡¢×¼±¸ÎļþĿ¼£º
# mkdir -p /opt/ora9/product/9.2
# mkdir /var/opt/oracle
# chown oracle.dba /var/opt/oracle
# chown -R oracle.dba /opt/ora9
×¢£ºÈç¹ûÌáʾ²ÎÊýÌ«ÉÙ£¬¿ÉÒÔÔÚĿ¼ÊôÐԣȨÏÞ Ö±½ÓÉèÖÃ³É oracle ȨÏÞ dba
2¡¢ÉèÖÃÄں˲ÎÊý£¬µ÷½ÚÐźŵƼ°¹²ÏíÄڴ棺
ÐÞ¸Ä /etc/sysctl.conf Õâ¸öÎļþ£¬¼ÓÈëÒÔϵÄÓï¾ä£º
kernel.shmmax = 2147483648 (»úÆ÷ÄÚ´æ2G£¬Èç¹ûÄãµÄûÕâô´ó¿ÉÏàÓ¦ÉèÖÃСЩ)
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
sem 4¸ö²ÎÊýÒÀ´ÎΪSEMMSL(ÿ¸öÓû§ÓµÓÐÐźÅÁ¿×î´óÊý)£»SEMMNS(ϵͳÐźÅÁ¿×î´óÊý)£»SEMOPM(ÿ´Îsemopmϵͳµ÷ÓòÙ×÷Êý)£»SEMMNI(ϵͳÐÁ¿àÁ¿¼¯Êý×î´óÊý).
Shmmax ×î´ó¹²ÏíÄÚ´æ2GB ÎïÀíÄÚ´æÈç¹ûСµÄ»°¿ÉÒÔÉèÖÃ³É 536870912.
Shmmni ×îС¹²ÏíÄÚ´æ 4096KB.
Shmall ËùÓÐÄÚ´æ´óС.
ÉèÖÃÍê³ÉºóÓÃÃüÁî more /etc/sysctl.conf |grep kernel.s ¼ì²é.
3¡¢ÉèÖÃoracle¶ÔÎļþµÄÒªÇó£º
±à¼Îļþ£º/etc/security/limits.conf ¼ÓÈëÒÔÏÂÓï¾ä£º
oracle ¡¡¡¡¡¡soft ¡¡¡¡¡¡nofile ¡¡¡¡ 65536
oracle ¡¡¡¡¡¡hard ¡¡¡¡ nofile¡¡¡¡¡¡65536
oracle ¡¡¡¡¡¡soft ¡¡¡¡¡¡nproc ¡¡¡¡ 16384
oracle ¡¡¡¡¡¡hard ¡¡¡¡ nproc ¡¡¡¡ 16384
4¡¢ÉèÖÃϵͳ»·¾³£º
Ê×ÏÈÉèÖÃrootÓû§Õâ¸öÖն˵ġ£
export ORACLE_BASE=/opt/ora9
export ORACLE_HOME=/opt/ora9/product/9.2
(Oracle±»°²×°ÔÚÕâЩλÖÃ)
5.ÉèÖÃoracleÓû§µÄ»·¾³£¬ пªÒ»¸öÖնˣ¬
su - oracle
***×¢ÒâÒ»¶¨ÒªÐ¿ªÒ»¸ö ***
´ò¿ª.bash_profileÎļþ£¬½«ÈçÏÂÄÚÈݼÓÈ룺
(ÃüÁîvi $HOME/.bash_profile ±à¼ÓÃVIʹÓÿɲéÊÖ²á I ½øÈëedit ;w ´æÅÌ ;qÍ˳ö)
#oracle 9i
export DISPLAY=¡±192.9.200.24:0.0¡± (127.0.0.1:0.0)
export ORACLE_BASE=/opt/ora9
export ORACLE_HOME=/opt/ora9/product/9.2
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH
export ORACLE_OWNER=oracle
export ORACLE_SID=ora9i (Êý¾Ý¿âÈ«¾Ö±äÁ¿Ãû)
export ORACLE_TERM=xterm (xterm´°¿Úģʽ vt100 Öն˵÷ÊÔģʽ)
export LD_ASSUME_KERNEL=2.4.1
export THREADS_FLAG=native
export LD_LIBRARY_PATH=/opt/ora9/product/9.2/lib:$LD_LIBRARY_PATH
export PATH=/opt/ora9/product/9.2/bin:$PATH
export NLS_LANG=AMERICAN (ÉèÖÃÓïÑÔAMERICANÓ¢ÎÄ)
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
±£´æºóÍ˳ö. Ö´ÐУº source .bash_profile ²é¿´ set | more
È»ºó¡£Í˳öµÇ¼£¬ÔٴνøÈ룬ÕâʱºòoracleµÄ»·¾³¾ÍÒѾÉúЧÁË.
6¡¢½âѹÎļþ£¬°²×°Ç°´ò²¹¶¡£¬Çл»µ½rootÓû§µÄ¿ØÖÆ̨£º(×¢£º´ò²¹¶¡Ç°Ö´ÐÐÒÔÏÂÓï¾ä)
#su - root
#mv /usr/bin/gcc /usr/bin/gcc323
#ln -s /usr/bin/gcc296 /usr/bin/gcc
#mv /usr/bin/g++296 /usr/bin/g++
#ln -s /usr/bin/g++ /usr/bin/g++296
µÚËÄ,¿ªÊ¼Õýʽ°²×°
1¡¢½¨Á¢oracle°²×°ÁÙʱĿ¼ su - root
#cd /home
#mkdir ora9i
#cd ora9i
ÕâЩĿ¼Äã¿ÉÒÔ×Ô¼º¶¨Òå,ÓÃÀ´´æ·Å°²×°Îļþ¡£
2.½âgzÎļþ (´°¿Úģʽ½âѹ²»»á°ÑÔµµ°¸É¾³ý£¬ÖÕ¶Ëģʽ½âѹºó×Ô¶¯É¾³ýÔµµ°¸)
#gunzip gunzip lnx_920_disk1.cpio.gz
#gunzip lnx_920_disk2.cpio.gz
#gunzip lnx_920_disk3.cpio.gz
3.ÊÍ·ÅcpioÎļþ
#cpio -idmv < lnx_920_disk1.cpio
#cpio -idmv < lnx_920_disk2.cpio
#cpio -idmv < lnx_920_disk3.cpio
//Õâ¸ö²½Ö轫Éú³ÉÈý¸öÎļþ¼Ð£ºDISK1, DISK2, DISK3
rootÉí·ÝÔËÐУ¬ÔÚ/home/ora9i
p3006854_9204_LINUX.zip ²¹¶¡°²×°£º(ÒѾ½«²¹¶¡½âѹµ½¹âÅÌ)
#unzip p3006854_9204_LINUX.zip
#cd /home/ora9i /3006854
#sh rhe13_pre_install.sh
Applying patch...
Patch successfully applied
4£®Íê³ÉOracleµÄ°²×°£º
пªÒ»¸ö¿ØÖÆÖÕ¶Ë(ÓÃrootÓû§¿ª)
#xhost +192.168.0.2 (±¾µØIPµØÖ·)
(xhost disable·ÃÎÊ¿ØÖÆ£¬¿Í»§¶Ë¿ÉÒÔ´ÓÈκÎÖ÷»ú½øÐÐÁ¬½Ó)
Õâ¸öÃüÁîÓÃÀ´±£Ö¤oracleÓû§µ÷ÓÃX11,·ñÔòÎÞ·¨°²×°
#su - oracle
ÔڵǼÖÕ¶ËÖÐÇл»µ½oracleÓû§£º
ÔÚoracleÖ÷Ŀ¼ÀïÔËÐÐ:# /home/ora9i/Disk1/runInstaller
**********************************************
°²×°¹ý³ÌÖеÄ×¢ÒâÊÂÏ
1.ÔÚ°²×°ÖÐÈÃÄãÊäÈë UNIX group name£ºoinstall (#groupadd oinstall)
Èç¹ûÌáʾorainstRoot.shȨÏÞÎÊÌ⣬ÔÚrootÖÕ¶ËÏÂÖ´ÐУº
#sh /tmp/orainstRoot.sh È»ºó¼ÌÐø
2.ÔÚ°²×°ÖÐÑ¡Ôñ software only ²»Òª½¨Êý¾Ý¿â
3. °²×°¹ý³ÌÖÐÌáʾ/opt/ora9/product/9.2 ȨÏÞÎÊÌ⣬¿ÉÁí¿ª´°¿ÚÐÞ¸ÄȨÏÞΪoracle-dba
ÔÚ½áÊøµÄʱºò»¹»áÌáʾȨÏÞÎÊÌ⣬Áí¿ª´°¿ÚÐÞ¸ÄȨÏÞΪroot-root
×¢ÒâµÄÊÇÒÔϼ¸µã:
Relink½×¶Î,»á³öÁ½¸ö´íÎó:ins_oemagent.mk ºÍ ins_ctx.mk. µã Ignore ºöÂÔ.
ÔÚ²¿·ÖÎĵµÀï,ÒªÇóoracleÓû§µÄbash_profileÎļþÖнµLD_ASSUME_KERNELÉèÖÃΪ2.4.19,ǧÍò²»ÒªÕâÑùÉèÖÃ,·ñÔò»áÔÚRlinkʱ»áÓÐÒ»´ó¶Ñ±¨´í
ÔÙ°²×°¹ý³ÌÖÐ,ϵͳ»áÌáÐÑÄãÓÃrootÉí·ÝÈ¥Ö´ÐÐÁ½¸öshÎļþ,ÔÙrootµÄµÇ¼ÖÕ¶ËÖа´Ìáʾ²Ù×÷¾Í¿ÉÒÔÁË
Èç¹ûÓÐNLSµÄ´íÎóÌáʾ£¬¿ÉÒÔ#unset LANGÃüÁî,°ÑÓïÑÔĬÈϳÉÓ¢ÎÄ.
************************************************
5£®¿ªÊ¼Éý¼¶oracle su - oracle
°²×°½áÊøºó,HTTPD»á×Ô¶¯ÔËÐÐ.ÔÚÉý¼¶Ö®Ç°,ÐèÒª½«ËüÍ£ÏÂÀ´.
$ cd $ORACLE_HOME/Apache/Apache/bin
$ apachectl stop
./apachectl stop: httpd stopped
LISTENERÒ²ÐèҪͣÏÂÀ´.
$ lsnrctl stop
LSNRCTL for Linux: Version 9.2.0.1.0 - Production on 07-NOV-2003 16:25:41
Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(PORT=1521))
The command completed successfully
×¢Òâ: Èç¹û²»Í£µÄ»°,oracle»áÌáʾ²»Äܸ²¸ÇÎļþ.Õâ¸öʱºòÔÙÈ¥½«·þÎñÍ£ÏÂÀ´Ò²¿ÉÒÔ,µãRetry¾Í¿ÉÒÔÁË.
¿ªÊ¼´ò²¹¶¡Éý¼¶.
×¢Òâ´ò²¹¶¡Ê±Ê¹ÓÃrootÓû§,Çл»µ½rootÓû§¿ØÖÆ̨£º
½â°ü:
# unzip /home/ora9i/p3095277_9204_LINUX.zip
Archive: p3095277_9204_LINUX.zip
inflating: 9204_lnx32_release.cpio
inflating: README.html
inflating: patchnote.css
(»áÔÚ/home/ora9/Disk1ÏÂ×Ô¶¯Éú³É9204_lnx32_release.cpio)
# cpio -idmv < /home/ora9/Disk1/9204_lnx32_release.cpio
×öÍêÕâ¸öºó£¬ÔÙÇл»µ½oracleÓû§¿ØÖÆ̨£¬ ÔÙ´ÎÔËÐÐ/home/ora9i/Disk1/runInstallerÉý¼¶£¬×¢Òâ±ØÐëÏÈÑ¡Ôñ×îÏÂÃæµÄ°²×°Ñ¡Ï°²×°OUI
Òª²»È»Ã»Óа취´òÄǸö×îÉÏÃæµÄÉý¼¶²¹¶¡¡£
Éý¼¶ÍêOUIºó£¬ÒªÍ˳ö£¬ÔÙ´ÎÔËÐÐ/home/ora9i/Disk1/runInstaller
Ñ¡ÔñµÚÒ»¸öÑ¡Ïî,½«OracleÉý¼¶µ½9.2.0.4¡£
Õâʱºò»¹ÊÇ»áÓÐÒ»¸ö´íÎó³öÏÖ¡£ÔÙ´ÎÑ¡ÔñºöÂÔËü¡£
°²×°¹ý³ÌÖÐÈç¹û³öÏÖ/opt/ora9/product/9.2 ûÓÐȨÏÞ£¬Ö±½ÓÕÒµ½Îļþ¼Ð¸ü¸ÄȨÏÞ.
6.´òÆäËûµÄ²¹¶¡£º
Çл»µ½rootµÄÖնˡ£
Ê×ÏÈ°²×° opatch.
# unzip p2617419_210_GENERIC.zip
Archive: p2617419_210_GENERIC.zip
creating: OPatch/
creating: OPatch/docs/
inflating: Opatch/docs/FAQ
......
inflating: README.txt
#pwd (²é¿´Ö´ÐÐȨÏÞ)
#export PATH=$PATH:/home/ora9i/Opatch:/sbin
(ÐÞ¸ÄPATHʱҪҪ°üÀ¨½âѹËõ³öÀ´µÄOpatch ºÍ sbinĿ¼)
# unzip p3119415_9204_LINUX.zip
Archive: p3119415_9204_LINUX.zip
creating: 3119415/
inflating: 3119415/README.txt
# cd 3119415
# opatch apply
****Èç¹ûÌáʾHOME±äÁ¿´íÎó¿ÉÖ´ÐÐÓï¾ä£º****
#export ORACLE_BASE=/opt/ora9
#export ORACLE_HOME=/opt/ora9/product/9.2
³öÏÖsuccessµÄÌáʾ¾ÍÈ«²¿°²×°³É¹¦.
(³öÏÖÑ¡ÔñORACLE_HOME=/opt/ora9/product/9.2Ñ¡ÔñN)
×îºóÇл»µ½oracleÖÕ¶Ë
#dbca (Èç¹ûÓÐÂÒÂëÖ´ÐУº#unset LANG)
½¨oracleÊý¾Ý¿â
(²é¿´°²×°Íê³ÉºóµÄ¼ì²éºÍ²âÊÔÄÚÈÝ)
***************************************
¿ÉÄÜ»á³öÏÖ´íÎóÌáʾ£º /etc/oratab file doesn¡¯t exist
¿ÉÖ´ÐÐÏÂÃæÓï¾ä£º
#cd /opt/ora9/product/9.2/install/utl
#sh root.sh
****************************************
Êý¾Ý¿â½¨Á¢Íê³Éºó¹ÒÆðoracle
Æô¶¯oracle¼àÌý
$lsnrctl
lsnrctl>status (²é״̬)
lsnrctl>start
¼ì²éoracle·þÎñÊÇ·ñ¹ÒÆð
$ps -ef |grep ora
Á¬½ÓÊý¾Ý¿â
$sqlplus /nolog
SQL>connect / as sysdba
SQL>startup mount
¼ì²éÊÇ·ñÁ¬½Óoracle
SQL>select sysdate from dual;
Sp2-0640:Not connected
¹ÒÆð
SQL>startup
**************************************************
Èç¹û³öÏÖ´íÎóÐÅÏ¢£º
ORA-01078:failucr in processing system parameters
LRM-00109:could not open parametet file/opt/ora9/product/9.2/dbs/initora9i.or
Ö´ÐУº
#cp /opt/ora9/admin/orcl/pfile/init.ora.613200412101 /opt/ora9/product/9.2/dbs/initora9.ora
*****************************************************