473,395 Members | 1,526 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,395 software developers and data experts.

Can't get table out of check pending state after load.

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'
state that i can't seem to get rid of.

I tried to use the following command for SET INTEGRITY, as it describes
in the docs.

' SET INTEGRITY FOR notify_list_members IMMEDIATE CHECKED'
but it returns the error
'SQL0290N Table space access is not allowed. SQLSTATE=55039'

This is the only table in 'check pending' state that I can see when I
run the query.
select tabname,status,const_checked from syscat.tables where status='C'

Am I missing something?

It doesn't seem to matter If I run the load from the control center or
from the command line.

Thanks.
Stephen

Mar 28 '06 #1
3 11040
This probably happens because you are running under LOGRETAIN=RECOVERY which
will force the tablespace to go in backup pending after the load.
You'll need to backup the tablespace before running the set integrity which
will still be neede.
You can, in the future, get out of this by running the LOAD command with a
COPY YES option TO sometaerget filename.
HTH, Pierre.

--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"Stephen" <sg******@mediabids.com> a écrit dans le message de news:
11**********************@t31g2000cwb.googlegroups. com...
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'
state that i can't seem to get rid of.

I tried to use the following command for SET INTEGRITY, as it describes
in the docs.

' SET INTEGRITY FOR notify_list_members IMMEDIATE CHECKED'
but it returns the error
'SQL0290N Table space access is not allowed. SQLSTATE=55039'

This is the only table in 'check pending' state that I can see when I
run the query.
select tabname,status,const_checked from syscat.tables where status='C'

Am I missing something?

It doesn't seem to matter If I run the load from the control center or
from the command line.

Thanks.
Stephen


Mar 29 '06 #2
Stephen,
At what state is the tablespace in?
Stephen wrote:
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'
state that i can't seem to get rid of.

I tried to use the following command for SET INTEGRITY, as it describes
in the docs.

' SET INTEGRITY FOR notify_list_members IMMEDIATE CHECKED'
but it returns the error
'SQL0290N Table space access is not allowed. SQLSTATE=55039'

This is the only table in 'check pending' state that I can see when I
run the query.
select tabname,status,const_checked from syscat.tables where status='C'

Am I missing something?

It doesn't seem to matter If I run the load from the control center or
from the command line.

Thanks.
Stephen


Mar 29 '06 #3
I used the 'copy yes' option and it worked.

The database was set to retain the logs.

Thanks for taking the time to help me.
Stephen

Mar 29 '06 #4

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

Similar topics

4
by: maricel | last post by:
I have the following base table structure - DDL: CREATE TABLE "ADMINISTRATOR"."T1" ( "C1" INTEGER NOT NULL ) IN "TEST_TS" ; ALTER TABLE "ADMINISTRATOR"."T1" ADD PRIMARY KEY
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: shakahshakah | last post by:
Just started investigating InnoDB after having used MyISAM tables in the 4.0.12 version, almost immediately ran into a locking issue with INSERTs, DELETEs, and transactions. Given the following...
7
by: satish mullapudi | last post by:
Hi All, I am using Db2 UDB v 8.2 on RHEL . I have performed a load operation on a table. Now that tablespace has been switched into RESTORE PENDING state. Now I can only read the data in the...
3
by: shawno | last post by:
I was doing a load into a table and it was taking way too long (previous loads took 20 mins, this one was at 3+ hours with similar number of rows) so I tried to cancel it. After clicking the...
4
by: Mr. DOS | last post by:
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!
2
by: Okonita | last post by:
Hi all, How can I implement using REORGCHK to tell REORG what DB2 UDB v8 tables, etc to perform REORG on? Any example script will be highly appreciated. Okonita
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...
2
by: jarea | last post by:
I have read quite a bit about this error but I have yet to find the solution to my problem. I am trying to execute the following mysql statement: alter table line_items add...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.