グリッドの破棄

グリッドを正常に破棄するには、すべてのデータベースを破棄し、モデルのすべてのオブジェクトを削除します。

  1. 「メモリーからのデータベースのアンロード」で示すように、すべてのデータベースをアンロードします。
  2. 「データベースの破棄」で示すように、すべてのデータベースを破棄します。
  3. モデルの最新バージョンから、アクティブ管理インスタンスとそれに関連付けられているホストおよびインストールを除く、すべてのホスト、インストールおよびインスタンスを削除します。
    % ttGridAdmin hostDelete host2 -cascade
    Instance instance1 on Host host2 deleted from Model
    Installation installation1 on Host host2 deleted from Model
    Host host2 deleted from Model
    
    % ttGridAdmin hostDelete host3 -cascade
    Instance instance1 on Host host3 deleted from Model
    Installation installation1 on Host host3 deleted from Model
    Host host3 deleted from Model
    
    % ttGridAdmin hostDelete host4 -cascade
    Instance instance1 on Host host4 deleted from Model
    Installation installation1 on Host host4 deleted from Model
    Host host4 deleted from Model
    
    % ttGridAdmin hostDelete host5 -cascade
    Instance instance1 on Host host5 deleted from Model
    Installation installation1 on Host host5 deleted from Model
    Host host5 deleted from Model
    
    % ttGridAdmin hostDelete host6 -cascade
    Instance instance1 on Host host6 deleted from Model
    Installation installation1 on Host host6 deleted from Model
    Host host6 deleted from Model
    
    % ttGridAdmin hostDelete host7 -cascade
    Instance instance1 on Host host7 deleted from Model
    Installation installation1 on Host host7 deleted from Model
    Host host7 deleted from Model
    
    % ttGridAdmin hostDelete host8 -cascade
    Instance instance1 on Host host8 deleted from Model
    Installation installation1 on Host host8 deleted from Model
    Host host8 deleted from Model
  4. 加えた変更をモデルの最新バージョンに適用します。
    % ttGridAdmin modelApply
    ...
    Unconfiguring standby management instance.............................OK
    Identifying any deleted objects.......................................OK
    Stopping deleted instances............................................OK
    Deleting instances....................................................OK
    Deleting installations from model.....................................OK
    Deleting any hosts that are no longer in use..........................OK
    ...
    ttGridAdmin modelApply complete
  5. アクティブ管理インスタンスを停止します。
    % ttGridAdmin mgmtActiveStop
    Active management instance stopped
  6. アクティブ管理インスタンスを破棄します。
    % /grid/tt22.1.1.27.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 the files in the directory :
     
       /grid/instance1
     
       will be removed, including any files that you or other users
       may have created.
     
       Are you sure you want to completely remove this instance? [ yes ]
       
    NOTE: /grid/instance1/info contains information related to the data
          storesthat have been created with this release. If you remove
          /grid/instance1/info you will no longer be able to access your
          data stores, nor would you be able to restore nor migrate your data.
     
       Would you also like to remove all files in
     /grid/instance1/info? [ no ] yes
       
    NOTE: /grid/instance1/conf contains information related to the
          instance configuration.
     
       Would you also like to remove all files in
     /grid/instance1/conf? [ no ] yes
    /grid/instance1 Removed 
    The TimesTen instance instance1 has been destroyed.
  7. TimesTenインストールの各システム上にあるインストール・ファイルを削除します。すべてのファイルを削除できるように、必ずディレクトリの権限を変更してください。
    % cd /grid
    % chmod -R 750 tt22.1.1.27.0/
    % rm -rf tt22.1.1.27.0/

ttGridAdmin hostDeletettGridAdmin mgmtActiveStopまたはttInstanceDestroyコマンドの詳細は、それぞれ『Oracle TimesTen In-Memory Databaseリファレンス』ホストの削除(hostDelete)アクティブ管理インスタンスの停止(mgmtActiveStop)またはttInstanceDestroyを参照してください。

ttGridAdmin modelApplyコマンドの詳細は、「モデルに加えた変更の適用」および、『Oracle TimesTen In-Memory Databaseリファレンス』モデル操作を参照してください。