如何在linux suse中安装Oracle 11g(一)安装准备
1、检测所要安装的数据包linux-udly:~ # rpm -qa 莽炭克假| grep binutilsbinutils-2.20.0-0.7.9linux-ud造婷用痃ly:~ # rpm -qa | grep gccgcc-4.3-62.198gcc43-c++-4.3.4_20091019-0.7.35linux-udly:~ # rpm -qa | grep glibcglibc-2.11.1-0.17.4linux-udly:~ # rpm -qa | grep libaiolibaio-0.3.109-0.1.46libaio-devel-0.3.109-0.1.46linux-udly:~ # rpm -qa | grep libgcclibgcc43-4.3.4_20091019-0.7.35linux-udly:~ # rpm -qa | grep libstdclibstdc++-devel-4.3-62.198libstdc++43-4.3.4_20091019-0.7.35libstdc++43-32bit-4.3.4_20091019-0.7.35libstdc++43-devel-4.3.4_20091019-0.7.35libstdc++43-devel-32bit-4.3.4_20091019-0.7.35linux-udly:~ # rpm -qa | grep makemake-3.81-128.20linux-udly:~ # rpm -qa | grep sysstatsysstat-8.1.5-7.9.56以上没有的安装包,都需要进行安装linux-udly:~ # rpm –ivh xxx

3、创建oracle用户linux-udly:~ #mkdir /home/oraclelinux-udly:~ # useradd -g oinstall -G dba -d /home/oracle oraclelinux-udly:~ # passwd oracle linux-udly:~ # chown -R oracle:oinstall /home/oracle/

5、 验证某些参数是否正确linux-udly:/opt # cat /etc/nsswitch.conf | grep hostshosts: files mdns4_minimal [NOTFOUND=return] dnslinux-udly:/opt # hostnamelinux-udlylinux-udly:/opt # cat /etc/hosts127.0.0.1 localhost

7、配置/etc/security/limits.conf文件,加入以下内容linux-udly:/opt #vi /etc/security/limits.conforacle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536
8、配置/etc/profile文件,加入以下内容,然后执行 source /etc/profilelinux-udly:/opt #vi /etc/profileif [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fifi

10、解压数据库文件oracle@linux-udly:~> su - root 切换到root用户??: linux-udly:~ # unzip linux.x64_11gR2_database_2of2.zip (此文件已上传到此目录,下同)linux-udly:~ #unzip linux.x64_11gR2_database_1of2.ziplinux-utdu:~ # mv -f database/ /opt/oracle/ (database移至/opt/oracle/)linux-utdu:~ # cd /opt/oracle/linux-utdu:/oracle # chown -R oracle:oinstall database/致此准备工作已完成!