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 > db2 get snapshot for tablespaces on <SID>

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-09, 01:18
manikandank_1984 manikandank_1984 is offline
Registered User
 
Join Date: Oct 2008
Posts: 65
db2 get snapshot for tablespaces on <SID>

Hi,

I have executed this command.We have totally 37 tablespaces in DB2.After executed this command i able to see last part only in screen i.e 37th tablespace details only.I want to see the all the tablespace datails in single screen.Can you tell me how to see.

Regards,
Maj
Reply With Quote
  #2 (permalink)  
Old 03-26-09, 01:44
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
that issue is OS related and not db2..


Redirect output to a text file or scroll upwards to see other details
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #3 (permalink)  
Old 03-26-09, 01:55
manikandank_1984 manikandank_1984 is offline
Registered User
 
Join Date: Oct 2008
Posts: 65
db2 get snapshot for tablespaces on <SID>

Hi,

Thanks for your reply.

What is the command to redirect to text file.

Regards,
Maj.
Reply With Quote
  #4 (permalink)  
Old 03-26-09, 10:42
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
Read the db2 manual for GET SNAPSHOT command it has been well documented... or else pay me your salary and i'll help you 24x7
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #5 (permalink)  
Old 03-26-09, 21:32
db2dummy1 db2dummy1 is offline
Registered User
 
Join Date: Feb 2009
Posts: 114
from the sound of it, he just may take you up on the offer ... sorry, could not resist
Reply With Quote
  #6 (permalink)  
Old 04-08-10, 01:16
Satyenderm Satyenderm is offline
Registered User
 
Join Date: Apr 2010
Posts: 3
Redirecting SNAPSHOT to a text file

Quote:
Originally Posted by manikandank_1984 View Post
Hi,

Thanks for your reply.

What is the command to redirect to text file.

Regards,
Maj.
Hi all,

I know that I am replying to this old thread.
I think this would help the people who would search for the particular topic in the future.

Herein is the answer:

db2> DB2 GET SNAPSHOT FOR DATABASE ON SAMPLE > C:\SNAP.TXT
Reply With Quote
  #7 (permalink)  
Old 04-08-10, 04:46
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Quote:
Originally Posted by Satyenderm View Post

db2> DB2 GET SNAPSHOT FOR DATABASE ON SAMPLE > C:\SNAP.TXT
When I try this, I get an error

DB2: command not found

How to solve this
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #8 (permalink)  
Old 04-08-10, 11:16
Satyenderm Satyenderm is offline
Registered User
 
Join Date: Apr 2010
Posts: 3
I forgot to mention where to use this command.
Give DB2CMD command in RUN menu and then give the command.

Start -> Run -> DB2CMD -> Enter key
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