FOR UPDATE or FOR READ ONLY clause must be specified on PREPARE (not on DECLARE CURSOR)

Error code 2701
 Probable cause
 More information