host variables not allowed for this cursor

Message value

Message type

2629

Error

Probable cause

Host variables are not allowed on the declare statement for the specified cursor. If the cursor name is provided through a host variable, then you should use full dynamic SQL and prepare the statement. A prepared statement may have host variables in it.