If this 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 start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Rollback error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-10, 03:18
oracle10gsingh oracle10gsingh is offline
Registered User
 
Join Date: Nov 2007
Posts: 72
Rollback error

Hi All,
there is table with 45 Million records and i am updating 46000 records through script which will call datastage job and i getting this error

Event: DB2_UDB_Acc_Arrng,1: ERROR during execution of DB2-CLI requests: SQL_ERROR; SQLSTATE = 40506; NativeErrorCode = -1476; Message = [IBM][CLI Driver][DB2/AIX64] SQL1476N The current transaction was (...)

this error is coming in datastage logs .

tablespace is 35 % used

i am on db2 9.5 on aix 6 .

Request your guidance at earliest .

Regards
Reply With Quote
  #2 (permalink)  
Old 12-09-10, 03:44
nvk@vhv nvk@vhv is offline
Registered User
 
Join Date: Jan 2010
Posts: 294
> db2 ? SQL1476N


SQL1476N The current transaction was rolled back because of error
"<sqlcode>".

Explanation:

The transaction was rolled back because:

1. An implicit or explicit CLOSE CURSOR failed, or
2. A table was being created with the NOT LOGGED INITIALLY option, or
NOT LOGGED INITIALLY was activated for an existing table. During the
same unit of work, either an error occurred, or a ROLLBACK TO
SAVEPOINT statement was issued. This unit of work is rolled back,
with the following effects:
* any table that was created in this unit of work is dropped.
* any NOT LOGGED INITIALLY tables that were activated in the
transaction are marked inaccessible, and can only be dropped.
* the "<sqlcode>" will be 0 if a ROLLBACK TO SAVEPOINT was issued in
the transaction.

3. A rollback to savepoint failed or release savepoint failed.
4. A severe error occurred during an atomic array input operation.
5. An error occurred during the creation of a system temporary LOB that
was to be used to maintain a LOB locator value for a LOB column of a
declared temporary table or created temporary table whose rows were
being deleted.

User response:

Correct the problem as indicated by the error "<sqlcode>", then run the
transaction again. Remove any ROLLBACK TO SAVEPOINT statement that is
used in the same transaction in which a NOT LOGGED INITIALLY table is
created or activated.

sqlcode: -1476

sqlstate: 40506
Reply With Quote
  #3 (permalink)  
Old 12-09-10, 04:17
oracle10gsingh oracle10gsingh is offline
Registered User
 
Join Date: Nov 2007
Posts: 72
this actually is not the problem .this table is not created with not logged initially neither cursor is declared as it loading from script which is calling datastage job .
neither the table is dropped .
Reply With Quote
  #4 (permalink)  
Old 12-10-10, 02:22
oracle10gsingh oracle10gsingh is offline
Registered User
 
Join Date: Nov 2007
Posts: 72
Dear ALL ,

its locking the table while updating 462117 out of 45 Million records ..and deadlock is happening and its not updating the table .can somebody guide me ...how to get rid of it
Reply With Quote
  #5 (permalink)  
Old 12-10-10, 09:10
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On