千家信息网

Oracle中Cloning $oracle_home如何克隆安装oracle软件

发表于:2025-11-08 作者:千家信息网编辑
千家信息网最后更新 2025年11月08日,这篇文章将为大家详细讲解有关Oracle中Cloning $oracle_home如何克隆安装oracle软件,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。用途:C
千家信息网最后更新 2025年11月08日Oracle中Cloning $oracle_home如何克隆安装oracle软件

这篇文章将为大家详细讲解有关Oracle中Cloning $oracle_home如何克隆安装oracle软件,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

用途:Cloning an Oracle Home , 可以免去多台机器重复安装oracle软件

1、停止相关进程
[root@node1 bin]# ./crsctl stop cluster -all
2、打包 dbhome_1 目录
[root@node1 11.2.0]# cd /u01/app/oracle/product/11.2.0/
[root@node1 11.2.0]# tar -zcvpf db_1.bak db_1/
[root@node1 11.2.0]# ls
db_1 db_1.bak
补充:
Create a ZIP file with the Oracle home (but not the Oracle base) directory.

# zip -r dbhome_1.zip /u01/app/oracle/product/11.2.0/dbhome_1
Do not include the admin, fast_recovery_area, and oradata directories that are under the Oracle base directory. These directories are created in the target installation later, when you create a new database there.

3、(如果是异机克隆) 将ZIP文件复制到目标计算机的相应目录。
4、 解压 tar 包
# tar zxvf db_1.bak -C /app/oracle/product/11.2.0/
注意:
如果有多个节点则所有节点重复2、3、4步骤 。

5、 清除$ORACLE_HOME/network/admin下的*.ora
6、 跑 $ORACLE_HOME/perl/bin/perl clone.pl 脚本
node1-> $ORACLE_HOME/perl/bin/perl clone.pl ORACLE_BASE="/u01/app/oracle/" ORACLE_HOME="/app/oracle/product/11.2.0/db_1" OSDBA_GROUP=dba OSOPER_GROUP=oper -defaultHomeName
./runInstaller -clone -waitForCompletion "ORACLE_BASE=/u01/app/oracle/" "ORACLE_HOME=/app/oracle/product/11.2.0/db_1" "oracle_install_OSDBA=dba" "oracle_install_OSOPER=oper" -defaultHomeName -defaultHomeName -silent -noConfig -nowait
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 6999 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-09-06_04-30-28AM. Please wait ...Oracle Universal Installer, Version 11.2.0.4.0 Production
Copyright (C) 1999, 2013, Oracle. All rights reserved.

You can find the log of this install session at:
/u01/app/oraInventory/logs/cloneActions2017-09-06_04-30-28AM.log
.................................................................................................... 100% Done.

Installation in progress (Wednesday, September 6, 2017 4:31:02 AM CST)
.............................................................................. 78% Done.
Install successful
Setup in progress (Wednesday, September 6, 2017 4:33:11 AM CST)
Setup successful

End of install phases.(Wednesday, September 6, 2017 4:33:49 AM CST)
WARNING:
The following configuration scripts need to be executed as the "root" user.
/app/oracle/product/11.2.0/db_1/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts

The cloning of OraHome1 was successful.
Please check '/u01/app/oraInventory/logs/cloneActions2017-09-06_04-30-28AM.log' for more details.

-- 含义:
Use the following syntax:
$ORACLE_HOME/perl/bin/perl clone.pl ORACLE_BASE="target_oracle_base" ORACLE_HOME="target_oracle_home"
OSDBA_GROUP=OSDBA_privileged_group OSOPER_GROUP=OSOPER_privileged_group -defaultHomeName

补充:
Oracle Universal Installer starts, and then records the cloning actions in the cloneActionstimestamp.log file. This log file is typically located in /orainventory_location/logs directory.

7、 重建监听与dbca建库
To configure the connection information for the new database, run Net Configuration Assistant:

$ cd $ORACLE_HOME/bin
$ ./netca
To create a new database for the newly cloned Oracle home, run Database Configuration Assistant:

$ cd $ORACLE_HOME/bin
$ ./dbca

关于"Oracle中Cloning $oracle_home如何克隆安装oracle软件"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。

软件 篇文章 更多 目录 节点 不错 实用 内容 含义 多个 多台 文件 文章 机器 步骤 用途 目标 知识 脚本 计算机 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 网络安全管理的原则和制度 违法网络安全法第46条规定 dz论坛数据库怎么建表 北京天盈网络技术公司 保存excel到数据库 网络安全的几种技术 长沙erp软件开发中心 电脑配置高用什么软件开发 数据库表格导出图解 诈骗属于网络安全内容的那种 北京团建无忧科技互联网 硬盘坏了取出数据库 上海共享充电宝软件开发公司 cs连不上服务器控制台 南京网络安全培训入行门槛低 数据库关系操作有哪些 练枪地图找不到服务器是怎么回事 手机客户端连接服务器失败 中国人民网络安全法第六条 软件开发要不要去甲方 数据库三级结构的优点 不能介入非虚拟化的物理服务器是 网络技术学院奖获奖 在线教育软件开发的未来前景 软件开发还是网站开发好 从jsp中如何使用数据库 177 归属地 数据库 不缺暖阳网络技术有限公司 数据库技术及应用课本答案 服务器nacos自动关闭
0