TimesTenユーティリティの手動による起動
TimesTenインスタンスでTimesTenユーティリティを手動で起動できます。kubectl
exec
-it
コマンドを使用して、TimesTenポッドのコンテナのシェルを起動します。コンテナ内では、TimesTenユーティリティを起動し、追加操作を実行できます。
ノート:
TimesTenオペレータは、引き続きポッドのステータスおよびポッド内のTimesTenのステータスを問い合せます。ポッドまたはTimesTenの機能を妨げるコマンドを起動すると、オペレータは実行された操作の修正を試みることがあります。
この例では、kubectl
exec
-it
コマンドを使用して、アクティブ・スタンバイ・ペア構成内のアクティブTimesTenデータベースを含むsample-0
ポッド内のシェルを起動する方法を示します。この例では、ttIsql
ユーティリティを実行します。
% kubectl exec -it sample-0 -c tt -- /bin/bash % ttIsql sample Copyright (c) 1996, 2024, Oracle and/or its affiliates. All rights reserved. Type ? or "help" for help, type "exit" to quit ttIsql. connect "DSN=sample"; Connection successful: DSN=sample;UID=timesten;DataStore=/tt/home/timesten/datastore/sample; DatabaseCharacterSet=AL32UTF8;ConnectionCharacterSet=AL32UTF8;PermSize=200; DDLReplicationLevel=3; (Default setting AutoCommit=1)