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

Table space error : Create Table DDL

Hi,

I have Db2 9 installed in Windows. Am trying to create a table with the
following DDL

CREATE TABLE DB2N.T_CO (
a1 VARCHAR(100) NOT NULL,
b1 VARCHAR(255),
c1 VARCHAR(255),
d1 VARCHAR(255),
e1 VARCHAR(4000),
f1 VARCHAR(4000) NOT NULL,
g1 VARCHAR(4000) NOT NULL
);

It gives me the following error....

ERROR [42727] [IBM][DB2/NT] SQL0286N A default table space could not
be found with a page size of at least "8192" that authorization ID "NC"
is authorized to use. SQLSTATE=42727

How to overcome this ?

Thanks in advance
RainDeEr

Jul 5 '06 #1
2 11515
"rAinDeEr" <ta**********@gmail.comwrote in message
news:11**********************@l70g2000cwa.googlegr oups.com...
Hi,

I have Db2 9 installed in Windows. Am trying to create a table with the
following DDL

CREATE TABLE DB2N.T_CO (
a1 VARCHAR(100) NOT NULL,
b1 VARCHAR(255),
c1 VARCHAR(255),
d1 VARCHAR(255),
e1 VARCHAR(4000),
f1 VARCHAR(4000) NOT NULL,
g1 VARCHAR(4000) NOT NULL
);

It gives me the following error....

ERROR [42727] [IBM][DB2/NT] SQL0286N A default table space could not
be found with a page size of at least "8192" that authorization ID "NC"
is authorized to use. SQLSTATE=42727

How to overcome this ?

Thanks in advance
RainDeEr
Create a tablespace of at least 8K page size (I would recommend 16K page
size for this table because of the three VARCHAR's of 4000 bytes each) that
is a member of the IBMDEFAULTGROUP partition group, or specify the
tablespace name of a 16K page size tablespace (that you have created in
advance) in your create table. Make sure that for any 16K page tablespace
you create, you also create a 16K page size bufferpool.
Jul 5 '06 #2
Mark A wrote:
"rAinDeEr" <ta**********@gmail.comwrote in message
news:11**********************@l70g2000cwa.googlegr oups.com...
>Hi,

I have Db2 9 installed in Windows. Am trying to create a table with the
following DDL

CREATE TABLE DB2N.T_CO (
a1 VARCHAR(100) NOT NULL,
b1 VARCHAR(255),
c1 VARCHAR(255),
d1 VARCHAR(255),
e1 VARCHAR(4000),
f1 VARCHAR(4000) NOT NULL,
g1 VARCHAR(4000) NOT NULL
);

It gives me the following error....

ERROR [42727] [IBM][DB2/NT] SQL0286N A default table space could not
be found with a page size of at least "8192" that authorization ID "NC"
is authorized to use. SQLSTATE=42727

How to overcome this ?

Thanks in advance
RainDeEr

Create a tablespace of at least 8K page size (I would recommend 16K page
size for this table because of the three VARCHAR's of 4000 bytes each) that
is a member of the IBMDEFAULTGROUP partition group, or specify the
tablespace name of a 16K page size tablespace (that you have created in
advance) in your create table. Make sure that for any 16K page tablespace
you create, you also create a 16K page size bufferpool.
Note that in DB2 9 there is little reason to bother with small page
sizes. You might as well create your database with 16k or 32k page size
to begin with and save yourself the multi page size administration.
Self tuning memory manager combined with 32k page size and automatic
storage make life so much easier.

Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab

IOD Conference
http://www.ibm.com/software/data/ond...ness/conf2006/
Jul 5 '06 #3

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

Similar topics

3
by: Andrew | last post by:
I have a problem creating mySQL tables with PHP. I am making an app where a user can create a project. Pressing "submit" on proj_form.php goes to proj_add.php where a couple of things happen. ...
9
by: expect | last post by:
Hello, Trying to get this MySql create table command to work, no luck. create sequence serial; CREATE TABLE outbound ( source char(100) default '', destination char(100) default '', sport...
1
by: xixi | last post by:
There is one thing I don't understand, I have default tablespace userspace1 is database managed type, with total freepages 506048. another one called tmpxx is DMS type too, with 525120 free pages....
10
by: Bing Wu | last post by:
Hi Folks, I have a problem while creating a big table space. It reports error: SQL1139N The total size of the table space is too big Explanation: The size of the current table space is too...
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
4
by: maricel | last post by:
I have the following base table structure - DDL: CREATE TABLE "ADMINISTRATOR"."T1" ( "C1" INTEGER NOT NULL ) IN "TEST_TS" ; ALTER TABLE "ADMINISTRATOR"."T1" ADD PRIMARY KEY
2
by: db2group88 | last post by:
hi, we install db2 udb v8.1 on windows 64bit, in our application, we have sql execute "create table .... not logged initially", but from the operating system event viewer showing error stating that...
1
by: ellenraju | last post by:
When we create an object in oracle we can specify table space, if not it will take default table space, while creating global temporary table how can we specify the table space...and even if we...
2
by: jarea | last post by:
I have read quite a bit about this error but I have yet to find the solution to my problem. I am trying to execute the following mysql statement: alter table line_items add...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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.