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

How to make tables use another tablespace in DB2?

4
I have database with lot of tables (db was not created by mine and pagesize in used tablespace was set to 4K). When adding some tables, I've revealed, that pagesize is too few, because I need rows more than 4005bytes long. So i've created a new buffer with 32K pages, new tablespace, using this buffer... But I can't see how to make all my tables use this new tablespace - it's not editable anywhere!!!

How to make tables use alternative tablespace with minimal steps? I'm new in DB2 and I got few time... :(

P.S. Database version is 9.1.0.356.
Nov 28 '06 #1
2 1811
Navik
4
To cut it short - I've created new db with 32K pages, generated DDL for all tables from old db and run it at new db. Straightforward primitive approach, but it works...
Nov 28 '06 #2
r035198x
13,262 8TB
To cut it short - I've created new db with 32K pages, generated DDL for all tables from old db and run it at new db. Straightforward primitive approach, but it works...
However consider making tablespaces of sizes 4, 8, 16, and 32. If a table can fit into a 8k space, there is no point in putting it into a 32k space.
Dec 1 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: valexena | last post by:
1. Do you know in which tablespace the tables that store information about the Oracle online rollback segments is located? -- Posted via http://dbforums.com
1
by: Gh! | last post by:
How can I see how much disk space is being occupied by an InnoDB table? Looking into /var/lib/mysql doesn't seem to work anymore for InnoDB tables. Please tell also if there is a way to see how...
57
by: Bing Wu | last post by:
Hi all, I am running a database containing large datasets: frames: 20 thousand rows, coordinates: 170 million row. The database has been implemented with: IBM DB2 v8.1
11
by: Data Goob | last post by:
Hi, I thought we would be able to have indexes in a separate tablespace from the tables in another tablespace. So I went and created a INDEXSPACE1, only to not see the syntax on how to create...
3
by: MaRCeLO PeReiRA | last post by:
Hi guys, Is there a way I can separate things in PostgreSQL? Putting tables in a disk partition and indexes in another one????? Regards, MaRcELo PeReiRa PHP/SQL/PostgreSQL
7
by: Ross Mallett | last post by:
I have to drop large numbers of test tables (> 200) fairly often. This operation seems to be very slow. Is there some way to speed up the process of dropping tables?
2
by: db2dude | last post by:
Hello all, I have a database around 600GB and all tables were self-created by the application. Hence, we have only one huge SMS tablespace where all the tables are stored. To get better...
5
by: Troels Arvin | last post by:
Hello, Every so often, I'm asked to help people recover data from tables that were either dropped or where to much data was DELETEed. The complications related to restoring data are a problem....
2
by: mvsmsh | last post by:
Hi , all We have hundreds of tables in on tablespace , but I'm planning to change as one table per one tablespace. . I wonder how other shops does ? Are there any special reasons in UDB...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.