免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 11096 | 回复: 10
打印 上一主题 下一主题

SQL1084C的错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-08-01 11:52 |只看该作者 |倒序浏览
昨天服务器换了一个cpu后,今天我就发觉我得数据库连不上去了。错误情况如下:
db2 =>; connect to sample_db  user db2inst1
Enter current password for db2inst1:
SQL1084C  Shared memory segments cannot be allocated. SQLSTATE=57019


我用db2 get db cfg for sample_db后,修改了DBHEAP的参数,从2000改为4000,结果还是出现上面的错误。

是不是还要改些关于内存的参数?请大家 帮忙。谢谢!

附:其余参数


Database configuration release level                    = 0x0900
Database release level                                  = 0x0900

Database territory                                      = CN
Database code page                                      = 1383
Database code set                                       = IBM-eucCN
Database country code                                   = 86

Dynamic SQL Query management           (DYN_QUERY_MGMT) = DISABLE

Directory object name                    (DIR_OBJ_NAME) =
Discovery support for this database       (DISCOVER_DB) = ENABLE

Default query optimization class         (DFT_QUERYOPT) = 5
Degree of parallelism                      (DFT_DEGREE) = ANY
Continue upon arithmetic exceptions   (DFT_SQLMATHWARN) = NO
Default refresh age                   (DFT_REFRESH_AGE) = 0
Number of frequent values retained     (NUM_FREQVALUES) = 10
Number of quantiles retained            (NUM_QUANTILES) = 20

Backup pending                                          = NO

Database is consistent                                  = YES
Rollforward pending                                     = NO
Restore pending                                         = NO

Multi-page file allocation enabled                      = NO

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

Data Links Token Expiry Interval (sec)      (DL_EXPINT) = 60
Data Links Number of Copies             (DL_NUM_COPIES) = 1
Data Links Time after Drop (days)        (DL_TIME_DROP) = 1
Data Links Token in Uppercase                (DL_UPPER) = NO
Data Links Token Algorithm                   (DL_TOKEN) = MAC0

Database heap (4KB)                            (DBHEAP) = 4000
Catalog cache size (4KB)              (CATALOGCACHE_SZ) = 64
Log buffer size (4KB)                        (LOGBUFSZ) = 32
Utilities heap size (4KB)                (UTIL_HEAP_SZ) = 70000
Buffer pool size (pages)                     (BUFFPAGE) = 5000
Extended storage segments size (4KB)    (ESTORE_SEG_SZ) = 16000
Number of extended storage segments   (NUM_ESTORE_SEGS) = 0
Max storage for lock list (4KB)              (LOCKLIST) = 100

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

Sort list heap (4KB)                         (SORTHEAP) = 4000
SQL statement heap (4KB)                     (STMTHEAP) = 2048
Default application heap (4KB)             (APPLHEAPSZ) = 64
Package cache size (4KB)                   (PCKCACHESZ) = (MAXAPPLS*
Statistics heap size (4KB)               (STAT_HEAP_SZ) = 4384

Interval for checking deadlock (ms)         (DLCHKTIME) = 10000
Percent. of lock lists per application       (MAXLOCKS) = 10
Lock timeout (sec)                        (LOCKTIMEOUT) = -1

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

Track modified pages                         (TRACKMOD) = OFF

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

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

Log file size (4KB)                         (LOGFILSIZ) = 4000
Number of primary log files                (LOGPRIMARY) = 30
Number of secondary log files               (LOGSECOND) = 98
Changed path to log files                  (NEWLOGPATH) =
Path to log files                                       = /crmfs/db2/db2inst1/NODE0000/SQL00001/SQLOGDIR/
First active log file                                   =

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

Auto restart enabled                      (AUTORESTART) = ON
Index re-creation time                       (INDEXREC) = SYSTEM (RESTART)
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

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

论坛徽章:
0
2 [报告]
发表于 2003-08-01 16:41 |只看该作者

SQL1084C的错误

补充:I'm using DB2 V7 on SunOS 5.8
希望高手能解决一下。非常感谢!

论坛徽章:
0
3 [报告]
发表于 2003-08-01 20:53 |只看该作者

SQL1084C的错误

可能是消息队列的问题!
不同的OS不同的调整方法。
调大一些试试!

论坛徽章:
0
4 [报告]
发表于 2006-01-24 11:34 |只看该作者

Memory cannot be allocated - AIX

hi I also facing this problem which I installed the db2 with AIX server. May I know anyone have solve this problem? Please advise.

论坛徽章:
0
5 [报告]
发表于 2006-01-25 10:49 |只看该作者
内存无法分配

论坛徽章:
0
6 [报告]
发表于 2006-01-25 13:23 |只看该作者
anyway to solve this problem?

论坛徽章:
0
7 [报告]
发表于 2006-01-26 19:23 |只看该作者
你把UTIL_HEAP_SZ调小一些看看

论坛徽章:
0
8 [报告]
发表于 2006-01-30 00:36 |只看该作者

回复 1楼 sureyunying 的帖子

执行db2osconf -t 500,然后根据建议修改内核参数吧

论坛徽章:
0
9 [报告]
发表于 2006-02-06 15:29 |只看该作者
原帖由 gmcj 于 2006-1-30 00:36 发表
执行db2osconf -t 500,然后根据建议修改内核参数吧

This command only supported with HP-UNIX. I'm using AIX so I can't use it. Any other way to solve my problem???

论坛徽章:
0
10 [报告]
发表于 2006-02-07 13:14 |只看该作者
解决办法:
1、#sysctl -a |grep kernel.shammax

2、#sysctl -w kernel.shmmax=xxxxxxx
#vi /etc/sysctl.conf
  kernel.shammax=你刚才设置的数值

3、reboot
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP