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 > auto resize

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-20-08, 02:16
manikandank_1984 manikandank_1984 is offline
Registered User
 
Join Date: Oct 2008
Posts: 65
auto resize

Hi,

How to find out auto resize in enabled or not in my database (db2).

What is the command to increase the tablespace in db2.


Regards,
K.Mnaikandan,
Reply With Quote
  #2 (permalink)  
Old 12-20-08, 04:45
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 12-20-08, 04:57
manikandank_1984 manikandank_1984 is offline
Registered User
 
Join Date: Oct 2008
Posts: 65
please give the example

is easy to understand
Reply With Quote
  #4 (permalink)  
Old 12-20-08, 06:01
nick.ncs nick.ncs is offline
Registered User
 
Join Date: May 2007
Location: somewhere in dbforums
Posts: 221
Quote:
Originally Posted by manikandank_1984
please give the example
or you can see please spoonfeed me....

check the tablespace snapshot fucntion
http://publib.boulder.ibm.com/infoce...c/r0012562.htm

In it check for the TBSP_AUTO_RESIZE_ENABLED parameter.... if 1 then auot-resize is enabled.
__________________
IBM Certified Database Associate, DB2 9 for LUW
Reply With Quote
  #5 (permalink)  
Old 12-21-08, 08:04
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Quote:
Originally Posted by manikandank_1984
please give the example

is easy to understand
Now I'm being rude, I know...

You are asking lots of stupid questions like these, which only show that you are too lazy to do your own job. Please, do us all a favor and either use your own brains, RTFM first (you even got the direct links here!), or stop posting altogether. Thanks in advance!
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #6 (permalink)  
Old 12-23-08, 09:42
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Extend Tablesapce

Code:
ALTER TABLESPACE TSD_DATA EXTEND
            ( FILE 'e:\db2_space\db2tsd_acc_deposit_1\t_acc_deposit.0' 4428,
              FILE 'e:\db2_space\db2tsd_acc_deposit_2\t_acc_deposit.1' 4428,
              FILE 'e:\db2_space\db2tsd_acc_deposit_3\t_acc_deposit.2' 4428
            );
TSD_DATA is tablespace Name.
Three FILEs are container files
4428 are pages. ----You need to calculate pages as Bytes/bytes per page.

e.g. Need to extend 40mb

pages will be 40*1024*1024/4096 --- 4kb page size.


Ask more if you need. --- no problem.

DBFinder

Last edited by DBFinder; 12-23-08 at 11:45.
Reply With Quote
  #7 (permalink)  
Old 12-23-08, 10:05
DBFinder DBFinder is offline
Registered User
 
Join Date: Sep 2008
Location: Toronto,Canada
Posts: 606
Auto Resize

Code:
SELECT substr(TBSP_NAME,1,20) as TABLESPACE_NAME,
                    TBSP_USING_AUTO_STORAGE as AUTO_STORAGE,
                    TBSP_AUTO_RESIZE_ENABLED as AUTO_RESIZE 

   FROM table(SNAP_GET_TBSP('GC_PROD',-1)) as SNAP_GET_TBSP ;
Remember 'GC_PROD' is database name.


DBFinder
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