Unix Technical Forum

snapshot on all db partitions

This is a discussion on snapshot on all db partitions within the DB2 forums, part of the Database Server Software category; --> Is there anyway to display the partition number while taking snapshot on all the partitions (-2) using the snapshot ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 01:48 AM
Prince Kumar
 
Posts: n/a
Default snapshot on all db partitions

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 01:49 AM
Sean McKeough
 
Posts: n/a
Default Re: snapshot on all db partitions

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)...

Prince Kumar wrote:
> 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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:58 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com