473,320 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Corrupt Trigger Nameless

Hello,

I'm having a big problem on one very important table in the system I'm
developing. Everything started when I tried to insert some columns to
this table, and AS400 DB2 told me that there was a corrupt trigger. So
I recreated the triggers for that table and nothing happened. I've
retaken this issue now and did a Generate SQL thru the iSeries Nav and
got a nameless trigger. WHAT the hell I said! ... I was supposed to
recreate that table with all the data and triggers, but I prefer to
just try to delete this trigger. Now since I don't have a name for the
trigger:

(this is how I got it from the iSeries)
CREATE TRIGGER
AFTER INSERT ON MY_TABLE
REFERENCING NEW AS INSERTED

I can't do a drop trigger directly right? Now I do know that there are
some files where one can find this relationships between the table and
the triggers. If I could somehow manually edit those files, maybe I
can get this error fixed right?

Now, the reasons why it got nameless, we have no clue on that also.
Has anyone seen something like this?

I'm not that experienced in as400 Db2 so answers for newbies please!
=)

Thanks a lot in advance
KATLIM

Jul 2 '07 #1
4 2013
As far as I saw "DB2 for iSeries SQL Reference Version 5", from syntax
of CREATE TRIGGER, trigger-name is mandatory.
>>-- CREATE TRIGGER -- trigger-name -- [NO CASCADE] BEFORE | AFTER --->
-- INSERT | DELETE | UPDATE -- ON table-name -->
......

So, if iSeries Nav generated nameless trigger, that might be bug of
iSeries Nav. And, if DB2 iSeries itself accepts nameless TRIGGER, that
might be bug of DB2 for iSeries.

Jul 2 '07 #2
kr***@tss.com.pe wrote:
[...]
I can't do a drop trigger directly right?
Just a thought, try:

drop trigger <schema>." "

I have no idea if it will work, but i might be worth a try

/Lennart

[...]
Jul 2 '07 #3
kr***@tss.com.pe wrote:
I'm having a big problem on one very important table in the system I'm
developing. Everything started when I tried to insert some columns to
this table, and AS400 DB2 told me that there was a corrupt trigger. So
I recreated the triggers for that table and nothing happened. I've
retaken this issue now and did a Generate SQL thru the iSeries Nav and
got a nameless trigger. WHAT the hell I said! ... I was supposed to
recreate that table with all the data and triggers, but I prefer to
just try to delete this trigger. Now since I don't have a name for the
trigger:

(this is how I got it from the iSeries)
CREATE TRIGGER
AFTER INSERT ON MY_TABLE
REFERENCING NEW AS INSERTED

I can't do a drop trigger directly right? Now I do know that there are
some files where one can find this relationships between the table and
the triggers. If I could somehow manually edit those files, maybe I
can get this error fixed right?

Now, the reasons why it got nameless, we have no clue on that also.
Has anyone seen something like this?

I'm not that experienced in as400 Db2 so answers for newbies please!
=)

Thanks a lot in advance
KATLIM
Perhaps discovery what name it is being used may help - on DB2 UDB you
could use:

SELECT SCHEMA,NAME,DEFINER,QUALIFIER from SYSIBM.SYSTRIGGERS

You could verify exactly what name is by replacing NAME with HEX(NAME)
in above query.

You can check column names and properties of SYSIBM.SYSTRIGGERS catalog
table by describing it:

DESCRIBE TABLE SYSIBM.SYSTRIGGERS
Jan M. Nelken
Jul 2 '07 #4
You know that that nameless trigger didn't show on the iSeries Nav. So
probably i wasn't gonna be able to do any selects or describes ... My
guess is that the cross reference files got corrupted (which it seems
that internally they are called somehow) ... In the end I had to
recreate the table, did a drop table and recreated everything. That
obviously fixed it.

Thanks all for replying
KATLIM

Jul 4 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Vinay | last post by:
Hi I have a corrupt word file. I am able to open it with the code given below tr Dim pInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo( pInfo.UseShellExecute...
9
by: Bungle | last post by:
Hi There, Does anybody know where i might be able to locate a tool/application that can determine whether a Database is corrupt?? Also, can a bad network connection cause a corruption to a...
4
by: dixie | last post by:
I have come across some code to walk through the records of a corrupt table and copy it record by record to a new table. It comes from the MVPS.Org site and is as follows. -----------------------...
0
by: Fredo | last post by:
I have an app that I'm writing to manage jpgs. Sometimes the photos are corrupt. If I use something like ACDSee, it will show the image, but it will have a note in the status bar that the image is...
3
by: rdemyan via AccessMonster.com | last post by:
One of my users had a corrupt front end that wouldn't open. My app is launched using a launching application (logon app). The logon app has a button for downloading a "fresh" copy of the front...
7
by: Juha Nieminen | last post by:
This is possible: namespace X { class A; } class X::A { <implementation}; However, what about nameless namespaces? Does this do what I want? namespace { class A; }
1
by: usernamek | last post by:
I want to find what is the nameless objects in any body knows????
18
by: Bryan Parkoff | last post by:
I hate using struct / union with dot between two words. How can I use one word instead of two words because I want the source code look reading clear. three variables are shared inside one...
8
by: iheartvba | last post by:
Hi this is a query made using access query builder: SELECT tblBank.BankID, Now() AS TimeRecd, Val(Right(nz(,0),3)) AS ConsID, "AutoCASH" AS RecUser, tblBank.Dt, Forms!frmRecCASHRunningBal!tbGroup...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.