您好,欢迎光临本网站![请登录][注册会员]  
文件名称: Oracle11grac超详细安装手册.pdf
  所属分类: Oracle
  开发工具:
  文件大小: 2mb
  下载次数: 0
  上传时间: 2019-07-04
  提 供 者: qq_35******
 详细说明:Oracle11grac超详细安装手册包含详细的rac安装步骤,安装RAC必备资源由www.eimhe.com美河学习在线收集分享 然后执行如下命令使之生效: 安装配置完毕后,输入命令: 可检查操作系统java版本,如下表 [root racO]# java-version Java version 1.6.0 45" Java(TM)SE Runtime Environment(build 1.6.0 45-b06 Java Hotspot(TM)64-Bit Server VM(build 20.45-b01, mixed mode [rootrac01"]# 2.0 racle11gRAC安装配置 Rac安装前硬件检查 1)是否有共亨磁盘,且至少大小大」500G(执行该命令 partprobe没有任何反应表示有共 享磁盘,出现报错表示没有共享磁盘) 2)每台机器至少有两块网卡 3)/分区的可用空间至少5g以上 4)每台机器至少16G内存,且/dev/shm/分区大小最少在8G以上(最好10G) ip申请及配置(所有操作在root用户下执行) 首先要向信通申请7个甲,每台数据库服务器至少两块网卡。 物理jp vⅰpip P r|- p can 10208181010.208184019216801 10.208,1842 1020818111020818411921680.2 a)每个机器上每台两张网卡,多余的禁用 b)每台机器上的第一张网卡做公共网卡,把物理i填上,激活 c)每台机器上的第二张网卡做私有內卡,用来倣两台杋子的心跳线,把pri填上 2.2配置工作 221在两台数据库服务器的/etc/ hosts中添加下面内容(双机,root用户执行) #public 10.208.18.10rac01rac01 10.208.18.11rac02raC02 private 192.168.0.1 rac01-priv raco1-priv 192.168.0.2 rac02-priv raco1-priv #vitual 10.208 18.40 raco1-vip localdomain raco1-vip 10.208. 18. 41 raco2-vip localdomain raco2-vip 资源由www.eimhe.com美河学习在线收集分享 scan 10.208.18.42 rac-cluster-scan. localdomain rac-cluster-scan 22.2修改系统参数(双机,root用户执行) vi/etc/ sysctl. conf添加: kernel shmmax =4398046511104 kernel shall= 1073741824 kernel shmmni= 4096 kerne!sem=25032000100128 net. ipv4. ip local port range =9000 65500 net core rmem default 262144 net core rmem max= 4194304 net core wmem default= 262144 net core wmem max=1048576 fs, aio-max-nr=1048576 fs. file-max= 6815744 重新加载使生效: sysctl-p 223修改系统对 oracle,grid用户的限制(双机,root用户执行) vi/etc/ security/ limits.conf末尾添加 ora cle oft nofile 2047 oracle hard nofile 65536 oracle soft nproc 2047 oracle hard nproc 16384 le soft stack 10240 oracle hard stack 32768 grid soft nofile 2047 grid hard nofile 65536 grid soft nproc 2047 grid hard nproc 16384 grid soft stack 10240 grid hard stack 32768 224ⅵi/etc/pamd/ login末尾添加:(双机,rot用户执行) session required limits. so 225关闭 selinux和系统防火墙(双机) service iptables stop ∥/关闭防火墙 chkconfig iptables off∥设置防火墙开机不启动 enforce o /关闭 tenford /禁止自启动 ⅵi/etc/ selinux/ confi!确保以下内容 SELINUX=disabled 226配胃 hangcheck- timer内核模块〔双机,root用户执行〕 a) vi/etc/modprobe. conf 在文件末尾増加 options hangcheck-timer hangcheck tick=30 hangcheck margin=180 资源由www.eimhe.com美河学习在线收集分享 b)ⅵ/etc/rcd/ /rc. local//设置自启动 在文件的末尾加入行: /sbin/modprobe hangcheck timer c)接着,启动 hangcheck /sbin/modprobe hangcheck timer d)最后,检查 hangcheck是否成功启动 grep hangcheck /var/ log/messages tail-2 227NTP配置(root用户执行) 注:如果在进行ntpd对时失败,就会造成集群软件无法启动或宕机。 Rac01的配置:(为102081811) vi/etc/ntp. conf 忝加一行 server102081811 Rac02的配置:(为102081810) vi /etc/ntp. conf 添加一行 server10.208.18.10 使用其中任意一台执行(执行一次就行): service ntpd restart//处 failed,可使用: ntpd-t等待二分钟后重新执行重启命令 chkconfig ntpd on 22.8更改安装所有者的 ulimit设置(双机,rot用户执行) source命令生效 vi/etc/ profile末尾添加: if /sUSer="oracle"]I I I SUSER ="grid"]; then if [ /sHELL="/bin/ksh"]; then limit-p 16384 ulimit -n 65536 else ulimit-u16384-n65536 umask 022 229创建必要的用户组(双机,root用户执行) groupadd-g 500 oinstall groupadd-g 501 dba groupadd-g 502 oper groupadd-g 503 asmadmin groupadd -g 504 asmoper groupadd-g 505 asmdba useradd-u 500-g oinstall -G dba, asmdba, oper, asmadmin, asmoper oracle useradd-u 501-g oinstall -G asmadmin, asmdba, asmoper, dba grid 用户和组的说明: 上述语句中标黄的可以选择性执行,该处为∫在数据库db资源出现问题时候 oracle用 户有自动恢复的权限。 资源由www.eimhe.com美河学习在线收集分享 描述 0s组名份配给该组的0SH户pace权0ae组名 race清羊和软件所有音na1qxid、exae1e race自动存管理组| agami rld SISESM SASM M数据库管理员组 asmdbagrid、orac1eAM的 SYSDBA| OSDBA for AsM sM操作员组 snorer grid ASM A] SYSOPEROSOPER for ASM 数据库管理员 dhba oracle SYSIBA 数据库操作员 已 C工aCe LSCEER OSORER I 2210建立安装目录(双机,root用户执行,两台的目录都是u01) mkdir-p/u01/app/oracle/product/grid mkdir-p/u01/app/oracle/product/db mkdir-p/u01/ grid base mkdir-p/u01/oracle base chown- R grid: oinstall / u01 chown-R oracle: oinstall /u01/ app oracle/product/db chown-R oracle oinstall /u01/oracle base chown-R grid: oinstall /u01/ grid base chmod-R775/u01 22.11设置用户环境变量(双机) Source命令生效(井为注释) oracle用户 bash profil# ORACLE用户执行 export ORACLE BASE=/u01/oracle base export ORACLE HOME=/u01/app/oracle/product/db export ORACLE SID=tcl1#节点2此处为tyc export ORACle Owner=oracle export ORACLE TERM=vt100 export path=$PATH: SORACLE_ HOME/bin: SHOME/bin export PATH=SORACLE _HOME/bin: SORACLE_ HOME/Apache/Apache/bin: $PATH LD LIBRARY PATH=SORACLE HOME/lib: /ib: /usr/lib: /usr/local/lib export LD LIBRARY PATH CLASSPATH=SORACLE HOME/JRE: SORACLE HOME/lib: SORACLE HOME/rdbms/jib CLASSPATH=S CLASSPATH: SORACLE HOME/network/jlib export CLASSPATH set-O v export LANG=Zh CNGBK export NLs LANG=AMERICAN AMERICA. ZHS16GBK vi, bash pro #grid用户执行 export ORACLE SID=+ASM 此处就是ASM,勿改 export ORACLE BASE=/u01/grid base export ORACLE_HOME=/uo1/app/oracle/product/grid export ORAClE TERM=xterm export TMP=/ tmp export TMPDIR=STMP PATH=SPATH: SHOME/bin 资源由www.eimhe.com美河学习在线收集分享 export PATh=/usr/ sbin: $PATH: SORACLE_ HOME/bin: S $PATH export LD LIBRARY PATH=SORACLE HOME/lib: /lib: /usr/ib export CLASSPATH=SORACLE_ HOME/JRE: SORACLE_ HOME/ilib: SORACLE_ HOME/rdbms/ilib export LANG=Zh CNGBK 22.12配置SSH互信(双机 oracle/grid用户都要执行 /配置 mkdir/ssh chmod 700/ssh cd"/ssh ssh-keygen-t rsa ssh-keygen-t dsa cat/home/grid/ ssh/id rsa pub > authorized keys cat/home/grid/ssh/id dsa. pub >>authorized keys chmod 600/ssh/authorized keys scp authorized keys raco2: home/grid/ ssh/authorized keys 验证:(此处只要前两行能通就不影响后面,如果不同,后面是无法安装的) 多试几次,有可能第次输密码,但第二次是定不用输入密码,否则没成功 ssh raco date ssh raco date ssh raco1-priv date ssh raco2-priv date 待验证配置方式 ssh-keygen -trsa ssh-copy-id-irac02/|可登陆rac02 2213安载am包(双机,root用户执行) ①查看本机内核版本 [rootraco1]# uname-rm 2.6.18-274.e|5x8664 ②到以下网址下载对应操作系统版本的三个asm包: http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html 资源由www.eimhe.com美河学习在线收集分享 Downloads 20Ju2012 SuSE Linux Enterprise Server 11 SuSE Linux Enterprise Server 10 Red I lat Enterprise Liru:5AC Rod Hat Entcrprico Liruz 4AS SuSE LInux EnterprIs a Sarver g 2009 Red Hat Enterprlse LIrux3AS 25c 2007 SUSE Linux Enterprise Server SP3 [16-Aug- Red Hat Advanced server 2.1 [10-May- Overview nlDEds Docurrentatisn Technologies Learn Wo'ePatrers Oracle asMLib Downloads for Red Hat Enterprise Linux Server 6 Note: -l ASMLib inatallation r9qui 9 the oracl banx品c1导品三m一1p packages appropriate for their machine. The driver packages are r amed afler the ke nel they support Run the uname -r ccr rand or your macr ine to de ermine your ernel wes on. Ihe orresparding package has the name aracleasm-ckern=l versior-> Als Intel A32(X86) Architec. ure Intel EM64T(X3E 64)Architect.r Intel lA64(Itanium2)Architecture iBM POwer Architeture BllzSeries architecture Intel EM64T [K86 64)Architecture Ibrary anc looe 0racm-up+217-158854pm UrdcledsIrilit-2.0.4-1.05.x86 84.pIl Drivers for kernel 26, 19-348, 1.1.e5 racleasnm-2.6.18-348.1.1.e5x9n-20.5-1∈5X8664.pm urdcledsIrl-2.8.18-34811. e5uebuy-20=-1.e5 x88 84. pIll ra:A5m-9618-4811H-?n-1xRf_f4rm Drivers fcr kernel 2.6.18 274, 915 clease-2.6.18-274e5en2.C.51.358664rpm releas-28.18-274e|5ueuy-2.0.51.5.86_64 rEcleasm-2.6.18-2/.8b-dEbugInto-2..5-1.815. x 66 64.rpm eraclea3m26.10-27465-20.5-1.5x06_64m ③把下载下来的asm包上传到两个节点,并安装,注意按照以下安装顺序 资源由www.eimhe.com美河学习在线收集分享 /此处如果失败说明是下载的asm驱动版本不一致导致的,请重新下载,否则后面asm是无法配置 2214asm配置(双机,root用户执行) 如果最后一行未 failed,说明上一步驱动版本不对,请重新下载 22.15共享盘分区(rac01上,root用户执行) [root localhost# fdisk/dev/sdc Device contains neither a valid DOS partition table, nor Sun, SGl or OSF disklabel Building a new dos disklabel. Changes will remain in memory only until you decide to write them. After that, of course, the previous content won t be recover ble The number of cylinders for this disk is set to 65270 There is nothing wrong with that but this is larger than 1024 and could in certain setups cause problems with 1 )software that runs at boot time(e.g, old versions of LIlo) 2)booting and partitioning software from other oSs (e. g, DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command(m for help Command action e extended p primary partition (1-4) 资源由www.eimhe.com美河学习在线收集分享 Partition number(1-4): 1 First cylinder( 1-65270, default 1) Using default value 1 Last cylinder or +size or +sizeM or +size(1-65270, default 65270):+20G Command (m for help):n Command action e extended p primary partition (1-4) Partition number(1-4) First cylinder(2434-65270, default 2434 Using default value 2434 Last cylinder or +size or +sizeM or +size (2434-65270, default 65270 ):+20G Command (m for help): n Command action e extended p primary partition (1-4) Partition number(1-4): 3 First cylinder( 4867-65270, default 4867) Using default value 4867 Last cylinder or +size or +sizeM or +size (4867-65270, default 65270 ):+20G Command(m for help): n Command action p primary partition (1-4) Selected partition 4 First cylinder(7300-65270, default 7300 Using default value 7300 Last cylinder or +size or +sizeM or +size (7300-65270, default 65270 Using default value 65270 Command (m for help) First cylinder (7541-65270, default 7541) Using default value 7541 Last cylinder or +size or +sizeM or +size(7541-65270, default 65270): Using default val ue 65270 Command(m for help The partition table has been altered alling ioctl) d partition table WARNING: Re-reading the partition table failed with error 16: Device or resource busy
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: oracle11g手册
 输入关键字,在本站1000多万海量源码库中尽情搜索: