当前位置: > Linux发行版 > SuSE >

Suse 11sp1安装oracle 10g文档

时间:2014-09-21 01:08来源:linux.it.net.cn 作者:it
这几天在IBM SYSTEM X 上安装Oracle 10g 下面把自己的资料整理一下给大家分享一下:
 
服务器:IBM SYSTEM X
操作系统:SUSE Enterprise Linux 11SP1
Oracle:Oracle 10.2.0.1
 
一、首先安装依赖包
    安装C/C++编译器工具
    安装方法可以用字符界面和Yast方式来安装(这里就不详细说了)
   安装oracle服务器库orarun
   可以到Novell官方网站下载适合自己机器的相应orarun安装包来进行安装
   下载网址:http://ftp.novell.com/partners/oracle/sles-11/
    #rpm -ivh orarun-1.9-172.19.x86_64.rpm
   orarun的作用就是创建安装oracle的用户oracle和两个用户组oinstall和dba,然后创建一些环境:具体的作用参考如下具体的说明:
-creates a user "oracle" and groups "dba, oinstall" - with fixed ids
- provides several symlinks for some Oracle products that expect e.g.
  the shell in non-standard places
- create all 255 possible raw device files in /dev/raw/
- installs and activates a SysV start/stop script for automated Oracle
  start/stop plus Oracle components like OCFS (cluster filesystem for
  Oracle RAC) or the Oracle Apache webserver
- the SysV script tries to guess ORACLE_HOME from /etc/oratab if it's
  not set in /etc/profile.d/oracle
- the /etc/profile.d/oracle.sh script has some logic to add /opt/gcc295/bin
  in front of the path if gcc_old is installed, and to set "ulimit", both
  only for user "oracle"
- the SysV script sets ulimits, together with the ulimit setting in 
  /etc/profile.d/oracle.sh this ensures that Oracle gets the right limits
  for max. number of files it can open and the like when started using 
  this SysV script
- the SysV script does some sanity checks, like checking if a component
  that it's been told to start is really installed 
- During installation of orarun two entries for user oracle are added to
  file /etc/security/limits.conf. This file is only for users logging in
  via "login", "su" and the like do not use those settings!
 
二、激活oracle用户
     修改/etc/passwd下的oracle用户的信息
     vi /etc/passwd
     把其中的/bin/false修改为/bin/bash,保存退出
     修改oracle的密码
     passwd oracle
     同样这些操作也可以通过Yast来操作来实现。
 
三、检查limits.conf和login的相关设置是否正确
 
      vi /etc/security/limits.conf查看是否有如下字段
      
      oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
 vi /etc/pam.d/login查看是否有如下字段
  注意如果是64位服务器要加上/lib64/security/pam_limits.so
session required /lib64/security/pam_limits.so
session required pam_limits.so
 
四、安装oracle数据库
安装oracle数据库钱一定要修改下 oraparam.ini文件在认证系统中加入SuSE-11
因为oracle 10g的官方认证系统中没有Suse 11 所以安装的的时候如果不修改,会报错
找到“Certified Versions"后加入
vi /opt/oracle/database/install/oraparam.ini
注意这里一定要切换到oracle用户下来进行安装
可以重启用oracle登陆或者按开始菜单点击切换用户用oracle来登陆
解压安装oracle数据库
cpio -idmv < 10......x86_64.cpio解压安装文件
进入到安装文件目录下/opt/oracle/database下运行安装文件runinstall
./runinstall 来安装oracle数据库
下面就会跳出图形安装界面一步一步的操作即可。。
      
五、设置oracle环境变量
修改profile来添加oracle的环境变量,不然无法使用oracle的许多命令
 
集群操作会在以后添加上!!!!
(责任编辑:IT)
------分隔线----------------------------