克隆 clone Oracle 軟體
1.檢查源庫和目標庫的OS,Oracle版本是否相同.
2.確保$ORACLE_HOME卷有足夠的空間放置tar備份。
cd $ORACLE_HOME
cd ..
tar -cvfp 空閒路徑 /$(Oracle_SID)soft.tar 10.2.0
2.確保$ORACLE_HOME卷有足夠的空間放置tar備份。
cd $ORACLE_HOME
cd ..
tar -cvfp 空閒路徑 /$(Oracle_SID)soft.tar 10.2.0
3. 配置Oracle使用者或其他專有使用者的環境變數
vi .profile
vi .profile
-- 更改其中的 $ORACLE_HOME, $ORACLE_SID, $ORACLE_BASE
./.profile 使之環境變數生效.
(1),
su - root
cd /u01/data
mkdir app
cd $HOME/..
mkdir -p app/oracle/product
(2), cd $HOME/../app/oracle
mkdir -p admin/$ORACLE_SID flash_recovery_area oraInventory
cd admin/$ORACLE_SID
mkdir adump bdump cdump udump dpdump
(3), cd $HOME/../app
vi oraInst.loc
##oraInst.loc檔案內容,vi時注意去掉尾部空格
##(注意:$ORACLE_BASE/oraInventory,要寫絕對路徑)
inventory_loc= $ORACLE_BASE/oraInventory
inst_group=dba
4.解壓soft.tar 到新的目錄
5. 開始克隆,
"$ORACLE_HOME/oui/bin/runInstaller -invPtrLoc $HOME/../app/oraInst.loc -silent -clone ORACLE_HOME=""新$ORACLE_HOME 的絕對路徑"" ORACLE_HOME_NAME=""oracle_home_$ORACLE_SID""
clone成功最後會要求執行root.sh.
"$ORACLE_HOME/oui/bin/runInstaller -invPtrLoc $HOME/../app/oraInst.loc -silent -clone ORACLE_HOME=""新$ORACLE_HOME 的絕對路徑"" ORACLE_HOME_NAME=""oracle_home_$ORACLE_SID""
clone成功最後會要求執行root.sh.
=====
Starting Oracle Universal Installer...
Starting Oracle Universal Installer...
You can find a log of this install session at:
data/app/oracle/oraInventory/logs/cloneActions2012-09-29_07-22-40PM.log
.................................................................................................... 100% Done.
Installation in progress (Sat Sep 29 19:22:53 CST 2012)
............................................................................................... 95% Done.
Install successful
............................................................................................... 95% Done.
Install successful
Linking in progress (Sat Sep 29 19:23:00 CST 2012)
Link successful
Link successful
Setup in progress (Sat Sep 29 19:24:07 CST 2012)
Setup successful
Setup successful
End of install phases.(Sat Sep 29 19:24:12 CST 2012)
WARNING:
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script. to run
data/app/oracle/product/10.2.0/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
WARNING:
The following configuration scripts need to be executed as the "root" user.
#!/bin/sh
#Root script. to run
data/app/oracle/product/10.2.0/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts
The cloning of oracle_home_BCAS was successful.
======
======
6.驗證Orace soft 是否clone 成功.
opatch lsinventory -invPtrLoc $HOME/../app/oraInst.loc
====
Invoking OPatch 10.2.0.3.3
Invoking OPatch 10.2.0.3.3
Oracle interim Patch Installer version 10.2.0.3.3
Copyright (c) 2007, Oracle Corporation. All rights reserved..
Copyright (c) 2007, Oracle Corporation. All rights reserved..
--------------------------------------------------------------------------------
Installed Top-level Products (2):
Installed Top-level Products (2):
Oracle Database 10g 10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0
There are 2 products installed in this Oracle Home.
Oracle Database 10g Release 2 Patch Set 2 10.2.0.3.0
There are 2 products installed in this Oracle Home.
Interim patches (85) :
OPatch succeeded.
OPatch succeeded.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22578826/viewspace-745554/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 克隆(clone) ORACLE HOMEOracle
- Clone (克隆) ORACLE HOMEOracle
- Oracle軟體cloneOracle
- js deep clone 深克隆JS
- JAVA 基礎 – clone淺克隆與深克隆Java
- JAVA 基礎 - clone淺克隆與深克隆Java
- Java克隆(Clone)的應用薦Java
- Oracle 之 Cloning $oracle_home (克隆安裝oracle軟體)Oracle
- 克隆OS、ORACLE軟體並duplicate的實戰Oracle
- 克隆ORACLE軟體的導致的問題Oracle
- MySQL的clone(克隆)要注意的點MySql
- clone 淺克隆帶來的問題
- mac磁碟克隆備份工具:Clone X for macMac
- Oracle 12.2 新特性:線上PDB資料庫克隆(Pluggable Hot Clone)Oracle資料庫
- 【配置上線】Linux克隆安裝Oracle資料庫軟體LinuxOracle資料庫
- Oracle clone databaseOracleDatabase
- ORACLE軟體克隆完成後sysdba登入提示沒有許可權Oracle
- oracle clone oracle_home 方法Oracle
- 磁碟克隆/同步/備份軟體:Carbon Copy Cloner for MacMac
- 【DB寶35】使用MySQL 8.0 克隆(clone)外掛快速新增MGR節點MySql
- Partclone:多功能的分割槽和克隆的自由軟體
- Oracle 12c Refreshable CloneOracle
- Oracle EBS11i Clone 文件Oracle
- Oracle Doc list involved with cloneOracle
- ORACLE R12 clone log on liunxOracle
- clone oracle資料庫的方法Oracle資料庫
- Oracle 12C 新特性之 PDB熱克隆(本地克隆、遠端異機克隆)Oracle
- Oracle 建立PDB-本地克隆Oracle
- clone oracle 12c pluggable databasesOracleDatabase
- 一句程式碼幹掉簡單的手機克隆軟體
- Oracle 軟體克隆後sysdba登入提示沒有許可權ora-01031: insufficient privilegesOracle
- Oracle 建立PDB-遠端克隆Oracle
- oracle監控軟體Oracle
- oracle windows 防毒軟體OracleWindows防毒
- Just rapid clone data on DB tier in Oracle EBSAPIOracle
- Oracle EBS R12 clone文件已整理Oracle
- PHP中 new clone __clone區別PHP
- Oracle EBS R12.1.3克隆文件Oracle