Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

cannot execute 'spool off or spool xxx.log' with sqlCommand #22

@desertTown

Description

@desertTown

Hi,
a problem I meet when I use sqlCommand to execute ''spool off' or ' spool xxx.log', and it returns 'java.sql.SQLSyntaxErrorException: ORA-00900: invalid SQL statement'. what should I do if I want to execute the command 'spool xx' to log something to file, thanks

              <executions>
                    <execution>
                        <id>spool_log</id>
                        <phase>initialize</phase>
                        <goals>
                            <goal>execute</goal>
                        </goals>
                        <configuration>
                            <sqlCommand>spool InsertTestData.log</sqlCommand>
                        </configuration>
                    </execution>
                    <execution>
                        <id>reset_data</id>
                        <phase>initialize</phase>
                        <goals>
                            <goal>execute</goal>
                        </goals>
                        <configuration>
                            <srcFiles>
                                <srcFile>${project.basedir}/src/main/resources/db/reset_data.sql</srcFile>
                            </srcFiles>
                        </configuration>
                    </execution>
                </executions>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions