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

Looking for syntax help with ALTER TABLESPACE

BD
Hi, folks.

Sorry about this - I have been R'ing all TFM's I can find, but am just
getting more frustrated.

Background:

db2 UDB 8.1 on Windows.

I'm quite new to db2, but have several years Oracle experience.

I'm attempting to resolve a locking issue by isolating a table in its
own tablespace, and setting the MAXROWS parameter to ensure that one
row is written per page. I intended to quiesce or stop the db, make
the change, and reorg the tablespace afterwards.

This measure is being taken on the advice of a more senior DBA who has
apparently resolved the issue in his environment by taking this step.

I am just trying to alter the tablespace, by using

ALTER TABLESPACE <db_name>.<tablespace_nameMAXROWS 1

But I'm having syntax issues. It barks back at me that I need to
supply a PREFETCHSIZE parameter as well:

DB21034E The command was processed as an SQL statement because it was
not a
valid Command Line Processor command. During SQL processing it
returned:
SQL0104N An unexpected token "maxrows" was found following
"tablespace
TSCHN002". Expected tokens may include: "PREFETCHSIZE".
SQLSTATE=42601

I have been poring over the ALTER TABLESPACE syntax diagrams on the
boulder.ibm.com site, and am baffled as to why this is not being
accepted. The MAXROWS parameter is advertised as a valid parameter in
ALTER TABLESPACE. Do I need to include some more comprehensive
parameter list for the ALTER TABLESPACE, or can I not simply alter one
parameter on its own?

Thanks,

BD

Jan 29 '08 #1
3 4571
BD
Yes, DB2 for zOS and DB2 for LUW (Linux/Unix/Windows) don't have all options
in common.
Thanks. Yep, I see neither PCTFREE nor MAXROWS as a tablespace-level
option under LUW. So long as I know, I guess.
Jan 30 '08 #2
"BD" <ro*********@gmail.comwrote in message
news:77**********************************@i7g2000p rf.googlegroups.com...
Thanks. Yep, I see neither PCTFREE nor MAXROWS as a tablespace-level
option under LUW. So long as I know, I guess.
PCTFREE is at the table level in DB2 for LUW. That is one reason why most
people use one table per tablespace in DB2 for z/OS, but put many tables in
the same tablespace in DB2 for LUW (but only if all the tables in that
tablespace will be in the same bufferpool).
Jan 30 '08 #3
BD
On Jan 29, 7:30*pm, "Mark A" <nob...@nowhere.comwrote:
"BD" <robert.d...@gmail.comwrote in message

news:77**********************************@i7g2000p rf.googlegroups.com...
Thanks. Yep, I see neither PCTFREE nor MAXROWS as a tablespace-level
option under LUW. *So long as I know, I guess.

PCTFREE is at the table level in DB2 for LUW. That is one reason why most
people use one table per tablespace in DB2 for z/OS, but put many tables in
the same tablespace in DB2 for LUW (but only if all the tables in that
tablespace will be in the same bufferpool).
It's so nice, developing one one platform, for a deployment that's
sitting on another. Oh joy, oh bliss... ;-)
Jan 31 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Andy | last post by:
a new user of oracle 10g. tried the following statements on scott/tiger with tablespace x create table mytest ( a varchar2(30) ); alter table mytest add constraint pk_a primary key(a);
6
by: Brian Basquille | last post by:
Just started learning SQL recently. But one thing i'm still not clear on is about altering relationships between tables after they've been created. Instead of creating a foreign key when the...
4
by: maricel | last post by:
Could someone confirm which tablespace is being used when running ALTER & CREATE INDEX. Is it the tempspace or the tablespace where the table resides? Many thanks, maricel
3
by: Michael Sherf | last post by:
I'm looking for "real life" experiences of companies running DB2 in an 24x7 OLTP environment. Seems like most folks are using DB2 for DSS applications, rather than OLTP. If your DB2 production...
3
by: randi_clausen | last post by:
I am trying to resize a DMS tablespace container in a database. There is only one table in this tablespace and it is at 89% full currently. The command executes successfully but still the size...
5
by: Leonardo Francalanci | last post by:
I got a table with oid 25459. The file is 1073741824 bytes big. I did some more inserts, and now I have this two new files: size/name: 1073741824 25459.1 21053440 25459.2
1
by: jainarayan5484 | last post by:
hi All, Sir i want to know That What is the need to Create Tablespace,Alter TableSpace,Drop Tablespace.Whereas database use default tablespace. plz help me ...
0
by: Julie Warden | last post by:
Group, I'm running Oracle 8.05 with Solaris 6. I have a database with several schemas, and I want to create a test schema from one of the other ones. I'm having a problem with my...
3
by: Gregor =?UTF-8?B?S292YcSN?= | last post by:
Hi! Is it possible to alter tablespace so that you don't connect to the database? The problem I have is this. I got a DB backup from a machine with 16 Gb of RAM. There was a bufferpool set to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.