2022年案例客服数据库RAC升级...升级... .pdf

上传人:Q****o 文档编号:26169237 上传时间:2022-07-16 格式:PDF 页数:22 大小:2.43MB
返回 下载 相关 举报
2022年案例客服数据库RAC升级...升级... .pdf_第1页
第1页 / 共22页
2022年案例客服数据库RAC升级...升级... .pdf_第2页
第2页 / 共22页
点击查看更多>>
资源描述

《2022年案例客服数据库RAC升级...升级... .pdf》由会员分享,可在线阅读,更多相关《2022年案例客服数据库RAC升级...升级... .pdf(22页珍藏版)》请在得力文库 - 分享文档赚钱的网站上搜索。

1、一准备工作1. 所需补丁可以到ORACLE官网上下载11204 for Redhat Linux的补丁,补丁号为8202632,文件名为p13390677_112040_Linux-x86-64_1of7.zip、 p13390677_112040_Linux-x86-64_2of7.zip和p13390677_112040_Linux-x86-64_3of7.zip (包含 clusterware和 software )。2. RAC 环境节点 1 节点 2 主机名wzsxdb01wzsxdb02SID sxapp1 sxapp2 DB_NAME sxapp 当前 Oracle版本11.2.

2、0.1 操作系统Red Hat Enterprise Linux Server release 5.8 (Tikanga) ORACLE_HOME目录/oracle/ora11/oracle/product/11.2.0/dbhome_1 GRID_HOME 目录/oracle/ora11/11.2.0/grid 3、备份备份两实例下的oracle_base ,以便出问题后恢复。tar zcvf /oracle/ora11.tar.gz /oracle/ora11 二、GRID升级1、grid 安装预检查./runcluvfy.sh stage -pre crsinst -upgrade -n

3、 wzsxdb01,wzsxdb02 -rolling -src_crshome $ORACLE_HOME -dest_crshome /oracle/ora11/11.2.0/grid -dest_version 11.2.0.4.0 -fixup -fixupdir /tmp -verbose 以下是检查明细:grid预检查.txt名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 22 页 - - - - - - - - - (1)检查 : 用户grid 的等同用户节点

4、名状态- - wzsxdb02 失败wzsxdb01 失败结果 :PRVF-4007 : 用户grid 的等同用户检查失败ERROR: 等同用户在所有指定的节点上都不可用验证无法继续解决方法:ssh wzsxdb02 date 不成功,于是手工重新建立SSH用户等效性配置: node1: $ mkdir /.ssh $ chmod 700 /.ssh $ ssh-keygen -t rsa $ ssh-keygen -t dsa node2: $ mkdir /.ssh $ chmod 700 /.ssh $ ssh-keygen -t rsa $ ssh-keygen -t dsa node

5、1: $ cat /.ssh/id_rsa.pub /.ssh/authorized_keys $ cat /.ssh/id_dsa.pub /.ssh/authorized_keys $ ssh wzsxdb02 cat /.ssh/id_rsa.pub /.ssh/authorized_keys $ ssh wzsxdb02 cat /.ssh/id_dsa.pub /.ssh/authorized_keys $ scp /.ssh/authorized_keys wzsxdb02:/.ssh/authorized_keys ( 2)正在检查主目录/oracle/ora11/11.2.0/

6、grid 中的Oracle 补丁程序9413827 或9706490 。节点名已应用必需注释- - - - wzsxdb02 缺失9413827 或9706490 失败wzsxdb01 缺失9413827 或9706490 失败结果 :主目录/oracle/ora11/11.2.0/grid 中的Oracle 补丁程序9413827 或9706490 检名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 22 页 - - - - - - - - - 查失败没有主目录/orac

7、le/ora11/11.2.0/grid 所需的Oracle 补丁程序。解决方法:打补丁 9413827。打补丁方法.txt打补丁前,首先将Opatch 升级至最新版。1) 官网下载最新程序p6880880_112000_Linux-x86-64.zip 。2) 将解压出来的OPatch 文件夹,分别覆盖到GRID_HOME和 ORACLE_HOME 下(操作前先备份mv Opatch Opatchbak) ,注意两个节点都覆盖完成。3) 验证。gridwzsxdb01 OPatch$ opatch version OPatch Version: 11.2.0.3.6 OPatch succe

8、eded. (3)正在检查文件/etc/resolv.conf 中的search 条目是否在节点间一致. 文件/etc/resolv.conf 中的search 条目在节点间一致检查无法访问节点的DNS 响应时间节点名状态- - wzsxdb02 失败wzsxdb01 失败PRVF-5636 : 在 以 下 节 点上 , 无 法 访 问 的 节 点 的DNS 响 应 时 间 超过15000 毫 秒: wzsxdb02,wzsxdb01 文件/etc/resolv.conf 在各节点间不一致解决方法:1)修改 DNS服务器的 /etc/named.conf文件,添加fil /dev/null;信

9、息即可。zone . IN type hint; / file named.ca; file /dev/null; 2)在 RAC节点主机分别添加如下参数:名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 22 页 - - - - - - - - - rootrac2 # vi /etc/resolv.conf search nameserver 192.168.7.51 nameserver 192.168.7.52 options rotate options time

10、out:2 options attempts:5 2、GRID Infrastructure升级预检查全部通过后,开始升级GRID Infrastructure。Oracle 建议使用滚动升级模式,该模式不需要停CRS 。节点 1:Su grid Cd /oracle/soft/grid unset ORACLE_HOME unset ORACLE_BASE unset ORACLE_SID ./runInstaller 再运行 runInstaller ,在出现 “指定主目录详细信息”窗口,选择 CRS_HOME ,其它都点击 “下一步” 。注:如果希望安装界面中文,可以手工设置字符集实现(

11、export LANG=zh_CN)。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 22 页 - - - - - - - - - 由于内网升级,因此选择“跳过软件更新”。选择“升级Oracle Grid Infrastructure 或 Oracle 自动存储管理” 。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 5 页,共 22 页 - - - - - -

12、 - - - 该环节进行节点选择,点击“SSH连接”,可以进行SSH信任配置,由于双机已配置SSH信任,因此不用执行。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 6 页,共 22 页 - - - - - - - - - 选择 ASM 对应组, Oracle 推荐使用不同组管理,如果有相同组,点击下一步会有警告,可以忽略。这里指定 Grid 软件安装位置,我这里选择新建grid2 文件夹,原grid 不动, 安装完成后需要修改 GRID环境变量。名师资料总结 - - -精品资料欢迎

13、下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 7 页,共 22 页 - - - - - - - - - 再次进行先决条件检查,检查完成后就可以安装了。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 8 页,共 22 页 - - - - - - - - - 安装到最后一步,根据提示信息,用root 用户登陆各节点终端,执行指定的root 脚本。节点 1:rootwzsxdb01 bin# /oracle/or

14、a11/11.2.0/grid_2/rootupgrade.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= grid ORACLE_HOME= /oracle/ora11/11.2.0/grid_2 Enter the full pathname of the local bin directory: /usr/local/bin: The contents of dbhome have not changed. No n

15、eed to overwrite. The contents of oraenv have not changed. No need to overwrite. The contents of coraenv have not changed. No need to overwrite. Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of roo

16、t script. Now product-specific root actions will be performed. Using configuration parameter file: /oracle/ora11/11.2.0/grid_2/crs/install/crsconfig_params Creating trace directory Installing Trace File Analyzer 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 9 页,共 22

17、 页 - - - - - - - - - ASM upgrade has started on first node. CRS-2791: 正在启动用于关闭wzsxdb01 上 Oracle High Availability Services 管理的资源的操作CRS-2673: 尝试停止ora.crsd (在 wzsxdb01 上) CRS-2790: 正在启动关闭wzsxdb01 上集群就绪服务管理的资源的操作CRS-2673: 尝试停止ora.LISTENER.lsnr ( 在 wzsxdb01 上 ) CRS-2673: 尝试停止ora.APPARCH.dg ( 在 wzsxdb01

18、上) CRS-2673: 尝试停止ora.DATACRS.dg ( 在 wzsxdb01 上) CRS-2673: 尝试停止ora.registry.acfs ( 在 wzsxdb01 上) CRS-2673: 尝试停止ora.sxapp.db ( 在 wzsxdb01 上) CRS-2677: 成功停止ora.LISTENER.lsnr ( 在 wzsxdb01 上 ) CRS-2673: 尝试停止ora.wzsxdb01.vip ( 在 wzsxdb01 上) CRS-2677: 成功停止ora.wzsxdb01.vip ( 在 wzsxdb01 上) CRS-2672: 尝试启动ora.

19、wzsxdb01.vip ( 在 wzsxdb02 上) CRS-2677: 成功停止ora.APPARCH.dg ( 在 wzsxdb01 上) CRS-2677: 成功停止ora.registry.acfs ( 在 wzsxdb01 上) CRS-2676: 成功启动ora.wzsxdb01.vip ( 在 wzsxdb02 上) CRS-2677: 成功停止ora.DATACRS.dg ( 在 wzsxdb01 上) CRS-2677: 成功停止ora.sxapp.db ( 在 wzsxdb01 上) CRS-2673: 尝试停止ora.APPDATA.dg ( 在 wzsxdb01 上

20、) CRS-2677: 成功停止ora.APPDATA.dg ( 在 wzsxdb01 上) CRS-2673: 尝试停止ora.asm (在 wzsxdb01 上) CRS-2677: 成功停止ora.asm (在 wzsxdb01 上) CRS-2673: 尝试停止ora.ons (在 wzsxdb01 上) CRS-2673: 尝试停止ora.eons (在 wzsxdb01 上) CRS-2677: 成功停止ora.ons (在 wzsxdb01 上) CRS-2673: 尝试停止work ( 在 wzsxdb01 上 ) CRS-2677: 成功停止work ( 在 wzsxdb01

21、 上 ) CRS-2677: 成功停止ora.eons (在 wzsxdb01 上) CRS-2792: 关闭wzsxdb01 上集群就绪服务管理的资源的操作已完成CRS-2677: 成功停止ora.crsd (在 wzsxdb01 上) CRS-2673: 尝试停止ora.cssdmonitor ( 在 wzsxdb01 上) CRS-2673: 尝试停止ora.ctssd (在 wzsxdb01 上 ) CRS-2673: 尝试停止ora.evmd ( 在 wzsxdb01 上) CRS-2673: 尝试停止ora.asm (在 wzsxdb01 上) CRS-2673: 尝试停止ora.

22、drivers.acfs ( 在 wzsxdb01 上) CRS-2673: 尝试停止ora.mdnsd ( 在 wzsxdb01 上) CRS-2677: 成功停止ora.cssdmonitor ( 在 wzsxdb01 上) CRS-2677: 成功停止ora.evmd ( 在 wzsxdb01 上) CRS-2677: 成功停止ora.mdnsd ( 在 wzsxdb01 上) CRS-2677: 成功停止ora.ctssd (在 wzsxdb01 上 ) CRS-2677: 成功停止ora.drivers.acfs ( 在 wzsxdb01 上) 名师资料总结 - - -精品资料欢迎下

23、载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 10 页,共 22 页 - - - - - - - - - CRS-2677: 成功停止ora.asm (在 wzsxdb01 上) CRS-2673: 尝试停止ora.cssd (在 wzsxdb01 上) CRS-2677: 成功停止ora.cssd (在 wzsxdb01 上) CRS-2673: 尝试停止ora.gpnpd ( 在 wzsxdb01 上) CRS-2673: 尝试停止ora.diskmon ( 在 wzsxdb01 上) CRS-2677: 成功停止

24、ora.gpnpd ( 在 wzsxdb01 上) CRS-2673: 尝试停止ora.gipcd ( 在 wzsxdb01 上) CRS-2677: 成功停止ora.diskmon ( 在 wzsxdb01 上) CRS-2677: 成功停止ora.gipcd ( 在 wzsxdb01 上) CRS-2793: 关闭 wzsxdb01 上 Oracle High Availability Services 管理的资源的操作已完成CRS-4133: Oracle High Availability Services has been stopped. OLR initialization -

25、successful Replacing Clusterware entries in inittab clscfg: EXISTING configuration version 5 detected. clscfg: version 5 is 11g Release 2. Successfully accumulated necessary OCR keys. Creating OCR keys for user root, privgrp root. Operation successful. Preparing packages for installation. cvuqdisk-1

26、.0.9-1 Configure Oracle Grid Infrastructure for a Cluster . succeeded 节点 2:rootwzsxdb02 bin# /oracle/ora11/11.2.0/grid_2/rootupgrade.sh 输入结果同节点1。最后修改两节点对应Grid 环境变量为新路径。3、GRID升级后检查su - grid gridwzsxdb02 $ crsctl query crs activeversion Oracle Clusterware active version on the cluster is 11.2.0.4.0 gr

27、idwzsxdb02 $ crsctl query crs releaseversion Oracle High Availability Services release version on the local node is 11.2.0.4.0 gridwzsxdb02 $ crsctl query crs softwareversion Oracle Clusterware version on node wzsxdb02 is 11.2.0.4.0 Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0

28、.4.0 - 64bit Production With the Real Application Clusters and Automatic Storage Management options SQL select version from v$instance; 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 11 页,共 22 页 - - - - - - - - - VERSION - 11.2.0.4.0 SQL exit 三、RDBMS 升级1、数据库软件升级Su or

29、acle oracle wzsxdb01 $ cd /oracle/soft /database/ oracle wzsxdb01 database$ unset ORACLE_HOME oracle wzsxdb01 database$ unset ORACLE_BASE oracle wzsxdb01 database$ unset ORACLE_SID oracle wzsxdb01 database$./runInstaller 再运行 runInstaller 进行升级,在出现“指定主目录详细信息”窗口,选择ORACLE_HOME ,其它都点击“下一步” 。名师资料总结 - - -精

30、品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 12 页,共 22 页 - - - - - - - - - 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 13 页,共 22 页 - - - - - - - - - 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 14 页,共 22 页 -

31、 - - - - - - - - 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 15 页,共 22 页 - - - - - - - - - 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 16 页,共 22 页 - - - - - - - - - 安装到最后一步,用root 用户,在每个节点上执行以下脚本:名师资料总结 - - -精品资料欢迎下载 - - - - - -

32、- - - - - - - - - - - - 名师精心整理 - - - - - - - 第 17 页,共 22 页 - - - - - - - - - 节点 1:rootwzsxdb01 tmp# /oracle/ora11/oracle/product/11.2.0/db_1/root.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /oracle/ora11/oracle/pr

33、oduct/11.2.0/db_1 Enter the full pathname of the local bin directory: /usr/local/bin: The contents of dbhome have not changed. No need to overwrite. The contents of oraenv have not changed. No need to overwrite. The contents of coraenv have not changed. No need to overwrite. Entries will be added to

34、 the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script. Now product-specific root actions will be performed. Finished product-specific root actions. 节点 2 输出同节点1。2、数据库升级使用 dbua 进行数据库升级名师资料总结 - - -精品资料欢迎下载 - - - - - -

35、 - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 18 页,共 22 页 - - - - - - - - - 指定需要升级的数据库(图片借用网络)名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 19 页,共 22 页 - - - - - - - - - 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 20 页,共 22 页 -

36、- - - - - - - - 数据库软件安装完成,数据库升级完成。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 21 页,共 22 页 - - - - - - - - - 3、数据库升级验证SQLSELECT COMP_NAME, VERSION, STATUS FROM SYS.DBA_REGISTRY; COMP_NAME VERSION STATUS - Oracle Enterprise Manager 11.2.0.4.0 VALID Oracle Label Secu

37、rity 11.2.0.4.0 VALID Oracle Text 11.2.0.4.0 VALID Oracle Workspace Manager 11.2.0.4.0 VALID Oracle Database Catalog Views 11.2.0.4.0 VALID Oracle Database Packages and Types 11.2.0.4.0 VALID Oracle Real Application Clusters 11.2.0.4.0 VALID 7 rows selected. 四、升级完成至此,数据库由11.2.0.1 升级至 11.2.0.4。名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 22 页,共 22 页 - - - - - - - - -

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 技术资料 > 技术总结

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知得利文库网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号-8 |  经营许可证:黑B2-20190332号 |   黑公网安备:91230400333293403D

© 2020-2023 www.deliwenku.com 得利文库. All Rights Reserved 黑龙江转换宝科技有限公司 

黑龙江省互联网违法和不良信息举报
举报电话:0468-3380021 邮箱:hgswwxb@163.com