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

Catalog-view to get tablespace-state?

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 parsing the output of command "list
tablespaces".
The state is visible via a snapshot view.
BUT the question is whether there is any SQL-query on the catalog (not
snapshot views) that gives the tablespace-state information ?

Mar 21 '06 #1
3 3539
Here is the SQL query that may work for you using snapshot table
function as:

select tablespace_name, tablespace_state from table(
snapshot_tbs_cfg(<your_database_name>, <partition_number>)) s

I see no reason you should be restricted by only using the system
catalog views from SQL.

Regards,
-Eugene

Mar 21 '06 #2
Thanks, I already knew about the snapshot technique, as
per my original posting, however that is only applicable
if you have a database on which db2updv8 has been
run. I have subsequently learned that the answer
to my question for currently released versions of DB2
is that there are only the two methods that I mentioned
in the original posting to achieve what i needed.
So be it.

Mar 22 '06 #3
AFAK, the SQL snapshot tabe functions were available since V8.1, but in
your original message you mentioned you have V8.2 LUW, that's why I
assumed you coud use them including snapshot_tbs_cfg() in your case.

Regards,
-Eugene

Mar 22 '06 #4

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

Similar topics

2
by: Jefferis NoSpamme | last post by:
I am looking at an old query and I cannot remember or figure out what this part of the query means: `Catalog`.item like '%A\-%' It is the like '%A\-%' I cannot figure out. Then entire...
2
by: Simon Strandgaard | last post by:
I am trying to understand how to create a 'catalog.xml' file for my docbook-xml documents. If I understand correct a local catalog.xml file can both avoid hardcoding in makefiles (portability),...
6
by: Vincent Lefevre | last post by:
I would like to know if the base URI considered to resolve an unparsed entity defined by a relative URI should be the URI before or after its rewriting due to a possible catalog. Let's take an...
4
by: Thomas Sommer | last post by:
Hi group, I am really desperate but I think I am missing only a minor part. Basically I want to pipe a global entity (the one you dereference with the &) through my dtd into the xml-file I am...
3
by: maricel | last post by:
Could somebody confirm the behavior of UNCATALOG & CATALOG command based on the following situation: There are two NODES on DB2 UDB v8.1, MYNODEA & MYNODEB. MYNODEA has two databases proda &...
6
by: Chuck | last post by:
What's the difference between using "catalog node" and catalog admin node"? -- Chuck Remove "_nospam" to reply by email
4
by: bikkaran | last post by:
Hi , I want to catalog a database and I have the follwoing information with me. Node name = abcdef Comment = Protocol =...
0
by: berandor | last post by:
I am attempting to use the "Catalog Library List" feature of the IBMDA400 oledb provider. My connection string is as follows: new OleDbConnection("Provider=IBMDA400.DataSource.1;Data...
2
by: sandeep.manthena | last post by:
Hi everyone, Can anyone answers my questions. My server is AIX and is 5.2 and the db2 udb of V 8.1 Fixpak 9. What exactly is the tools catalog for? How it is uaseful in performing automatic...
0
by: Laurence | last post by:
Hi folks, I used the following CLP commands to access DB2/400 in AIX 5L/DB2 EE, and it works. CATALOG TCPIP NODE AS400 REMOTE 192.168.10.51 SERVER 446 SYSTEM PROD400 OSTYPE OS400 CATALOG...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.