Issue in DB2

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
revanthga
Participant
Posts: 16
Joined: Thu Feb 03, 2011 6:59 am

Issue in DB2

Post by revanthga »

Hi guys,

I want to remove records from Db2 table.
I had 20 lakh records in the table.
I had executed "del from table name"
it is not working.
Then i tried to execute
"load from /dev/null of del replace into Schema.tablename nonrecoverable"

now i am unable to open the table when i execute the query i am facing this error "A database manager error occurred. : [IBM][CLI Driver][DB2/AIX64] SQL0668N Operation not allowed for reason code "1" on table "Tablename". SQLSTATE=57016"



any suggestions will be appreciated.
This is Cool.
priyadharsini
Participant
Posts: 40
Joined: Mon May 11, 2009 12:19 am
Location: Madurai

Post by priyadharsini »

There is a high possiblity that load from /dev/null command will lock the table. Contact your DBA to release the lock and try.
revanthga
Participant
Posts: 16
Joined: Thu Feb 03, 2011 6:59 am

Post by revanthga »

There is a high possiblity that load from /dev/null command will lock the table. Contact your DBA to release the lock and try.
So i want to know whether there will be any other issues.
If this is the only issue then DBA can resolve this issue.
So DBA can resolve this problem.
This is Cool.
ppgoml
Participant
Posts: 58
Joined: Mon Aug 20, 2007 11:00 pm

Post by ppgoml »

check if you have reference integrity on that table. if so, your table might be in the Set Integrity Pending No Access state. Ask your DBA to Execute the SET INTEGRITY statement to put the table active.
Jack Li
Post Reply