`
coolbi
  • 浏览: 85427 次
  • 性别: Icon_minigender_1
  • 来自: 重庆&南京
社区版块
存档分类
最新评论

Installation of Oracle 9i (R2) on SUSE LINUX 9_1

阅读更多
Installation of Oracle 9i (R2) on SUSE Linux 9.1, 9.2, 9.3 and 10.1



This paper (HOWTO) describes step-by-step installation of Oracle 9i database software on SUSE LINUX 9.1, 9.2, 9.3 and 10.1.

This paper covers following steps:

 

Pre-Instalation Tasks

1. Create oracle User Account

Login as root and create te user oracle which belongs to dba group.

su -
# groupadd dba
# useradd -g dba oracle
# mkdir /home/oracle
# chown oracle:dba /home/oracle


2. Setting System parameters
Edit the /etc/sysctl.conf and add following lines:

kernel.sem = 250 32000 100 128
kernel.shmmax = 2147483648
kernel.shmmni = 128
kernel.shmall = 2097152
kernel.msgmnb = 65536
kernel.msgmni = 2878
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000

Note: You need execute "sysctl -p" command or reboot system to apply above settings.

Edit the /etc/security/limits.conf file and add following lines:

* - nproc 16384
* - nofile 16384


3. Setting Oracle Enviroment
Edit the /home/oracle/.bash_profile file and add following lines:

Settings for SuSE 9.1, 9.2 and 9.3 only. For SuSE 10.1 use the next settings.

ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/920
ORACLE_SID=MY_ORACLE
LD_LIBRARY_PATH=$ORACLE_HOME/lib
LD_ASSUME_KERNEL=2.4.1
PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH LD_ASSUME_KERNEL


Settings for SuSE 10.1 only. For SeSE 9.1, 9.2 and 9.3 use the above settings. Note setting of LD_ASSUME_KERNEL in 10.1 will cause incorrect functionality of OS.

ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/920
ORACLE_SID=MY_ORACLE
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH


Save the .bash_profile and execute following commands for load new enviroment:

cd /home/oracle
. .bash_profile



4. Create base directory for Oracle

Login as root and create base directory for Oracle ($ORACLE_BASE).

su -
# cd /opt
# mkdir oracle
# chown oracle:dba oracle

 

Download & Install

1. Download and install required .rpm packages

Some additional packages are required for succesful instalation of Oracle software. To check wheter required packages are installed on your operating system use following command:

rpm -q gcc glibc-devel libstdc++ libstdc++-devel cpp


If some package is not installed download it from SUSE ftp server or direct from 9.1, 9.2, 9.3 locations or install it from installation media.

Download the gcc_old-2.95.3-175.2.i586.rpm package.

Install the required packages using the rpm command:

# rpm -ivh gcc-3.3.4-11.i586.rpm \
glibc-devel-2.3.3-118.i586.rpm \
libstdc++-3.3.4-11.i586.rpm \
libstdc++-devel-3.3.4-11.i586.rpm \
cpp-3.3.4-11.i586.rpm \
compat-2004.9.6-2.i586.rpm \
gcc_old-2.95.3-175.2.i586.rpm


If all required packages were installed succesfuly then login as root and switch the GCC3 compiler binary with GCC2 compiler binary as following:

su -
# cd /usr/bin
# mv ./gcc ./gcc3
# mv /opt/gcc295/bin/gcc ./gcc


2. Download the Java Runtime Enviroment (j2re-1_3_1_15-linux-i586.bin) from the Sun website. Keep in mind you need to download j2re1.3.1_11 or higher (Note: Install JRE 1.3.1_1x version only).

Login as root and make the the file executable and then execute it. When the JRE is exracted move the "jre1.3.1_15" di rectory to "/opt" directory.

# chmod +x j2re-1_3_1_15-linux-i586.bin
# ./j2re-1_3_1_15-linux-i586.bin

# mv jre1.3.1_15 /opt/


3. Download the Oracle 9i (9.2.0.4) software from Oracle website.
Extract the files using following command:

gunzip ship_9204_linux_disk1.cpio.gz
gunzip ship_9204_linux_disk2.cpio.gz
gunzip ship_9204_linux_disk3.cpio.gz

cpio -idmv < ship_9204_linux_disk1.cpio
cpio -idmv < ship_9204_linux_disk2.cpio
cpio -idmv < ship_9204_linux_disk3.cpio


When all archives were extracted you've got three directories Disk1, Disk2 and Disk3.
Edit the Disk1/install/linux/oraparam.ini and modify JRE_LOCATION variable and set path to our JRE installation from Step 2.

JRE_LOCATION=/opt/jre1.3.1_15

4. Start the Oracle software installation process.

Now the system is prepared for Oracle software installation. To start the installation process execute the following commands:

cd Disk1
./runInstaller


When network configuration assistant and database configuration assistant has failed during startup then do following steps:

cd /opt/oracle/920
rm JRE
ln -s /opt/jre1.3.1_15 JRE
su -
# cd /opt/oracle/920/JRE/bin
# ln -s java jre
# cd i386/native_threads
# ln -s java jre


Click on "Retry" button.

Post-Instalation Tasks

1. Switch back the GCC binaries

su -
# cd /usr/bin
# mv ./gcc ./gcc296
# mv ./gcc3 ./gcc


2. Change of JRE path in Oracle Universal Installer

Edit the $ORACLE_BASE/oui/oraparam.ini file and modify the value of JRE_LOCATION to /opt/jre1.3.1_15

3. (Optional) You may consider to use rlwrap for comfortable work with sqlplus. RPM package for SuSE (x86) distribution you can download here.

su -
# rpm -ivh rlwrap-0.24-suse.i586.rpm
# exit
echo "alias sqlplus='rlwrap sqlplus'" >> /home/oracle/.bash_profile
. /home/oracle/.bash_profile


Common Installation Errors

Unable to load native library: /tmp/OraInstall2005-01-08_11-11-34AM/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
Solution: Install new JRE 1.3.1 version. Edit the Disk1/install/linux/oraparam.ini and set path to new JRE for JRE_LOCATION variable. For more information see Download & Install section.

Error in invoking target install of makefile /opt/oracle/920/ctx/lib/ins_ctx.mk
Error in invoking target install of makefile /opt/oracle/920/precomp/lib/ins_precomp.mk
Error in invoking target install of makefile /opt/oracle/920/plsql/lib/ins_plsql.mk
Error in invoking ntcontab.o of makfile /opt/oracle/920/network/lib/ins_net_client.mk

Solution: Install the gcc_old-2.95.3-175.2.i586.rpm (gcc 2.95) package and change the GCC binaries. For more information see Download & Install section.

Starting Oracle Intelligent Agent.../opt/oracle/920/bin/dbsnmpwd: line 156: 2861 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
/opt/oracle/920/bin/dbsnmpwd: line 156: 2873 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
/opt/oracle/920/bin/dbsnmpwd: line 156: 2884 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
/opt/oracle/920/bin/dbsnmpwd: line 156: 2895 Segmentation fault nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1

Solution: Download and apply patch nr.: 3238244 from http://metalink.oracle.com.

Exception in thread "main" java.lang.InternalError: Can't connect to X11 window server using 'localhost:0.0' as the value of the DISPLAY variable.
Solution: Execute "export DISPLAY=:0.0" (as oracle user) and "xhost +" as user who has opened X session (for example logged in KDE, GNOME, etc.). If the value is other than 127.0.0.1 or localhost you should "xhost +" on client machine.

Last update: 23-07-2006. Comments, suggestions, questions, errors (also grammatical :) )? Feel free to contact me.
分享到:
评论

相关推荐

    suse10安装oracle9i

    提供的"**SUSE Linux 9.x 和10.x上安装ORACLE9i.pdf**"文件应该包含了更详细的指南和解决常见问题的方案,建议仔细阅读并参考该文档以顺利完成安装。同时,时刻保持系统更新,确保软件的安全性和稳定性。

    Oracle 9i 在LINUX下的安装

    Oracle 9i的安装程序包含三个文件:Linux9i_Disk1.cpio.gz、Linux9i_Disk2.cpio.gz、Linux9i_Disk3.cpio.gz,需要使用gunzip和cpio命令进行解压缩。 对于系统需求,文章指出SuSE 7.1(Kernel 2.4.4)是推荐的操作...

    suse linux 10 下安装 oracle9i

    标题与描述概述的知识点是关于如何在SUSE Linux 10操作系统上安装Oracle 9i数据库。这涉及了几个关键步骤,包括环境准备、系统配置调整、依赖软件包的安装、用户与组的创建、Oracle目录结构的设置以及环境变量的配置...

    suse_linux_11_安装oracle_11

    suse_linux_11 下 安装oracle_11

    Oracle11g安装文档_SUSE_11_server_sp1

    根据文档描述,目标操作系统为SUSE Linux Enterprise Server 11 (x86_64),因此需要准备相应的Oracle 11g安装包: - `linux.x64_11gR2_database_1of2.zip` - `linux.x64_11gR2_database_2of2.zip` 此外,还需要...

    Suse_Linux_10上安装Oracle_10.2g

    Suse_Linux_10上安装Oracle_10.2g

    oracle 9i 在linux上面需要安装时候的补丁

    1. **系统准备**:确保你的Linux系统是Oracle认证的版本,如Red Hat Enterprise Linux或SUSE Linux。同时,需要满足Oracle 9i的硬件和软件需求,例如足够的内存、磁盘空间,以及正确的库和依赖。 2. **用户和权限**...

    OpenSUSE__11.0_and_SUSE__Linux__Enterprise_Server_Bible.pdf(二/二)

    OpenSUSE__11.0_and_SUSE__Linux__Enterprise_Server_Bible.pdf linux opensuse suse 操作系统配置脚本详解。 对于其它类型的linux系统配置也有参考作用,因为所有linux发行版操作系统内部配置大部分都相同。 注意,...

    SUSE_Linux_x86_64_11.1

    SUSE_Linux_x86_64_11.1安装文档,64位机安装手册。有图片解释

    Linux下oracle9i安装需要的补钉包

    9. **打补丁**:题目中提到的"Linux下Oracle 9i补钉包"是关键步骤。Oracle发布补丁以修复已知问题和增强性能。找到对应的补丁,如PSU(Patch Set Update)或CRS(Critical Patch Update),根据Oracle文档中的说明...

    SuSE Linux 9 + ORACLE 9I + VCS4[1].1安装专题V

    【SuSE Linux 9 + ORACLE 9I + VCS4.1 安装专题】 在IT领域,构建高效、稳定且高可用性的数据库系统是至关重要的,而SuSE Linux 9、Oracle 9i数据库管理系统以及Veritas Cluster Server (VCS) 4.1的组合就是一种...

    R_TLQCli8.1.3.0_Linux2.6.16_X86_64.tar.Z

    R_TLQCli8.1.3.0_Linux2.6.16_X86_64.tar.Z

    Oracle9i 数据库安装

    在这个例子中,操作系统是SuSE Linux 7.2,已经安装了Oracle9i Enterprise Edition Release 9.0.1,且ORACLE SID(System Identifier)被设置为ora901。 使用Database Configuration Assistant (DBCA)来创建新的...

    suse.rar_suse_suse Linux

    1. **系统需求**:确定硬件配置是否满足SUSE Linux 10.0的最低要求,如处理器速度、内存大小和磁盘空间。 2. **下载与准备**:从官方网站或镜像站点获取ISO镜像文件,然后可以使用刻录软件制作DVD安装盘,或者使用...

    OpenSUSE__11.0_and_SUSE__Linux__Enterprise_Server_Bible(一/二)

    OpenSUSE__11.0_and_SUSE__Linux__Enterprise_Server_Bible.pdf linux opensuse suse 操作系统配置脚本详解。 对于其它类型的linux系统配置也有参考作用,因为所有linux发行版操作系统内部配置大部分都相同。 注意,...

Global site tag (gtag.js) - Google Analytics