Oracle的家目录进行快速克隆,对同类型机器配置很高效的!

01、确认你在克隆数据库时,原数据库已经关闭

sqlplus   /   as sysdba;

shutdown immediate ;

lsnrctl stop

ps –ef|grep ora_    ###查看oracle进程

02、 对$ORACLE_BASE目录下的product进行备份

zip  –r product.zip    product

03、移动到目标机器或目标目录解压

unzip   –d  target_path   product.zip    # 或者在目标目录下   unzip product.zip

04、删除解压后的product/network/admin下面的ora文件

rm  *.ora     ###清理监听文件

05、运行runinstaller

$ORACLE_HOME/oui/bin/runinstaller  –silent –clone  ORACLE_BASE='productd的当前目录'   ORACLE_HOME='oracle_home目录'    ORACLE_HOME_NAME='这个名字随便取一个'

注:运行以上命令,会出现一个字符界面的进度条,全部运行完后。你运行一个脚本root.sh,以root 运行,一路回车就ok了。

cd product/11.2.0/dbhome_1/oui/bin
[oracle@oracle-111 bin]$ ./runInstaller -silent -clone ORACLE_HOME='/data/clone_oracle/product/11. 2.0/dbhome_1' ORACLE_HOME_NAME='clone' Starting Oracle Universal Installer...  Checking swap space: must be greater than 500 MB. Actual 1535 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-02-27_06-41-44AM. Please w ait ...[oracle@oracle-111 bin]$ Oracle Universal Installer, Version 11.2.0.4.0 ProductionCopyright (C) 1999, 2013, Oracle. All rights reserved. You can find the log of this install session at: /data/oraInventory/logs/cloneActions2017-02-27_06-41-44AM.log Values for the following variables could not be obtained from the command line or response file(s) : ORACLE_BASE Cloning cannot continue. ###第一次没指定ORACLE_BASE目录导致的错误 [oracle@oracle-111 bin]$ ./runInstaller -silent -clone ORACLE_BASE='/data/clone_oracle' ORACLE_H OME='/data/clone_oracle/product/11.2.0/dbhome_1' ORACLE_HOME_NAME='clone' -noConfig -nowaitStarting Oracle Universal Installer... Checking swap space: must be greater than 500 MB. Actual 1535 MB Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-02-27_06-43-34AM. Please w ait ...[oracle@oracle-111 bin]$ Oracle Universal Installer, Version 11.2.0.4.0 ProductionCopyright (C) 1999, 2013, Oracle. All rights reserved. You can find the log of this install session at: /data/oraInventory/logs/cloneActions2017-02-27_06-43-34AM.log .................................................................................................. .. 100% Done. Installation in progress (Monday, February 27, 2017 6:43:59 AM CST) .............................................................................. 78% Done.Install successful Linking in progress (Monday, February 27, 2017 6:44:08 AM CST) Link successful Setup in progress (Monday, February 27, 2017 6:46:56 AM CST) Setup successful End of install phases.(Monday, February 27, 2017 6:47:47 AM CST) WARNING: The following configuration scripts need to be executed as the "root" user. /data/clone_oracle/product/11.2.0/dbhome_1/root.sh  ###以root身份运行root.sh文件 To execute the configuration scripts: 1. Open a terminal window 2. Log in as "root" 3. Run the scripts The cloning of clone was successful. Please check '/data/oraInventory/logs/cloneActions2017-02-27_06-43-34AM.log' for more details. [oracle@oracle-111 bin]$ cd ..

 06、设置oracle环境变量

cd ~

vim .bash_profile  ###根据需求进行修改

#export ORACLE_SID=mvpexport ORACLE_BASE=/data/clone_oracleexport ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1export LD_LIBRARY_PATH=$ORACLE_HOME/libexport NLS_DATE_FORMAT='yyyy-mm-dd hh24:mi:ss'export PATH=$ORACLE_HOME/bin:/usr/local/bin:$PATH:$HOME/bin

07、建立数据库实例及监听

netca  ###监听

dbca   ###实例

####启动新建的实例

sqlplus / as  sysdba;

startup

exit;

Oracle快速克隆安装相关推荐

  1. oracle+快速客户端安装方法,ORACLE简易客户端安装与使用方法

    (1)对windows机器:      #将Oracle installclient压缩包拷贝到D:/oracle,并选择解压至当前目录(或其他目录,记得更改相应的环境变量即可)      #设置环境 ...

  2. oracle10g 克隆安装,克隆Oracle Home(10g2)

    克隆一个已经存在的Oracle Home,免掉新安装oracle10g软件的痛苦,如果原Oracle Home已经安装了patch就省得打patch了. 一.在目标主机172.19.111.37上做安 ...

  3. oracle存储tar,Linux环境使用TAR命令快速部署安装Oracle

    Linux环境使用tar命令可以实现快速部署和安装Oracle的目的,当然,前提是您手中已经有了一份被您精心调优后的数据库tar包,此后, Linux环境使用tar命令可以实现快速部署和安装Oracl ...

  4. linux环境用tar报错,Linux环境使用TAR命令快速部署安装Oracle

    Linux环境使用tar命令可以实现快速部署和安装Oracle的目的,当然,前提是您手中已经有了一份被您精心调优后的数据库tar包,此后,您就可以使用解tar的方式在其他的服务器上进行快速部署安装了. ...

  5. oracle静默创建实例linux,linux CentOS7下快速静默安装Oracle11GR2数据库并创建实例

    linux CentOS7下快速静默安装Oracle11GR2数据库并创建实例 本文章适合已经熟悉安装过程,需要快速部署使用 初学者建议分步学习:https://edu.51cto.com/cours ...

  6. 在哪开启oracle服务器,开启企业殿堂的钥匙 Oracle服务器的安装

    前言: 处于网络覆盖的时代,数据库对于现代社会和行业已经不是什么新鲜事物,它已经被运用到了社会生产和生活的各个领域.作于一款高性能.高生产率的数据库管理应用平台,Oracle9i在数据库管理.数据完整 ...

  7. oracle软件静默安装程序,【oracle】静默安装 oracle 11gr2

    [序言] oracle 提供了静默安装方法在不适用图形界面的情况下安装 oracle 软件 ,创建db,配置netca,快速完成oracle 的部署. 在以下情形中可以使用静默安装 a OUI 的 G ...

  8. suse linux系统备份,suse linux enterprise server 11 sp3 版克隆安装ebs r12.1.3注意事项

    suse 11版操作系统比较少用,但是目前几个云服务商提供的操作系统里面,只有suse是oracle官方认证的,所以最近几个采用云服务器的ebs环境,操作系统安装的都是suse 11版,安装过程里,存 ...

  9. Oracle 12c RAC 安装文档

    首先,谢谢原作者:此文为转载的文章,现将原地址贴出如下: Oracle 12c RAC 安装文档​www.cnblogs.com/leohahah/p/9488963.html 更多精彩Zabbix文 ...

最新文章

  1. POJ-1664 放苹果
  2. windows7 telnet linux,Windows下通过Telnet连接linux
  3. conda不是内部或外部命令
  4. 用友登录控件Vbs脚本
  5. spark指定hive字段_Spark2.0集成Hive操作的相关配置与注意事项
  6. next_permutation算法(基于交换)
  7. C++学习之路 | PTA乙级—— 1007 素数对猜想 (20分)(精简)
  8. tensorflow打印模型结构_五行代码用图提升模型表现,TensorFlow开源NSL神经结构学习框架...
  9. System Verilog线程——fork join的理解使用
  10. 使用Box2D制作AS3游戏——2.1a版本——Hello World Box2D .
  11. 大数据时代亟需消除八大“疑云”
  12. 局域网服务器共享文件权限,局域网共享文件怎么设置权限
  13. 架空线路的基本结构及组成
  14. 粪斗吧 ! 骚年 !
  15. PPT幻灯片母版在制作时的应用
  16. Openerp管理权限的方法
  17. 频繁发送socket命令返回:[WinError 10054] 远程主机强迫关闭了一个现有的连接
  18. 苹果手机上网很慢_别再重启iPhone了!信号不好,这样设置让手机网速如飞
  19. 用python做算法需要哪些技能_成为一名CV算法工程师,你需要具备哪些能力?
  20. g4560和二代i5_奔腾g4560和i5 2500K哪个好

热门文章

  1. c语言中throw的用法,C中的内联throw()方法
  2. 安卓怎么连接服务器的数据库文件,安卓怎么连接服务器的数据库文件
  3. 安装itunes需要管理员身份_Windows 10 在microsoft store 微软商店里安装的itunes如何更改备份位置...
  4. 算法设计与分析 0 算法与性能:GCD与冒泡排序
  5. 利用startup.m文件设置matlab的Current Folder的默认文件夹
  6. Vivado各个过程产生的文件与ISE的对比
  7. 矩阵的三角分解(LU)法(高斯消去法的矩阵形式分析)
  8. Virtex-6器件的时钟资源、混合模式时钟管理器(MMCM)
  9. 学习python时报SyntaxError: Non-ASCII character '\xe5' in file解决方法
  10. CodeIgniter 的购物车类只能添加10个商品的解决办法