[Oracle] Installing Oracle 10g on RHEL AS 3 Step-by-Step

������Fenng
���ڣ�06-Apr-2004 ��
������http://www.dbanotes.net
�汾��1.01

����ǰ,Oracle(�׹���)��˾���������ݵ��ܲ�����, Oracle 10g ���ݿ� �� Oracle RAC �� TPC-H ��׼�����д������µ��� ���¼.���Ǹ������𾪵���Ϣ.��Ϊ����������� Linux ( Red Hat Enterprise Linux Advanced Server 3) ��ƽ̨�Ͻ��е�. ������ʾ�� Oracle �ڵͳɱ� Linux ��Ⱥ�������ϸ�Ч�������ģ���ݲֿ������, Ҳ���� Linux �����ܼ۸�����Զ��׼� ������,��־��Linux�ڴ��ģ��ҵӦ�����Ѿ�����.

���źܶ������Ѿ���10gԾԾ������,���ڴ����������ǿ�ʼ10g֮��.

������������Red Hat Enterprise Linux Advanced Server 3 (RHEL 3)�ϰ�װOracle 10g ��Ҫ�IJ�������֪ʶ. ���ļٶ� ���Linux ����ϵͳ�Ѿ���װ���,������Ӧ�þ���һ���� Unix ����ϵͳ����֪ʶ.

����RedHat AS 3


����ϵͳ�汾��
Red Hat Enterprise Linux AS release 3 (Taroon)
Kernel 2.4.21-4.EL on an i686

���ճ�������װ����ϵͳ,�ǵ�Ҫ��װ��������(gcc�ȱ�Ҫ����).

��Ҫ��Ӳ����Ϣ���


������� ��Сֵ �������ο�
�����ڴ� 512M # grep MemTotal /proc/meminfo
�����ռ� 1.0 GB����2���ڴ��С # grep SwapTotal /proc/meminfo
/tmp �ռ� 400 MB # df -k /tmp
��������ռ� 2.5 GB # df -k (�ռ�Խ��Խ��,�������ʽϵͳ,Ӧ�ý����꾡�Ĺ滮)
���ݿ��ļ� 1.2 GB # df -k (�ռ�Խ��Խ��,�������ʽϵͳ,Ӧ�ý����꾡�Ĺ滮)

��������ϸ���֮��, Ӧ���޸ĺ��IJ���.ִ����������:

#vi /etc/sysctl.conf

#ע��:
#��ʾʹ��root�û�����,$��ʾʹ��oracle �û����в���.��ʾ���������ɫ���ֱ�ʾ��Ҫ������������ͬ��

�ڸ��ļ�ĩβ������������:
kernel.shmall = 2097152 
kernel.shmmax = 2147483648 
kernel.shmmni = 4096 
kernel.sem = 250 32000 100 128 
fs.file-max = 65536 
net.ipv4.ip_local_port_range = 1024 65000
�༭��֮��,����,ִ�� # /sbin/sysctl -p ���������ʹ���������ı����Ч.

ע:����kernel.shmmax/kernel.sem���ǵ��͵ĺ��IJ�������.��������Ҫ��������ʵ�ʻ��������ʵ��ı䶯.

������Щ���IJ�����˵����Oracle�� Oracle9i Installation Guide Release 2 (9.2.0.1.0) for UNIX Systems ���к���ϸ��˵��.( http://download-west.oracle.com/docs/html/A96167_01/toc.htm )

Ȼ��,Ӧ�ü��һ������IJ����Ƿ���ȷ:
# /sbin/sysctl -a | grep sem 
# /sbin/sysctl -a | grep shm
# /sbin/sysctl -a | grep file-max
# /sbin/sysctl -a | grep ip_local_port_range

ΪOracle�û��趨Shell������

һ����˵�����������ϵĿ���,����Ҫ��Ҫ�������µ��趨���Ա�Ľ�Oracle�û����й� nofile(�ɴ򿪵��ļ� �������������)��nproc(�����û����õ�����������)

# vi /etc/security/limits.conf 
# �������µ���

*               soft    nproc   2047
*               hard    nproc   16384
*               soft    nofile  1024
*               hard    nofile  65536
�������µ��е�/etc/pam.d/login �ļ���
session    required     /lib/security/pam_limits.so 
�༭ /etc/profile �ļ�,�������²��֣�
if [ $USER = "oracle" ]; then  
	if [ $SHELL = "/bin/ksh" ]; then  
		ulimit -p 16384  
		ulimit -n 65536  
	else  
		ulimit -u 16384 -n 65536  
	fi  
fi

֮��ִ��$ unlimit ��֤һ��.

��鲢��װ��ز���

������汾��RHEL�ϰ�װOracle,����Ҫ�м���������. ȷ������ rpm�����Ѿ���װ:

make-3.79
binutils-2.11
openmotif-2.2.2-16
setarch-1.3-1 
compat-db-4.0.14.5
compat-gcc-7.3-2.96.122
compat-gcc-c++-7.3-2.96.122
compat-libstdc++-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122

# rpm -qa | grep compat 
# ���ҵĻ������������:

compat-gcc-c++-7.3-2.96.122
compat-libstdc++-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122
compat-glibc-7.x-2.2.4.32.5
compat-db-4.0.14-5
compat-gcc-7.3-2.96.122

# rpm -qa | grep openmotif 
openmotif-devel-2.2.2-16
openmotif-2.2.2-16

# rpm -qa | grep setarch
setarch-1.3-1

������ʾ���������ڱ����Ѿ���װ�˾����RPM��֮��Ľ��.һ�������,���ϵͳ�ϵ��������������ͬ.����� ���û�а�װ,��ϵͳ��װ����mount��,�ҵ������������(������ڵ����Ź�����),Ȼ���������µ���������װ��Ӧ �İ�:
# rpm -ivh compat.....rpm 
Ҫ����ע�����,��Щ������֮�����������Ե�,�Ⱥ��˳��Ҫ�Һ�.����ᱨ�治�ܰ�װ�Ĵ���. ���⣬�����֤һ�� gcc��glibc�İ汾(Ҫ����gcc-3.2.3-2 ���߸���):
#gcc -v 
#rpm -q glibc

�����û�����ص���

# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -g oinstall -G dba oracle��

���ֻ�Dz���Ŀ�ĵĻ���������oinstall��Ҳûʲô. �������ǹ淶һ��ȽϺ�.���oracle �û���dba����Ѿ����ڣ��� �ʵ��ĵ�������.

��鲢������������

��¼Ϊoracle�û�

# su - oracle
$ cd 
$ vi .bash_profile
#������������,��ľ���ֵӦ�ò���������ȫ��ͬ.
export ORACLE_BASE=/u/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.1.0/db_1
export ORACLE_SID=TEST
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export LC_CTYPE=en_US.UTF-8 
Ȼ��ִ��
$ source .bash_profile

ʹ����������Ч. /u/app/oracle ��Ŀ¼Ӧ�ý����ò������ʵ���Ȩ.

��ʼ��װ10g

mount��İ�װ��.(��һ�㶼�ǰ��ļ�������ϵͳ��һ�������λ��,����/u/install ) .ִ��:

$ sh /u/install/runInstaller 

������ܳ��ְ�װ���棬�鿴���ĺ����FAQ��

�dz�ֵ�óƵ�����,10g�İ�װ�����ǰ�Ķ���һ�� Checking operating system certification �IJ��衣�ر�ʵ�á� ��װ�ļ����Զ�������������������в����ϵĵط�����װ����ᱨ�����.�����������ԭ�򡣴������˳����Ŀ���. �����Ǽ��ɹ���������� :
Checking operating system certification 
Expected result: One of redhat-2.1,redhat-3,UnitedLinux-1.0 
Actual Result: redhat-3 
Check complete. The overall result of this check is: Passed 
======================================================================= 

Checking kernel parameters 
Checking for VERSION=2.4.9.25; found VERSION=2.4.21. Passed 
Checking for shmall=2097152; found shmall=2097152. Passed 
Checking for shmseg=10; found shmseg=4096. Passed 
Checking for semmsl=250; found semmsl=250. Passed 
Checking for semmni=128; found semmni=128. Passed 
Checking for filemax=65536; found filemax=65536. Passed 
Checking for shmmni=4096; found shmmni=4096. Passed 
Checking for semmns=32000; found semmns=32000. Passed 
Checking for semopm=100; found semopm=100.Passed 
Checking for shmmin=1; found shmmin=1. Passed 
Checking for shmmax=2147483648; found shmmax=2147483648. Passed
Check complete. The overall result of this check is: Passed 
======================================================================= 

Checking recommended operating system packages 
Checking for make-3.79; found make-3.79.1-17. Passed 
Checking for binutils-2.11.90.0.8-12; found binutils-2.14.90.0.4-26. Passed 
Checking for gcc-2.96; found gcc-3.2.3-20. Passed 
Checking for openmotif-2.1.30-11; found openmotif-2.2.2-16. Passed 
Check complete. The overall result of this check is: Passed 
======================================================================= 

Checking recommended glibc version 
Expected result: 2.2.4.31.7 
Actual Result: 2.3.2.95.3 
Check complete. The overall result of this check is: Passed 
======================================================================= 

Validating ORACLE_BASE location (if set) 
Check complete. The overall result of this check is: Passed 
======================================================================= 

�����IJ���Ƚ�����������׸��.

���ϵͳ����ʾ������root.sh�ļ�.������ʾ������.

FAQ (��Linuxƽ̨��װOracle�Ƚϳ���������)

1. ����������װ����

����runInstaller��ʾ��Ϣ��������:

xlib:connection to "localhost:0.0" refused by server 
xlib:client is not authorized to connect to server 

Exception in thread "main" java.lang.InternalError:
can't connect to x11 window server using "localhost:0.0" at ....... 

����취: �趨���DISPLAY��������.

# export DISPLAY= your_IPaddress :0.0

��your_IPaddress�������IP.������root�򵥵�ִ��һ��# xhost + (Ҫע���������а�ȫ�ϵ�����)

2.��װ������ʾ�ܶ�"�ڿ�"���ӵ�����

����취:�鿴locale���

# locale
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.GB18030
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

ִ��#export LC_CTYPE=en_US.UTF-8 Ȼ�����µ��ð�װ����.

3. ��IE��¼Linux�������ϵ�em��������


��Linux(Unix) �����³ɹ���װ��Oracle 10g,��windows����IE�������¼ 10g ��em, ��ť��"�ڿ�"�����ķ���.

����취: �ο�:
http://www.dbanotes.net/Oracle/Oracle-10g-font.properties.htm 

4.�������ݿ��ʱ�����ORA-03113�Ĵ���

����취: �鿴���IJ����Ƿ������ȷ.�ο�:

http://www.dbanotes.net/Oracle/ORA-03113.htm

5. RedHat 9 / FC1��ϵͳ10g��֧����ΰ�װ?


����취����10g��֧�ֵ�Linux���а��ϰ�װ10g�Ľ������

1). ����runInstaller -ignoreSysPrereqs���������������.
2). ժ�� www.puschitz.com �޸�/etc/redhat-release�ļ���
#su - root 
#cp /etc/redhat-release /etc/redhat-release.backup 
#cat > /etc/redhat-release <<   EOF 
Red Hat Enterprise Linux AS release 3 (Taroon) 
EOF 
��װ��ϣ�ִ�����²�����
#su - root 
#cp /etc/redhat-release.backup /etc/redhat-release 
3). http://www.dbanotes.net/Oracle/10G-Beta-Install-Bug.htm

ͬ����˼·�����ǿ����޸�Oracle ��install/oraparam.ini�ļ��ﵽĿ��.

6.��ιص���Щ ocssd.bin ���̣�

����취:�༭/etc/inittab�ļ�(���ñ���)

ע�͵���һ��:
h1:3:respawn:/etc/init.d/init.cssd run >/dev/null 2>................

�ο���Ϣ

Werner Puschitz �� 10g ��װָ�� - http://www.puschitz.com/InstallingOracle10g.shtml
Werner Puschitz ��վ������º���ʵ,����������˱���û��˵�������,����ȥ��������.���Ľ���˸�վ�㲻�����ݣ�

http://www.google.com - http://www.google.com
���ں��IJ�������Ϣһ��Ҫ��Google���ң�

Oracle Database Quick Installation Guide 10g Release 1 (10.1) for Linux x86
http://download-west.oracle.com/docs/html/B10813_01/toc.htm

Oracle Database Installation Guide 10g Release 1 (10.1) for UNIX Systems http://download-west.oracle.com/docs/html/B10811_02/toc.htm

DBAnotes.net �ҵ�վ�� �������ٺ�Oracle�йص���Ϣ��- http://www.dbanotes.net




��������

Fenng��ij���ʹ�˾DBA��ҵ��ʱ��켣�ڸ����ݿ���صļ�����̳���ִ˲�ƣ�� Ŀǰ��ע�������ORACLE���ݿ���Ч�ع�����ҵӦ�á���Oracle tuning��troubleshooting��һ���о���
���˼���վ��:http://www.dbanotes.net/ �� ����ͨ�������ʼ� [email protected] ��ϵ������

ԭ�ij���

http://www.dbanotes.net/Oracle/Install-Oracle10g-RHEL3.htm

����ҳ<-|->����ҳ

All Articles (by Fenng) are licensed under a Creative Commons License.
I would welcome any feedback. Please send questions, comments or corrections to [email protected]
Valid XHTML 4.01 / Valid CSS