Prepare IDT-Manager
Start IDT-Manager on EC2 instance
-
Start EC2 instance with following setting.
-
AMI: (select IDT-Manager AMI at AWS Marketplace)
-
Instance type: over 4 core vCPU and over 8GB RAM. (m5.xlarge is recommended)
-
Storage: 50GB for a monitored instance generally. (See Installation Guide for more details)
-
/dev/sdb: online data / Insight Database Testing working area
-
/dev/sdc: backup data
-
-
Security group: ssh, http(7777)
-
PISO-TGT must be able to connect to port 7777 of IDT-Manager.
-
Port 7777 is used for Web-UI.
-
-
-
Logon to the EC2 instance with 'centos' user.
Setup PISO-Manager
-
Set hostname. For '<HOSTNAME>', you can give it the name you want.
sudo hostnamectl set-hostname --static <HOSTNAME>
-
Recognize expanded volume.
If you have expanded volume size, you must use file system–specific commands to extend the file system to the larger size.
sudo xfs_growfs -d /mnt/piso-data
sudo xfs_growfs -d /mnt/piso-backup
Web-UI access
-
You can access to PISO-Manager web UI. The URL is 'http://<IP_ADDRESS>:7777/piso/'.
The default username is 'administrator', and the default password is your EC2 instance id. -
You can access to IDT-Manager web UI. The URL is 'http://<IP_ADDRESS>:7777/idt/'.
The default password is your EC2 instance id.
Configure PISO-TGT setting to point to the launched PISO-Manager.
Configure PISO-TGT
-
Stop PISO-TGT process
istctl downistcmon
istctl stopall
-
Setup PISO-TGT to connect to PISO-Manager. Be sure that PISO-Manager’s securiy group is set up for connectted from PISO-TGT. (tcp/7777).
istctl setconfig
-
Set PISO-Manager IP address
-
Select 'STEP 1 Setup ISM'
-
Set IP Address of PISO-Manager.
-
Set 'C' for LANG.
-
Leave other information.
-
-
Select 'STEP 4 Register ISM'
-
-
Start PISO-TGT.
istctl upistcmon
istctl startall
-
Check PISO-TGT service status. (All processes must be runnging.)
istctl status
Configure PISO SQL collection
-
Confiugre PISO SQL collection and alert setting at PISO-Manager Web-UI.
-
Follow PISO-Manager setting guide for details.
-
-
After the configuration, database activities on the target database will be monitored.
Output collected SQLs to a CSV file.
-
Select [Search]-[Mining Search].
-
Output collected SQLs to CSV file with following setting.
-
Otuput type: CSV
-
Output directory: /mnt/piso-data/idt-data/src
-
keep [SQL] tab selected
-

-
Select [Submit].
-
Confirm the job is submitted and finished on Runnning Job and Completed Jobs Tab.

SQL Evaluation (on Insight Database Testing Web UI)
Create Test Data Set
Prepare '評価SQLセット'(SQLs for assessment) for SQL evaluation.
-
Select '評価SQLセット' menu.
-
Select '新規作成'(new).

-
Set following info.
-
'評価SQLセット名'(name): name of '評価SQLセット'
-
'データ元ファイル'(csv file): select output csv file from /src.
-
'ソース DB'(source DB setting name): set source database info at following window.
-
'ユニークSQL'(make SQLs unique): Enabled(green) or Disabled
-


-
Select [新規作成].
Set Target Database
-
Select 'ターゲットDB'(target database) menu.
-
Select '新規作成'(new).
-
Set following target database info.
-
'ターゲットDB名'(Name): name of 'ターゲットDB'
-
'データベース'(Type of database): target database type
-
'バージョン'(Version): (database version string)
-
'ホスト名'(Host Name): IP address of target database (Use IP address of PISO-TGT for the test.)
-
'ポート'(Port): port No. of the database server
-
'データベース名'(DB Name): database name
-

-
Select [新規作成].
-
After adding test database, select the database and select [テスト接続](Test Connection).
-
Set 'ユーザー'(user) and 'パスワード'(password) for the target database and select [テスト接続] to check the connection.

-
Select created Target Database from the list. (Click the name.)
Execute on Target DB
-
Select 'アセスメント'(assessment) menu.
-
Select '新規作成'(new).
-
Set following info.
-
'アセスメント名'(Assessment name): neme of the assessment result.
-
'評価SQLセット名'(SQLs for assessment name): name of '評価SQLセット'
-
'ターゲットDB名'(Target database name): name of 'ターゲットDB'
-
'実行タイプ'(Execute Type): '実行'(Execute) or 'パース'(Parse)
-
'トランザクション'(Transaction): 'コミット'(Commit), 'ロールバック'(Rollback), 指定なし(depends on db setting)
-
'0秒の仮定値': (the value when the execution time is almost zero.)0.2
-

-
Select '新規作成'(new).
-
Input the 'パスワード'(password) for database user.
-
Select [アセスメント(assessment)].
Confirm the result.
-
Select [アセスメント] from the menu.

-
Select 'アセスメント名'(name) of the result.

-
Select [実行できたすべてのSQLを見る] at right bottom. (Show all SQLs which are executed successfully.)
-
Select a SQL entry. Following image shows the execution result.
