473,721 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 11563
"rAinDeEr" <ta**********@g mail.comwrote in message
news:11******** **************@ l70g2000cwa.goo glegroups.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**********@g mail.comwrote in message
news:11******** **************@ l70g2000cwa.goo glegroups.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
3597
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. The project's meta information is put into a project table, mysql_insert_id() gets the $proj_ID, and a table named that $proj_ID is created to hold all of that project's tasks. Here is my code to create the table for a project's tasks: // 2)...
9
6761
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 int4 default 0 NOT NULL,
1
5018
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. When I create a new table (did not specify on which tablespace), why the table not created on the userspace1 but instead on tmpxx? what is the rule to create a table on tablespace without specify in which tablespace if I have both tablespace...
10
9904
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 big. The size of a REGULAR table space is limited to 0xFFFFFF (16777215) pages while the size of a TEMPORARY/LONG table space is limited to 2 tera bytes (2 TB). User Response: Check the diagnostic log file db2diag.log for details. Reduce the size...
4
5874
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
15836
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
4294
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 ADM5530E The COMMIT processing of table "TBSPACEID=3.TABLEID=15107" that used NOT LOGGED INITIALLY has been initiated. It is recommended that you take a backup of this table's table space(s). since our application need to create table on the...
1
1866
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 create temp table without mentioning table space where the structure of the temp table stored and when we are trying to insert data into it which table space it will use....? I faced one problem earlier that..I can describe the table but when iam...
2
43957
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 constraint fk_line_item_products foreign key (product_id) references products(id) I have also tried the following statement with the same result:
0
8738
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9376
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9234
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6678
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5994
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4762
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3207
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2599
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2146
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.