Linux/UNIXでのインスタンスの破棄

次の項では、ttInstanceDestroyユーティリティを使用してインスタンスを破棄する方法について説明します。

ttInstanceDestroyユーティリティ

ttInstanceDestroyユーティリティは、既存のインスタンスを破棄します。破棄されるインスタンスは、インスタンス・ホーム・ディレクトリを示すTIMESTEN_HOME環境変数の現在の設定に基づきます。関連付けられているインストール環境のbinディレクトリにあるttInstanceDestroyユーティリティを実行します。(たとえば、installation_dir/tt22.1.1.29.0/bin。)

インスタンス管理者(インスタンスを作成したユーザー)のみがインスタンスを破棄できます。

ノート:

破棄するインスタンスに関連付けられたデータベースに対する既存の接続がない必要があります。

-helpオプションを指定してttInstanceDestroyユーティリティを実行し、使用可能なオプションをリストします。詳細は、Oracle TimesTen In-Memory DatabaseリファレンスttInstanceDestroyを参照してください。

ノート:

-forceオプションを指定すると、確認を求めずに操作が完了します。

ttInstanceDestroyユーティリティでは、次のステップが実行されます。

  • インスタンスのTimesTen起動スクリプトが(rootによって)インストールされている場合は、インスタンスを破棄する前に(rootが)それを削除する必要があることを示すリマインダが送られます。

    これは、setuproot -installおよびsetuproot -uninstallコマンドを意味します。詳細は、System V initスクリプトを使用したシステム起動時のインスタンスの自動起動を参照してください。

  • インスタンスを破棄することの確認を求めます(-forceを指定した場合を除く)。

  • インスタンスに割り当てられていたポートを解放します。

対話形式で提供された情報からのインスタンスの破棄

インスタンスを対話形式で破棄するには、ttInstanceDestroyユーティリティを使用します。ユーティリティをinstallation_dir/tt22.1.1.29.0/binディレクトリ(インスタンスのインストール・ディレクトリ)から実行します。インスタンス・ホーム・ディレクトリ(timesten_home)には、インスタンスに関連付けられたインストール環境の最上位レベルのディレクトリへのシンボリック・リンクであるサブディレクトリ(/install)が含まれています。詳細は、インスタンス・ホームを参照してください。

次の例は、ttInstanceDestroyユーティリティを使用してインスタンスを破棄する方法を示します。

% installation_dir/tt22.1.1.29.0/bin/ttInstanceDestroy
 
** WARNING **
 
   The uninstallation has been executed by a non-root user.
   If the TimesTen daemon startup scripts were installed,
   you must run $TIMESTEN_HOME/bin/setuproot -uninstall
   to remove them. If you proceed with this uninstallation, you
   will have to remove the startup scripts manually.
 
** WARNING **
 
   All files in the directory:
 
   /scratch/ttuser/fullinstance1
 
   will be removed, including any file that you or other users
   may have created.
 
   Are you sure you want to completely remove this instance? [ yes ] yes
   Installation will remove all the files from /scratch/ttuser/fullinstance1.
   Do you want to continue? [ yes ]
 
NOTE: /scratch/ttuser/fullinstance1/info contains information 
related to the data store that have been created with this release. 
If you remove /scratch/ttuser/fullinstance1/info
you will no longer be able to access your data stores,
nor would you be able to restore nor migrate your data.
 
 
NOTE: /scratch/ttuser/fullinstance1/conf contains information 
related to the instance configuration.
/scratch/ttuser/fullinstance1 Removed
The TimesTen instance fullinstance1 has been destroyed.