。。。。。。。。。。。。。。。。。。。。。。
分类: Oracle
2007-04-18 14:48:44
|
unzip p3006854_9204_LINUX.zip
cd p3006854
sh ./rxxxxx.sh
====================================================
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
====================================================
mkdir -p /opt/oracle/product/9.2.0
mkdir /var/opt/oracle
chown oracle.dba /var/opt/oracle
chown -R oracle.dba /opt/oracle
====================================================
vi /home/oracle/.bash_profile
export ORACLE_HOME=/opt/oracle/product/9.2.0
export ORACLE_OWNER=oracle
export ORACLE_SID=oracle
export PATH=$ORACLE_HOME/bin:/bin:/opt/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/ucb:/usr/local/bin:/etc:/usr/openwin/bin:.
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib32
export LD_LIBRARY_PATH_64=$ORACLE_HOME/lib
export LD_ASSUME_KERNEL=2.4.19
export ORACLE_TERM=xterm
export NLS_LANG=Japanese_Japan.JA16SJIS
export LANG=ja
================================================
System:
vi /etc/sysctl.conf
kernel.shmmax = 268435456
kernel.shmmni = 4096
kernel.shmall = 2097152
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
=================================================
xhost +
cd /usr/local/src/Dist1
./runInstaller
(install software only)
====================================================
DBCA create scripts and pfile;
scripts can create databases and tablespace;
pfile can startup ORACLE with nomount;
#su - oracle
$dbca
==================================================
mkdir arch control data other redo
chown oracle.oinstall arch control data other redo
#su - oracle
$sqlplus "/ as sysdba"
sql> @/opt/oracle/admin/oracle/script/oracle.sql
大约需要量15-30分种
====================================================
check.sh
#!/bin/sh
request_list="
compat-db
compat-gcc
compat-gcc-32-c++
compat-oracle-rhel4
compat-libcwait
compat-libgcc
compat-libstdc++-296
compat-libstdc++-33
gcc
gcc-c++
gnome-libs
gnome-libs-devel
libaio-devel
libaio
make
openmotif21
xorg-x11-deprecated-libs-devel
xorg-x11-deprecated-libs"
for soft in $request_list
do
yn=`rpm -aq | grep $soft`;
if [ -z "$yn" ]
then
echo "$soft is not be installed yet. ------------------------->no";
else
echo "$soft has been installed. ------------------------->yes";
fi
done
|
可能出现的故障:
1:
Error: You do not have sufficient privileges to write to the specified path. in component Database Configuration Assistant 9.2.0.1.0.Installation cannot continue for this component.
原因:环境变量没有设置成功。
解决方法:
检查下面的变量是否设置:
eg.
mkdir /opt/oracle
chown oracle
oracle
chgrp dba oracle
export ORACLE_BASE=/opt/oracle
Set
environment:
ORACLE_HOME=/opt/oracle/product/9.2.0.4
PATH=$PATH:$ORACLE_HOME/bin
2: Exception in thread "main" java.lang.InternalError: Can''t connect to X11 window server using ''127.0.0.1:0.0'' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:59)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:58)
at java.awt.Window.(Window.java:188)
at java.awt.Frame.(Frame.java:315)
at java.awt.Frame.(Frame.java:262)
at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:593)
原因:可能是由于JDK的版本过老,在使用AWT时的一个属性出了问题。可以使用如下方法解决:
如果你设置了环境变量DISPLAY,