那我想要了解DB2中的一些参数,所以想看看db2的配置文件,类似于mysql中的my.cnf,postgresql中的postgresql.conf的地位的文件。
参考文章1:DB2数据库日志目录重要配置文件说明
DB2数据库日志目录重要配置文件说明
1.SQLDBCONF :数据库参数配置文件,使用 get db cfg/update db cfg 读取和修改数据。
2.SQLBP.*:缓冲池控制文件,使用 alter bufferpool 控制。
3.SQLSPCS.*:表空间控制文件,使用list/alter tablespace控制。
4.db2rhist.asc:数据库历史文件,使用LIST HISTORY浏览。
SQLOGCTL.LFH.*:数据库日志控制文件,无法浏览或人工修改。
参考文章2:DB2配置
DB2可以在四个不同层面配置:
系统环境变量用来配置DB2的使用环境:
[db2inst1@localhost NODE0000]$ set | grep DB2
DB2DIR=/opt/ibm/db2/V11.1 --DB2的安装目录
DB2INSTANCE=db2inst1 --当前活动的实例
DB2LIB=/home/db2inst1/sqllib/lib
DB2_HOME=/home/db2inst1/sqllib
DB2_NET_CLIENT_PATH=
DB2INSTANCE环境变量介绍:
如果一个系统中有多个实例,那么如何在各个实例之间进行切换以及如何同时启动多个实例呢?这就需要DB2INSTANCE环境变量。环境变量是操作系统层面的,是在操作系统级别上定义的变量。最常使用的DB2环境变量是DB2INSTANCE。该环境变量运行您指定当前活动实例,所有命令都将 应用于该实例。
配置实例
每个实例创建后,都有一个实例配置文件(db2system),这个实例配置文件控制实例的安全、通信、管理和资源的分配。我们可以根据需要来查看、更改和复位这个配置参数。这个配置文件是二进制的,只能通过命令来修改。
可以使用db2 get dbm cfg
命令来查看当前实例配置参数。
db2 get dbm cfg
命令显示的是在安装产品期间指定为默认配置参数的当前值,或在先前更新配置参数期间指定的那些值。
可以使用db2 update dbm cfg using ..
来更新实例配置文件。
有两种DB2概要文件注册表变量,一种是全局概要文件注册表变量,另一种是实例概要文件注册表变量。全局概要文件注册表变量影响所有的实例,实例概要文件注册表变量只影响特定的实例。它们的名称是相同的。DB2使用db2set命令来管理这些变量。DB2概要文件注册表非常多,但我们通常设置的却常少,如下:
显示所有DB2概要文件注册表变量:db2set -lr
显示当前设置的所有DB2概要文件注册表变量:db2set -all
帮助:db2set -?
设置变量:db2set =
常用的DB2概要文件注册表变量
DB2COMM
DB2SYSTEM
DB2INSTDEF
DB2ADMINSERVER
[db2inst1@localhost NODE0000]$ db2set -all | grep ADMINSERVER
[g] DB2ADMINSERVER=db2dasusr1
要启动或停止DAS,使用命令
db2admin start|stop
配置管理服务器:
查看:
[db2inst1@localhost NODE0000]$ db2 get admin cfg
Admin Server Configuration
Authentication Type DAS (AUTHENTICATION) = SERVER_ENCRYPT
DAS Administration Authority Group Name (DASADM_GROUP) =
DAS Discovery Mode (DISCOVER) = SEARCH
Name of the DB2 Server System (DB2SYSTEM) = BOGON
Java Development Kit Installation Path DAS (JDK_PATH) = AUTOMATIC (/home/db2dasusr1/das/java/jdk)
Java Development Kit Installation Path DAS (JDK_64_PATH) = AUTOMATIC (/home/db2dasusr1/das/java/jdk)
DAS Code Page (DAS_CODEPAGE) = 0
DAS Territory (DAS_TERRITORY) = 0
Location of Contact List (CONTACT_HOST) =
Execute Expired Tasks (EXEC_EXP_TASK) = NO
Scheduler Mode (SCHED_ENABLE) = OFF
SMTP Server (SMTP_SERVER) =
Tools Catalog Database (TOOLSCAT_DB) =
Tools Catalog Database Instance (TOOLSCAT_INST) =
Tools Catalog Database Schema (TOOLSCAT_SCHEMA) =
Scheduler User ID =
Diagnostic error capture level (DIAGLEVEL) = 3
更新:
db2 update admin cfg using
以下参数用来配置实例:
查询命令:db2 get dbm cfg
设置命令:db2 update dbm cfg using
[db2inst1@localhost NODE0000]$ db2 get dbm cfg
Database Manager Configuration
Node type = Database Server with local and remote clients
Database manager configuration release level = 0x1400
CPU speed (millisec/instruction) (CPUSPEED) = 1.771291e-07
Max number of concurrently active databases (NUMDB) = 32
Federated Database System Support (FEDERATED) = NO
Transaction processor monitor name (TP_MON_NAME) =
Default charge-back account (DFT_ACCOUNT_STR) =
Java Development Kit installation path (JDK_PATH) = /home/db2inst1/sqllib/java/jdk64
Diagnostic error capture level (DIAGLEVEL) = 3
Notify Level (NOTIFYLEVEL) = 3
Diagnostic data directory path (DIAGPATH) = /home/db2inst1/sqllib/db2dump/
Current member resolved DIAGPATH = /home/db2inst1/sqllib/db2dump/
Alternate diagnostic data directory path (ALT_DIAGPATH) =
Current member resolved ALT_DIAGPATH =
Size of rotating db2diag & notify logs (MB) (DIAGSIZE) = 0
Default database monitor switches
Buffer pool (DFT_MON_BUFPOOL) = OFF
Lock (DFT_MON_LOCK) = OFF
Sort (DFT_MON_SORT) = OFF
Statement (DFT_MON_STMT) = OFF
Table (DFT_MON_TABLE) = OFF
Timestamp (DFT_MON_TIMESTAMP) = ON
Unit of work (DFT_MON_UOW) = OFF
Monitor health of instance and databases (HEALTH_MON) = OFF
SYSADM group name (SYSADM_GROUP) = DB2IADM1
SYSCTRL group name (SYSCTRL_GROUP) =
SYSMAINT group name (SYSMAINT_GROUP) =
SYSMON group name (SYSMON_GROUP) =
Client Userid-Password Plugin (CLNT_PW_PLUGIN) =
Client Kerberos Plugin (CLNT_KRB_PLUGIN) =
Group Plugin (GROUP_PLUGIN) =
GSS Plugin for Local Authorization (LOCAL_GSSPLUGIN) =
Server Plugin Mode (SRV_PLUGIN_MODE) = UNFENCED
Server List of GSS Plugins (SRVCON_GSSPLUGIN_LIST) =
Server Userid-Password Plugin (SRVCON_PW_PLUGIN) =
Server Connection Authentication (SRVCON_AUTH) = NOT_SPECIFIED
Cluster manager =
Database manager authentication (AUTHENTICATION) = SERVER
Alternate authentication (ALTERNATE_AUTH_ENC) = NOT_SPECIFIED
Cataloging allowed without authority (CATALOG_NOAUTH) = NO
Trust all clients (TRUST_ALLCLNTS) = YES
Trusted client authentication (TRUST_CLNTAUTH) = CLIENT
Bypass federated authentication (FED_NOAUTH) = NO
Default database path (DFTDBPATH) = /home/db2inst1
Database monitor heap size (4KB) (MON_HEAP_SZ) = AUTOMATIC(90)
Java Virtual Machine heap size (4KB) (JAVA_HEAP_SZ) = 2048
Audit buffer size (4KB) (AUDIT_BUF_SZ) = 0
Global instance memory (% or 4KB) (INSTANCE_MEMORY) = AUTOMATIC(250188)
Member instance memory (% or 4KB) = GLOBAL
Agent stack size (AGENT_STACK_SZ) = 1024
Sort heap threshold (4KB) (SHEAPTHRES) = 0
Directory cache support (DIR_CACHE) = YES
Application support layer heap size (4KB) (ASLHEAPSZ) = 15
Max requester I/O block size (bytes) (RQRIOBLK) = 65535
Workload impact by throttled utilities(UTIL_IMPACT_LIM) = 10
Priority of agents (AGENTPRI) = SYSTEM
Agent pool size (NUM_POOLAGENTS) = AUTOMATIC(100)
Initial number of agents in pool (NUM_INITAGENTS) = 0
Max number of coordinating agents (MAX_COORDAGENTS) = AUTOMATIC(200)
Max number of client connections (MAX_CONNECTIONS) = AUTOMATIC(MAX_COORDAGENTS)
Keep fenced process (KEEPFENCED) = YES
Number of pooled fenced processes (FENCED_POOL) = AUTOMATIC(MAX_COORDAGENTS)
Initial number of fenced processes (NUM_INITFENCED) = 0
Index re-creation time and redo index build (INDEXREC) = RESTART
Transaction manager database name (TM_DATABASE) = 1ST_CONN
Transaction resync interval (sec) (RESYNC_INTERVAL) = 180
SPM name (SPM_NAME) = localhos
SPM log size (SPM_LOG_FILE_SZ) = 256
SPM resync agent limit (SPM_MAX_RESYNC) = 20
SPM log path (SPM_LOG_PATH) =
TCP/IP Service name (SVCENAME) = 50000
Discovery mode (DISCOVER) = SEARCH
Discover server instance (DISCOVER_INST) = ENABLE
SSL server keydb file (SSL_SVR_KEYDB) =
SSL server stash file (SSL_SVR_STASH) =
SSL server certificate label (SSL_SVR_LABEL) =
SSL service name (SSL_SVCENAME) =
SSL cipher specs (SSL_CIPHERSPECS) =
SSL versions (SSL_VERSIONS) =
SSL client keydb file (SSL_CLNT_KEYDB) =
SSL client stash file (SSL_CLNT_STASH) =
Maximum query degree of parallelism (MAX_QUERYDEGREE) = ANY
Enable intra-partition parallelism (INTRA_PARALLEL) = NO
Number of FCM buffers (FCM_NUM_BUFFERS) = AUTOMATIC(1024)
FCM buffer size (FCM_BUFFER_SIZE) = 32768
Number of FCM channels (FCM_NUM_CHANNELS) = AUTOMATIC(512)
db2start/db2stop timeout (min) (START_STOP_TIME) = 10
WLM dispatcher enabled (WLM_DISPATCHER) = NO
WLM dispatcher concurrency (WLM_DISP_CONCUR) = COMPUTED
WLM dispatcher CPU shares enabled (WLM_DISP_CPU_SHARES) = NO
WLM dispatcher min. utilization (%) (WLM_DISP_MIN_UTIL) = 5
Communication buffer exit library list (COMM_EXIT_LIST) =
Current effective arch level (CUR_EFF_ARCH_LVL) = V:11 R:1 M:1 F:1 I:0 SB:0
Current effective code level (CUR_EFF_CODE_LVL) = V:11 R:1 M:1 F:1 I:0 SB:0
Keystore type (KEYSTORE_TYPE) = NONE
Keystore location (KEYSTORE_LOCATION) =
管理(Administration)
AUTHENTICATION:数据库管理器认证(Database manager authentication)
CATALOG_NOAUTH:没有权限就允许编目(Cataloging allowed without authority)
CLNT_PW_PLUGIN:客户机用户标识-密码插件(Client Userid-Password Plugin)
CLNT_KRB_PLUGIN:客户机 Kerberos 插件(Client Kerberos Plugin)
CLUSTER_MGR:集群管理器(Cluster manager)
DFTDBPATH:缺省数据库路径(Default database path)
FED_NOAUTH:绕过联合认证(Bypass federated authentication)
GROUP_PLUGIN:组插件(Group Plugin)
LOCAL_GSSPLUGIN:本地授权的 GSS 插件(GSS Plugin for Local Authorization)
SRV_PLUGIN_MODE:服务器插件方式(Server Plugin Mode)
SRVCON_GSSPLUGIN_LIST:GSS 插件的服务器列表(Server List of GSS Plugins)
SRVCON_PW_PLUGIN:服务器用户标识-密码插件(Server Userid-Password Plugin)
SYSADM_GROUP:SYSADM 组名(SYSADM group name)
SYSCTRL_GROUP:SYSCTRL 组名(SYSCTRL group name)
SYSMAINT_GROUP:SYSMAINT 组名(SYSMAINT group name)
SYSMON_GROUP:SYSMON 组名(SYSMON group name)
TRUST_ALLCLNTS:信赖所有客户机(Trust all clients)
TRUST_CLNTAUTH:可信的客户机认证(Trusted client authentication)
应用程序(Applications)
AGENTPRI:代理程序的优先级(Priority of agents)
FENCED_POOL:合用受防护的进程的数目(Number of pooled fenced processes)
KEEPFENCED:保留受防护的进程(Keep fenced process)
MAX_CONNECTIONS:最大客户机连接数(Max number of client connections)
MAX_COORDAGENTS:最大协调代理程序数(Max number of coordinating agents)
NUM_INITAGENTS:池中的初始代理程序数(Initial number of agents in pool)
NUM_INITFENCED:受防护的进程的初始数目(Initial number of fenced processes)
NUM_POOLAGENTS:代理程序池大小(Agent pool size)
通信(Communications)
DISCOVER:发现方式(Discovery mode)
SVCENAME:TCP/IP 服务名称(TCP/IP Service name)
诊断(Diagnostic)
DIAGLEVEL:诊断错误捕获级别(Diagnostic error capture level)
DIAGPATH:诊断数据目录路径(Diagnostic data directory path)
INDEXREC:索引重新创建时间和重做索引构建(Index re-creation time and redo index build)
NOTIFYLEVEL:通知级别(Notify Level)
环境(Environment)
CPUSPEED:CPU 速度(毫秒/指令)(CPU speed (millisec/instruction))
DFT_ACCOUNT_STR:缺省对方付费帐户(Default charge-back account)
DISCOVER_INST:发现服务器实例(Discover server instance)
FEDERATED:联合数据库系统支持(Federated Database System Support)
JDK_PATH:"http://lib.csdn.net/base/17" class='replace_word' title="Java EE知识库" target='_blank' style='color:#df3434; font-weight:bold;'>Java Development Kit 安装路径(Java Development Kit installation path)
MAXTOTFILOP:最大打开文件数
NUMDB:最大并发活动数据库数(Max number of concurrently active databases)
TM_DATABASE:事务管理器数据库名称(Transaction manager database name)
TP_MON_NAME:事务处理器监视器名(Transaction processor monitor name)
监视(Monitor)
DFT_MON_BUFPOOL:缓冲池(Buffer pool)
DFT_MON_LOCK:锁定(Lock)
DFT_MON_SORT:排序(Sort)
DFT_MON_STMT:语句(Statement)
DFT_MON_TABLE:表(Table)
DFT_MON_TIMESTAMP:时间戳记(Timestamp)
DFT_MON_UOW:工作单元(Unit of work)
HEALTH_MON:监视实例和数据库的运行状况(Monitor health of instance and databases)
并行(Parallel)
FCM_NUM_BUFFERS:内部通信缓冲区数(4KB)(No. of int. communication buffers(4KB))
INTRA_PARALLEL:启用分区内并行性(Enable intra-partition parallelism)
MAX_QUERYDEGREE:最大查询并行度(Maximum query degree of parallelism)
性能(Performance)
AGENT_STACK_SZ:代理程序的堆栈大小(Agent stack size)
ASLHEAPSZ:应用程序支持层堆大小(4KB)(Application support layer heap size (4KB))
AUDIT_BUF_SZ:审计缓冲区大小(4KB)(Audit buffer size (4KB))
BACKBUFSZ:备份缓冲区缺省大小(4KB)(Backup buffer default size (4KB))
DIR_CACHE:目录高速缓存支持(Directory cache support)
INSTANCE_MEMORY:实例共享内存(4KB)的大小(Size of instance shared memory (4KB))
JAVA_HEAP_SZ:Java 虚拟机”堆大小(4KB)(Java Virtual Machine heap size (4KB))
MON_HEAP_SZ:数据库监视器堆大小(4KB)(Database monitor heap size (4KB))
RESTBUFSZ:复原缓冲区缺省大小(4KB)(Restore buffer default size (4KB))
RESYNC_INTERVAL:事务再同步时间间隔(秒)(Transaction resync interval (sec))
RQRIOBLK:最大请求者 I/O 块大小(以字节计)(Max requester I/O block size (bytes))
SHEAPTHRES:排序堆阈值(4KB)(Sort heap threshold (4KB))
SPM_LOG_FILE_SZ:SPM 日志大小(SPM log size)
SPM_LOG_PATH:SPM 日志路径(SPM log path)
SPM_MAX_RESYNC:SPM 再同步代理程序限制(SPM resync agent limit)
SPM_NAME:SPM 名称(SPM name)
UTIL_IMPACT_LIM:已调速实用程序对工作负载的影响(Workload impact by throttled utilities)
以下参数用来配置数据库:
查询命令:db2 get db cfg for
设置命令:db2 update db cfg for
恢复默认设置命令:db2 reset db cfg
[db2inst1@localhost NODE0000]$ db2 get db cfg for test
Database Configuration for Database test
Database configuration release level = 0x1400
Database release level = 0x1400
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
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
Upgrade 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) = ON
Size of database shared memory (4KB) (DATABASE_MEMORY) = AUTOMATIC(71427)
Database memory threshold (DB_MEM_THRESH) = 100
Max storage for lock list (4KB) (LOCKLIST) = AUTOMATIC(4096)
Percent. of lock lists per application (MAXLOCKS) = AUTOMATIC(60)
Package cache size (4KB) (PCKCACHESZ) = AUTOMATIC(320)
Sort heap thres for shared sorts (4KB) (SHEAPTHRES_SHR) = AUTOMATIC(5000)
Sort list heap (4KB) (SORTHEAP) = AUTOMATIC(256)
Database heap (4KB) (DBHEAP) = AUTOMATIC(2002)
Catalog cache size (4KB) (CATALOGCACHE_SZ) = 135
Log buffer size (4KB) (LOGBUFSZ) = 974
Utilities heap size (4KB) (UTIL_HEAP_SZ) = AUTOMATIC(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) = 80
Number of asynchronous page cleaners (NUM_IOCLEANERS) = AUTOMATIC(1)
Number of I/O servers (NUM_IOSERVERS) = AUTOMATIC(12)
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) = 1024
Number of primary log files (LOGPRIMARY) = 13
Number of secondary log files (LOGSECOND) = 12
Changed path to log files (NEWLOGPATH) =
Path to log files = /home/db2inst1/db2inst1/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) = ON
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
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
Strict I/O for EXTBL_LOCATION (EXTBL_STRICT_IO) = NO
Allowed paths for external tables (EXTBL_LOCATION) = /home/db2inst1
Default table organization (DFT_TABLE_ORG) = ROW
Default string units (STRING_UNITS) = SYSTEM
National character string mapping (NCHAR_MAPPING) = CHAR_CU32
Database is in write suspend state = NO
Extended row size support (EXTENDED_ROW_SZ) = ENABLE
Encryption Library for Backup (ENCRLIB) =
Encryption Options for Backup (ENCROPTS) =
WLM Collection Interval (minutes) (WLM_COLLECT_INT) = 0
Target agent load per CPU core (WLM_AGENT_LOAD_TRGT) = AUTOMATIC(11)
WLM admission control enabled (WLM_ADMISSION_CTRL) = NO
Allocated share of CPU resources (WLM_CPU_SHARES) = 1000
CPU share behavior (hard/soft) (WLM_CPU_SHARE_MODE) = HARD
Maximum allowable CPU utilization (%) (WLM_CPU_LIMIT) = 0
Encrypted database = NO
Procedural language stack trace (PL_STACK_TRACE) = NONE
HADR SSL certificate label (HADR_SSL_LABEL) =
应用程序(Applications)
LOCKTIMEOUT:锁定超时(秒)(Lock timeout (sec))
MAXAPPLS:最大活动应用程序数(Max number of active applications)
AVG_APPLS:活动应用程序的平均数目(Average number of active applications)
MAXFILOP:每个应用程序的最大打开数据库文件数(Max DB files open per application)
DLCHKTIME:检查死锁的时间间隔(毫秒)(Interval for checking deadlock (ms))
MAXLOCKS:每个应用程序的锁定百分比列表(Percent. of lock lists per application)
ENABLE_XMLCHAR:启用 XML 字符操作(Enable XML Character operations)
WLM_COLLECT_INT:WLM 收集时间间隔(分钟)(WLM Collection Interval (minutes))
环境(Environment)
CODESET:数据库代码集(Database code set)
TERRIRORY:数据库地域(Database territory)
DFT_MTTB_TYPES:缺省维护的选项的表类型(Default maintained table types for opt)
SELF_TUNING_MEM:自调整内存(Self tuning memory)
DFT_SQLMATHWARN:在算术异常时继续(Continue upon arithmetic exceptions)
RESTRICT_ACCESS:限制访问(Restrict access)
COLLATION_SEQUENCE:数据库整理顺序(Database collating sequence)
DISCOVER_DB:对此数据库的发现支持(Discovery support for this database)
DYN_QUERY_MGMT:动态SQL查询管理(Dynamic SQL Query management)
PAGE_SIZE:数据库页大小(Database page size)
DFT_QUERYOPT:缺省查询优化类(Default query optimization class)
CODEPAGE:数据库代码页(Database code page)
DB_MEM_THRESH:数据库内存阈值(Database memory threshold)
DFT_DEGREE:并行度(Degree of parallelism)
COUNTRY:数据库国家/地区代码(Database country/region code)
RELEASE:数据库配置发行版级别(Database configuration release level)
DATABASE_LEVEL:数据库发行版级别(Database release level)
DFT_REFRESH_AGE:缺省刷新有效期(Default refresh age)
ALT_COLLATE:备用整理顺序(Alternate collating sequence)
日志(Logs)
LOGARCHMETH1:第一个日志归档方法(First log archive method)
LOGARCHMETH2:第二个日志归档方法(Second log archive method)
LOGARCHOPT1:logarchmeth1的选项(Options for logarchmeth1)
LOGARCHOPT2:logarchmeth2的选项(Options for logarchmeth2)
LOGPRIMARY:主日志文件的数目(Number of primary log files)
LOGSECOND:辅助日志文件的数目(Number of secondary log files)
LOGFILSIZ:日志文件大小(4KB)(Log file size (4KB))
LOGPATH:日志文件路径(Path to log files)
NEWLOGPATH:已更改的至日志文件的路径(Changed path to log files)
OVERFLOWLOGPATH:溢出日志路径(Overflow log path)
MIRRORLOGPATH:镜像日志路径(Mirror log path)
USEREXIT:启用的日志记录的用户出口(User exit for logging enabled)
BLK_LOG_DSK_FUL:磁盘上已满的块日志(Block log on disk full)
LOGRETAIN:启用的恢复的日志保留(Log retain for recovery enabled)
NUMARCHRETRY:错误时重试日志归档次数(Number of log archive retries on error)
ARCHRETRYDELAY:日志归档重试延迟(秒)(Log archive retry Delay (secs))
SOFTMAX:软检查点前回收的日志文件的百分比(Percent log file reclaimed before soft chckpt)
MINCOMMIT:组落实计数(Group commit count)
MAX_LOG:事务使用的最大主日志空间的百分比(Percent max primary log space by transaction)
NUM_LOG_SPAN:1 个活动 UOW 的活动日志文件的数目(Num. of active log files for 1 active UOW)
LOGHEAD:首个活动日志文件(First active log file)
FAILARCHPATH:故障转移日志归档路径(Failover log archive path)
VENDOROPT:供应商选项(Vendor options)
维护(Maintenance)
AUTO_MAINT:自动维护(Automatic maintenance)
AUTO_DB_BACKUP:自动数据库备份(Automatic database backup)
AUTO_TBL_MAINT:自动表维护(Automatic table maintenance)
AUTO_RUNSTATS:自动 runstats(Automatic runstats)
AUTO_REORG:自动重组(Automatic reorganization)
AUTO_STMT_STATS:自动语句统计信息(Automatic statement statistics)
AUTO_STATS_PROF:自动统计信息概要分析(Automatic statistics profiling)
AUTO_PROF_UPD:自动概要文件更新(Automatic profile updates)
性能(Performance)
INDEXSORT:索引排序标志(Index sort flag)
SEQDETECT:顺序检测标志(Sequential detect flag)
MULTIPAGE_ALLOC:启用的多页文件分配(Multi-page file allocation enabled)
STAT_HEAP_SZ:统计信息堆大小(4KB)(Statistics heap size (4KB))
DFT_PREFETCH_SZ:缺省预取大小(页)(Default prefetch size (pages))
APPL_MEMORY:应用程序内存大小(4KB)(Application Memory Size (4KB))
NUM_IOSERVERS:I/O 服务器的数目(Number of I/O servers)
APPLHEAPSZ:缺省应用程序堆(4KB)(Default application heap (4KB))
STMTHEAP:SQL 语句堆(4KB)(SQL statement heap (4KB))
DBHEAP:数据库堆(4KB)(Database heap (4KB))
NUM_IOCLEANERS:异步页清除程序的数目(Number of asynchronous page cleaners)
PCKCACHESZ:程序包高速缓存大小(4KB)(Package cache size (4KB))
LOGBUFSZ:日志缓冲区大小(4KB)(Log buffer size (4KB))
CHNGPGS_THRESH:更改的页阈值(Changed pages threshold)
UTIL_HEAP_SZ:实用程序堆大小(4KB)(Utilities heap size (4KB))
SHEAPTHRES_SHR:共享排序的排序堆域值(4KB)(Sort heap thres for shared sorts (4KB))
DFT_EXTENT_SZ:缺省表空间扩展数据块大小(页)(Default tablespace extentsize (pages))
SORTHEAP:排序列表堆(4KB)(Sort list heap (4KB))
DATABASE_MEMORY:数据库共享内存大小(4KB)(Size of database shared memory (4KB))
BUFFPAGE:缓冲池大小(页)(Buffer pool size (pages))
LOCKLIST:锁定列表的最大存储量(4KB)(Max storage for lock list (4KB))
CATALOGCACHE_SZ:目录高速缓存大小(4KB)(Catalog cache size (4KB))
恢复(Recovery)
INDEXREC:索引重新创建时间和重做索引构建(Index re-creation time and redo index build)
AUTORESTART:启用的自动重新启动(Auto restart enabled)
TRACKMOD:跟踪修改的页数(Track modified pages)
LOGINDEXBUILD:在索引构建期间记录页(Log pages during index build)
REC_HIS_RETENTN:恢复历史记录保留时间(天数)(Recovery history retention (days))
NUM_DB_BACKUPS:要保留的数据库备份的数目(Number of database backups to retain)
DFT_LOADREC_SES:loadrec 会话的缺省数目(Default number of loadrec sessions)
AUTO_DEL_REC_OBJ:自动删除恢复对象(Auto deletion of recovery objects)
TSM_PASSWORD:TSM 密码(TSM password)
TSM_OWNER:TSM 所有者(TSM owner)
TSM_NODENAME:TSM 节点名(TSM node name)
TSM_MGMTCLASS:TSM 管理类(TSM management class)
HADR_DB_ROLE:HADR 数据库角色(HADR database role)
HADR_LOCAL_HOST:HADR 本地主机名(HADR local host name)
HADR_LOCAL_SVC:HADR 本地服务名称(HADR local service name)
HADR_REMOTE_HOST:HADR 远程主机名(HADR remote host name)
HADR_REMOTE_SVC:HADR 远程服务名称(HADR remote service name)
HADR_REMOTE_INST:远程服务器的 HADR 实例名(HADR instance name of remote server)
HADR_PEER_WINDOW:HADR 对等窗口持续时间(秒)(HADR peer window duration (seconds))
HADR_TIMEOUT:HADR 超时值(HADR timeout value)
HADR_SYNCMODE:HADR 日志写同步方式(HADR log write synchronization mode)
状态(Status)
CONSISTENT:(Database is consistent)
BACKUP_PENDING:备份暂挂(Backup pending)
ROLLFWD_PENDING:前滚暂挂(Rollforward pending)
RESTORE_PENDING:复原暂挂(Restore pending)
USER_EXIT_STATUS:日志记录状态的用户出口(User exit for logging status)
LOG_RETAIN_STATUS:恢复状态的日志保留(Log retain for recovery status)
NUM_QUANTILES:保留的分位点数目(Number of quantiles retained)
NUM_FREQVALUES:保留的高频值的数目(Number of frequent values retained)
其他(UNKNOWN)
DECFLT_ROUNDING:十进制浮点舍入方式(Decimal floating point rounding mode)
我们的my.cnf,postgresql.conf都是vim可编辑的,db2没有可vim编辑的配置文件,我认为因为配置文件都是二进制的,第二是因为DB2的用户都是操作系统的用户?
原始连接:DB2配置