Chinaunix首页 | 论坛 | 博客
  • 博客访问: 711137
  • 博文数量: 160
  • 博客积分: 8847
  • 博客等级: 中将
  • 技术积分: 1656
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-25 16:46
个人简介

。。。。。。。。。。。。。。。。。。。。。。

文章分类

全部博文(160)

文章存档

2015年(1)

2013年(1)

2012年(4)

2011年(26)

2010年(14)

2009年(36)

2008年(38)

2007年(39)

2006年(1)

分类: Oracle

2007-04-18 14:48:44

Linux Install:
Install Everything is recommend.
==================================================
Oracle Install:
zcat ship_9204_linux_disk1.cpio.gz | cpio -idvm
zcat ship_9204_linux_disk2.cpio.gz | cpio -idvm
zcat ship_9204_linux_disk3.cpio.gz | cpio -idvm

rpm -Uvh compat-libcwait-2.1-1.i386.rpm
rpm -Uvh compat-oracle-rhel4-1.0-5.i386.rpm

sh ./check.sh(检查所需的软件是否存在,脚本在后面)。
===================================================
patch for as4:
文件: p3006854_9204_LINUX.zip
大小: 1KB
下载: 下载

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

文件: attachment.pdf
大小: 109KB
下载: 下载


 



可能出现的故障:

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,


解决方法:打开一个新的终端
(注:必须是图形界面下的Koncole,如果在文字界面下将不成功),以root登陆,输入如下命令:

#xhost +


阅读(2508) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~