473,545 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.jdb c.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 8380
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.jdb c.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
4329
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 online program to also work offline, but I'd need this sort of thing to make it work well. Thanks!
3
1561
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 .net in this case? Thanks, Robert Scheer
1
1692
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 central server is unavailable, the local file is used to enable offline working. I would like to now what the fastest method is to determine...
2
1619
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 to know what will be the differences in the online-only and online/offline versions of the app? As not all users need it, is it possible to configure...
30
3370
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 statistics) 8/23 - A specific search on a specific value (one out of over 2 million) caused postmaster to SEGV. I dropped the index in question and...
6
14332
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, excluding holidays and weekends.' I didn't want to build a table of holidays that would have to be continuously updated, so I searched high and low...
10
6814
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 "snapshots" of our production database into a test environment by taking (what we thought are) offline backups of production, then doing a redirected...
0
1463
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 not in the offline database table. Also, both tables have same name, same schema etc.
9
5153
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 XML file. After query I want to get something like SqlDataReader based on Query to loop. I do not want to use a DataSet. It should be more like...
0
7406
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7813
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7431
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7761
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5337
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3457
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1020
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
709
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.