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 > Mapping DB - Tablespace - ContainerPath

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-18-05, 05:02
bala_e bala_e is offline
Registered User
 
Join Date: Jan 2004
Posts: 49
Mapping DB - Tablespace - ContainerPath

Hi All,

I'm new to UDB DBA. We are using UDB 7.2 on AIX. I can see the list of table spaces from syscat.tablespaces and list of bufferpools from syscat.bufferpools. But I want to know the mapping between the DB -> Tablespaces -> container path. Is there any method available to get this information? ie, I want to know for the given DB what are all the tablespaces using and container path for that.

With advance thanks from

Bala
Reply With Quote
  #2 (permalink)  
Old 01-18-05, 07:14
achiola achiola is offline
Registered User
 
Join Date: May 2002
Location: General Deheza, Cba, Arg.
Posts: 273
hi
if you want see the container for a tablespace?

test this command:
list tablespace containers for [id container]


abel.
Reply With Quote
  #3 (permalink)  
Old 01-19-05, 05:38
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
You can also extract the DDl statements for bufferpools, tablespaces etc. using the db2look command:

db2look -d <db-name> -l
The output will show you the all the tablespaces and associated containers assigned to each tablespace along with space information.

Paul
Reply With Quote
  #4 (permalink)  
Old 01-19-05, 05:54
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
.... or use the scripts at http://www.db2click.com/scripts.htm

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 02-25-05, 00:19
bala_e bala_e is offline
Registered User
 
Join Date: Jan 2004
Posts: 49
Found the solution

Quote:
Originally Posted by bala_e
Hi All,

I'm new to UDB DBA. We are using UDB 7.2 on AIX. I can see the list of table spaces from syscat.tablespaces and list of bufferpools from syscat.bufferpools. But I want to know the mapping between the DB -> Tablespaces -> container path. Is there any method available to get this information? ie, I want to know for the given DB what are all the tablespaces using and container path for that.

With advance thanks from

Bala
Atlast I found the solution. My environment is partitioned one. Even though if you execute the command "DB2 LIST TABLESPACES" it will listdown all the table spaces belongs to that particular partition only. If you want to execute the same command on all the partition means need to add db2_all at the prefix and as given below.

db2_all "; db2 connect to dbname; db2 list tablespaces; db2 connect reset"

The above command will give all the tablespaces list belongs to the connected db. From that, need to grep the tablespace id and invoke the db2 list tablespace conainers for <<tablespace id>> as like the above.

db2_all "; db2 connect to dbname; db2 list tablespace containers for <<tablespace id>>; db2 connect reset"
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