Maven: PL/SQL script with sql-maven-plugin throws error PLS-00103

泪湿孤枕 提交于 2019-12-05 01:24:14

I guess the plugin is splitting the sql script by semicolons and trying to execute each part independently. The first statement would be

BEGIN
    EXECUTE IMMEDIATE 'DROP TABLE MY_TABLE';

Which is incomplete as far as oracle is concerned. The plugin does have two configuration parameters to change this behaviour, delimiter and delimiterType. By changing the configuration like below and separating your BEGIN blocks by a / on a line by itself you should be able to execute this script.

<configuration>
    <delimiter>/</delimiter>
    <delimiterType>row</delimiterType>
</configuration>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!