暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

[译文] 在 RAC 上克隆 19c Oracle Home

原创 Marvin Lapid 2021-08-19
1397

从 Oracle19c 开始克隆您的 oracle home 有点不同,无论您是使用这种方法进行异地修补还是将补丁发布到多个服务器,我们都不再使用 clone.pl,而是 oracle 建议使用纯软件安装选项,可在runInstaller 命令。以下是 RAC 环境要遵循的步骤:

这是我的环境详细信息:

ORACLE_HOME = /u01/app/oracle/product/19.0.0/db_1 
CLONED_ORACLE_HOME = /u01/app/oracle/product/19.0.0/db_clone 
RAC NODES = rac1, rac2 
  1. 转到您的 oracle 主页并执行 runInstaller 命令,将您的 destinationLocation 设置为将保存映像的位置。
# cd $ORACLE_HOME
# ./runInstaller -createGoldImage -destinationLocation
/u01/app/oracle/product/19.0.0
Launching Oracle Database Setup Wizard…

如果您没有启用 x11 转发,只需在命令中添加 -silent。

# ./runInstaller -silent -createGoldImage -destinationLocation $PATH
  1. 解压镜像到你的新oracle home
# cd /u01/app/oracle/product/19.0.0
# ls -l
drwxr-xr-x. 69 oracle oinstall 4096 May 11 15:46 db_1
drwxr-xr-x. 68 oracle oinstall 4096 May 18 15:58 db_clone
-rw-r--r--. 1 oracle oinstall 3068280989 May 18 15:49
db_home_2021-05-18_03-46-32PM.zip


# unzip db_home_2021-05-18_03-46-32PM.zip -d
/u01/app/oracle/product/19.0.0/db_clone
  1. 转到新的 oracle 主目录并执行 runInstaller,然后按照 GUI 或使用静默安装。

使用图形用户界面

# cd /u01/app/oracle/product/19.0.0/db_clone
# ./runInstaller
Launching Oracle Database Setup Wizard…

a. 选择“仅设置软件”。
b. 选择“Oracle Real Application Clusters 数据库安装”
C. 选择 RAC 节点
d. 选择“企业版”
e. 确认 Oracle 基础和软件位置
f. 设置您的群组帐户
g. 如果你有 root 密码,你可以让 gui 在这里自动运行 root 命令。
h. Mytestenvironment有这些可忽略的pre-reqerrors,它应该是生产环境的clear。
i. 查看并单击安装
j. 完成后,如果您没有 root 密码,安装程序将让您在两个节点上运行 root.sh 脚本

使用静默安装

a. 使用以下参数执行 runInstaller 命令

# ./runInstaller -ignorePrereq -silent \
oracle.install.option=INSTALL_DB_SWONLY \
UNIX_GROUP_NAME=oinstall \
ORACLE_HOME=/u01/app/oracle/product/19.0.0/db_clone \
ORACLE_BASE=/u01/app/oracle \
oracle.install.db.InstallEdition=EE \
oracle.install.db.OSDBA_GROUP=dba \
oracle.install.db.OSOPER_GROUP=dba \
oracle.install.db.OSBACKUPDBA_GROUP=dba \
oracle.install.db.OSDGDBA_GROUP=dba \
oracle.install.db.OSKMDBA_GROUP=dba \
oracle.install.db.OSRACDBA_GROUP=dba \
oracle.install.db.CLUSTER_NODES=rac1,rac2 \
DECLINE_SECURITY_UPDATES=true

Launching Oracle Database Setup Wizard...

[WARNING] [INS-13013] Target environment does not meet some mandatory requirements.

CAUSE: Some of the mandatory prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/InstallActions2021-05-18_04-23-48PM/installActions20 21-05-18_04-23-48PM.log
ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/InstallActions2021-05-18_04-23-48PM/installActions20 21-05-18_04-23-48PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.

The response file for this session can be found at:

/u01/app/oracle/product/19.0.0/db_clone/install/response/db_2021-05-18_04-23-48 PM.rsp

You can find the log of this install session at:

/u01/app/oraInventory/logs/InstallActions2021-05-18_04-23-48PM/installActions20 21-05-18_04-23-48PM.log

As a root user, execute the following script(s):

1. /u01/app/oracle/product/19.0.0/db_clone/root.sh
Execute /u01/app/oracle/product/19.0.0/db_clone/root.sh on the following nodes: [rac1, rac2]

b. 以 root 用户身份在两个 rac 节点上运行 root.sh 脚本

[root@rac1 ~]/u01/app/oracle/product/19.0.0/db_clone/root.sh

Check

/u01/app/oracle/product/19.0.0/db_clone/install/root_rac1.ol_2021-05-18_16-31-2 3-661178137.log for the output of root script

[root@rac2 ~]/u01/app/oracle/product/19.0.0/db_clone/root.sh

Check

/u01/app/oracle/product/19.0.0/db_clone/install/root_rac2.ol_2021-05-18_16-31-3 1-497851499.log for the output of root script

参考:文档 ID 2565006.1
文章来源:https://www.virtual-dba.com/blog/cloning-19c-oracle-home-on-rac/

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论