克隆安裝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

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/371576.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/371576.shtml
英文地址,請注明出處:http://en.pswp.cn/news/371576.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

gitlab的安裝和基本維護

基本介紹 GitLab是一個自托管的Git項目倉庫,可以自己搭建個人代碼管理的倉庫,功能與github類似。 安裝 操作系統:CentOS6.5 gitlab官網下載安裝地址:https://about.gitlab.com/downloads/#centos6 1.安裝依賴的包 yum install cur…

Spring配置文件和Java配置

我的上一個博客介紹了Spring 3.1的配置文件,并解釋了使用它們的業務案例,并演示了它們在Spring XML配置文件中的用法。 但是,似乎很多開發人員更喜歡使用Spring的基于Java的應用程序配置,因此Spring設計了一種使用帶有現有Configu…

php 刪除單個文件大小,php刪除指定大小的jpg文件

function actionZmdel(){//set_time_limit(0);$dir dirname(dirname(dirname(dirname(__FILE__))))./2012jxgwyimg;$dirarr scandir($dir);echo 正在刪除...;foreach($dirarr as $subdir){if($subdir ! . && $subdir ! ..){$path $dir./.$subdir;$files glob($path…

2017寒假零基礎學習Python系列之函數之 函數之定義可變參數

若想讓函數接受任意個參數,就可以定義一個可變的參數: def fn(*args): print args fn() >>>() fn(1,2,5,6) >>>(1,2,5,6) 原理是Python解釋器把傳入的一組參數封裝在一個tuple傳遞給可變參數,因此在函數內部,直…

在Windows上構建OpenJDK

通過做一些實驗,我發現手頭提供JDK源代碼來進行一些更改,使用它等等通常很有用。因此,我決定下載并編譯該野獸。 顯然,這花了我一些時間,盡管我最初的想法是,它應該和運行make命令一樣簡單:&…

unity中怎么在InspectorI面板加LOGO

轉載于:https://www.cnblogs.com/unitySPK/p/7278925.html

oracle stream 主鍵,oracle stream配置向導

1. Stream 的工作原理Stream 是Oracle Advanced Queue技術的一種擴展應用,這種技術最基本的原理就是收集事件,把時間保存在隊列中,然后把這些事件發布給不同的訂閱者。從DBA的角度來說,就是把捕獲Oracle數據庫產生的Redo日志&…

JavaScriptDOM 十四. Event DOM的屬性

1 <!DOCTYPE html>2 <html>3 <head>4 <title></title>5 <script type"text/javascript">6 7 /*8 1. --------------- Event DOM 事件DOM 用戶交互 ------------------9 當事件發生時, 執行JS功能代碼10 11 常用…

五、創建Bean的三種方式

五、創建Bean的三種方式轉載于:https://www.cnblogs.com/ljiwej/p/7280614.html

重寫到邊緣–充分利用它! 在GlassFish上!

現代應用程序開發的一個重要主題是重寫。 自從Java Server Faces引入和Java EE 6中新的輕量級編程模型以來&#xff0c;您一直在努力使用漂亮&#xff0c;簡單&#xff0c;可添加書簽的URL。 PrettyFaces很久以來就一直存在&#xff0c;即使它在3.3.3版本中可以說是成熟的&…

php yii框架路由,yii框架路由配置

首先要在服務器配置(httpd.conf)中開啟重寫模塊#開啟重寫模塊&#xff0c;將其前面的#去掉LoadModule rewrite_module modules/mod_rewrite.so#Directory中允許覆蓋開啟## Possible values for the Options directive are "None", "All",# or any combinat…

前端面試總結二

一、響應式和自適應的區別&#xff1a; 聯系(相同點)&#xff1a; 響應式設計(responsive design)和自適應設計(adaptive design)都是用來解決網頁在不同分辨率的屏幕和設備上展示的一項技術(或者說一種方法)。 區別&#xff1a; 響應式設計&#xff1a;通過CSS Media Queries(…

“Spring入門”教程系列

大家好&#xff0c; 我很高興向您介紹“Spring入門”教程系列&#xff01; 這是一系列文章&#xff0c;最初由我們的JCG合作伙伴 Michal Vrtiak在vrtoonjava博客上撰寫 。 本系列中將逐步創建一個時間表管理應用程序&#xff0c;并且每個教程都在前一個教程的基礎上構建。 處…

【看番雜感】Clannad系列觀后感(劇透慎入)

前言 之前看第一季時&#xff0c;彈幕里總有人在刷“寫作cl&#xff0c;讀作人生”。當時我想&#xff0c;盲目把一部催淚番上升到人生的高度&#xff0c;這未免有些武斷&#xff0c;也是對作品本身的不尊重。當看完第二季的我驀然回首&#xff0c;發現這才是最最貼切的評價&am…

oracle+tns+01106,TNS-01106:Listener using listener name already been started

最近在做HACMP雙機互備切換測試的時候&#xff0c;發現一個問題&#xff1a;A節點的listener端口為1521 &#xff0c;B節點的listener端口為1522&#xff0c;為什么兩個節點的監聽要用不同的端口號&#xff1f;當時AB機使用不同端口是基于如下考慮&#xff1a;HACMP的切換數據庫…

Centos7 開機顯示 ERST: Failed to get Error Log Address Range” 導致無法開機解決方法

開機顯示 ERST: Failed to get Error Log Address Range” 導致無法開機&#xff0c;也無法重新安裝系統&#xff0c;解決方法&#xff1a;開機進入BIOS &#xff0c; 關閉ACPI選項即可正常開機 轉載于:https://www.cnblogs.com/zhangjianghua/p/6376811.html

Spring MVC 3模板和Apache Tiles

對于任何Web應用程序而言&#xff0c;有效的設計考慮因素是使用模板引擎&#xff08;或工具&#xff09;&#xff0c;并且由于具有Spring的“可插拔”特性&#xff0c;因此集成模板機制&#xff08;例如Apache Tiles&#xff09;的確要容易得多。 在這篇簡單的文章中&#xff0…

hihocoder1543 SCI表示法

題意&#xff1a;任何一個數可以表示為連續整數相加&#xff0c;問這些連續整數的最大長度 題解&#xff1a;假設左右是l,r,那么(lr)*(l-r1)/2就是這段序列的和&#xff0c;枚舉2n的所有因子&#xff0c;找到最大的就可以了 我的做法是預處理前綴和&#xff0c;二分找到答案位置…

linux自動安裝Java環境腳本,Linux 自動添加JAVA環境腳本

Linux 自動添加JAVA環境腳本1. 刪除原有的JAVA環境變量配置### --------------delete old config -------------------- ###sed -i -e /JAVA_HOME/d -e /JRE/d /etc/profile刪除包含JAVA_HME 、JRE的行2. 加入現有的JAVA環境變量配置### -------------- add new config ----…

輾轉相除法的證明

輾轉相除法的證明設兩數為a、b(b&#xff1c;a)&#xff0c;求它們最大公約數的步驟如下&#xff1a;用b除a&#xff0c;得a&#xff1d;bq&#xff0b;r&#xff08;0≤r&#xff1c;b&#xff09;&#xff08;q是這個除法的商&#xff09;。若r0,則b是a和b的最大公約數。若r≠…