mjytsyj 2017-02-22 10:05 采纳率: 0%
浏览 1592

SUSE执行shutdown-rnow时触发脚本关闭sybase失败

脚本中关闭sybase语句

. /opt/sybase/SYBASE.sh
cd /opt/sybase/OCS*/bin
/opt/sybase/OCS-15_0/bin/isql -SDBSVR -Usa -P${pwdpwd} -zus_english -o/opt/oss/engr/tools/stopNMS_DB.sh_log/isqllog<<EOF
shutdown SYB_BACKUP
go
shutdown
go
exit
EOF

不关机时执行脚本,可以正常关闭sybase

但是shutdown -r now时触发脚本关闭sybase却失败

isql语句执行结果报错:An error occurred when attempting to allocate localization-related structures.

下面是sybase数据库日志:
00:0002:00000:00000:2017/02/22 14:51:11.42 kernel ueshutdown: exiting
00:0002:00000:00000:2017/02/22 14:51:11.43 kernel Abnormal exit detected - ASE process level execution bindings will be cleared on startup.
00:0000:00000:00000:2017/02/22 14:51:11.62 kernel SySAM: Checked in graced license for ASE_ASM (2015.1019).
00:0000:00000:00000:2017/02/22 14:51:11.65 kernel SySAM: Checked in license for 1 ASE_CORE (2018.06290/permanent/0885 9C31 2E30 FCE2).
00:0000:00000:00000:2017/02/22 14:51:55.83 kernel SySAM: Using licenses from: /opt/sybase/SYSAM-2_0/licenses/20160126173359_PARTITIONS.lic:/opt/sybase/SYSAM-2_0/licenses/ANY_20160126165305.lic
00:0000:00000:00000:2017/02/22 14:51:56.07 kernel SySAM: Checked out license for 1 ASE_CORE (2018.06290/permanent/0885 9C31 2E30 FCE2).
00:0000:00000:00000:2017/02/22 14:51:56.07 kernel This product is licensed to: Huawei Technologies Co., Ltd., an OEM license from Sybase, Inc.
00:0000:00000:00000:2017/02/22 14:51:56.07 kernel Checked out license ASE_CORE
00:0000:00000:00000:2017/02/22 14:51:56.07 kernel Adaptive Server Enterprise (Enterprise Edition)
00:0000:00000:00000:2017/02/22 14:51:56.11 kernel Using config area from primary master device.
00:0000:00000:00000:2017/02/22 14:51:56.13 kernel SySAM: Checked out graced license for 1 ASE_ASM (2015.1019) will expire Thu 23 Mar 2017 12:56:03 AM CST.
00:0000:00000:00000:2017/02/22 14:51:56.13 kernel SySAM: Failed to obtain license(s) for ASE_ASM feature from license file(s) or server(s).
00:0000:00000:00000:2017/02/22 14:51:56.13 kernel SySAM: No such feature exists. Verify that a license containing the feature name ASE_ASM is available or generate and deploy the license from the Sybase Product Download Center.
00:0000:00000:00000:2017/02/22 14:51:56.13 kernel SySAM: License feature name: ASE_ASM
00:0000:00000:00000:2017/02/22 14:51:56.13 kernel SySAM: License search path: /opt/sybase/SYSAM-2_0/licenses/20160126173359_PARTITIONS.lic:/opt/sybase/SYSAM-2_0/licenses/ANY_20160126165305.lic:
00:0000:00000:00000:2017/02/22 14:51:56.13 kernel SySAM: FLEXnet Licensing error:-5,357
00:0000:00000:00000:2017/02/22 14:51:56.13 kernel SySAM: For further information, refer to the Sybase Software Asset Management website at http://www.sybase.com/sysam
00:0000:00000:00000:2017/02/22 14:51:56.13 kernel Error: 131275, Severity: 17, State: 1
00:0000:00000:00000:2017/02/22 14:51:56.13 kernel SySAM: WARNING: ASE functionality that requires the ASE_ASM license will be disabled on Thu 23 Mar 2017 12:56:03 AM CST, unless a suitable ASE_ASM license is obtained before that date.
00:0000:00000:00000:2017/02/22 14:51:56.13 kernel Checked out license ASE_ASM
00:0000:00000:00000:2017/02/22 14:51:56.14 kernel Could not allocate memory using Huge Pages. Allocated using regular pages. For better performance, reboot the server after configuring enough Huge Pages.
00:0000:00000:00000:2017/02/22 14:51:56.14 kernel Internal run-time model set for Linux - Native
00:0000:00000:00000:2017/02/22 14:51:56.14 kernel Adaptive Server is using the process kernel mode.
00:0000:00000:00000:2017/02/22 14:51:56.14 kernel Using 4096 file descriptors.

  • 写回答

1条回答 默认 最新

  • devmiao 2017-02-22 15:37
    关注
    评论

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮