how to resolve the sqlcode -501 erroe in db2?

Answer Posted / viswa

This is due to the cursor declaration in which the application program has attempted to fetch some data's into a cursor that was neither declared nor opened. So, Always follow DECLARE,OPEN,FETCH,CLOSE while working with cursors.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

ORA-16627: No standby databases support the overall protection mode.

3764


ORA-26027: unique index string.string partition string initially in unusable state

6505


ORA-26028: index string.string initially in unusable state

3636


IMP-00096: Warning: Skipping table "string"."string" because type synonym "string"."string" cannot be created

1414


When i am connect database through toad,one error occured. ORA-12514: TNS:listener does not currently know of service requested in connect descriptor. plz help me thanks advance.............

2563


RMAN-05017: no copy of datafile number found to recover

2175


How to resolve QSM-01108 error. I have no OR conditions in my query, but do have 9 IN conditions. The error says the max limit is 2 while I have 257 number of disjuncts. However, if I remove even a single IN condition, the query is rewritten. I cannot change my query. How can I resolve this issue?

2520


ORA-26029: index string.string partition string initially in unusable state

1924


[ERROR] [main 11:01:20] (JCLLoggerAdapter.java:error:454) Unsuccessful: alter table user.CEN_USER_MASTER add constraint FKF4EDEDC3D0BAAE75 foreign key (ROLE_ID) references user.CEN_ROLE_MASTER [ERROR] [main 11:01:20] (JCLLoggerAdapter.java:error:454) ORA-02275: such a referential constraint already exists in the table

2537


ORA-26084: direct path context already finished

1691


if the lengths of two wires are same and the area of cross sections is 4:7 then what will be the ratio of current passing through these wires

2459


IMP-00063: Warning: Skipping table "string"."string" because object type "string"."string" cannot be created or has different identifier

2511


IMP-00064: Definition of LOB was truncated by export

6140


ORA-26079: file "string" is not part of table string.string

1714


ORA-16626: failed to enable specified object

1992