On 29-Sep-2015 04:34 -0600, Gregor Kovač wrote:
> 29-sep-2015 01.28.39 UTC+2 je oseba Gregor Kovač napisala:
>>
>> I'm using DB2 Express-C 10.5.5 on Linux, 32-bit.
>>
>> When I try to build a procedure or a trigger on one of the tables I
>> get: The SQL statement or command failed because of a database
>> system error. (Reason "duplicate object dependency".).
>> SQLCODE=-901, SQLSTATE=58004, DRIVER=4.18.60
>>
>> What does that mean? Searching Google and IBM.com didn't get me
>> anywhere.
>>
>
> I solved the problem, but still don't know what this error means.
> How I solved the problem? I commented out block of code in the
> procedure I tried to compile. When the procedure compiled I knew the
> table. Then I dropped the table and recreated it. This solved the
> problem.
AIUI that SQLSTATE means the SQL feature has encountered an error for
which there is no specific SQLCODE and SQLSTATE to diagnose the error,
and may be indicative of a coding error in the SQL feature for which a
fix may be required to be preventive or corrective to the condition that
gives rise to the error; i.e. the "System Error" SQLstate Class Code of
58
[
https://www-304.ibm.com/support/knowledgecenter/SSEPEK_10.0.0/com.ibm.db2z10.doc.codes/src/tpc/db2z_sqlstatevalues.dita]
Presumably the replacement text for the "Reason" was chosen by the
developers of the SQL feature to help them identify where is the origin
for, or more specifically what is, the condition being diagnosed. Thus
the specific error is being described only in\with the code, rather than
being described by any external documentation. Presumably, until the
issue is reported to the software service provider [either directly or
eventually to IBM] for which a PMR is opened with IBM, and then an APAR
opened and closed against the issue, the above message may remain the
only incident capable of being searched on the web with
[
https://www.google.com/search?&q=%22sqlstate%22+%2258004%22+%22duplicate+object+dependency%22];
oddly, that topic was not found presently with that search.
--
Regards, Chuck