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 > Table Space Offline

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-12-08, 09:51
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
Table Space Offline

I defined a database and loaded the data and the application is able to access the data without problems. When I do the command:
db2 list table spaces show detail
It shows one of the table spaces (USERSPACE1) offline. Not sure if this is a problem since the application does not use that table space..

Here is the output:
Code:
           Tablespaces for Current Database

 Tablespace ID                        = 0
 Name                                 = SYSCATSPACE
 Type                                 = System managed space
 Contents                             = Any data
 State                                = 0x0000
   Detailed explanation:
     Normal
 Total pages                          = 4594
 Useable pages                        = 4594
 Used pages                           = 4594
 Free pages                           = Not applicable
 High water mark (pages)              = Not applicable
 Page size (bytes)                    = 4096
 Extent size (pages)                  = 32
 Prefetch size (pages)                = 32
 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)                = 32
 Number of containers                 = 1

 Tablespace ID                        = 2
 Name                                 = USERSPACE1
 Type                                 = Database managed space
 Contents                             = Any data
 State                                = 0x4000
   Detailed explanation:
     Offline

 Tablespace ID                        = 3
 Name                                 = LSFGENDATA
 Type                                 = Database managed space
 Contents                             = Any data
 State                                = 0x0000
   Detailed explanation:
     Normal
 Total pages                          = 1536000
 Useable pages                        = 1535984
 Used pages                           = 23616
 Free pages                           = 1512368
 High water mark (pages)              = 23616
 Page size (bytes)                    = 4096
 Extent size (pages)                  = 16
 Prefetch size (pages)                = 16
 Number of containers                 = 1

 Tablespace ID                        = 4
 Name                                 = LSFGENINDEX
 Type                                 = Database managed space
 Contents                             = Any data
 State                                = 0x0000
   Detailed explanation:
     Normal
 Total pages                          = 1536000
 Useable pages                        = 1535984
 Used pages                           = 32720
 Free pages                           = 1503264
 High water mark (pages)              = 32720
 Page size (bytes)                    = 4096
 Extent size (pages)                  = 16
 Prefetch size (pages)                = 16
 Number of containers                 = 1
I also noticed that the type is database managed rather than system managed. All the other databases that have been defined set this to system managed. Thank you.
Reply With Quote
  #2 (permalink)  
Old 08-12-08, 10:34
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
alter tablespace xx switch online should bring it back
it means the tables in this ts are not being used or there are none
whatever is specified when you create ts is executed
if not what you need, change the command to drop/create the ts
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 08-12-08, 11:12
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
If the application does not use this table space and I did not define any tables to it do I need it? This was set up automatically when I defined the table using IBM'S DB2 control center. Is this used by the system to keep track of information or can I ignore the error? I did try to put it back online, but it gave me an error. It said that the container could be missing (it is not) or that something is corrupted and some other possible reasons. Thank you for your response.
Reply With Quote
  #4 (permalink)  
Old 08-12-08, 11:22
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
Ok I received an error message when I tried the command you suggested. I received this error:
SQL0293N Error accessing a table space container.

Explanation:

This error may be caused by one of the following conditions:
o A container (directory, file or raw device) was not found.
o A container is not tagged as being owned by the proper table
space.
o A container tag is corrupt.

The container is available. I am not sure about the corrupted tag. Can you tell me how to determine if the container tag is corrupt or better yet point me to some documentation on it? Thank you.
Reply With Quote
  #5 (permalink)  
Old 08-12-08, 15:47
jyoung jyoung is offline
Registered User
 
Join Date: Jul 2005
Posts: 31
I finally decided that this was a default table space defined when the data base was created. I have dropped it since I defined data spaces for my application after the database was created. Thank you.
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