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

ORA-07534: scginq: $getlki unexpected return on lockid string

1 Answers  


ORA-23454: flavor string not defined for object group "string"."string"

1 Answers  


PCC-02364: Host struct and its indicator must have the same number of fields

1 Answers  


ORA-39128: unexpected DbmsJava error number from statement string

1 Answers  


ORA-25300: Cannot drop buffer for queue with buffered subscribers

1 Answers  


ORA-31602: parameter string value "string" in function string inconsistent with string

1 Answers  


ORA-07445: exception encountered: core dump [string] [string] [string] [string] [string] [string]

1 Answers  


ORA-28137: Invalid FGA audit Handler

1 Answers  


IMG-00505: missing value in CUT rectangle

1 Answers  


ORA-31403: change table string already contains a column string

1 Answers  


TNS-00296: Stoppable : string

1 Answers  


ORA-07235: slemcw: fwrite error.

1 Answers  


Categories