Cursor <str> has not been declared Explanation: You must declare a cursor before you refer to it in an OPEN, CLOSE, FETCH, UPDATE, or DELETE statement. User Action: Declare the cursor, or use the name of a cursor which is already declared.