Article View: cn.comp.os.linux
Article #13428Re: Linux�µ�ORACLE 8.1.7��ô��װ����ҪһЩʲô��Ļ�����
From: lfree
Date: Thu, 24 Oct 2002 00:09
Date: Thu, 24 Oct 2002 00:09
167 lines
7161 bytes
7161 bytes
�����redhat7.2�а�װoracle 8.1.7
ע�Ȿ�IJο���www.linuxeden.com��һƪ���£�������
0.������:
glibc-2.1.3-stubs.tar.gz
jdk118_v3-glibc-2.1.3.tar.bz2
env_ctx.mk
binutils-2.10.91.0.2-3 (��redhat 7.1)
��������һ�������С2G���ļ�ϵͳΪext2����reiserfs.��װ��Ϊ/oracle
���LANG,����Ϊen_US,��X windowʹ�� locale_config
1.ȷ�ϰ�װ�����������:
compat-libstdc++-6.2-2.9.0.16
compat-glibc-6.2-2.1.3.2
compat-egcs-c++-6.2-1.1.2.16
compat-libs-6.2-3
compat-egcs-6.2-1.1.2.16
compat-egcs-objc-6.2-1.1.2.16
2.��װbinutils-2.10.91.0.2-3,��redhat7.1��
mount /mnt/cdrom
cd /mnt/cdrom/Redhat/RPMS/
rpm -Uvh --force --nodeps binutils-2.10.91.0.2-3
cd /
umount /mnt/cdrom
��װ��ɺ�����ٻ�ԭ������
3.��װJdk1.1.8_v3��/usr/local:
tar -xjvf /where/locale/jdk118_v3-glibc-2.1.3.tar.bz2 -C /usr/local #ע
��-C��д
ln -s jdk118_v3 java
4.���û������봴����װĿ¼��
groupadd dba
groupadd oinstall
useradd oracle -g oinstall -G dba
passwd oracle
#mount /oracle
mkdir /oracle
chown oracle.dba /oracle
chmod 777 /oracle
5.�˳�ϵͳ�����½���Oracle�û���½��
�༭/home/oracleĿ¼�µ�.bash_profile�������������:
. /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
export LD_ASSUME_KERNEL=2.2.5
export LDEMULATION=elf_i386_glibc21
export GCC_EXEC_PREFIX=/usr/i386-glibc21-linux/lib/gcc-lib/
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/8.1.7
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=orcl
export ORACLE_TERM=vt100
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
umask 022
ע��: ���������ﷸ��һ��С�����������Ѿ�ʹ��devfs,��/etc/fstab��
none /dev/pts devpts gid=5,mode=620 0 0
��һ�и�ɾ���ˣ�������������װ����ʹת��root��ִ��su - oracleҲ
һ����������������һ�У�ִ��mount /dev/pts
6.�˳�oracle,����oracle�û���½��ʹ����������Ч��
ִ��/mnt/1dos/Disk1/runInstaller
7.
����İ�װ��ϸ����ʾ�������ʾ����װ����ѡ��oinstall��Ȼ����root�û�ִ��
orainstRoot.sh��
Global Database Name : orcl
SID : orcl
��������15��30���ӣ����������env_ctx.mk�Ĺ�?�¿�һ��console���ڣ�������
��
env_ctx.mk ������$ORACLE_HOME/ctx/lib/Ŀ¼�£�Ȼ��Retry��
��������Root�������root.sh��
ע��:root.sh�ļ���һ������ȱ��һ������ţ����������������ҿ�������ԭ���߲�
ͬ��
RUID=`/usr/bin/id|$AWK -F( '{print $2}'|$AWK -F) '{print $1}`
��Ϊ
RUID=`/usr/bin/id|$AWK -F( '{print $2}'|$AWK -F) '{print $1}'`
~
8.
�ڳ���net8���ô���ʱ����Ҫ�ż�����һ�����¿�һ��console�ڣ�������������
Oracle
������glibc-2.1.3-stubs.tar.gz��ִ��:
tar xzvf /where/locale/glibc-2.1.3-stubs.tar.gz -C $ORACLE_HOME
$ORACLE/setup_stubs.sh
��Լ5��10������ɡ�ѡ��Perform typical configuration����һ��,ֱ�������
�ɡ�
ע�����м����У���������ҵĻ���������������,�ҵĻ�����������:
celeron 300A��256M�ڴ棬IBM 20GӲ�̡�
����ְٷֱȲ�����������м�������Ϊ�����ˣ�ϣ����ע�⡣
9. ��/etc/oratab�����:
orcl:/oracle/app/oracle/product/8.1.7:N
��Ϊ
orcl:/oracle/app/oracle/product/8.1.7:Y
10.����/etc/rc.d/init.d/oracle���
�Ҳο�<Linux������ݿ����Աָ��>�е����ӽ�������:
#! /bin/bash
# start and stop the Oracle Instance
#
# chkconfig 345 91 19
# description : Starts the Oracle listener and instance
. /etc/rc.d/init.d/functions
ORA_HOME="/oracle/app/oracle/product/8.1.7"
ORA_OWNER="oracle"
if [ ! -f $ORA_HOME/bin/dbstart -o ! -d $ORA_HOME ]
then
echo "Oracle startup : can not start "
exit 1
fi
case "$1" in
start)
# Startup the Oracle listener and instance
echo -n "Oracle startup:"
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start" >/dev/null 2>&1
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart" >/dev/null 2>&1
touch /var/lock/subsys/oracle
daemon echo -e "Finished\n"
echo ""
;;
stop)
# Shutdown the Oracle listener and instance
echo -n "Oracle shutdown:"
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop" > /dev/null 2>&1
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut" > /dev/null 2>&1
rm -f /var/lock/subsys/oracle
daemon echo -e "Finished\n"
echo ""
;;
reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/rc.d/init.d/oracle {start|stop|restart|reload}"
exit 1
esac
exit 0
11.ִ��ntsysv,����oracle���Ա�ÿ�ο����Զ�������
12.ɾ���ڰ�װ����н�����/tmpĿ¼�µ������ļ���Ŀ¼.
��ԭbinutils�����.����㲻������ں�!
> ��Һã�
> ���������ORACLE 8.1.7���ɰ�װ��ʱ����ʾ��Ҫ��װJVM�����ʴ����ΰ�װ
> ORACLE��
> лл��
Technical Details
Message-ID:
<3db80d45$1@news.cn99.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!easynet-quince!easynet.net!maily.cic.tsinghua.edu.cn!news.cn99.com!News.Newsfan.NetReferences:
<3db74cf9@news.cn99.com>Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: 10b277,8755bd25af8d64ad X-Google-Attributes: gid10b277,public X-Google-ArrivalTime: 2002-10-24 14:56:02 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-04!supernews.com!easynet-quince!easynet.net!maily.cic.tsinghua.edu.cn!news.cn99.com!News.Newsfan.Net From: "lfree" <windows-free@163.com:s/windows/linux/> Newsgroups: cn.comp.os.linux Subject: Re: Linux�µ�ORACLE 8.1.7��ô��װ����ҪһЩʲô��Ļ����� Date: 24 Oct 2002 08:09:57 +0800 Organization: News.Newsfan.Net Lines: 169 Message-ID: <3db80d45$1@news.cn99.com> References: <3db74cf9@news.cn99.com> NNTP-Posting-Host: 218.21.99.75 X-Trace: mail.cn99.com 1035493703 51618 218.21.99.75 (24 Oct 2002 21:08:23 GMT) X-Complaints-To: usenet@news.cn99.com NNTP-Posting-Date: Thu, 24 Oct 2002 21:08:23 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106