1. Sybase ASE简介
SAP Adaptive Server Enterprise(ASE),原名Sybase ASE,是SAP公司收购Sybase后更名的关系型数据库管理系统。ASE以高性能事务处理著称,广泛应用于金融、电信、证券等行业的关键业务系统。ASE支持大规模并发用户、高性能OLTP处理和强大的安全特性。更多学习教程www.fgedu.net.cn
Sybase ASE的主要特点包括:高性能OLTP处理、大规模并发支持、强大的安全特性、高可用集群、跨平台支持、存储过程和触发器、行级锁和页级锁。
2. Sybase ASE版本说明
SAP ASE提供多个版本系列,用户可根据需求选择:
当前版本
SAP ASE 16.0:最新版本
SAP ASE 16.0 for Business Suite:针对SAP Business Suite优化
历史版本
SAP ASE 15.7:稳定版本
Sybase ASE 15.5:扩展支持可用
Sybase ASE 15.0:已停止支持
版本类型
Enterprise Edition:企业版,完整功能
Small Business Edition:中小企业版
Developer Edition:开发版,免费使用
支持的平台
Linux:RHEL、SUSE等
Unix:AIX、Solaris、HP-UX
Windows:Windows Server
3. 官方下载方式
SAP ASE需要SAP账户和有效授权才能下载。学习交流加群风哥微信: itpux-com
官方下载地址
SAP Software Download Center:https://support.sap.com/software-downloads.html
SAP ONE Support Launchpad:https://support.sap.com/
下载步骤
步骤2:进入Software Download Center
步骤3:搜索”SAP Adaptive Server Enterprise”
步骤4:选择所需版本和平台
步骤5:下载安装文件
# 导航路径
Software Downloads -> Database and Database Patches -> SAP Adaptive Server Enterprise
4. SAP下载中心
SAP Software Download Center提供ASE软件和补丁下载。from:www.itpux.com
下载ASE软件
1. 登录SAP ONE Support Launchpad
2. 点击”Software Downloads”
3. 选择”Database and Database Patches”
4. 选择”SAP ASE for Business Suite”
5. 选择操作系统平台
6. 下载ASE软件和客户端
# 可下载内容
– SAP ASE 16.0 Database Software
– SAP ASE 16.0 DBCLIENT
– SAP ASE 16.0 SDK
– SAP ASE 16.0 Patches
下载补丁
1. Software Downloads -> Database and Database Patches
2. SAP ASE for Business Suite -> Database Patches
3. 选择版本(如SAP ASE 16.0)
4. 选择操作系统
5. 下载最新补丁
# 补丁命名规则
EBFxxxxxx:Emergency Bug Fix
CRxxxxxx:Change Request
5. 安装介质说明
SAP ASE提供多种安装介质,用户可根据实际需求选择。学习交流加群风哥QQ113257174
安装包类型
TAR包:Linux/Unix通用安装包
ISO镜像:包含完整安装介质
Windows安装包:Windows平台专用
安装步骤
$ tar -xvf ase160_linux_x86_64.tar
# 输出示例如下:
ase160/
ase160/setup.bin
ase160/install/
ase160/doc/
…
# 创建sybase用户
# groupadd sybase
# useradd -g sybase sybase
# 运行安装程序
$ ./setup.bin
# 输出示例如下:
Preparing to install…
Extracting the JRE from the installer archive…
Launching installer…
===============================================================================
SAP Adaptive Server Enterprise 16.0
===============================================================================
Introduction
————
This installer will guide you through the installation of SAP Adaptive Server Enterprise 16.0.
PRESS ENTER TO CONTINUE:
# 选择安装目录
Choose Install Folder
———————
Where would you like to install?
[Default: /opt/sap/ase160]
# 选择安装类型
Choose Install Set
——————
Please select the Install Set to be installed by this installer.
->1- Typical
2- Custom
3- Server only
# 配置服务器
Configure New Server
——————–
Do you want to configure a new server?
->1- Yes
2- No
# 输入服务器名称
Server Name
———–
Enter the name of the server.
[Default: SYBASE]
# 输入端口号
Port Number
———–
Enter the port number for the server.
[Default: 5000]
# 完成安装
Installation Complete
———————
Congratulations. SAP Adaptive Server Enterprise 16.0 has been successfully installed to:
/opt/sap/ase160
PRESS ENTER TO EXIT THE INSTALLER:
6. 数据库配置方法
SAP ASE安装后需要进行基本配置,以下是常用配置方法。更多学习教程公众号风哥教程itpux_com
环境变量配置
$ cat >> ~/.bash_profile << EOF export SYBASE=/opt/sap/ase160 export SYBASE_ASE=ASE-16_0 export SYBASE_OCS=OCS-16_0 export PATH=$SYBASE/$SYBASE_ASE/bin:$SYBASE/$SYBASE_OCS/bin:$PATH export LD_LIBRARY_PATH=$SYBASE/$SYBASE_ASE/lib:$SYBASE/$SYBASE_OCS/lib:$LD_LIBRARY_PATH export DSQUERY=SYBASE EOF # 使环境变量生效 $ source ~/.bash_profile # 查看环境变量 $ echo $SYBASE # 输出示例如下: /opt/sap/ase160
启动数据库
$ startserver -f $SYBASE/$SYBASE_ASE/install/RUN_SYBASE
# 输出示例如下:
Starting server…
Server started successfully.
# 查看服务器状态
$ showserver
# 输出示例如下:
USER PID %CPU %MEM SZ RSS TT S STARTED TIME COMMAND
sybase 12345 0.5 2.0 512000 512000 ? S 10:30:00 00:00:05 /opt/sap/ase160/ASE-16_0/bin/dataserver -d/dev/master -sSYBASE
# 连接数据库
$ isql -Usa -S SYBASE
# 输出示例如下:
Password:
1>
基本配置
$ isql -Usa -S SYBASE
# 输出示例如下:
Password:
1>
# 修改sa密码
1> sp_password NULL, “new_password”, sa
2> go
# 输出示例如下:
Password correctly set.
(return status = 0)
# 查看服务器版本
1> select @@version
2> go
# 输出示例如下:
————————————————–
Adaptive Server Enterprise/16.0/EBFxxxx/P/Linux/…
(1 row affected)
# 查看数据库
1> sp_helpdb
2> go
# 输出示例如下:
name db_size owner dbid created status
——— ——– ——— —- ———— ——————–
master 100.0 MB sa 1 Jan 01, 2026 mixed log and data
model 2.0 MB sa 3 Jan 01, 2026 mixed log and data
sybsystemprocs 200.0 MB sa 4 Jan 01, 2026 mixed log and data
tempdb 2.0 MB sa 2 Jan 01, 2026 mixed log and data
(4 rows affected)
(return status = 0)
# 创建新数据库
1> create database fgedb on master = “100M” log on master = “50M”
2> go
# 输出示例如下:
CREATE DATABASE: allocating 51200 pages on disk ‘master’
CREATE DATABASE: allocating 25600 pages on disk ‘master’
Database ‘fgedb’ is now online.
7. 生产环境建议
在生产环境中使用SAP ASE时,需要考虑以下因素:
内存配置建议
1> sp_configure “total memory”, 524288
2> go
# 输出示例如下:
Configuration option changed. Since the option is static, Adaptive Server must be rebooted in order for the change to take effect.
(return status = 0)
# 配置缓存
1> sp_cacheconfig “default data cache”, “512M”
2> go
# 输出示例如下:
Configuration option changed. Since the option is static, Adaptive Server must be rebooted in order for the change to take effect.
(return status = 0)
# 查看配置
1> sp_configure “total memory”
2> go
# 输出示例如下:
Parameter Name Config Value Run Value
—————————— ———— ———
total memory 524288 524288
(1 row affected)
(return status = 0)
高可用配置
1> sp_configure “enable HA”, 1
2> go
# 输出示例如下:
Configuration option changed. Since the option is static, Adaptive Server must be rebooted in order for the change to take effect.
(return status = 0)
# 配置伙伴服务器
1> sp_companion “primary_server”, configure, “primary_server”, “secondary_server”
2> go
# 查看HA状态
1> sp_companion
2> go
# 输出示例如下:
Companion Server Name Mode Status
———————- ——— ———
secondary_server symmetric normal
(1 row affected)
(return status = 0)
8. 迁移方案
从其他数据库迁移到SAP ASE或升级版本需要注意以下事项:
– SAP SQL Anywhere Migration Tool
– Sybase Central Migration Wizard
– bcp工具(批量数据导入导出)
# 从Oracle迁移
1. 使用SAP Migration Tool评估
2. 转换数据类型和SQL语法
3. 迁移数据
4. 验证数据完整性
# 从SQL Server迁移
1. 使用Microsoft SSMA for SAP ASE
2. 转换数据库对象
3. 迁移数据
4. 验证应用程序
# 版本升级
1. 完整备份数据库
2. 安装新版本ASE
3. 使用dump/load迁移数据
4. 验证数据完整性
5. 切换应用连接
本文由风哥教程整理发布,仅用于学习测试使用,转载注明出处:http://www.fgedu.net.cn/10327.html
