Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Problem with DBMS_SQL

Re: Problem with DBMS_SQL

From: Matthias Gresz <GreMa_at_t-online.de>
Date: 15 Apr 1998 08:53:13 GMT
Message-ID: <6h1shp$u1o$2@news02.btx.dtag.de>


Hi,

think the only fault you maid is, that your SQL-Statement(SQL_STMT) ends with a ';'.

On Tue, 14 Apr 1998 15:20:56 -0400, Cory Brooks <coryb_at_lilly.com> wrote:

>I am getting an invalid character error when I try to execute a stored
>procedure containing a dbms_sql.parse command.
>
>If I hard code the "statement" (second parameter), it works ok.
>Eg. dbms_sql.parse(cursor_#,'Select ...',DBMS_SQL.V7);
>
>
>If I build the statement in a Varchar2 or Char variable
>Eg.
>SQL_STMT := 'Select ...';
>DBMS_SQL.PARSE(CURSOR_NUM,SQL_STMT,DBMS_SQL.V7);
>
>fails with the following message:
>*
>ERROR at line 1:
>ORA-20400: ORA-00911: invalid character
>
>Has anyone successfully used a character variable for the statement and
>if so, was it necessary to do anything special?
>TIA
>Cory Brooks

--

Regards

Matthias Gresz :-)

GreMa_at_T-online.de Received on Wed Apr 15 1998 - 03:53:13 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US