互联网服务

DB2 reorg table 报错

DB2 reorg table 报错
生产环境修改表字段长度后 reorg 报错:

dwpinst1@crp01dw1:~> db2 reorg table DWPINST1.TB_EDI_CODE_MAPPING
SQL2216N  SQL error "-291" occurred while reorganizing a database table or its
indexes.


请大家帮忙看下什么问题啊
现在生产环境不能用了 很着急啊
db 配置如下:
get db cfg for PHXDBDW1

       Database Configuration for Database PHXDBDW1

Database configuration release level                    = 0x0d00
Database release level                                  = 0x0d00

Database territory                                      = US
Database code page                                      = 1208
Database code set                                       = UTF-8
Database country/region code                            = 1
Database collating sequence                             = IDENTITY
Alternate collating sequence              (ALT_COLLATE) =
Number compatibility                                    = OFF
Varchar2 compatibility                                  = OFF
Date compatibility                                      = OFF
Database page size                                      = 4096

Dynamic SQL Query management           (DYN_QUERY_MGMT) = DISABLE

Statement concentrator                      (STMT_CONC) = OFF

Discovery support for this database       (DISCOVER_DB) = ENABLE

Restrict access                                         = NO
Default query optimization class         (DFT_QUERYOPT) = 5
Degree of parallelism                      (DFT_DEGREE) = 1
Continue upon arithmetic exceptions   (DFT_SQLMATHWARN) = NO
Default refresh age                   (DFT_REFRESH_AGE) = 0
Default maintained table types for opt (DFT_MTTB_TYPES) = SYSTEM
Number of frequent values retained     (NUM_FREQVALUES) = 10
Number of quantiles retained            (NUM_QUANTILES) = 20

Decimal floating point rounding mode  (DECFLT_ROUNDING) = ROUND_HALF_EVEN

Backup pending                                          = NO

All committed transactions have been written to disk    = NO
Rollforward pending                                     = NO
Restore pending                                         = NO

Multi-page file allocation enabled                      = YES

Log retain for recovery status                          = NO
User exit for logging status                            = YES

Self tuning memory                    (SELF_TUNING_MEM) = ON
Size of database shared memory (4KB)  (DATABASE_MEMORY) = AUTOMATIC(2194098)
Database memory threshold               (DB_MEM_THRESH) = 10
Max storage for lock list (4KB)              (LOCKLIST) = 16384
Percent. of lock lists per application       (MAXLOCKS) = 98
Package cache size (4KB)                   (PCKCACHESZ) = AUTOMATIC(524288)
Sort heap thres for shared sorts (4KB) (SHEAPTHRES_SHR) = 81920
Sort list heap (4KB)                         (SORTHEAP) = 10240

Database heap (4KB)                            (DBHEAP) = AUTOMATIC(2458)
Catalog cache size (4KB)              (CATALOGCACHE_SZ) = 300
Log buffer size (4KB)                        (LOGBUFSZ) = 1024
Utilities heap size (4KB)                (UTIL_HEAP_SZ) = 50944
Buffer pool size (pages)                     (BUFFPAGE) = 260000
SQL statement heap (4KB)                     (STMTHEAP) = 10240
Default application heap (4KB)             (APPLHEAPSZ) = 51200
Application Memory Size (4KB)             (APPL_MEMORY) = AUTOMATIC(40000)
Statistics heap size (4KB)               (STAT_HEAP_SZ) = AUTOMATIC(4384)

Interval for checking deadlock (ms)         (DLCHKTIME) = 10000
Lock timeout (sec)                        (LOCKTIMEOUT) = 15

Changed pages threshold                (CHNGPGS_THRESH) = 80
Number of asynchronous page cleaners   (NUM_IOCLEANERS) = AUTOMATIC(15)
Number of I/O servers                   (NUM_IOSERVERS) = AUTOMATIC(6)
Index sort flag                             (INDEXSORT) = YES
Sequential detect flag                      (SEQDETECT) = YES
Default prefetch size (pages)         (DFT_PREFETCH_SZ) = AUTOMATIC

Track modified pages                         (TRACKMOD) = OFF

Default number of containers                            = 1
Default tablespace extentsize (pages)   (DFT_EXTENT_SZ) = 32

Max number of active applications            (MAXAPPLS) = AUTOMATIC(332)
Average number of active applications       (AVG_APPLS) = AUTOMATIC(1)
Max DB files open per application            (MAXFILOP) = 61440

Log file size (4KB)                         (LOGFILSIZ) = 262144
Number of primary log files                (LOGPRIMARY) = 10
Number of secondary log files               (LOGSECOND) = 40
Changed path to log files                  (NEWLOGPATH) =
Path to log files                                       = /db2fs/dwpinst1/NODE0000/SQL00004/SQLOGDIR/
Overflow log path                     (OVERFLOWLOGPATH) =
Mirror log path                         (MIRRORLOGPATH) =
First active log file                                   = S0016626.LOG
Block log on disk full                (BLK_LOG_DSK_FUL) = NO
Block non logged operations            (BLOCKNONLOGGED) = NO
Percent max primary log space by transaction  (MAX_LOG) = 0
Num. of active log files for 1 active UOW(NUM_LOG_SPAN) = 0

Group commit count                          (MINCOMMIT) = 1
Percent log file reclaimed before soft chckpt (SOFTMAX) = 520
Log retain for recovery enabled             (LOGRETAIN) = OFF
User exit for logging enabled                (USEREXIT) = OFF

HADR database role                                      = STANDARD
HADR local host name                  (HADR_LOCAL_HOST) =
HADR local service name                (HADR_LOCAL_SVC) =
HADR remote host name                (HADR_REMOTE_HOST) =
HADR remote service name              (HADR_REMOTE_SVC) =
HADR instance name of remote server  (HADR_REMOTE_INST) =
HADR timeout value                       (HADR_TIMEOUT) = 120
HADR log write synchronization mode     (HADR_SYNCMODE) = NEARSYNC
HADR peer window duration (seconds)  (HADR_PEER_WINDOW) = 0

First log archive method                 (LOGARCHMETH1) = DISK:/db2arc/
Options for logarchmeth1                  (LOGARCHOPT1) =
Second log archive method                (LOGARCHMETH2) = OFF
Options for logarchmeth2                  (LOGARCHOPT2) =
Failover log archive path                (FAILARCHPATH) =
Number of log archive retries on error   (NUMARCHRETRY) = 5
Log archive retry Delay (secs)         (ARCHRETRYDELAY) = 20
Vendor options                              (VENDOROPT) =

Auto restart enabled                      (AUTORESTART) = ON
Index re-creation time and redo index build  (INDEXREC) = RESTART
Log pages during index build            (LOGINDEXBUILD) = ON
Default number of loadrec sessions    (DFT_LOADREC_SES) = 1
Number of database backups to retain   (NUM_DB_BACKUPS) = 12
Recovery history retention (days)     (REC_HIS_RETENTN) = 2
Auto deletion of recovery objects    (AUTO_DEL_REC_OBJ) = ON

TSM management class                    (TSM_MGMTCLASS) =
TSM node name                            (TSM_NODENAME) =
TSM owner                                   (TSM_OWNER) =
TSM password                             (TSM_PASSWORD) =

Automatic maintenance                      (AUTO_MAINT) = ON
   Automatic database backup            (AUTO_DB_BACKUP) = OFF
   Automatic table maintenance          (AUTO_TBL_MAINT) = ON
     Automatic runstats                  (AUTO_RUNSTATS) = ON
       Automatic statement statistics  (AUTO_STMT_STATS) = ON
     Automatic statistics profiling    (AUTO_STATS_PROF) = OFF
       Automatic profile updates         (AUTO_PROF_UPD) = OFF
     Automatic reorganization               (AUTO_REORG) = OFF

Auto-Revalidation                          (AUTO_REVAL) = DEFERRED
Currently Committed                        (CUR_COMMIT) = ON
CHAR output with DECIMAL input        (DEC_TO_CHAR_FMT) = NEW
Enable XML Character operations        (ENABLE_XMLCHAR) = YES
WLM Collection Interval (minutes)     (WLM_COLLECT_INT) = 0
Monitor Collect Settings
Request metrics                       (MON_REQ_METRICS) = BASE
Activity metrics                      (MON_ACT_METRICS) = BASE
Object metrics                        (MON_OBJ_METRICS) = BASE
Unit of work events                      (MON_UOW_DATA) = NONE
Lock timeout events                   (MON_LOCKTIMEOUT) = NONE
Deadlock events                          (MON_DEADLOCK) = HISTORY
Lock wait events                         (MON_LOCKWAIT) = HISTORY
Lock wait event threshold               (MON_LW_THRESH) = 5000000
Number of package list entries         (MON_PKGLIST_SZ) = 32
Lock event notification level         (MON_LCK_MSG_LVL) = 1

SMTP Server                               (SMTP_SERVER) =
SQL conditional compilation flags         (SQL_CCFLAGS) =
Section actuals setting               (SECTION_ACTUALS) = NONE
Connect procedure                        (CONNECT_PROC) =
参与8

6同行回答

欧阳峰欧阳峰其它Freelancer
0x0800  Backup in Progress在做备份显示全部
0x0800  Backup in Progress在做备份收起
IT其它 · 2013-11-14
浏览2544
sunny_zhao0127sunny_zhao0127数据库管理员C.H.Robinsion
回复 5# 欧阳峰     哦 原来如此 我这是生产环境的全库备份 不应该只备份这一个表空间吧 下次备份的时候观察下 是不是所有的表空间依次切换备份状态的谢谢 前辈db2 backup db phxdbdw1 online to /db2bkp/db2autobkp/ compress include logs...显示全部
回复 5# 欧阳峰


    哦 原来如此
我这是生产环境的全库备份 不应该只备份这一个表空间吧
下次备份的时候观察下 是不是所有的表空间依次切换备份状态的
谢谢 前辈
db2 backup db phxdbdw1 online to /db2bkp/db2autobkp/ compress include logs收起
互联网服务 · 2013-11-14
浏览2021
jinlonglvjinlonglv数据库管理员IT
备份的时候都是以表空间为单位去做备份的。显示全部
备份的时候都是以表空间为单位去做备份的。收起
2013-11-14
浏览2254
欧阳峰欧阳峰其它Freelancer
这不是正常吗,如果你只是发起备份这个表空间不就是这一个了,或者其他的已经备份完成就差这个了显示全部
这不是正常吗,如果你只是发起备份这个表空间不就是这一个了,或者其他的已经备份完成就差这个了收起
IT其它 · 2013-11-14
浏览3159
sunny_zhao0127sunny_zhao0127数据库管理员C.H.Robinsion
回复 3# 欧阳峰 恩恩 是的不过这么多表空间 怎么只有这一个表空间的状态时0x800呢显示全部
回复 3# 欧阳峰
恩恩 是的
不过这么多表空间 怎么只有这一个表空间的状态时0x800呢收起
互联网服务 · 2013-11-14
浏览1974
sunny_zhao0127sunny_zhao0127数据库管理员C.H.Robinsion
db2 List tablespaces show detail:         Tablespaces for Current Database Tablespace ID                        = 0 Name     &...显示全部
db2 List tablespaces show detail:

         Tablespaces for Current Database

Tablespace ID                        = 0
Name                                 = SYSCATSPACE
Type                                 = Database managed space
Contents                             = All permanent data. Regular table space.
State                                = 0x0000
   Detailed explanation:
     Normal
Total pages                          = 57344
Useable pages                        = 57340
Used pages                           = 53856
Free pages                           = 3484
High water mark (pages)              = 53856
Page size (bytes)                    = 4096
Extent size (pages)                  = 4
Prefetch size (pages)                = 24
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                        = 2
Name                                 = USERSPACE1
Type                                 = Database managed space
Contents                             = All permanent data. Large table space.
State                                = 0x0800
   Detailed explanation:
     Backup in progress
Total pages                          = 20701184
Useable pages                        = 20701152
Used pages                           = 19141728
Free pages                           = 1559424
High water mark (pages)              = 20695968
Page size (bytes)                    = 4096
Extent size (pages)                  = 32
Prefetch size (pages)                = 192
Number of containers                 = 1
Minimum recovery time                = 2013-11-14-04.02.22.000000

Tablespace ID                        = 3
Name                                 = SYSTOOLSPACE
Type                                 = Database managed space
Contents                             = All permanent data. Large table space.
State                                = 0x0000
   Detailed explanation:
     Normal
Total pages                          = 8192
Useable pages                        = 8188
Used pages                           = 316
Free pages                           = 7872
High water mark (pages)              = 316
Page size (bytes)                    = 4096
Extent size (pages)                  = 4
Prefetch size (pages)                = 24
Number of containers                 = 1
Minimum recovery time                = 2011-01-10-07.24.27.000000

Tablespace ID                        = 4
Name                                 = SYSTOOLSTMPSPACE
Type                                 = System managed space
Contents                             = User 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)                  = 4
Prefetch size (pages)                = 24
Number of containers                 = 1

Tablespace ID                        = 5
Name                                 = DWSPACE
Type                                 = Database managed space
Contents                             = All permanent data. Large table space.
State                                = 0x0000
   Detailed explanation:
     Normal
Total pages                          = 590848
Useable pages                        = 590816
Used pages                           = 564192
Free pages                           = 26624
High water mark (pages)              = 564192
Page size (bytes)                    = 32768
Extent size (pages)                  = 32
Prefetch size (pages)                = 192
Number of containers                 = 1
Minimum recovery time                = 2013-11-01-08.02.08.000000

Tablespace ID                        = 6
Name                                 = TEMPDWSPACE
Type                                 = System managed space
Contents                             = System Temporary data
State                                = 0x0000
   Detailed explanation:
     Normal
Total pages                          = 90
Useable pages                        = 90
Used pages                           = 90
Free pages                           = Not applicable
High water mark (pages)              = Not applicable
Page size (bytes)                    = 32768
Extent size (pages)                  = 64
Prefetch size (pages)                = 384
Number of containers                 = 1

Tablespace ID                        = 7
Name                                 = IDXSPACE
Type                                 = Database managed space
Contents                             = All permanent data. Large table space.
State                                = 0x0000
   Detailed explanation:
     Normal
Total pages                          = 189440
Useable pages                        = 189408
Used pages                           = 188672
Free pages                           = 736
High water mark (pages)              = 188672
Page size (bytes)                    = 32768
Extent size (pages)                  = 32
Prefetch size (pages)                = 192
Number of containers                 = 1
Minimum recovery time                = 2010-12-25-09.25.45.000000收起
互联网服务 · 2013-11-14
浏览2009

提问者

sunny_zhao0127
数据库管理员C.H.Robinsion
擅长领域: 数据库

问题状态

  • 发布时间:2013-11-14
  • 关注会员:1 人
  • 问题浏览:7823
  • 最近回答:2013-11-14
  • X社区推广