統合テスト用の挿入スクリプトと削除スクリプトを実行するように maven-sql プラグインを構成しました。
削除スクリプトは、SQL プラグインから長時間実行されています。OracleSQLDeveloper から同じスクリプトを実行しましたが、実行に数秒かかりました。リソースが不足している SQL クエリを知りたいです。
<!-- Maven SQL plugin to insert test data to DB. -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sql-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
// DB CONFIGS
</configuration>
<executions>
<execution>
<id>create-database-tables</id>
<phase>process-test-resources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<autocommit>false</autocommit>
<onError>continue</onError>
<srcFiles>
<srcFile>sql/delete_data.sql</srcFile>
<srcFile>sql/load_data.sql</srcFile>
</srcFiles>
</configuration>
</execution>
</executions>
</plugin>
実行中のクエリをコンソールに表示する構成はありますか。