If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Tablespace in Load pending state

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-08-04, 08:38
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Tablespace in Load pending state

Hi,

I have loaded the table from ixf format into database and the regula tablespace USERSPACE1 state has become in "Load pending state". How to "free" the tablespace to normal state?

Grofaty
Reply With Quote
  #2 (permalink)  
Old 07-08-04, 10:12
dsusendran dsusendran is offline
Registered User
 
Join Date: Apr 2004
Location: Inside Intel
Posts: 165
Lightbulb

You might want to reissue the Load command again. If it does not work use Load with TERMINATE option (with care).

Newbie
Reply With Quote
  #3 (permalink)  
Old 07-08-04, 10:45
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by dsusendran
You might want to reissue the Load command again. If it does not work use Load with TERMINATE option (with care).

Newbie
Very important - check the documentation for your version, the effects of this command have changed! In v5 it left you in restore pending, in v6 it left you with an empty table... I think in v8 it's finally ok, as long as you're not doing a REPLACE.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #4 (permalink)  
Old 07-09-04, 01:57
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

This is my testing environment, so no mather if I lose data in this table. I would like just to access other tables in this tablespace.

I have executed command:
C:\aaa>db2 load from c:\aaa\datafile.ixf of ixf terminate into db2admin.users

Error
SQL3508N Error in accessing a file or path of type "RESTART/TERMINATE INFO"
during load or load query. Reason code: "1". Path: "".

What to do? Is load command correct?

My system:
db2 v7.2 fp5 on Windows XP sp 1

Thanks,
Grofaty
Reply With Quote
  #5 (permalink)  
Old 07-09-04, 08:10
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Grofaty,

I just received an email about this topic this morning. Check out this web site, it might help.

http://www-106.ibm.com/developerwork...nyk/index.html

Andy
Reply With Quote
  #6 (permalink)  
Old 07-09-04, 10:12
dsusendran dsusendran is offline
Registered User
 
Join Date: Apr 2004
Location: Inside Intel
Posts: 165
Lightbulb Syntax

See:

http://www.ispirer.com/doc/sqlways36/db2/db2_load.html

From above link,

LOAD [CLIENT] FROM filename | pipename | device OF filetype
LOBS FROM lobpath MODIFIED BY filetype_mod METHOD load_method
[SAVECOUNT n] [ROWCOUNT n] [WARNINGCOUNT n] [MESSAGES message_file]
INSERT | REPLACE | RESTART | TERMINATE INTO table_name [(column {, column})]


Options:

CLIENT - Specifies that the data to be loaded resides on a remotely connected client. If this option is not specified the data must reside on the server.

The CLIENT option is available in DB2 7.1 or later.

Your syntax seems to be correct. Try putting the path within quotes like

C:\aaa>db2 load from "c:\aaa\datafile.ixf" of ixf terminate into db2admin.users

I was able to do a test with

LOAD FROM "test.ixf" OF IXF MESSAGES "testmsg.txt" TERMINATE INTO DBO.TBL1 COPY NO INDEXING MODE AUTOSELECT;

HTH,
Newbie

Last edited by dsusendran; 07-09-04 at 10:16.
Reply With Quote
  #7 (permalink)  
Old 07-12-04, 01:35
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

I have tried this command:
LOAD FROM "datafile.ixf" OF IXF MESSAGES "testmsg.txt" TERMINATE INTO db2admin.users COPY NO INDEXING MODE AUTOSELECT

But I still got the same error:
SQL3508N Error in accessing a file or path of type "RESTART/TERMINATE INFO"
during load or load query. Reason code: "1". Path: "".

Any idea why?

Thanks,
Grofaty

Last edited by grofaty; 07-13-04 at 02:57.
Reply With Quote
  #8 (permalink)  
Old 07-13-04, 02:57
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

One more question. Is there a way to find out which table caused "load pending" state of tablespace? How to find table name which produced this state?

Thanks,
Grofaty
Reply With Quote
  #9 (permalink)  
Old 07-13-04, 10:13
dsusendran dsusendran is offline
Registered User
 
Join Date: Apr 2004
Location: Inside Intel
Posts: 165
Question

See:

http://www-306.ibm.com/cgi-bin/db2ww...e.d2w/sec6sub5

Quote:

If any of the above methods fails to bring the table back online, it can often be a quiesce problem, or, in some cases a control file problem. You might get a helpful and informative message such as

SQL3508N Error in accessing a file or path of type
"RESTART/TERMINATE INFO" during load or load query.
Reason code: "1". Path: "".
I am not sure how to find the table which caused this state. Sorry. Anyone........

Newbie
Reply With Quote
  #10 (permalink)  
Old 07-13-04, 16:57
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
db2 list tablespaces show details

will show the state of the tabelspace and also the quiescer ... Check the tablename in SYSCAT.TABLES using the quiescer id and tablespace id

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #11 (permalink)  
Old 07-15-04, 07:38
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi sathyaram_s,

I have executed the following command:
db2 list tablespaces show detail

I just can't see the "the quiescer" or "quiescer id"? How to see that information?

The result is:
Code:
           Tablespaces for Current Database

 Tablespace ID                        = 0
 Name                                 = SYSCATSPACE
 Type                                 = System managed space
 Contents                             = Any data
 State                                = 0x0000
   Detailed explanation:
     Normal
 Total pages                          = 1810
 Useable pages                        = 1810
 Used pages                           = 1810
 Free pages                           = Not applicable
 High water mark (pages)              = Not applicable
 Page size (bytes)                    = 4096
 Extent size (pages)                  = 32
 Prefetch size (pages)                = 16
 Number of containers                 = 1

 Tablespace ID                        = 1
 Name                                 = TEMPSPACE1
 Type                                 = System managed space
 Contents                             = System Temporary data
 State                                = 0x0000
   Detailed explanation:
     Normal
 Total pages                          = 1
 Useable pages                        = 1
 Used pages                           = 1
 Free pages                           = Not applicable
 High water mark (pages)              = Not applicable
 Page size (bytes)                    = 4096
 Extent size (pages)                  = 32
 Prefetch size (pages)                = 16
 Number of containers                 = 1

 Tablespace ID                        = 2
 Name                                 = USERSPACE1
 Type                                 = System managed space
 Contents                             = Any data
 State                                = 0x0008
   Detailed explanation:
     Load pending
 Total pages                          = 5682
 Useable pages                        = 5682
 Used pages                           = 5682
 Free pages                           = Not applicable
 High water mark (pages)              = Not applicable
 Page size (bytes)                    = 4096
 Extent size (pages)                  = 32
 Prefetch size (pages)                = 16
 Number of containers                 = 1
 State change tablespace ID           = 2
 State change object ID               = 4

Last edited by grofaty; 07-15-04 at 07:42.
Reply With Quote
  #12 (permalink)  
Old 07-15-04, 10:33
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
There is change object id , go to syscat.tables and use tabname,tableid

regards,

mujeeb
Reply With Quote
  #13 (permalink)  
Old 07-16-04, 02:40
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Hi,

Thanks to you all, it works.

I did:
1. db2 list tablespaces show detail
2. from the above command result I searced the tablespace state = "Load pending"
3. from load pending tablespace state there is "State change object ID " = 4
4. db2 select tabschema, tabname, tableid from syscat.tables where tableid=4
5. I got the result db2admin.work (this is the name I was looking for)
6. I executed on Windows: db2 load from nul: of ixf terminate into db2admin.work
7. The tablespace has been moved to normal state.

My problem was: I was trying to "load terminate" into table that was not in load pending state!!! So loading into table that is not in load pending state produces stupid error:
Code:
"SQL3508N  Error in accessing a file or path of type "RESTART/TERMINATE INFO"
during load or load query.  Reason code: "1".  Path: "".
So figuring out which table made the load pending state of tablespace has solved my problem.

Thanks to you all folks,
Grofaty

Last edited by grofaty; 07-16-04 at 02:46.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On