免费注册 查看新帖 |

Chinaunix

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

srvbuildres -r sqlsrv.res 报出 5861 错误 [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-09 09:06 |只看该作者 |倒序浏览
设置 page_size = 8K 的时候没有问题,设置 page_size=16K 的时候就出现这个错误.

错误日志如下:


Building Adaptive Server 'TEST':
Writing entry into directory services...
Directory services entry complete.
Building master device...
Master device complete.
Writing RUN_TEST file...
RUN_TEST file complete.
Starting server...
Server started.
Building sysprocs device and sybsystemprocs database...
sybprocs device and sybsystemprocs database created.
Running installmaster script to install system stored procedures...
Task failed
Adaptive Server message: 'Message number: 5861, Severity 16, State 2, Line 1
Message String: The current 'max memory' value '32768', is not sufficient to
change the parameter 'allow updates to system tables' to '1'. 'max memory'
should be greater than 'total logical memory' '33603' required for the
configuration.

'.  Error in query: 'select config_admin(1,102,1, 0, NULL, NULL)'.
Adaptive Server message: 'Message number: 10321, Severity 14, State 1, Line 1
Message String: Ad-hoc updates to system catalogs not enabled. A user with
System Security Officer (SSO) role must reconfigure system to allow this.

'.
Error in query: 'update sysdatabases set status = status | 8 where dbid =
db_id('sybsystemprocs')'.
Adaptive Server message: 'Message number: 5861, Severity 16, State 2, Line 1
Message String: The current 'max memory' value '32768', is not sufficient to
change the parameter 'allow updates to system tables' to '0'. 'max memory'
should be greater than 'total logical memory' '33603' required for the
configuration.

'.
Error in query: 'select config_admin(1,102,0, 0, NULL, NULL)'.

Server 'TEST' was not created.


什么问题啊 ?

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2010-03-09 09:09 |只看该作者
sqlsrv.res 文件内容如下:

#
# --- This file was generated by Sybase InstallShield Installer ---
#
sybinit.release_directory: /opt/sybase
sybinit.product: sqlsrv
sqlsrv.server_name: TEST
sqlsrv.new_config: yes
sqlsrv.do_add_server: yes
sqlsrv.network_protocol_list: tcp
sqlsrv.network_hostname_list: test
sqlsrv.network_port_list: 5000
sqlsrv.server_page_size: 16k
sqlsrv.force_buildmaster: yes
sqlsrv.master_device_physical_name: /opt/sybase/data/master.dat
sqlsrv.master_device_size: 320
sqlsrv.master_database_size: 48
sqlsrv.errorlog: /opt/sybase/ASE-12_5/install/TEST.log
sqlsrv.do_upgrade: no
sqlsrv.sybsystemprocs_device_physical_name: /opt/sybase/data/sysprocs.dat
sqlsrv.sybsystemprocs_device_size: 176
sqlsrv.sybsystemprocs_database_size: 176
sqlsrv.sybsystemdb_device_physical_name: /opt/sybase/data/sybsysdb.dat
sqlsrv.sybsystemdb_device_size: 32
sqlsrv.sybsystemdb_database_size: 32
sqlsrv.default_backup_server: TEST_BS

论坛徽章:
1
数据库技术版块每日发帖之星
日期:2015-11-29 06:20:00
3 [报告]
发表于 2010-03-09 09:16 |只看该作者
'max memory' 参数改大点试一下呢,isql登录后用 sp_configure 'max memory',102400这样的语法来改

论坛徽章:
6
水瓶座
日期:2014-06-04 03:34:37水瓶座
日期:2014-06-17 13:20:31数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00数据库技术版块每日发帖之星
日期:2016-07-17 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
4 [报告]
发表于 2010-03-09 09:26 |只看该作者
本帖最后由 andkylee 于 2010-03-09 09:33 编辑

回复 1# snow888


   Adaptive Server message: 'Message number: 5861, Severity 16, State 2, Line 1
Message String: The current 'max memory' value '32768', is not sufficient to
change the parameter 'allow updates to system tables' to '1'. 'max memory'
should be greater than 'total logical memory' '33603' required for the
configuration.

'.  Error in query: 'select config_admin(1,102,1, 0, NULL, NULL)'.


----------------------------------------------------------------------------------

你是通过资源文件resource file创建的数据库,很不幸运配置的最大可用内存不够用了。配置更新系统表allow updates to system tables的参数需要:
835*2K的内存(33603-32768)。
这个查询select config_admin(1,102,1, 0, NULL, NULL)的意思是将allow updates to system tables改为1,
演示如下:
  1. 1> sp_configure "allow upd"
  2. 2> go
  3. Parameter Name                 Default     Memory Used Config Value
  4.          Run Value    Unit                 Type
  5. ------------------------------ ----------- ----------- ------------
  6.          ------------ -------------------- ----------
  7. allow updates to system tables           0           0            0
  8.                     0 switch               dynamic

  9. (1 row affected)
  10. (return status = 0)
  11. 1> select config_admin(1,102,1, 0, NULL, NULL)
  12. 2> go

  13. -----------
  14.            1

  15. (1 row affected)
  16. 1> sp_configure "allow upd"
  17. 2> go
  18. Parameter Name                 Default     Memory Used Config Value
  19.          Run Value    Unit                 Type
  20. ------------------------------ ----------- ----------- ------------
  21.          ------------ -------------------- ----------
  22. allow updates to system tables           0           0            1
  23.                     1 switch               dynamic

  24. (1 row affected)
  25. (return status = 0)
复制代码
select config_admin(1,102,0, 0, NULL, NULL)将allow updates to system tables改为0.
演示如下:
  1. 1> sp_configure "allow upd"
  2. 2> go
  3. Parameter Name                 Default     Memory Used Config Value
  4.          Run Value    Unit                 Type
  5. ------------------------------ ----------- ----------- ------------
  6.          ------------ -------------------- ----------
  7. allow updates to system tables           0           0            1
  8.                     1 switch               dynamic

  9. (1 row affected)
  10. (return status = 0)
  11. 1> select config_admin(1,102,0, 0, NULL, NULL)
  12. 2> go

  13. -----------
  14.            1

  15. (1 row affected)
  16. 1> sp_configure "allow upd"
  17. 2> go
  18. Parameter Name                 Default     Memory Used Config Value
  19.          Run Value    Unit                 Type
  20. ------------------------------ ----------- ----------- ------------
  21.          ------------ -------------------- ----------
  22. allow updates to system tables           0           0            0
  23.                     0 switch               dynamic

  24. (1 row affected)
  25. (return status = 0)
复制代码
Error in query: 'update sysdatabases set status = status | 8 where dbid =
db_id('sybsystemprocs')'.


上面这句话是想将sybsystemprocs数据库加上truncate log on chkpt选项,可是因为内存不足没有执行成功!



Error in query: 'select config_admin(1,102,0, 0, NULL, NULL)'.

这句话意思是将allow updates to system tables参数再改成0,估计也因为内存不足执行不成功。


以上这些语句就是installmaster脚本中的sql。可用去查看一下。


很遗憾,sybase ASE的资源文件模板弄得一团糟糕,各个版本各个平台下的都不一致。很混乱。
我的建议是:配置servername.cfg配置参数文件。然后再执行一下 srvbuildres

论坛徽章:
6
水瓶座
日期:2014-06-04 03:34:37水瓶座
日期:2014-06-17 13:20:31数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00数据库技术版块每日发帖之星
日期:2016-07-17 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
5 [报告]
发表于 2010-03-09 09:27 |只看该作者
回复 3# ahjf


    楼主的服务器都没有创建好,isql连接到哪里去?

论坛徽章:
6
水瓶座
日期:2014-06-04 03:34:37水瓶座
日期:2014-06-17 13:20:31数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00数据库技术版块每日发帖之星
日期:2016-07-17 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
6 [报告]
发表于 2010-03-09 09:31 |只看该作者
回复 2# snow888


    master设备的最小配置大小 (MB).  
    2K page size – 24MB
    4K page size – 45MB
    8K page size – 89MB
    16K page size – 177MB
 
master数据库的最小配置大小 (MB).  
    2K page size – 13MB
    4K page size – 26MB
    8K page size – 52MB
    16K page size – 104MB


很明显你配置的太小了,适当增大一些。之所以没有报master数据库太小的原因是:你的installmaster脚本因为可用内存不足,没有继续往下执行就退出了。

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
7 [报告]
发表于 2010-03-09 09:37 |只看该作者
回复 4# andkylee


    那参数文件 TEST.cfg 应该如何改?

我找到一个 max memory 的地方,默认值是 DEFAULT ,是否可修改成 33603 ?

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
8 [报告]
发表于 2010-03-09 09:40 |只看该作者
回复 6# andkylee


    master设备的最小配置大小 (MB).  
    2K page size – 24MB
    4K page size – 45MB
    8K page size – 89MB
    16K page size – 177MB
 
master数据库的最小配置大小 (MB).  
    2K page size – 13MB
    4K page size – 26MB
    8K page size – 52MB
    16K page size – 104MB


很明显你配置的太小了,适当增大一些。之所以没有报master数据库太小的原因是:你的installmaster脚本因为可用内存不足,没有继续往下执行就退出了。


这几个值我已经改大了啊 ...

master 设备大小已经配置成 320MB 了.

噢, master database size 是小了点儿 ...

论坛徽章:
6
水瓶座
日期:2014-06-04 03:34:37水瓶座
日期:2014-06-17 13:20:31数据库技术版块每日发帖之星
日期:2016-07-09 06:20:00数据库技术版块每日发帖之星
日期:2016-07-17 06:20:00数据库技术版块每日发帖之星
日期:2016-08-01 06:20:00数据库技术版块每日发帖之星
日期:2016-08-04 06:20:00
9 [报告]
发表于 2010-03-09 09:40 |只看该作者
回复 7# snow888


    尽量改的大一些,说不定installmaster脚本还需要配置其他的metadata cache呢!

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
10 [报告]
发表于 2010-03-09 09:42 |只看该作者
回复  snow888


    尽量改的大一些,说不定installmaster脚本还需要配置其他的metadata cache呢!
andkylee 发表于 2010-03-09 09:40


你是说那个 max memory 可以设置成 33603 * 2 的值么?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP