'MY_QUEUE', q-6ren">
gpt4 book ai didi

oracle - PLS-00103 : Encountered the symbol "end-of-file" when expecting one of the following: := . (%;

转载 作者:行者123 更新时间:2023-12-04 06:56:44 26 4
gpt4 key购买 nike

无法从 运行以下 SQL Ant 的sql任务 :

BEGIN
DBMS_AQADM.CREATE_QUEUE_TABLE(
queue_table => 'MY_QUEUE',
queue_payload_type => 'sys.aq$_jms_map_message');

DBMS_AQADM.CREATE_QUEUE(
queue_name => 'MY_QUEUE',
queue_table => 'MY_QUEUE');

DBMS_AQADM.START_QUEUE (
queue_name => 'MY_QUEUE');

END;
/

有以下错误:
CreateMyQueue:
[sql] Executing resource: /u1/bin/sql/createMyQueue.sql
[sql] Failed to execute: BEGIN DBMS_AQADM.CREATE_QUEUE_TABLE( queue_table => 'MY_QUEUE', queue_payload_type => 'sys.aq\$_jms_map_message')

BUILD FAILED
/u1/bin/.tools/build.xml:194: java.sql.SQLException: ORA-06550: line 1, column 118:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
:= . ( % ;

SQL 有什么问题?

最佳答案

这是解决方案!
http://www.javaddicts.net/blog/index.php/2005/06/13/executing-oracle-plsql-from-ant/
应使用以下参数
分隔符="/"
delimitertype="row"

<project name="SWPDEPLOYMENT" basedir="." default="all">
<target name="createMyQueue">
<sql driver="oracle.jdbc.driver.OracleDriver"
url="${sqlurl}"
userid="${userid}"
password="${pwd}"
print="yes"
delimiter="/"
delimitertype="row"
>
<fileset dir=".">
<include name="createMyQueue.sql"/>
</fileset>
</sql>
</target>

关于oracle - PLS-00103 : Encountered the symbol "end-of-file" when expecting one of the following: := . (%;,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2477134/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com