public static void explainOracle(String sql) throws SQLException { System.out.println("■Oracle 実行計画取得:" + sql); try (Connection connection = DriverManager.getConnection(ORACLE_URL, ORACLE_USER, ORACLE_PASSWORD)) { connection.setAutoCommit(false); //explain plan forを付与してSQL実行 try (PreparedStatement ps = connection.prepareStatement("explain plan for " + sql)) { ps.execute(); } //実行計画を取得する try (Prepa