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

Is there a view to return path of tablespace

Hi,

There is a syscat.TABLESPACES view that contains data about the available
tablespaces of a database instance. What I would like to have a look at is,
the container paths where the tablespaces are stored. Is there a view that I
can use to get at the path data?

CREATE USER TEMPORARY TABLESPACE
UTPS4
PAGESIZE 4 K
MANAGED BY SYSTEM
USING ('C:\db2\tsp\utsp4')
EXTENTSIZE 32
OVERHEAD 24.1
PREFETCHSIZE 32
TRANSFERRATE 0.9
BUFFERPOOL IBMDEFAULTBP
COMMENT ON TABLESPACE UTPS4 IS ''

What I would like to determine is the 'C:\db2\tsp\utsp4' above.

I am aware that there is the

db2 LIST TABLESPACES CONTAINERS for x

which can be executed from command line, but this is a hassle to use as I
would have to write the result to a file, read the data from file and then
parse the result string to find out where the path of each container is.
There is the language issue to keep in mind (we have customers that use
different language versions of DB2 Version 7.1/7.2 on Windows and Linux
platforms) and I have to keep in mind that the output of the command might
change in future versions, so a view would make my life a little easier.

Regards

Rudolf Bargholz
Nov 12 '05 #1
1 2510
Ian
Rudolf Bargholz wrote:
Hi,

There is a syscat.TABLESPACES view that contains data about the available
tablespaces of a database instance. What I would like to have a look at is,
the container paths where the tablespaces are stored. Is there a view that I
can use to get at the path data?


In V8, see the SNAPSHOT_CONTAINER() table function.


-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Nov 12 '05 #2

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

Similar topics

0
by: sandeep G | last post by:
I've a table which has a number & a blob column, both of which are NOT NULL type. This table is composite partitioned using range & hash on the same column. Each partition is sub partitioned into...
1
by: Jens H. Hamann | last post by:
Hi, I am having a strange problem with the storage parameters in Oracle 9.2.0.1 database. I create a tablespace with some default storage parameters but when i am adding a table to the tablespace...
6
by: robert | last post by:
just got out of a "class" on EXPLAIN, from a 390/v6 maven. was told that ACCESSTYPE = 'R' in the plan_table meant a TableSpace scan. hmmmm. next step up (or down, depending on your outlook)...
1
by: Norbert Munkel | last post by:
Hi, System: 8.1.5 UDB on SuSE Linux I created a new SMS tablespace with following ddl: CREATE REGULAR TABLESPACE ASNCTL IN DATABASE PARTITION GROUP IBMDEFAULTGROUP PAGESIZE 4096 MANAGED BY...
0
by: Mats Kling | last post by:
Hi all! I need to move a Storage management view from one tablespace to another and I can't find any info on how to move it to another tablespace. is it enought just to move (delete and...
3
by: mike | last post by:
On DB2 EEE v8.2 on Linux/Windows/Unix, is there any catalog view that I can query with SQL to find tablespace-state? The state is not visible via SYSCAT.TABLESPACES. The state is visible by...
3
by: db2udbgirl | last post by:
I have a DMS tablespace named D_0001 which has 3 containers and hosts a single partitioned table. I would like to reduce only the size of the first container (p1data/tbspace/D_0001). Hence I used...
4
by: Joachim Klassen | last post by:
DB2 V8.2 FP10 on Windows I tested the following HADR scenario: - a new tablespace on a new filesytem is created on the primary System - the replay on standby fails because of lacking permissions...
2
by: vj_dba | last post by:
Hi Group, I have a problem in restoring my tablespace, my database is running in ARCHIVAL logging, I created a tablespace, did some transaction, then took the ONLINE BACKUP of the tablespace....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.