473,406 Members | 2,387 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.

SQL Query to list table(s) in LOAD PENDING

IBM DB2 UDB
Is there a SQl query I can send from the web server that will return a
list of tables currently in the LOAD PENDING state?

LOAD QUERY is not quite waht I'm looking for.

Thanks!

Jun 4 '07 #1
4 25604
Mr. DOS wrote:
IBM DB2 UDB
Is there a SQl query I can send from the web server that will return a
list of tables currently in the LOAD PENDING state?
Not sure whether there really is a load pending state. If it is check
pending you are looking for:

select tabname from syscat.tables where status = 'C'

[lelle@53dbd181 lelle]$ db2 "select tabname from syscat.tables where
status = 'C'"

TABNAME

--------------------------------------------------------------------------------------------------------------------------------

0 record(s) selected.
[lelle@53dbd181 lelle]$ db2 load from /dev/null of ixf messages /tmp/A
replace into A

Number of rows read = 0
Number of rows skipped = 0
Number of rows loaded = 0
Number of rows rejected = 0
Number of rows deleted = 0
Number of rows committed = 0
[lelle@53dbd181 lelle]$ db2 "select tabname from syscat.tables where
status = 'C'"

TABNAME

--------------------------------------------------------------------------------------------------------------------------------
A
1 record(s) selected.

[lelle@53dbd181 lelle]$ db2 "set integrity for A immediate checked"
DB20000I The SQL command completed successfully.
[lelle@53dbd181 lelle]$ db2 "select tabname from syscat.tables where
status = 'C'"

TABNAME

--------------------------------------------------------------------------------------------------------------------------------

0 record(s) selected.
/Lennart
Jun 5 '07 #2
On Jun 4, 9:57 pm, Lennart <erik.lennart.jons...@gmail.comwrote:
Not sure whether there really is a load pending state. If it is check
pending you are looking for:
Thanks for the response, but if anyone aout there is familiar please
let me know.

http://www.ibm.com/developerworks/db...nyk/index.html

Jun 5 '07 #3
Mr. DOS wrote:
On Jun 4, 9:57 pm, Lennart <erik.lennart.jons...@gmail.comwrote:
>Not sure whether there really is a load pending state. If it is check
pending you are looking for:

Thanks for the response, but if anyone aout there is familiar please
let me know.

http://www.ibm.com/developerworks/db...nyk/index.html
Ah, I see. Thanks for the link. If you are on V9 I think you can use a
stmt like:

select tabschema, tabname from SYSIBMADM.ADMINTABINFO
where load_status = 'PENDING'"
Sorry for the confusion I might have caused
/Lennart
Jun 5 '07 #4
Thank you for your help. We are on v8 for most environments until
about 4Q 2007.

Jun 6 '07 #5

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

Similar topics

1
by: R. Clausen | last post by:
During the night we replicate multiple tables from a production database to a test database. Due to a server disk space full condition occurring while replication was running, a tablespace was...
0
by: yousuf | last post by:
I have a dataList that pulls from a database table - Im trying to do the normal Edit, Update, Delete, Cancel - on it. when I put the following inside a user control - .ascx file it dosn't work,...
3
by: mrsmith | last post by:
I'm trying to do a file load with this statement: LOAD FROM "/directory/datafile.txt" OF ASC MODIFIED BY NULLINDCHAR=Y METHOD L (1 8, 13 20, 28 30, 39 89) NULL INDICATORS (4, 7, 8,0) INSERT...
3
by: Stephen | last post by:
This is probably something simple but I've been trying for a while now and can't seem to get it. I'm loading a table from an IXF file with the following command 'load from...
10
by: technocrat | last post by:
How can i find the load state of the table using SQL, i can do "load query table tablename" but i cannot execute this as a sql statement. What i want to do is, i m using a java stored priocedure to...
0
by: Victoria Bolton | last post by:
I have an insert form that I want to double up as a edit form. I pass an id number by querystring and then in the page_Loadcomplete I call a function that fills the controls on the page with the...
3
by: penguin732901 | last post by:
What do experienced programmers find the most efficient way to handle user settings. Currently I have 4 tables which allow various clients to customize my program to work for them,...
1
by: deangc | last post by:
I have some scripts that drop columns in DB2 9. This leaves the table in a REORG PENDING state: SQL0668N Operation not allowed for reason code "7" on table "tablename". SQLSTATE=57016 I...
0
by: msheikh25 | last post by:
After a failed informatica load session, when I try to select from a table it shows that the table is in Load Pending state: 1 ----------- SQL0668N Operation not allowed for reason code "3" on...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
0
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...

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.