SAP ERP升级数据库Sybase ASE

一、 背景




SAP ERP 需要将数据库Sybase ASE 升级到版本16.0.    SAP现在的系统是Linux SUSE.

SAP    <SID>是WEN





二、步骤


1、Stop the SAP and ASE



su wenadm
$>stopsap


2、Download the ase software




我是用FTP从其他 服务器下载.    


-------------------------------------------------------------------------------------
cd /remote/pbi_archive10/archives/images/ase/160/asecorona_beta_3/c1/output/linuxamd64


ftp> get ASE_Suite.linuxamd64.tgz


tar   zxvf  ASE_Suite.linuxamd64.tgz




3、installation



/abaptest/soft/newase  是step 2 解压目录


mo:/sybase/WEN/ASE-16_0/install # su sybwen
mo ASE-16_0/install> cd /abaptest/soft/newase/ASE_Suite
mo newase/ASE_Suite> ./setup.bin



然后根据情况, 在命令行下作选择。。直到安装到步骤Update SAP ASE 报错:


===============================================================================
Update SAP ASE
--------------


----------------------------------------
Updating SAP ASE 'WEN'
----------------------------------------
Updating SAP Adaptive Server Enterprise 'WEN'...
Start SAP Adaptive Server Enterprise ...
SAP Adaptive Server Enterprise failed to start.
Updating SAP Adaptive Server Enterprise failed.
Exit status = 4
The installer could not update SAP ASE 'WEN'.  Correct the errors described in
output file '/sybase/WEN/log/updatease.out', then run
'/sybase/WEN/ASE-16_0/bin/updatease -D/sybase/WEN -SWEN'.
Failed to Update SAP ASE



然后打开数据库日志(/sybase/WEN/log/updatease.out  里面没有什么信息,查看数据库日志如下),查看错误:

/sybase/WEN/ASE-16_0/install # vi WEN.log



00:0000:00000:00000:2015/07/09 08:58:37.65 kernel  SySAM: Using licenses from: /sybase/WEN/SYSAM-2_0/licenses/ASE_160SP02_Beta.lic:/sybase/WEN/SYSAM-2_0/licenses/Nightly.lic
00:0000:00000:00000:2015/07/09 08:58:37.67 kernel  SySAM: Checked out license for 20 ASE_CORE (2015.0930/30-sep-2015/0127 239B 9CAE 70DD) will expire Thu 01 Oct 2015 12:00:00 AM UTC.
00:0000:00000:00000:2015/07/09 08:58:37.67 kernel  Error: 131274, Severity: 17, State: 1
00:0000:00000:00000:2015/07/09 08:58:37.67 kernel  SySAM: WARNING: ASE will shutdown on Thu 01 Oct 2015 12:00:00 AM UTC, unless a suitable ASE_CORE license is obtained before that date.
00:0000:00000:00000:2015/07/09 08:58:37.67 kernel  This product is licensed to: Evaluation License. No Commercial or Production use permitted.
00:0000:00000:00000:2015/07/09 08:58:37.67 kernel  Checked out license ASE_CORE
00:0000:00000:00000:2015/07/09 08:58:37.67 kernel  Adaptive Server Enterprise (Enterprise Edition)
00:0000:00000:00000:2015/07/09 08:58:37.68 kernel  Using config area from primary master device.
00:0000:00000:00000:2015/07/09 08:58:37.68 server  Configuration Error: Configuration file, '/sybase/WEN/ASE-16_0/WEN.cfg', does not exist.



主要有两个错误:


一个 是关于license的

  解决办法参见:http://blog.csdn.net/wengyupeng/article/details/46804245


一个Configuration file  WEN.cfg, does not exist.  是因为权限导致的,  当前用户是sybwen  WEN.cfg文件是root权限. 

 解决办法:用root 账号Login去执行命令,如下


mo: ASE-16_0/install> exit

mo:/sybase/WEN/ASE-16_0/install #  /sybase/WEN/ASE-16_0/bin/updatease -D/sybase/WEN -SWEN
ASE Password:
Updating SAP Adaptive Server Enterprise 'WEN'...
Start SAP Adaptive Server Enterprise ...
SAP Adaptive Server Enterprise has been started.
Unable to login to server 'WEN'. Please check if the specified login password
is correct.
Updating SAP Adaptive Server Enterprise failed.


可以看到 ASE 已经启动,只是登录失败。

mo:/sybase/WEN/ASE-16_0/install # isql64 -Usapsso  -SWEN -X

输入正确的密码后,可以登录成功。



4、 Execute Sybase installation scripts.



The script must be executed with login "sa". As the "sa" login is usually locked, you may first need to unlock the "sa" login.

1> sp_locklogin 'sa', 'unlock'
2> go

Account unlocked.



a、Run the scripts:


mo:/sybase/WEN/ASE-16_0/install # su sybwen
mo:ASE-16_0/install> cd ..
mo:WEN/ASE-16_0> cd scripts

isql64 -Usa -SWEN -iinstallmaster -X -o/sybase/WEN/ASE-16_0/install/runscript.log
isql64 -Usa -SWEN -iinstallcommit -X -o/sybase/WEN/ASE-16_0/install/runscript.log
isql64 -Usa -SWEN -iinstmsgs.ebf -X -o/sybase/WEN/ASE-16_0/install/runscript.log
isql64 -Usa -SWEN -iinstalljsdb -X -o/sybase/WEN/ASE-16_0/install/runscript.log



b 、Restart the job scheduler

mo:ASE-16_0/scripts> isql64 -Usa -SWEN  -X
1> sp_configure "enable job scheduler", 1
2> go

1> exec sybmgmtdb..sp_js_wakeup "start_js", 1
2> go




C 、Run the syb_update_db.sql script.  


 see SAP Note 1602547, also you can copy the script in the followin link https://websmp206.sap-ag.de/~sapidb/012006153200000646122012E/syb_update_db.txt            



1> exit
mo-1333b8cb7 ASE-16_0/scripts> vi syb_update_db.sql


copy https://websmp206.sap-ag.de/~sapidb/012006153200000646122012E/syb_update_db.txt    里面的脚本到syb_update_db.sql

执行(因为ASE是64位,所以用isql64 ,用isql 去执行这个会报一个错):


isql64 -Usa -SWEN -w999 -i syb_update_db.sql -X -o /sybase/WEN/ASE-16_0/install/syb_update_db.log


5、Verify the database version and start Sap



isql64 -Usa -SWEN -X
 1> select @@version
 2> go
 1> select @@sbssav
 2> go 
 1> exit


mo:/sybase/WEN/ASE-16_0/install # su wenadm
mo:wenadm 52> startsap


 三、参考


Update Sybase ASE 15.7 database server https://wiki.wdf.sap.corp/wiki//pages/viewpage.action?pageId=1151038597


This document is based in the SAP Note 1599814 https://service.sap.com/sap/support/notes/1599814  






目录 Adaptive Server Enterprise 概述..........................................1 版本概述.........................................................................1 确定当前版本.........................................................1 Adaptive Server 的可用选件...........................................2 服务器组件说明和目录布局.............................................2 用于管理 Adaptive Server Enterprise 的工具.................4 PC-Client 产品说明和目录布局.......................................5 单独安装的 PC-Client 产品....................................6 系统要求..................................................................................7 内存要求.........................................................................8 准备安装 Adaptive Server ......................................................9 调整操作系统的共享内存参数.......................................10 安装和升级过程中在数据库中管理 Java .......................11 Adaptive Server 安装...........................................................13 在 GUI 模式下安装 Adaptive Server .............................13 在 GUI 模式中最低限度地配置 Adaptive Server ...........15 为无人值守的 Adaptive Server 安装创建响应文件........18 从命令行安装 Adaptive Server ......................................19 在无人值守、无提示模式下安装 Adaptive Server .........19 安装程序从Adaptive Server 12.5.4 到 Adaptive Server 15.7 发生了变化.......................................................20 在现有 15.x Adaptive Server 上安装 15.7 版.......................23 确定 Adaptive Server 的版本........................................23 备份 Adaptive Server ....................................................23 使用二进制覆盖文件安装 Adaptive Server ....................24 安装后任务.............................................................................25 检验服务器是否在运行..................................................25 检验服务器连接.............................................................25 PC-Client 安装..............................................................26 客户端的系统要求................................................26 安装客户端...........................................................27
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值