473,573 Members | 2,491 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 25628
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.j ons...@gmail.co mwrote:
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.j ons...@gmail.co mwrote:
>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.ADMIN TABINFO
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
8527
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 left in 'Load Pending' status. This tablespace has about 20 tables in it. I ran the load/terminate command and have now come to understand that...
0
1454
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, but when I leave it in the Page, it works fine <script language="C#" runat="server"> void populateList(){ //prepare data adapter, connect...
3
9148
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 INTO TMP_Table (EMPLOYEEID, MAJORID, SALESID, NAME) COPY NO INDEXING MODE AUTOSELECT commit It worked couple of times but now I'm getting this:
3
11076
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 D:/db_scripts/load_test/nlm.ixf of ixf modified by USEDEFAULTS method n (NOTIFY_LIST_ID,PUBLICATION_ID) insert into mediaadm.NOTIFY_LIST_MEMBERS' this works fine but...
10
5001
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 load a table, now after loading, i want to make sure load completed successfully by checking the state of the table like...
0
1258
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 data from a datareader. Some of those controls are bound dropdownlists that have usernames, catagory types and vendor names in etc. In my fill...
3
1923
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, tblAcademicSettings (fields), tblBillingsettings (32 fields), tblGraphical (23 fields), tblOwner (33 fields). There is one record for each table. Admittedly,...
1
24294
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 want to write a script that finds all tables in this state and REORGs them, but I don't know how to generate a set of tables that are in this state:...
0
6007
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 table "TABLE". SQLSTATE=57016 But then when I try to take it out of load pending state by running a
0
7747
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7670
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
8180
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
5557
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
3706
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
3703
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2167
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1269
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1005
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.