473,406 Members | 2,705 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,406 software developers and data experts.

How to determine what table got offline?

I have about 200 tables in a DB2 V8.1.4 LUW application schema. There
is a third party java appllication that accesses this schema. It
started failing and relevant entries in db2diag.log have this:

COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/AIX64] SQL1476N
The current transaction was rolled back because of error "-952".
SQLSTATE=40506

which caused by
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.

The "<sqlcode>" reported is the SQLCODE of the original error.

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
I checked the status of all the schema table is normal.
Is there any way to identify which schema table, that has been
activated as not logged initially, was taken offline due to a
transaction failure and now just must dropped/restored?
thanks,
-Eugene

Nov 12 '05 #1
1 8357
Ian
ef******@gmail.com wrote:
I have about 200 tables in a DB2 V8.1.4 LUW application schema. There
is a third party java appllication that accesses this schema. It
started failing and relevant entries in db2diag.log have this:

COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/AIX64] SQL1476N
The current transaction was rolled back because of error "-952".


Error -952 = SQL0952N:

SQL0952N Processing was cancelled due to an interrupt.

Explanation:

The user may have pressed the interrupt key sequence.

The statement processing is terminated. Some changes may have
been applied to the database, but not committed, before
termination occurred.

Federated system users: this situation can also be detected by
the data source.

User Response:

Continue the application.

If installing the sample database, drop it and install the
sample database again.

sqlcode : -952

sqlstate : 57014

Nov 12 '05 #2

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

Similar topics

2
by: Daniel Orner | last post by:
Is it at all possible to use JavaScript to find out if someone's online or not? E.g. to try and fetch a URL and figure out if it failed or not? I'm trying to add some functionality to my primarily...
3
by: Robert Scheer | last post by:
Hi. When IE is offline and I try to create a new web application, I receive an error that says that I need IE online in order to create the new application. What is the relationship of IE and...
1
by: Rubbrecht Philippe | last post by:
Hi there, I developed an application that reeds configuration settings from a central database. Whenever the dataset is read, it's also saved as a local XML file on the machine. Whenever the...
2
by: John | last post by:
Hi I need to write a vb2005/sql server2005 app running over a LAN. Some users who use laptop need to have the app to have an offline mode for when they are away. I am new to net and would like...
30
by: Wes | last post by:
On a nightly basis, we shut the database down and do a file system backup. A short chronology of our database problem: 8/21 - count(*) of user tables succeeded (done once a week to get...
6
by: Jana | last post by:
Greetings Access Gurus! I am working on an app to send batch transactions to our bank, and the bank requires that we place an effective date on our files that is 'one business day in the future,...
10
by: Michael Hoffmann | last post by:
Hello, I hope this doesn't come across as totally newbieish, but I've been searching the web and the IBM docs until smoke is coming out of my head. Scenario: We are trying to take primitive...
0
by: seharmks | last post by:
I have a table on an offline database having let say 2000 rows and same table on an online database with let say 3000 rows. Now I want to copy just those records (1000) from online database that are...
9
by: =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post by:
Hi all On SQL Server tables I use SqlDataReader to query data like "SELECT * FROM table". Is there something similar for XML Files ? I want to use SQL Syntax like "SELECT * FROM table" on a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.