oracle10g安装教程【Linux环境下Oracle10g安装(RAC)】

  摘要:当前网上关于安装LIS服务器资料甚多,但是其中存在一些问题。该文笔者根据安装服务器经验探讨了Linux环境下Ora? cle10g安装,以供参考。   关键词:LIS服务器;Linux;RAC;心得体会
  中图分类号:TP393文献标识码:A文章编号:1009-3044(2012)02-0262-03
  Oracle10g Installation under Linux(RAC)
  ZOU Xian-cong, WAN Yong
  (Sichuan Academy of Medical Sicences & Sichuan Provincial People’s Hospotal Institute of Dermatology STD, Chengdu 610031, China)
  Abstract: The current online information about installing many LIS server, but of which there are some problems. This experience of the author based on the Linux installation server environment Oracle10g installation for reference.
  Key words: LIS server; Linux; RAC; feelings and experiences
  前段时间单位安装LIS服务器,在网上翻阅很多资料,发现网上的内容多多少少都有一点问题,于是在安装服务器后,综合自己安装的经验写下一篇关于Linux环境下安装oracle10g的心得,供大家参考。
  检验系统环境
  grep MemTotal /proc/meminfo
  grep SwapTotal /proc/meminfo
  df�k/tmp
  #要求:大于512M内存,大于1G交换空间,大于400M的临时文件空间
  #/etc?hosts文件中有所有主机的名字(公共和私有)
  Rpm�qa|grep compat
  #必须有以下软件包:
  #gcc-3.2.3-2
  #compat�db-4.0.14.5
  #compat�gcc-7.3-2.96.122
  #compat�gcc-gc++-7.3-2.96.122
  #compat�gcc-libstdc++-7.3-2.96.122
  #compat�gcc-libstdc++-devel-7.3-2.96.122
  #openmotif21-2.1.30-8
  #stdarch-1.3-1
  #必须有hangcheck-timer内核模块
  /sbin/lsmod|grep�I hang
  Vi/etc/rc.local
  /sbin/insmod hangcheck_timer hangcheck_tich=30 hangcheck_margin-180
  准备用户和组
  groupadd�g 600 oinstall
  groupadd�g 601 dba
  useradd�u 600�d /home/oracle�g“oninstall”�G“dba”�m�s /bin/bash oracle
  grep nobody /etc/password
  #确认出nobody用户的存在
  cd /home/oracle
  vi .bash_profile
  umask 022
  ORACLE_BASE=/oracle/oracle;
  Export ORACLE_BASE TMP=/oracle/tmp;
  Export TMP TMPDIR=$TMP;
  Export TMPDIR
  #以上文件编辑了user.sh和.bash_profile
  内核参数
  vi /etc/security/limits.conf
  *soft nproc 2047
  *hard nproc 16384
  *soft nofile 1024
  *hard nofile 65536
  编辑etc/sysctl.conf
  vi /etc/hosts.equiv
  /etc/host
  vi /etc/sysctl.conf
  在/etc/pam.d/login文件中添加一行:
  Session required/lib/security/pam_limits.so
  #注意如果64位系统,则应为:
  Session required/lib64/security/pam_limits.so
  #否则,会出现系统无法在主控制登录的问题。
  准备裸设备
  #至少需要6个裸设备,spfile 5M;passwordfile 5M;OCR 100M 2个;votedisk 20M 3个;ASM磁盘群组2个。
  /user/bin/raw�qa
  vi/etc/sysconfig/rawdevice
  chown root:dba/dev/raw/{OCR}
  chmod 640 /dev/raw/{OCR}
  #其余裸设备
  Chown oracle:oinstall /dev/raw/{}
  Chown 660 /dev/raw/{}
  /sbin/service rawdevice restart
  #增加一个启动脚本,更爱裸设备的权限。
  #创建裸设备的映射文件,如果是利用ASM管理存储,可能不用映射文件。
  Mkdir�p $ORACLE_BASE/oradata/dbname
  Chown oracle{}
  Chmod�R 775
  cd{}
  vi dbname_raw.conf
  安装Cluster Ready Service
  #安装过程中会要求./orainstRoot.sh
  #利用以下命令确认是否所有借点都安装上了Cluster Ready Service
  #如果提示没VIP,则可以运行vipca
  Olsnodes -n
  安装数据库
  #安装完后备份root.sh
  #安装补丁
  cpio备份与恢复
  cpio�o�file={}
  cpio�divu�I{}
  复制系统后,需要修改以下文件:
  /etc/oratab
  /etc/sysconfig/network-script/eth*
  Oracle用户初始化脚本.bash_profile或.cshrc
  在安装过程中遇到了一个错误,ERROR:ORA-12545:因目标主机或对象不存在,连接失败。通过网上查阅发现,这是安装ora? cle10g时的通病。不过Oracle没有认为这个是bug,只是认为是PROBLEM。
  对于12545错误的处理:
  SQL>CONN SYS@TESTRAC1 AS SYSDBA输入口令:****已连接。
  SQL>ALTER SYSTEM SET LOCAL_LISTENSR=‘(ADDRESS=(PROTOCOL=TCP) (HOST=172.25.198.244) (PORT=1521)) ’SID=’testracl’;
  为RAC ASM数据库增加控制文件
  sql>shutdown immediate;
  sql>startup nomount;
  $rman nocatalog RMAN>connect target RMAN>restore controlfile to ’+ASM2/oracl/controlfile/newfile.name’ from ’+ASM/oracl/control? file/newfile.name’ scope=spfile;
  sql>alter database mount;
  sql>alter dababase open;
  Subject:How to duplicate a controlfile when ASM is involved
  Doc ID:Note:345180.1 Type:HOWTO
  ……
  On the database instance:
  1)Identify the location of the current controlfile:
  SQL>select name from v$controfile;
  ……
  /oradata2/102b/oradata/P10R2/control01.ctl
  2)Shutdown the database and start the instance:
  SQL>shutdown normal
  SQL>startup nomount

推荐访问:安装 环境 linux RAC