TimesTenクライアント・インスタンスの変更
ttInstanceModify
ユーティリティはインスタンスの属性を変更します。クライアント・インスタンスに関連するttInstanceModify
オプションは、-install
および-tnsadmin
オプションです。
変更されるクライアント・インスタンスは、$TIMESTEN_HOME
環境変数によって参照されるインスタンスです。$TIMESTEN_HOME
/bin
ディレクトリからttInstanceModify
ユーティリティを必ず実行してください。
詳細は、Oracle TimesTen In-Memory DatabaseリファレンスのttInstanceModifyを参照してください。
次の項では、ttInstanceModify
の使用方法を説明します。
ttInstanceModifyユーティリティを対話形式で使用する
この例では、ttInstanceModify
を対話形式で実行します。このユーティリティでは、インスタンスが示すインストールを変更するかどうかを尋ねられます。これは、-install
オプションを指定してttInstanceModify
を実行するのと同じです。
この例では、ttinstall
インストール環境からttinstalllatest
インストール環境にアップグレードします。現在のディレクトリは、clientmac
インスタンスのtimesten_home
です。
% $TIMESTEN_HOME
/bin/ttInstanceModify
Instance Info
-------------
Name: clientmac
Version: 22.1.1.29.0
Location: /scratch/ttuser/clientmac
Installation: /swdir/TimesTen/ttinstallations/ttinstall/tt22.1.1.29.0
* Client-Only Installation
Would you like to change the installation that this instance points to? [ no ] yes
Please provide the path to the new installation? [ ]
/swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.30.0
Are you sure you want to point this instance to the installation in
/swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.30.0? [ no ] yes
Instance Info (UPDATED)
-----------------------
Name: clientmac
Version: 22.1.1.30.0
Location: /scratch/ttuser/clientmac
Installation: /swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.30.0
* Client-Only Installation
The instance clientmac now points to the installation in
/swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.30.0
-installオプションを指定してttInstanceModifyユーティリティを使用する
この例では、-install
オプションを指定してttInstanceModify
ユーティリティを実行し、ttinstall
インストールからttinstalllatest
インストールにアップグレードします。現在のディレクトリは、clientmac
インスタンスのtimesten_home
です。
% $TIMESTEN_HOME
/bin/ttInstanceModify -install
/swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.30.0
Instance Info (UPDATED)
-----------------------
Name: clientmac
Version: 22.1.1.30.0
Location: /scratch/ttuser/clientmac
Installation: /swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.30.0
* Client-Only Installation
The instance clientmac now points to the installation in
/swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.30.0