Statement already declared as cursor <str> Explanation: The statement id passed into a declare cursor procedure was already declared as the cursor named in the message. Each statement can create only one cursor. User Action: Declare another statement to create a unique statement id for each cursor.