I'm new for db2 and overall databases pls help me.
I'm creating a table within an existing database, but after executing the create statement i got below error msg,
SQL0286N A default table space could not be found with a page size of at
least "8192" that authorization ID "DB2ADMIN" is authorized to use.
SQLSTATE=42727
SQL0286N A default table space could not be found with a page size of at least "8192" that authorization ID "DB2ADMIN" is authorized to use.
Explanation:
The CREATE TABLE, CREATE GLOBAL TEMPORARY TABLE, or DECLARE GLOBAL TEMPORARY TABLE statement did not specify a table space, and a table space of the right type (USER TEMPORARY for created temporary table or declared temporary table) with sufficient page size (at least ""), over which authorization ID "" has USE privilege, could not be found.
Sufficient page size for a table is determined by either the byte count of the row or the number of columns.
Hence I created a tablespace
CREATE LARGE TABLESPACE LARGEDATA MAXSIZE 512 M
and used this space to create my table, like
create table table_name(*) in LARGEDATA;
I thought 512M should be enough for table with some 15 columns, but I get below exceptions:
SQL0670N The row length of the table exceeded a limit of "4005" bytes. (Table space "LARGEDATA
Please help...
Thanks in advance for help and time. :)