Install4j: SQL 脚本和语句分隔符
Install4j: SQL Script and statement delimiter
我尝试 运行 在一个 SQL 脚本操作中为安装程序中的 Oracle dbms 和作为 JDBC 容器操作的一部分的几个 SQL-语句。
该脚本编码为 UTF-8,包含多个语句,以“;”分隔。每个语句之间换行,像这样
statement 1;
statement 2;
...
这些语句包含在执行前被替换的安装程序变量。我在 SQL 脚本操作中使用分号作为语句分隔符。
第一条语句抛出错误
执行脚本行 "CREATE user testconuser identified by xxx TEMPORARY TABLESPACE temp;"、
时出错
error message: "ORA-00911: invalid character"
该语句本身在 SQLPLUS 中运行良好,但问题似乎出在分号上,它仍然是 install4j 执行的语句的一部分。
在 JDBC sql 语句中,分号无效。
我还尝试从语句中删除分号并使用“\n”作为语句分隔符,但是 sql 脚本操作会立即触发脚本中的所有 sql 语句,所以它看起来像“ \n" 无法识别。
我使用的是 install4j 6.1.5 build 6349。平台是 windows,sql 脚本是在 windows 上构建的。
知道我应该改变什么吗?
非常感谢任何帮助,非常感谢,
亚历克斯
I used the semicolon as a statement separator in the SQL script action. The first statement throws an error Error executing script line
和
I also tried to remove the semicolons from the statements and used "\n" as statement delimiter
两者都是 6.1.5 中的错误,将在 6.1.6 中修复。请联系 support@ej-technologies.com 获取一个版本,您可以在其中验证它是否适合您。
我尝试 运行 在一个 SQL 脚本操作中为安装程序中的 Oracle dbms 和作为 JDBC 容器操作的一部分的几个 SQL-语句。 该脚本编码为 UTF-8,包含多个语句,以“;”分隔。每个语句之间换行,像这样
statement 1;
statement 2;
...
这些语句包含在执行前被替换的安装程序变量。我在 SQL 脚本操作中使用分号作为语句分隔符。 第一条语句抛出错误 执行脚本行 "CREATE user testconuser identified by xxx TEMPORARY TABLESPACE temp;"、
时出错error message: "ORA-00911: invalid character"
该语句本身在 SQLPLUS 中运行良好,但问题似乎出在分号上,它仍然是 install4j 执行的语句的一部分。 在 JDBC sql 语句中,分号无效。 我还尝试从语句中删除分号并使用“\n”作为语句分隔符,但是 sql 脚本操作会立即触发脚本中的所有 sql 语句,所以它看起来像“ \n" 无法识别。 我使用的是 install4j 6.1.5 build 6349。平台是 windows,sql 脚本是在 windows 上构建的。 知道我应该改变什么吗? 非常感谢任何帮助,非常感谢, 亚历克斯
I used the semicolon as a statement separator in the SQL script action. The first statement throws an error Error executing script line
和
I also tried to remove the semicolons from the statements and used "\n" as statement delimiter
两者都是 6.1.5 中的错误,将在 6.1.6 中修复。请联系 support@ej-technologies.com 获取一个版本,您可以在其中验证它是否适合您。