发表于: 2004-07-09 00:27 发表主题: 在RHAS3上成功安装Oracle9204 | |
1、从网上下载redhat Enterprise Linux Advanced Server3的四个安装文件,安装时swap分区设置为内存的二倍。不要采用DHCP设置主机名和IP地址,而是“手工设置”。否则会在安装oracle的时候出现如下错误: |
引用: |
Thrown when the IP address of a host cannot be determined |
引用: |
#su - root
#rpm -qa|grep compat compat-db-4.0.14-5.i386 compat-gclearcase/" target="_blank" >cc-7.3-2.96.122.i386 compat-gcc-c++-7.3-2.96.122.i386 compat-libstdc++-7.3-2.96.122.i386 compat-libstdc++-devel-7.3-2.96.122.i386 #rpm -qa|grep openmotif21 openmotif21-2.1.30-8.i386 #rpm -qa|grep setarch setarch-1.3-1.i386 #rpm -qa|grep tcl tcl-8.3.5-92.i386 |
引用: |
compat-db-4.0.14-5.i386.rpm compat-gcc-7.3-2.96.122.i386.rpm compat-gcc-c++-7.3-2.96.122.i386.rpm compat-libstdc++-7.3-2.96.122.i386.rpm compat-libstdc++-devel-7.3-2.96.122.i386.rpm openmotif21-2.1.30-8.i386.rpm setarch-1.3-1.i386.rpm tcl-8.3.5-92.i386.rpm |
引用: |
mount -o loop /mnt/e/rhas3/rhel-3-i386-as-disc3.iso /mnt/cdrom |
引用: |
#su - root
mv /usr/bin/gcc /usr/bin/gcc323 ln -s /usr/bin/gcc296 /usr/bin/gcc mv /usr/bin/g++ /usr/bin/g++323 # if g++ doesn't exist, then gcc-c++ was not installed(这里是注释哦) ln -s /usr/bin/g++296 /usr/bin/g++ |
引用: |
#vi /etc/sysctl.conf 加入: kernel.shmmax = xxxxx*1024*2(为内存的2倍,切换到字节。要是超过这个值,在运行dbca时会出现Ora-27123:Unable to attach to shared memeroy segment) kernel.shmmni=4096 kernel.shmall=2097152 kernel.sem=250 32000 100 128 fs.file-max=65536 net.ipv4.ip_local_port_range=1024 65000 #vi /etc/security/limits.conf 加入: oracle hard nofile 65536 oracle soft nofile 65536 oracle hard nproc 16384 oracle soft nproc 16384 |
引用: |
#groupadd oinstall
#groupadd dba #useradd -g oinstall -G dba oracle #passwd oracle |
引用: |
vi $HOME/.bash_profile
插入下面的内容 # Set the LD_ASSUME_KERNEL environment variable only for Red Hat 9 and # for Red Hat Enterprise Linux Advanced Server 3 (RHEL AS 3) !! # Use the "Linuxthreads with floating stacks" implementation instead of NPTL: export LD_ASSUME_KERNEL=2.4.1 # Oracle Environment export ORACLE_BASE=/home/oracle export ORACLE_HOME=$ORACLE_BASE/product/9.2.0 export ORACLE_SID=test export ORACLE_TERM=xterm # export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin export NLS_LANG=AMERICAN; export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export LD_LIBRARY_PATH # Set shell search paths export PATH=$PATH:$ORACLE_HOME/bin |
引用: |
#su - root
#mkdir /opt/oracle #mkdir /opt/oracle/product #mkdir /opt/oracle/product/9.2.0 #chown -R oracle.oinstall /opt/oracle #mkdir /var/opt/oracle #chown oracle.dba /var/opt/oracle #chmod 755 /var/opt/oracle |
引用: |
mkisofs -r Disk1 | cdrecord -v --eject dev=0,0,0 speed=15 - mkisofs -r Disk2 | cdrecord -v --eject dev=0,0,0 speed=15 - mkisofs -r Disk3 | cdrecord -v --eject dev=0,0,0 speed=15 - |
引用: |
Error occurred during initialization of VM
Unable to load native library: /tmp/OraInstall2003-10-25_03-14-57PM/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference |
引用: |
su - root # unzip p3006854_9204_LINUX.zip Archive: p3006854_9204_LINUX.zip creating: 3006854/ inflating: 3006854/rhel3_pre_install.sh inflating: 3006854/README.txt # cd 3006854 # sh rhel3_pre_install.sh Applying patch... Patch successfully applied # 注意:如果运行 rhel3_pre_install.sh出现下面的错误 rhel3_pre_install.sh: line 36: gcc: command not found 是因为你忘了安装gcc,同样要是出现下面的错误: # ls ls: error while loading shared libraries: /etc/libcwait.so: cannot open shared object file: No such file or directory # rm /etc/ld.so.preload rm: error while loading shared libraries: /etc/libcwait.so: cannot open shared object file: No such file or directory # 请不要退出bash,用下面的方法来修复(我开始遇到,后来没有遇到了,可能是因为我把gcc降级到了296吧) # echo "" > /etc/ld.so.preload rm /etc/ld.so.preload And start over again. |
引用: |
su root
sh /tmp/orainstRoot.sh |
引用: |
su - oracle
$ cp p2617419_210_GENERIC.zip /tmp $ cd /tmp $ unzip p2617419_210_GENERIC.zip $ export PATH=$PATH:/tmp/OPatch $ export PATH=$PATH:/sbin # the patch needs "fuser" which is located in /sbin $ unzip p3238244_9204_LINUX.zip $ cd 3238244 $ opatch apply |