@@ -145,6 +145,108 @@ ERROR [57019] [IBM] SQL1084C The database manager failed to allocate shared mem
145
145
146
146
http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.messages.sql.doc/doc/msql01084c.html
147
147
148
+ ## 创建字段 varchar 设置过大
149
+
150
+ ### 问题
151
+
152
+ 创建字段时,varchar 设置为 500 ,报错
153
+
154
+ ```
155
+ SQL 错误 [42727]: A table space could not be found with a page size of at least "8192" that authorization ID "DB2INST" is authorized to use.. SQLCODE=-286, SQLSTATE=42727, DRIVER=4.16.53
156
+ com.ibm.db2.jcc.am.SqlSyntaxErrorException: A table space could not be found with a page size of at least "8192" that authorization ID "DB2INST" is authorized to use.. SQLCODE=-286, SQLSTATE=42727, DRIVER=4.16.53
157
+ ```
158
+
159
+ * http://www.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.db2.luw.admin.dbobj.doc/doc/c0061057.html
160
+ * http://www.db2china.net/Question/39301
161
+ * http://www.west.cn/www/info/28275-1.htm
162
+
163
+ ```
164
+ db2 => connect to necc_db
165
+
166
+ Database Connection Information
167
+
168
+ Database server = DB2/LINUXX8664 10.1.0
169
+ SQL authorization ID = DB2INST
170
+ Local database alias = NECC_DB
171
+
172
+ db2 => LIST TABLESPACES SHOW DETAIL
173
+
174
+ Tablespaces for Current Database
175
+
176
+ Tablespace ID = 0
177
+ Name = SYSCATSPACE
178
+ Type = Database managed space
179
+ Contents = All permanent data. Regular table space.
180
+ State = 0x0000
181
+ Detailed explanation:
182
+ Normal
183
+ Total pages = 32768
184
+ Useable pages = 32764
185
+ Used pages = 32244
186
+ Free pages = 520
187
+ High water mark (pages) = 32244
188
+ Page size (bytes) = 4096
189
+ Extent size (pages) = 4
190
+ Prefetch size (pages) = 4
191
+ Number of containers = 1
192
+
193
+ Tablespace ID = 1
194
+ Name = TEMPSPACE1
195
+ Type = System managed space
196
+ Contents = System Temporary data
197
+ State = 0x0000
198
+ Detailed explanation:
199
+ Normal
200
+ Total pages = 1
201
+ Useable pages = 1
202
+ Used pages = 1
203
+ Free pages = Not applicable
204
+ High water mark (pages) = Not applicable
205
+ Page size (bytes) = 4096
206
+ Extent size (pages) = 32
207
+ Prefetch size (pages) = 32
208
+ Number of containers = 1
209
+
210
+ Tablespace ID = 2
211
+ Name = USERSPACE1
212
+ Type = Database managed space
213
+ Contents = All permanent data. Large table space.
214
+ State = 0x0000
215
+ Detailed explanation:
216
+ Normal
217
+ Total pages = 16384
218
+ Useable pages = 16352
219
+ Used pages = 14048
220
+ Free pages = 2304
221
+ High water mark (pages) = 14048
222
+ Page size (bytes) = 4096
223
+ Extent size (pages) = 32
224
+ Prefetch size (pages) = 32
225
+ Number of containers = 1
226
+
227
+ Tablespace ID = 3
228
+ Name = SYSTOOLSPACE
229
+ Type = Database managed space
230
+ Contents = All permanent data. Large table space.
231
+ State = 0x0000
232
+ Detailed explanation:
233
+ Normal
234
+ Total pages = 8192
235
+ Useable pages = 8188
236
+ Used pages = 192
237
+ Free pages = 7996
238
+ High water mark (pages) = 192
239
+ Page size (bytes) = 4096
240
+ Extent size (pages) = 4
241
+ Prefetch size (pages) = 4
242
+ Number of containers = 1
243
+
244
+ db2 =>
245
+ ```
246
+
247
+
248
+ ALTER TABLESPACE tablespacename CONVERT TO LARGE
249
+
148
250
149
251
150
252
## 参考引用
0 commit comments