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.35.0
Location: /scratch/ttuser/clientmac
Installation: /swdir/TimesTen/ttinstallations/ttinstall/tt22.1.1.35.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.36.0
Are you sure you want to point this instance to the installation in
/swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.36.0? [ no ] yes
Instance Info (UPDATED)
-----------------------
Name: clientmac
Version: 22.1.1.36.0
Location: /scratch/ttuser/clientmac
Installation: /swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.36.0
* Client-Only Installation
The instance clientmac now points to the installation in
/swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.36.0-installオプションを指定してttInstanceModifyユーティリティを使用する
この例では、-installオプションを指定してttInstanceModifyユーティリティを実行し、ttinstallインストールからttinstalllatestインストールにアップグレードします。現在のディレクトリは、clientmacインスタンスのtimesten_homeです。
% $TIMESTEN_HOME/bin/ttInstanceModify -install
/swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.36.0
Instance Info (UPDATED)
-----------------------
Name: clientmac
Version: 22.1.1.36.0
Location: /scratch/ttuser/clientmac
Installation: /swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.36.0
* Client-Only Installation
The instance clientmac now points to the installation in
/swdir/TimesTen/ttinstallations/ttinstalllatest/tt22.1.1.36.0