2006-12-5 21:32
yuyan435
建表时的问题
请问一下,我在新建一个数据库后,创建表时报错,
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0290N Table space access is not allowed. SQLSTATE=55039
我使用的表空间是存在的,不知道是怎么回事?
有没有高手指点一下?
2006-12-5 22:22
老农
你执行的命令呢?
2006-12-6 08:53
beginner-bj
db2 list tablespaces show detail 看表空间的状态
2006-12-6 09:20
yuyan435
CREATE TABLE "DM "."TEST" ( "USR_NBR" VARCHAR(12) , "CUST_ID" VARCHAR(18) , "EBOX_UNIT_CD" INTEGER , "EBOX_UNIT_SEQ" INTEGER , "SERV_CD" VARCHAR(18) , "BILL_CYC_CD" INTEGER , "FEE_ITEM_CD" INTEGER , "BILL_STS_CD" INTEGER , "REC_FEE" DECIMAL(10,2) , "ACT_FEE" DECIMAL(10,2) ) PARTITIONING KEY ("USR_NBR") USING HASHING IN "USR_DAT_1" INDEX IN "IDX_DAT_1"
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0290N Table space access is not allowed. SQLSTATE=55039
我用 db2 list tablespaces show detail
Tablespaces for Current Database
Tablespace ID = 0
Name = SYSCATSPACE
Type = System managed space
Contents = Any data
State = 0x0000
Detailed explanation:
Normal
Total pages = 5606
Useable pages = 5606
Used pages = 5606
Free pages = Not applicable
High water mark (pages) = Not applicable
Page size (bytes) = 4096
Extent size (pages) = 32
Prefetch size (pages) = 192
Number of containers = 1
Tablespace ID = 1
Name = TEMPSPACE1
Type = System managed space
Contents = System Temporary data
State = 0x0000
Detailed explanation:
Normal
Total pages = 1
Useable pages = 1
Used pages = 1
Free pages = Not applicable
High water mark (pages) = Not applicable
Page size (bytes) = 4096
Extent size (pages) = 32
Prefetch size (pages) = 192
Number of containers = 1
Tablespace ID = 3
Name = USR_DAT_1
Type = Database managed space
Contents = Any data
State = 0x4000
Detailed explanation:
Offline
Tablespace ID = 4
Name = IDX_DAT_1
Type = Database managed space
Contents = Any data
State = 0x4000
Detailed explanation:
Offline
Tablespace ID = 5
Name = STMP_1
Type = Database managed space
Contents = System Temporary data
State = 0x4000
Detailed explanation:
Offline
Tablespace ID = 6
Name = TMPSP
Type = Database managed space
Contents = User Temporary data
State = 0x4000
Detailed explanation:
Offline
Tablespace ID = 7
Name = DIC_DAT
Type = Database managed space
Contents = Any data
State = 0x4000
Detailed explanation:
Offline
DB21011I In a partitioned database server environment, only the table spaces
on the current node are listed.
因为我机器是新装的, 不知道还有哪些地方没有处理好。
2006-12-6 09:58
beginner-bj
表空间的状态都是Offline啊
2006-12-6 10:01
beginner-bj
db2 ALTER TABLESPACE <name> SWITCH ONLINE
如果不行,就重装或RESTORE吧
2006-12-25 20:14
yuyan435
呵呵,解决了,是权限的问题萨!
页:
[1]
Powered by Discuz! Archiver 5.5.0
© 2001-2006 Comsenz Inc.