caboのIT系Tipsの情報まとめ

インフラエンジニアなのでそれに関連したIT関連の記事や技術情報をメインに扱います。また、趣味のアウトドアや写真(主に風景)が好きなのでそちらもネタがあれば載せようと思います。

OracleHomeのClone作成

パッチの適応試験とか、別環境にDBのエンジンを移すのに便利。
runInstallerのオプションで-cloneを指定するのみ。

事前に$ORACLE_HOMEをtar-ball等で固めて、別ディレクトリに展開。

展開先をORACLE_HOMEとしてcloneとして登録。

 

  • CloneDBエンジンの作成

# export DISPLAY=192.168.11.1:0.0
# $ORACLE_HOME/oui/bin/runInstaller -silent -clone ORACLE_HOME="/opt/oracle/app/oracle/product/11.2.0/dbhome_3" ORACLE_HOME_NAME="dbhome3" ORACLE_BASE="/opt/oracle/app/oracle"
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 4015 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-01-06_02-41-06AM. Please wait ...[oracle@sp1111 11.2.0]$ 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:
/opt/oracle/app/oraInventory/logs/cloneActions2019-01-06_02-41-06AM.log
.................................................................................................... 100% Done.

 

Installation in progress (Sunday, January 6, 2019 2:41:22 AM JST)
.............................................................................. 78% Done.
Install successful

Linking in progress (Sunday, January 6, 2019 2:41:27 AM JST)
Link successful

Setup in progress (Sunday, January 6, 2019 2:42:16 AM JST)
Setup successful

End of install phases.(Sunday, January 6, 2019 2:42:40 AM JST)
WARNING:
The following configuration scripts need to be executed as the "root" user.
/opt/oracle/app/oracle/product/11.2.0/dbhome_3/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts

The cloning of dbhome3 was successful.
Please check '/opt/oracle/app/oraInventory/logs/cloneActions2019-01-06_02-41-06AM.log' for more details.

# su -
Password:<rootパスワード>
# /opt/oracle/app/oracle/product/11.2.0/dbhome_3/root.sh
Check /opt/oracle/app/oracle/product/11.2.0/dbhome_3/install/root_sp1111_2019-01-06_02-43-07.log for the output of root script