Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / September 2004

Tip: Looking for answers? Try searching our database.

snapshot on all db partitions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Prince Kumar - 29 Sep 2004 00:21 GMT
Is there anyway to display the partition number while taking snapshot
on all the partitions (-2) using the snapshot function?

ex,

select TABLESPACE_NAME, TOTAL_PAGES from table(SNAPSHOT_TBS_CFG ( ' ',
-2 )) as snap.

Is there anyway, I can get the partition number for which the data is
being retrieved?.

ie, I would like to see something like,

select dbpartitionnum(), TABLESPACE_NAME, TOTAL_PAGES from
table(SNAPSHOT_TBS_CFG ( ' ', -2 )) as snap.

Note: Joining with other table functions are OK. I have other ways to
get the desired result(either I have to use db2_all or need to get
snapshot for each paritions, which involves sending more requests).

Thanks,
Prince.
Sean McKeough - 30 Sep 2004 19:12 GMT
When you take a global snapshot, the data is aggregated together...(the
tablespace data for example is the aggregate for all nodes where that
tablespace exists)...

> Is there anyway to display the partition number while taking snapshot
> on all the partitions (-2) using the snapshot function?
[quoted text clipped - 18 lines]
> Thanks,
> Prince.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.