473,804 Members | 2,959 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 25671
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
8541
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 the message 'SQL3508N Error in accessing a file or path of type "RESTART/TERMINATE INFO" during...
0
1467
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 string etc..
3
9157
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
11113
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 afterwards the table goes into a 'check pending'
10
5026
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 if(tablestate.equals("N")) {proceed forward} else break here..
0
1279
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 event I am trying this: Me.ddlCat.SelectedIndex =
3
1933
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, some of the fields never change once set up, but many are there to allow the user to make
1
24359
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: if I use REORGCHK_TB_STATS I will have to call it once for every table in the database. Is there an...
0
6075
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
9704
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10561
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10302
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
7608
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5505
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2976
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.