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=mvp

export ORACLE_BASE=/data/clone_oracle

export ORACLE_HOME=$ORACLE_BASE/product/11.2./dbhome_1

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export 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 11g静默安装简明版

    环境:RHEL 6.5 + Oracle 11.2.0.4 1. 初步处理应答文件 2. 静默安装软件 3. 静默安装监听 4. 静默dbca建库 说明: 本文默认安装软件前的步骤已经设置完毕 如果没 ...

  2. Solaris 和linux 之oracle 数据库的安装

    本篇博文前面是一些基础知识介绍,后面才是总结篇. 一.在solaris上面装oracle 10g教程 目前官网已经没有32位的oracle11g了,取而代之的都是64位的oracle11g,为了能在3 ...

  3. Linux 6.x 下Oracle 11g R2 安装配置

    Oracle 11g R2 数据库安装硬件配置要求: 最小内存 1 GB of RAM 虚拟内存容量,这个oracle也有要求,不用担心此时的swap分区不够oracle的要求 .虚拟内存swap如何 ...

  4. Linux平台 Oracle 11gR2 RAC安装Part1:准备工作

    一.实施前期准备工作 1.1 服务器安装操作系统 1.2 Oracle安装介质 1.3 共享存储规划 1.4 网络规范分配 二.安装前期准备工作 2.1 各节点系统时间校对 2.2 各节点关闭防火墙和 ...

  5. Linux平台 Oracle 11gR2 RAC安装Part2:GI安装

    三.GI(Grid Infrastructure)安装 3.1 解压GI的安装包 3.2 安装配置Xmanager软件 3.3 共享存储LUN的赋权 3.4 使用Xmanager图形化界面安装GI 3 ...

  6. Linux平台 Oracle 11gR2 RAC安装Part3:DB安装

    四.DB(Database)安装 4.1 解压DB的安装包 4.2 DB软件安装 4.3 ASMCA创建磁盘组 4.4 DBCA建库 4.5 验证crsctl的状态 Linux平台 Oracle 11 ...

  7. Oracle 数据库基础——安装

    一.数据库基础知识 1.概念 数据库全称数据库管理系统,简称DBMS,是一种在计算机中,针对数据进行管理.存储.共享的一种技术. 2.分类 数据库的发展过程中,按逻辑模型可分为以下几种: 3.关系型数 ...

  8. 一、oracle数据库成功安装步骤 (11gR2)

    下载安装包 从Oracle官方网站下载数据库软件安装包:http://www.oracle.com/technetwork/cn/database/enterprise-edition/downloa ...

  9. Oracle 11gR2静默安装 & 命令行安装

    静默安装 经常搭建Oracle测试环境,有时候觉得OUI(即图形界面)方式甚是繁琐,你得一步一步进行确认,所幸,Oracle支持静默安装.在我看来,它主要有两方面的好处:一.极大地提升了效率,尤其是批 ...

随机推荐

  1. Extjs NumberField 开始值 不能大于 结束值

    Ext.apply(Ext.form.VTypes,{ numberrange: function(val, field) { var num = parseFloat(val); if (field ...

  2. .NET:如何实现 “热插拔”?

    背景 如果某个“功能”需要动态更新?这种动态更新,可能是需求驱动的,也可能是为了修改 BUG,面对这种场景,如何实现“热插拔”呢?先解释一下“热插拔”:在系统运行过程动态替换某些功能,不用重启系统进程 ...

  3. MySQL连接查询(inner join,left join和right join的区别)

    关系数据库由多个相关表组成,这些表使用已知为外键列的常用列链接在一起. 因此,从业务角度来看,每个表中的数据是不完整的. 例如,在示例数据库(yiibaidb)中,使用orderNumber列链接的o ...

  4. 【BZOJ】【3611】【HEOI2014】大工程

    虚树+树形DP 本题100W的点数……不用虚树真的好吗…… Orz ZYF 我的感悟: dp的过程跟SPOJ 1825 FTOUR2 的做法类似,依次枚举每个子树,从当前子树和之前的部分中各找一条最长 ...

  5. OpenCV教程(42) xml/yaml文件的读写

    参考资料: http://docs.opencv.org/modules/core/doc/xml_yaml_persistence.html #include "opencv2/openc ...

  6. Informatica 常用组件Lookup之九 配置未连接的查找转换

    在映射中,未连接的查找转换与管道是分开的.您可以使用 :LKP 引用限定符编写表达式以调用其它转换中的查找.未连接查找的常用用法包括: 测试表达式中某个查找的结果 基于查找结果过滤行 基于查找的结果将 ...

  7. ListView 控件与 内容

    1)由控件获取内容:ListViewItem item = Utilities.GetVisualParent<ListViewItem>(chx); if (item == null) ...

  8. tcp协议的端口状态

    Listening Syn_sent syn_rcvd established close_wait time_wait --------- 对方主动关闭(对方调用close()), 我方的状态变为 ...

  9. 高人对libsvm的经典总结(全面至极)

    ==>转自:http://blog.163.com/crazyzcs@126/blog/static/129742050201061192243911/ http://www.ilovematl ...

  10. 有关String的转换的一篇好文章

      Pay Close Attention - String Handling I need to make a detour for a few moments, and discuss how t ...