db2 数据库配置解释

查看我的数据库配置(10.5)

[db2inst2@cognoswithdb2 backupfordb2]$  db2 get db cfg for sample

       Database Configuration for Database sample

 Database configuration release level                    = 0x1000
 Database release level                                  = 0x1000

 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                                      = 8192

 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    = YES
 Rollforward pending                                     = NO
 Restore pending                                         = NO

 Multi-page file allocation enabled                      = YES

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

 Self tuning memory                    (SELF_TUNING_MEM) = OFF
 Size of database shared memory (4KB)  (DATABASE_MEMORY) = AUTOMATIC(40256)
 Database memory threshold               (DB_MEM_THRESH) = 100
 Max storage for lock list (4KB)              (LOCKLIST) = 4096
 Percent. of lock lists per application       (MAXLOCKS) = 10
 Package cache size (4KB)                   (PCKCACHESZ) = (MAXAPPLS*8)
 Sort heap thres for shared sorts (4KB) (SHEAPTHRES_SHR) = 5000
 Sort list heap (4KB)                         (SORTHEAP) = 256

 Database heap (4KB)                            (DBHEAP) = AUTOMATIC(1200)
 Catalog cache size (4KB)              (CATALOGCACHE_SZ) = (MAXAPPLS*5)
 Log buffer size (4KB)                        (LOGBUFSZ) = 256
 Utilities heap size (4KB)                (UTIL_HEAP_SZ) = 5000
 SQL statement heap (4KB)                     (STMTHEAP) = AUTOMATIC(8192)
 Default application heap (4KB)             (APPLHEAPSZ) = AUTOMATIC(256)
 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) = -1

 Changed pages threshold                (CHNGPGS_THRESH) = 60
 Number of asynchronous page cleaners   (NUM_IOCLEANERS) = AUTOMATIC(2)
 Number of I/O servers                   (NUM_IOSERVERS) = AUTOMATIC(3)
 Sequential detect flag                      (SEQDETECT) = YES
 Default prefetch size (pages)         (DFT_PREFETCH_SZ) = AUTOMATIC

 Track modified pages                         (TRACKMOD) = NO

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

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

 Log file size (4KB)                         (LOGFILSIZ) = 1000
 Number of primary log files                (LOGPRIMARY) = 3
 Number of secondary log files               (LOGSECOND) = 10
 Changed path to log files                  (NEWLOGPATH) = 
 Path to log files                                       = /home/db2inst2/db2inst2/NODE0000/SQL00001/LOGSTREAM0000/
 Overflow log path                     (OVERFLOWLOGPATH) = 
 Mirror log path                         (MIRRORLOGPATH) = 
 First active log file                                   = 
 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

 Percent log file reclaimed before soft chckpt (SOFTMAX) = 0
 Target for oldest page in LBP       (PAGE_AGE_TRGT_MCR) = 240

 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 target list                     (HADR_TARGET_LIST) = 
 HADR log write synchronization mode     (HADR_SYNCMODE) = NEARSYNC
 HADR spool log data limit (4KB)      (HADR_SPOOL_LIMIT) = AUTOMATIC(0)
 HADR log replay delay (seconds)     (HADR_REPLAY_DELAY) = 0
 HADR peer window duration (seconds)  (HADR_PEER_WINDOW) = 0

 First log archive method                 (LOGARCHMETH1) = OFF
 Archive compression for logarchmeth1    (LOGARCHCOMPR1) = OFF
 Options for logarchmeth1                  (LOGARCHOPT1) = 
 Second log archive method                (LOGARCHMETH2) = OFF
 Archive compression for logarchmeth2    (LOGARCHCOMPR2) = 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) = SYSTEM (RESTART)
 Log pages during index build            (LOGINDEXBUILD) = OFF
 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) = 366
 Auto deletion of recovery objects    (AUTO_DEL_REC_OBJ) = OFF

 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
       Real-time statistics            (AUTO_STMT_STATS) = ON
       Statistical views              (AUTO_STATS_VIEWS) = OFF
       Automatic sampling                (AUTO_SAMPLING) = 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) = EXTENDED
 Routine data                             (MON_RTN_DATA) = NONE
   Routine executable list            (MON_RTN_EXECLIST) = OFF
 Unit of work events                      (MON_UOW_DATA) = NONE
   UOW events with package list        (MON_UOW_PKGLIST) = OFF
   UOW events with executable list    (MON_UOW_EXECLIST) = OFF
 Lock timeout events                   (MON_LOCKTIMEOUT) = NONE
 Deadlock events                          (MON_DEADLOCK) = WITHOUT_HIST
 Lock wait events                         (MON_LOCKWAIT) = NONE
 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) = 
 Adjust temporal SYSTEM_TIME period (SYSTIME_PERIOD_ADJ) = NO
 Log DDL Statements                      (LOG_DDL_STMTS) = NO
 Log Application Information             (LOG_APPL_INFO) = NO
 Default data capture on new Schemas   (DFT_SCHEMAS_DCC) = NO
 Default table organization              (DFT_TABLE_ORG) = ROW
 Default string units                     (STRING_UNITS) = SYSTEM
 National character string mapping       (NCHAR_MAPPING) = GRAPHIC_CU16
 Database is in write suspend state                      = NO
 Extended row size support             (EXTENDED_ROW_SZ) = ENABLE

[db2inst2@cognoswithdb2 backupfordb2]$ 

网络上找的解释

get db cfg for hdxtdb 查看数据库参数

db2 =>  getdb cfg for hdxtdb

 DatabaseConfiguration for Database hdxtdb

数据库hdxtdb的数据库配置

 Databaseconfiguration release level数据库配置发行版级别= 0x0a00

 Databaserelease level 数据库发行版级别                 =0x0a00

 

 Databaseterritory     数据库地域                       = cn

 Database codepage    数据库代码页                      = 1386

 Database codeset     数据库代码集                      = gbk

 Databasecountry/region code   数据库国家/地区代码     = 86

 Databasecollating sequence  数据库整理顺序             = UNIQUE

 Alternatecollating sequence             (ALT_COLLATE) =

备用整理顺序

 Dynamic SQLQuery management          (DYN_QUERY_MGMT) = DISABLE

动态 SQL 查询管理

 Discoverysupport for this database      (DISCOVER_DB) = ENABLE

对此数据库的发现支持 (DISCOVER_DB)

 Default queryoptimization class         (DFT_QUERYOPT)= 5

缺省查询优化类 (DFT_QUERYOPT)

 Degree ofparallelism  并行度              (DFT_DEGREE) = 1

 Continue uponarithmetic exceptions   (DFT_SQLMATHWARN)= NO 在算术异常时继续

 Default refreshage                   (DFT_REFRESH_AGE) = 0 缺省刷新有效期

 Defaultmaintained table types for opt (DFT_MTTB_TYPES) = SYSTEM

缺省维护的选项(DFT_MTTB_TYPES)的表类型

 Number offrequent values retained    (NUM_FREQVALUES) = 10保留的高频值的数目

 Number ofquantiles retained           (NUM_QUANTILES) = 20

保留的分位点数目

 Backuppending                                         = NO

备份暂挂

 Database isconsistent                                 = NO数据库是一致的

 Rollforwardpending                                    = NO前滚暂挂

 Restorepending                                         = NO

复原暂挂

 Multi-page fileallocation enabled                      =YES

启用的多页文件分配

 Log retain forrecovery status 恢复状态的日志保留       = NO

 User exit forlogging status                           = NO

日志记录状态的用户出口

 Data LinksToken Expiry Interval (sec)     (DL_EXPINT) = 60

Data Links 标记到期时间间隔(秒)

 Data LinksWrite Token Init Expiry Intvl(DL_WT_IEXPINT) = 60

Data Links 写标记初始时间间隔

 Data LinksNumber of Copies            (DL_NUM_COPIES) = 1

副本的 Data Links 数目

 Data Links Timeafter Drop (days)        (DL_TIME_DROP) =1

删除后的 Data Links 时间(天数)

 Data LinksToken in Uppercase               (DL_UPPER) = NO

大写的 Data Links 标记

 Data LinksToken Algorithm                  (DL_TOKEN) = MAC0

Data Links 标记算法

 

 Database heap(4KB) 数据库堆(4KB              (DBHEAP) = 1200

 Size ofdatabase shared memory (4KB) (DATABASE_MEMORY) = AUTOMATIC

数据库共享内存大小(4KB)

 Catalog cachesize (4KB)              (CATALOGCACHE_SZ)= (MAXAPPLS*4)

目录高速缓存大小(4KB)

 Log buffer size(4KB)                        (LOGBUFSZ) =512

日志缓冲区大小(4KB)

 Utilities heapsize (4KB)                (UTIL_HEAP_SZ)= 5000

实用程序堆大小(4KB)

 Buffer poolsize (pages)                    (BUFFPAGE) = 1000

缓冲池大小(页)

 Extendedstorage segments size (4KB)   (ESTORE_SEG_SZ) = 16000

扩充存储段大小(4KB)

 Number ofextended storage segments  (NUM_ESTORE_SEGS) = 0

扩充存储段的数目

 Max storage forlock list (4KB)              (LOCKLIST) =40960

锁定列表的最大存储量(4KB

 Max size ofappl. group mem set (4KB) (APPGROUP_MEM_SZ) = 30000

应用程序组内存集的最大大小(4KB)

 Percent of memfor appl. group heap   (GROUPHEAP_RATIO)= 70

应用程序组堆的内存百分比

 Max appl.control heap size (4KB)    (APP_CTL_HEAP_SZ) = 128

最大应用程序控制堆大小(4KB)

 Sort heap thresfor shared sorts (4KB) (SHEAPTHRES_SHR) = (SHEAPTHRES)

共享排序的排序堆域值(4KB)

 Sort list heap(4KB)                         (SORTHEAP)= 4096

排序列表堆(4KB)

 SQL statementheap (4KB)  SQL 语句堆(4KB)  (STMTHEAP) = 2048

 Defaultapplication heap (4KB)            (APPLHEAPSZ) = 4096

缺省应用程序堆(4KB)

 Package cachesize (4KB)                   (PCKCACHESZ)= (MAXAPPLS*8)

程序包高速缓存大小(4KB)

 Statistics heapsize (4KB)               (STAT_HEAP_SZ) =4384

统计信息堆大小(4KB)

 Interval forchecking deadlock (ms)        (DLCHKTIME) = 10000

检查死锁的时间间隔(毫秒)

 Percent. oflock lists per application      (MAXLOCKS) = 30

每个应用程序的锁定百分比列表

 Lock timeout(sec)                        (LOCKTIMEOUT) = 60

锁定超时(秒)

 Changed pagesthreshold                (CHNGPGS_THRESH)= 60

更改的页阈值

 Number ofasynchronous page cleaners  (NUM_IOCLEANERS) = 2

异步页清除程序的数目

 Number of I/Oservers                   (NUM_IOSERVERS)= 7

I/O 服务器的数目

 Index sortflag                            (INDEXSORT) = YES

索引排序标志

 Sequentialdetect flag                     (SEQDETECT) = YES

顺序检测标志

 Defaultprefetch size (pages)        (DFT_PREFETCH_SZ) = AUTOMATIC

缺省预取大小(页)

 Track modifiedpages                         (TRACKMOD)= OFF

跟踪修改的页数

 Default numberof containers                           = 1

容器的缺省数目

 Defaulttablespace extentsize (pages)  (DFT_EXTENT_SZ) = 32

缺省表空间扩展数据块大小(页)

 Max number ofactive applications            (MAXAPPLS)= AUTOMATIC

活动应用程序的最大数目

 Average numberof active applications       (AVG_APPLS)= 1

活动应用程序的平均数目

 Max DB filesopen per application           (MAXFILOP) = 64

每个应用程序的最大打开数据库文件数

 Log file size(4KB)                         (LOGFILSIZ)= 20000

日志文件大小(4KB)

 Number ofprimary log files               (LOGPRIMARY) = 30

主日志文件的数目

 Number ofsecondary log files              (LOGSECOND) = 20

辅助日志文件的数目

 Changed path tolog files                  (NEWLOGPATH) =

已更改的至日志文件的路径

 Path to logfiles 日志文件路径                                       = /home/hdxtdb/db2inst1

/NODE0000/SQL00001/SQLOGDIR/

 Overflow logpath                    (OVERFLOWLOGPATH) =

溢出日志路径

 Mirror logpath                        (MIRRORLOGPATH) =

镜像日志路径

 First activelog file                                  =

首个活动日志文件

 Block log ondisk full               (BLK_LOG_DSK_FUL) = NO

磁盘上已满的块日志

 Percent of maxactive log space by transaction(MAX_LOG) = 0

事务使用的最大活动日志空间的百分比

 Num. of activelog files for 1 active UOW(NUM_LOG_SPAN) = 0

1 个活动 UOW 的活动日志文件的数目

 Group commitcount                          (MINCOMMIT) = 1

组落实计数

 Percent logfile reclaimed before soft chckpt (SOFTMAX) = 100

软检查点前回收的日志文件的百分比

 Log retain forrecovery enabled             (LOGRETAIN)= OFF

启用的恢复的日志保留

 User exit forlogging enabled                (USEREXIT)= OFF

启用的日志记录的用户出口

 HADR databaserole                                     = STANDARD

HADR 数据库角色

 HADR local hostname                  (HADR_LOCAL_HOST) =

HADR 本地主机名

 HADR localservice name               (HADR_LOCAL_SVC) =

HADR 本地服务名称

 HADR remotehost name                (HADR_REMOTE_HOST) =

HADR 远程主机名

 HADR remoteservice name             (HADR_REMOTE_SVC) =

HADR 远程服务名称

 HADR instancename of remote server  (HADR_REMOTE_INST)=

远程服务器的 HADR 实例名

 HADR timeoutvalue                      (HADR_TIMEOUT) = 120

HADR 超时值 (HADR_TIMEOUT)

 HADR log writesynchronization mode     (HADR_SYNCMODE)= NEARSYNC

HADR 日志写同步方式 (HADR_SYNCMODE)

 First logarchive method                (LOGARCHMETH1) = OFF

第一个日志归档方法

 Options forlogarchmeth1                 (LOGARCHOPT1) =

logarchmeth1 的选项

 Second logarchive method               (LOGARCHMETH2) = OFF

第二个日志归档方法

 Options forlogarchmeth2                 (LOGARCHOPT2) =

Logarchmeth2 的选项

 Failover logarchive path               (FAILARCHPATH) =

故障转移日志归档路径

 Number of logarchive retries on error   (NUMARCHRETRY)= 5

错误时重试日志归档次数

 Log archiveretry Delay (secs)        (ARCHRETRYDELAY) = 20

日志归档重试延迟(秒)

 Vendoroptions                             (VENDOROPT) =

供应商选项 (VENDOROPT)

 

 Auto restartenabled                      (AUTORESTART)= ON

启用的自动重新启动

 Indexre-creation time and redo index build (INDEXREC) = SYSTEM (RESTART)

索引重新创建时间和重做索引构建

 Log pagesduring index build           (LOGINDEXBUILD) = OFF

在索引构建期间记录页

 Default numberof loadrec sessions    (DFT_LOADREC_SES)= 1

loadrec 会话的缺省数目

 Number ofdatabase backups to retain  (NUM_DB_BACKUPS) = 12

要保留的数据库备份的数目

 Recoveryhistory retention (days)    (REC_HIS_RETENTN) = 366

恢复历史保留时间(天数)

 TSM managementclass TSM 管理类         (TSM_MGMTCLASS) =

 TSM nodename    TSM 节点名              (TSM_NODENAME) =

 TSM owner       TSM 所有者                  (TSM_OWNER) =

 TSMpassword       TSM 密码              (TSM_PASSWORD) =

 

 Automaticmaintenance   自动维护          (AUTO_MAINT) = OFF

   Automaticdatabase backup           (AUTO_DB_BACKUP) = OFF

自动数据库备份

   Automatictable maintenance         (AUTO_TBL_MAINT) = OFF

自动表维护

     Automaticrunstats                  (AUTO_RUNSTATS)= OFF

自动 runstats

     Automaticstatistics profiling    (AUTO_STATS_PROF)= OFF

 自动统计信息概要分析

       Automaticprofile updates         (AUTO_PROF_UPD) =OFF

 自动概要文件更新

     Automaticreorganization               (AUTO_REORG)= OFF

自动重组

 


--

db2 =>

 

修改对应的参数,使用命令:update db cfg[fordbname] using <参数名> <参数值>

 

db2 => update db cfg usinglogretain on

DB20000I  UPDATE DATABASE CONFIGURATION命令成功完成。

SQL1363W  未动态更改为立即修改而提交的一个或多个参数。对于这些配置参数,必须在所

有应用程序都与此数据库断开连接之后,更改才会生效。

db2 => update db cfg usinglogretain off

DB20000I  UPDATE DATABASE CONFIGURATION命令成功完成。

SQL1363W 未动态更改为立即修改而提交的一个或多个参数。对于这些配置参数,必须在所有应用程序都与此数据库断开连接之后,更改才会生效。


你可能感兴趣的:(DB2@BK)