Db2 Error Sqlcode=-551 Sqlstate=42501
Contents |
a group -551; db2 sql error sqlcode=-551 sqlstate=42501 SQL0551N Technote (troubleshooting) Problem(Abstract) You try to create a
Sqlstate=42501 Db Error Code=-551
view, materialized query tables (MQTs), SQL routine, trigger, or package that contains static
Db2 Sqlcode 551
SQL, and get error SQLCODE: -551 or SQL0551N. Symptom SQL0551N "
Sqlcode -551 Sqlstate 42501
object "
is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To db2 sqlstate 42501 start viewing messages, select the forum that you want to visit from the selection code=-551 state=42501 below. Results 1 to 6 of 6 Thread: ERROR SQLCODE "-551", SQLSTATE "42501" when doing inserts. Tweet Thread Tools Show sqlcode=-104 sqlstate=42601 db2 Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 04-28-09,16:14 #1 db2pro View Profile View Forum Posts Banned Join Date Mar http://www-01.ibm.com/support/docview.wss?uid=swg21381783 2009 Posts 36 Unanswered: ERROR SQLCODE "-551", SQLSTATE "42501" when doing inserts. Hi All, When I am running the following insert command. I am getting the following error. COMMAND: INSERT INTO WCCADM12.CDEVENTDEFTP ( LANG_TP_CD , EVENTDEF_TP_CD , EVENT_CAT_CD , EVENT_NAME , ENABLE_NOTIFY , EXPIRY_DT , DESCRIPTION , LAST_UPDATE_USER , LAST_UPDATE_DT ) VALUES ( 100, 15, 6, 'PartyComplianceNextVerify', 'Y', null, 'Party Compliance Next Verify Date', null, CURRENT_TIMESTAMP ) ERROR:: DB21034E http://www.dbforums.com/showthread.php?1641803-ERROR-SQLCODE-quot-551-quot-SQLSTATE-quot-42501-quot-when-doing-inserts The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0727N An error occurred during implicit system action type "7". Information returned for the error includes SQLCODE "-551", SQLSTATE "42501" and message tokens "WCCADM12|ALTER TABLE|WCCADM12.CDEVENTDEFTP". LINE NUMBER=0. SQLSTATE=56098 When I tried for solutions on google. Many replied that the solution is to 1. drop the triggers related to this table 2. then run the insert commands 3. create the triggers again. The above steps are absolutely working. But as this is in DEV. I am ok to do this and get rid of the issues. But I am worried about doing this in PROD. I just want to know that does anyone has encountered the same issue and could be fixed without dropping and recreating the Triggers. Actually my triggers on this table are for only Updates and Deletes but not on the INSERTS. I am not able to understand why the inserrts are failing. Anyone please help me in finding a solution for this issue without dropping and recreating the triggers. DB2 Version : DB2 v 9.5 OS Level : AIX 5.3 Reply With Quote 04-28-09,16:19 #2 Marcus_A Vi
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us http://stackoverflow.com/questions/1588687/db2-connection-problem-with-java Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Db2 connection problem with java up vote 7 db2 sql down vote favorite 3 I am having problem with DB2. I just installed the db2 as a db2admin and with a password. When i try to connect to database it is success full and while running any simple select query it give me following error:- DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=DB2ADMIN.LOGIN, DRIVER=3.57.82 I have a database named onp and a table in it called 'login' in which error sqlcode=-551 sqlstate=42501 there is one table called 'login' with two fields username and password. Query that i am running Select * from login; gives me error DB2 SQL Error: SQLCODE=-204, SQLSTATE=42704, SQLERRMC=DB2ADMIN.LOGIN, DRIVER=3.57.82 Select * from system.login; gives me error:- (//system is schema name) DB2 SQL Error: SQLCODE=-551, SQLSTATE=42501, SQLERRMC=DB2ADMIN;SELECT;SYSTEM.LOGIN, DRIVER=3.57.82 I have tried all the resources on the net and exhausted completely. Please help me java jdbc db2 db2-luw share|improve this question edited Jul 21 at 19:47 mustaccio 10.7k41933 asked Oct 19 '09 at 13:33 RishiPatel 801211 add a comment| 4 Answers 4 active oldest votes up vote 8 down vote accepted I don't know a lot about DB2, but looking up the error codes... The first error is because you didn't specify a schema, so it couldn't find the login table. SQLCODE -204 Object not defined to DB2 DB2 apparently requires you to specify the schema name or it looks in the schema with the same name as your login user. You must use SET SCHEMA or fully qualify the table name. The second error is because you don't have the privileges to perform that select: SQLCODE -551, Error: DOES NOT HAVE THE PRIVILEGE TO PERFORM OPERATION ON OBJ