PCB-00557: USING clause can only be used on a PREPAREd
dynamic statement



PCB-00557: USING clause can only be used on a PREPAREd dynamic statement..

Answer / guest

Cause: A severe semantics error occurred because the USING
clause was used with the OPEN cursor statement and the
cursor declaration is not for a PREPAREd statement. The
correct sequence of statements should be like: EXEC SQL
prepare sv from :sel_stmt END-EXEC. EXEC SQL declare csv
cursor for sv END-EXEC. EXEC SQL open csv USING :hv1, :hv2
END-EXEC.

Action: Use the prepare statement for the sql statement and
use that in the declare cursor statement.

Please add more information about this Error

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle Errors Interview Questions

NNO-00302: server stopped

1 Answers  


ORA-19361: ONLINE option not allowed with this type of index

1 Answers  


ORA-22162: element at index [string] has been previously deleted

1 Answers  


SQL-02153: Invalid character variable for use in a GET/SET statement

1 Answers  


TNS-01403: Load: string

1 Answers  






ORA-27078: unable to determine limit for open files

1 Answers  


RMAN-08027: channel string: copied current controlfile

1 Answers  


TNS-01413: "string" established:string refused:string current:string max:string state:string

1 Answers  


ORA-31418: source schema string does not exist

1 Answers  


IMG-02010: 2FF10 - illegal image format specification

1 Answers  


DRG-11517: error when validating text objects

1 Answers  


PLW-05001: previous use of 'string' (at line string) conflicts with this use

1 Answers  


Categories