次の項では、サイレント・インストールを使用して、UNIXシステムでOracle Tuxedo Application Rehosting Workbenchをインストールする方法について説明します。
サイレント・インストールでは、インストール前に作成しておいたテキスト・ファイルから構成の設定を読み取ります。インストール中にユーザーが操作を行う必要はありません。サイレント・インストールは、WindowsシステムとUNIXシステムのいずれでも利用できます。
サイレント・インストールは、インストールの構成を一度設定した上で、その構成を使用して数多くのマシンにインストールを繰り返す方法です。
OUI記録モードを使用して、選択したインストール・オプションに基づいて、新しいレスポンス・ファイルを作成できます。
記録モードを使用すると、OUIではインストール・セッションがレスポンス・ファイルに記録されます。レスポンス・ファイル名をコマンド行パラメータで指定します。記録されたレスポンス・ファイルが「サマリー」ページ直後に生成されます。実際にOracle製品をインストールしてレスポンス・ファイルを作成する必要はありません。つまり、インストールを記録モードで起動して、「サマリー」ページに移動するまでインストール・オプションで続行できます。「サマリー」ページで、「終了」をクリックして、インストールの続行からインストールを終了します。ただし、選択したすべてのオプションがレスポンス・ファイルに保存されます。
新規作成レスポンス・ファイルを使用して、組織にある他のコンピュータで同一インストール・セッションを実行できます。
記録モードはサイレント・インストール中にも使用できます。この場合、元のソース・レスポンス・ファイルで指定された変数値は、新しいレスポンス・ファイルに記録されます。
次の各項では、記録モードをWindowsシステムおよびUNIXシステムで使用する方法について説明します。
cd
コマンドを使用して、インストール用のOUI実行可能ファイル(runInstaller.sh
)が格納されているディレクトリに変更します。./runInstaller -record -destinationFile <response_file_name>
新しいレスポンス・ファイルの完全パスで<response_file_name>
を置換します。例:
./runInstaller -record -destinationFile /private/temp/install_oracle11g.rsp
OUIで「サマリー」ページが表示されると、インストールを続行するか終了できます。
コマンド行で指定したパスとファイル名を使用して、OUIで新しいレスポンス・ファイルが保存されます。
注意: | 文字列型変数の場合、二重引用符を使用して値を囲む必要があります。 |
製品がインストールされる場所。完全なサイレント・インストールを行うには、ORACLE_HOME
の値を入力する必要があります。
現在のOracleホームの名前。完全なサイレント・インストールを行うには、ORACLE_HOME_NAME
の値を入力する必要があります。
Oracle Tuxedo Application Rehosting Workbench製品のサンプルをインストールする場合は、これをtrueに設定します。これは必須です。
値がtrueの場合、以前のインストールを上書きします。同じバージョンのOracle Tuxedo Application Rehosting Workbench製品がこのORACLE_HOME
にすでにインストールされており、それを上書きする場合に必要です。
多くのOracleソフトウェア製品には、OUI画面を表示したりインストール中に質問に応答せずにOUIをコマンド行から実行するツールと手順が用意されています。
一連のインストール・オプションを選択するように求めるかわりに、あらあじめ定義された一連のオプションを使用してOUIでソフトウェアをインストールします。これらのオプションはレスポンス・ファイル(.rsp
)に格納されます。
注意: | Oracle製品がインストールされていないUNIXコンピュータでサイレント・インストールを実行しようとすると、エラー・メッセージが表示されます。サイレント・インストールをこの状況で実行する前に、/oraInventory ディレクトリにあるoraInstRoot.shスクリプトを最初に実行する必要があります。このスクリプトをroot権限で実行する必要があります。これによりOUIでクリーンなホストに中央インベントリが設定できます。 |
注意: | 詳細は、「Oracle Universal Installerインベントリ」を参照してください。 |
OUIを起動してレスポンス・ファイルを指定するには、実行可能ファイルがインストールされているディレクトリで次のコマンドをコマンド行に入力します。
./runInstaller -responseFile <filename> <optional_parameters>
注意: |
コマンド行使用に関するヘルプについては、実行可能ファイルが格納されているディレクトリで次をコマンド行に入力します。
./runInstaller – help
-responseFile
フラグで使用可能なオプション・パラメータ:
-nowelcome
: インストール中に表示される「ようこそ」ダイアログを抑止するために、-nowelcome
フラグを-responseFile
フラグと併用します。-silent
: OUIを完全なサイレント・モードで実行するために、-silent
フラグを-responseFile
フラグと併用します。「ようこそ」ダイアログは自動的に抑止されます。-waitforcompletion
- -waitforcompletion
フラグを-silent
フラグとともに使用し、javaエンジンを生成して終了するかわりに完了を待ちます。silentInstall<timestamp>.log
)内です。TEMP
変数(Windowsプラットフォーム)で指定されるディレクトリや/tmp
ディレクトリ(UNIX)でこのファイルが生成されます。注意: | -silent オプションを使用すると「ようこそ」画面は表示されないため、-nowelcome オプションと-silent オプションは併用する必要がありません。 |
リスト3-1のこのUNIXレスポンス・ファイルのサンプルは、Oracle Tuxedo Application Rehosting Workbench 12cリリース2 (12.1.3)のサイレント・インストールに適用されます。
####################################################################
## Copyright (c) 1999, 2013 Oracle. All rights reserved. ##
## ##
## Specify values for the variables listed below to customize ##
## your installation. ##
## ##
## Each variable is associated with a comment. The comment ##
## identifies the variable type. ##
## ##
## Please specify the values in the following format: ##
## ##
## Type Example ##
## String "Sample Value" ##
## Boolean True or False ##
## Number 1000 ##
## StringList {"String value 1","String Value 2"} ##
## ##
## The values that are given as <Value Required> need to be ##
## specified for a silent installation to be successful. ##
## ##
## ##
## This response file is generated by Oracle Software ##
## Packager. ##
####################################################################
RESPONSEFILE_VERSION=2.2.1.0.0
#-------------------------------------------------------------------------------
#Name : UNIX_GROUP_NAME
#Datatype : String
#Description: Unix group to be set for the inventory directory. Valid only in Unix platforms.
#Example: UNIX_GROUP_NAME = "install"
#-------------------------------------------------------------------------------
UNIX_GROUP_NAME="oinstall"
#-------------------------------------------------------------------------------
#Name : FROM_LOCATION
#Datatype : String
#Description: Complete path to the products.xml.
#Example: FROM_LOCATION = "../stage/products.xml"
#-------------------------------------------------------------------------------
FROM_LOCATION="/nfs/users/huchchen/art/stage_art_linux/Disk1/stage/products.xml"
#-------------------------------------------------------------------------------
#Name : FROM_LOCATION_CD_LABEL
#Datatype : String
#Description: This variable should only be used in multi-CD installations. It includes the label of the compact disk where the file "products.xml" exists. The label can be found in the file "disk.label" in the same directory as products.xml.
#Example: FROM_LOCATION_CD_LABEL = "CD Label"
#-------------------------------------------------------------------------------
FROM_LOCATION_CD_LABEL=<Value Unspecified>
#-------------------------------------------------------------------------------
#Name : ORACLE_HOME
#Datatype : String
#Description: Complete path of the Oracle Home.
#Example: ORACLE_HOME = "C:\OHOME1"
#-------------------------------------------------------------------------------
ORACLE_HOME="/nfs/users/huchchen/OraHome_8"
#-------------------------------------------------------------------------------
#Name : ORACLE_BASE
#Datatype : String
#Description: Complete path of the Oracle Base.
#Example: ORACLE_BASE = "C:\app"
#-------------------------------------------------------------------------------
ORACLE_BASE=<Value Unspecified>
#-------------------------------------------------------------------------------
#Name : ORACLE_HOME_NAME
#Datatype : String
#Description: Oracle Home Name. Used in creating folders and services.
#Example: ORACLE_HOME_NAME = "OHOME1"
#-------------------------------------------------------------------------------
ORACLE_HOME_NAME="OUIHome8"
#-------------------------------------------------------------------------------
#Name : SHOW_WELCOME_PAGE
#Datatype : Boolean
#Description: Set to true if the Welcome page in OUI needs to be shown.
#Example: SHOW_WELCOME_PAGE = false
#-------------------------------------------------------------------------------
SHOW_WELCOME_PAGE=true
#-------------------------------------------------------------------------------
#Name : SHOW_CUSTOM_TREE_PAGE
#Datatype : Boolean
#Description: Set to true if the custom tree page in OUI needs to be shown.
#Use this page to select or de-select dependencies. This page appears only in a custom install type.
#Example: SHOW_CUSTOM_TREE_PAGE = false
#-------------------------------------------------------------------------------
SHOW_CUSTOM_TREE_PAGE=true
#-------------------------------------------------------------------------------
#Name : SHOW_COMPONENT_LOCATIONS_PAGE
#Datatype : Boolean
#Description: Set to true if the component locations page in OUI needs to be shown.
#This page only appears if there are products whose installed directory can be changed.
#If you set this to false you will prevent the user from being able to specify alternate directories.
#Example: SHOW_COMPONENT_LOCATIONS_PAGE = false
#-------------------------------------------------------------------------------
SHOW_COMPONENT_LOCATIONS_PAGE=true
#-------------------------------------------------------------------------------
#Name : SHOW_SUMMARY_PAGE
#Datatype : Boolean
#Description: Set to true if the summary page in OUI needs to be shown.
#The summary page shows the list of components that will be installed in this session.
#Example: SHOW_SUMMARY_PAGE = true
#-------------------------------------------------------------------------------
SHOW_SUMMARY_PAGE=true
#-------------------------------------------------------------------------------
#Name : SHOW_INSTALL_PROGRESS_PAGE
#Datatype : Boolean
#Description: Set to true if the install progress page in OUI needs to be shown.
#This page shows the current status in the installation. The current status includes the product being installed and the file being copied.
#Example: SHOW_INSTALL_PROGRESS_PAGE = true
#-------------------------------------------------------------------------------
SHOW_INSTALL_PROGRESS_PAGE=true
#-------------------------------------------------------------------------------
#Name : SHOW_REQUIRED_CONFIG_TOOL_PAGE
#Datatype : Boolean
#Description: Set to true if the required config assistants page in OUI needs to be shown.
#This page shows the list of required configuration assistants that are part of this installation.
#It shows the status of each assistant, including any failures with detailed information on why it failed.
#Example: SHOW_REQUIRED_CONFIG_TOOL_PAGE = true
#-------------------------------------------------------------------------------
SHOW_REQUIRED_CONFIG_TOOL_PAGE=true
#-------------------------------------------------------------------------------
#Name : SHOW_CONFIG_TOOL_PAGE
#Datatype : Boolean
#Description: Set to true if the config assistants page in OUI needs to be shown.
#This page shows the list of configuration assistants that are part of this installation and are configured to launch automatically.
#It shows the status of each assistant, including any failures with detailed information on why it failed.
#Example: SHOW_CONFIG_TOOL_PAGE = true
#-------------------------------------------------------------------------------
SHOW_CONFIG_TOOL_PAGE=true
#-------------------------------------------------------------------------------
#Name : SHOW_RELEASE_NOTES
#Datatype : Boolean
#Description: Set to true if the release notes of this installation need to be shown at the end of installation.
#This dialog is launchable from the End of Installation page and shows the list of release notes available for the products just installed.
# This also requires the variable SHOW_END_SESSION_PAGE variable to be set to true.
#Example: SHOW_RELEASE_NOTES = true
#-------------------------------------------------------------------------------
SHOW_RELEASE_NOTES=true
#-------------------------------------------------------------------------------
#Name : SHOW_ROOTSH_CONFIRMATION
#Datatype : Boolean
#Description: Set to true if the Confirmation dialog asking to run the root.sh script in OUI needs to be shown.
#Valid only for Unix platforms.
#Example: SHOW_ROOTSH_CONFIRMATION = true
#-------------------------------------------------------------------------------
SHOW_ROOTSH_CONFIRMATION=true
#-------------------------------------------------------------------------------
#Name : SHOW_END_SESSION_PAGE
#Datatype : Boolean
#Description: Set to true if the end of session page in OUI needs to be shown.
#This page shows if the installation is successful or not.
#Example: SHOW_END_SESSION_PAGE = true
#-------------------------------------------------------------------------------
SHOW_END_SESSION_PAGE=true
#-------------------------------------------------------------------------------
#Name : SHOW_EXIT_CONFIRMATION
#Datatype : Boolean
#Description: Set to true if the confirmation when exiting OUI needs to be shown.
#Example: SHOW_EXIT_CONFIRMATION = true
#-------------------------------------------------------------------------------
SHOW_EXIT_CONFIRMATION=true
#-------------------------------------------------------------------------------
#Name : NEXT_SESSION
#Datatype : Boolean
#Description: Set to true to allow users to go back to the File Locations page for another installation. This flag also needs to be set to true in order to process another response file (see NEXT_SESSION_RESPONSE).
#Example: NEXT_SESSION = true
#-------------------------------------------------------------------------------
NEXT_SESSION=false
#-------------------------------------------------------------------------------
#Name : NEXT_SESSION_ON_FAIL
#Datatype : Boolean
#Description: Set to true to allow users to invoke another session even if current install session has failed. This flag is only relevant if NEXT_SESSION is set to true.
#Example: NEXT_SESSION_ON_FAIL = true
#-------------------------------------------------------------------------------
NEXT_SESSION_ON_FAIL=true
#-------------------------------------------------------------------------------
#Name : NEXT_SESSION_RESPONSE
#Datatype : String
#Description: Set to true to allow users to go back to the File Locations page for another installation. This flag also needs to be set to true in order to process another response file (see NEXT_SESSION_RESPONSE).
#Example: NEXT_SESSION_RESPONSE = "nextinstall.rsp"
#-------------------------------------------------------------------------------
NEXT_SESSION_RESPONSE=<Value Unspecified>
#-------------------------------------------------------------------------------
#Name : DEINSTALL_LIST
#Datatype : StringList
#Description: List of components to be deinstalled during a deinstall session.
#Example: DEINSTALL_LIST = {"workbench","12.1.3.0.0"}
#-------------------------------------------------------------------------------
DEINSTALL_LIST={"workbench","12.1.3.0.0"}
#-------------------------------------------------------------------------------
#Name : SHOW_DEINSTALL_CONFIRMATION
#Datatype : Boolean
#Description: Set to true if deinstall confimation is needed during a deinstall session.
#Example: SHOW_DEINSTALL_CONFIRMATION = true
#-------------------------------------------------------------------------------
SHOW_DEINSTALL_CONFIRMATION=true
#-------------------------------------------------------------------------------
#Name : SHOW_DEINSTALL_PROGRESS
#Datatype : Boolean
#Description: Set to true if deinstall progress is needed during a deinstall session.
#Example: SHOW_DEINSTALL_PROGRESS = true
#-------------------------------------------------------------------------------
SHOW_DEINSTALL_PROGRESS=true
#-------------------------------------------------------------------------------
#Name : CLUSTER_NODES
#Datatype : StringList
#Description: This variable represents the cluster node names selected by the user for installation.
#Example: CLUSTER_NODES = {"node1","node2"}
#-------------------------------------------------------------------------------
CLUSTER_NODES={}
#-------------------------------------------------------------------------------
#Name : ACCEPT_LICENSE_AGREEMENT
#Datatype : Boolean
#Description: By setting this variable to true, you are accepting the license agreement. This variable is used only for silent installations.
#Example: ACCEPT_LICENSE_AGREEMENT = true
#-------------------------------------------------------------------------------
ACCEPT_LICENSE_AGREEMENT=false
#-------------------------------------------------------------------------------
#Name : METALINK_LOCATION
#Datatype : String
#Description: This variable represents the Oracle metalink location.
#-------------------------------------------------------------------------------
METALINK_LOCATION=<Value Unspecified>
#-------------------------------------------------------------------------------
#Name : METALINK_USERNAME
#Datatype : String
#Description: This variable represents the Oracle metalink user name.
#-------------------------------------------------------------------------------
METALINK_USERNAME=<Value Unspecified>
#-------------------------------------------------------------------------------
#Name : METALINK_PASSWORD
#Datatype : String
#Description: This variable represents the corresponding Oracle metalink password.
#-------------------------------------------------------------------------------
METALINK_PASSWORD=<Value Unspecified>
#-------------------------------------------------------------------------------
#Name : PROXY_HOST
#Datatype : String
#Description: The proxy host used to connect to Oracle metalink.
#Example: PROXY_HOST =
#-------------------------------------------------------------------------------
PROXY_HOST=""
#-------------------------------------------------------------------------------
#Name : PROXY_PORT
#Datatype : String
#Description: The proxy port used to connect to Oracle metalink.
#Example: PROXY_PORT =
#-------------------------------------------------------------------------------
PROXY_PORT=""
#-------------------------------------------------------------------------------
#Name : PROXY_REALM
#Datatype : String
#Description: The realm for the proxy used to connect to Oracle metalink.
#Example: PROXY_REALM =
#-------------------------------------------------------------------------------
PROXY_REALM=<Value Unspecified>
#-------------------------------------------------------------------------------
#Name : PROXY_USER
#Datatype : String
#Description: The username for the proxy used to connect to Oracle metalink.
#Example: PROXY_USER =
#-------------------------------------------------------------------------------
PROXY_USER=""
#-------------------------------------------------------------------------------
#Name : PROXY_PWD
#Datatype : String
#Description: The password for the proxy used to connect to Oracle metalink.
#Example: PROXY_PWD =
#-------------------------------------------------------------------------------
PROXY_PWD=<Value Unspecified>
#-------------------------------------------------------------------------------
#Name : DONT_PROXY_FOR
#Datatype : String
#Description: The dont proxy for list.
#Example: DONT_PROXY_FOR =
#-------------------------------------------------------------------------------
DONT_PROXY_FOR=<Value Unspecified>
#-------------------------------------------------------------------------------
#Name : TOPLEVEL_COMPONENT
#Datatype : StringList
#Description: The top level component to be installed in the current session.
#Example: TOPLEVEL_COMPONENT = {"workbench","12.1.3.0.0"}
#-------------------------------------------------------------------------------
TOPLEVEL_COMPONENT={"workbench","12.1.3.0.0"}
#-------------------------------------------------------------------------------
#Name : SHOW_SPLASH_SCREEN
#Datatype : Boolean
#Description: Set to true if the initial splash screen in OUI needs to be shown.
#Example: SHOW_SPLASH_SCREEN = true
#-------------------------------------------------------------------------------
SHOW_SPLASH_SCREEN=true
#-------------------------------------------------------------------------------
#Name : SELECTED_LANGUAGES
#Datatype : StringList
#Description: Languages in which the components will be installed.
#Component : workbench
#-------------------------------------------------------------------------------
SELECTED_LANGUAGES={"en"}
#-------------------------------------------------------------------------------
#Name : COMPONENT_LANGUAGES
#Datatype : StringList
#Description: Languages supported by this component.List of supported languages : {"en","ja"}
#Component : workbench
#-------------------------------------------------------------------------
COMPONENT_LANGUAGES={"en"}
#-------------------------------------------------------------------------------
#Name : SAMPLES_INSTALL
#Datatype : Boolean
#Description: true if install samples. otherwise false.
#Component : workbench
#-------------------------------------------------------------------------------
SAMPLES_INSTALL=true
#-------------------------------------------------------------------------------
#Name : OVER_WRITE
#Datatype : Boolean
#Description: overwrite if found same version on this ORACLE_HOME
#Component : workbench
#-------------------------------------------------------------------------------
OVER_WRITE=true