目录
1、环境准备
- Linux系统
- Sybase ASE 16介质
- Root权限
2、用户和安装路径准备
- 创建sybase用户和目录:
- adduser sybase
- passwd sybase
- mkdir /opt/sybase(安装路径)
- mkdir /opt/tmp(存放安装包)
- chown -R sybase:sybase /opt/sybase
3、安装过程
- sybase用户登录,安装:
- su - sybase
- cd /opt/sybase/tmp
- ./setup.bin
[root@centos7 opt]# su sybase
[sybase@centos7 opt]$ cd sybase/tmp
[sybase@centos7 ~]$ ll
总用量 66180
drwxrwxrwx. 33 sybase sybase 4096 6月 8 2013 archives
drwxrwxr-x. 2 sybase sybase 6 3月 21 09:37 perl5
-rwxrwxrwx. 1 sybase sybase 17425 6月 21 2013 sample_response.txt
-rwxrwxrwx. 1 sybase sybase 67737608 6月 21 2013 setup.bin
drwxrwxrwx. 3 sybase sybase 63 6月 8 2013 sysam_setup
drwxrwxrwx. 4 sybase sybase 30 6月 8 2013 sysam_utilities
drwxrwxrwx. 2 sybase sybase 4096 6月 8 2013 ThirdPartyLegal
[sybase@centos7 ~]$ ./setup.bin
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
Graphical installers are not supported by the VM. The console mode will be used instead...
===============================================================================
Choose Locale...
----------------
1- English
->2- 简体中文
CHOOSE LOCALE BY NUMBER: 1
===============================================================================
Sybase Adaptive Server Enterprise 套件 (created with InstallAnywhere)
-------------------------------------------------------------------------------
Preparing CONSOLE Mode Installation...
===============================================================================
简介
--
InstallAnywhere 将指导您完成安装 Sybase Adaptive Server Enterprise 套件 15.7 SP101 的过程。
强烈建议您退出所有程序,然后再继续执行此安装。
响应每个提示以继续执行下一安装步骤。 如果要在上一屏幕中更改某些内容,请按 '上一步'。
可随时按 '退出' 以取消此安装。
请按 <ENTER> 键继续:
===============================================================================
选择安装文件夹
-------
您希望安装到什么位置?
缺省安装文件夹:/opt/sybase
输入一个绝对路径,或按 <ENTER> 键以接受缺省路径:
安装文件夹为:/opt/sybase
是否正确? (Y/N): y
===============================================================================
选择安装集
-----
请选择将由本安装程序安装的“安装集”。
->1- 典型
2- 完全
3- 定制...
输入“安装集”的号码,或按 <ENTER> 键以接受缺省值: 1
===============================================================================
软件许可证类型选择
---------
您要做什么?
->1- 安装 Sybase Adaptive Server Enterprise 套件 的许可副本
2- 安装免费的 Sybase Adaptive Server Enterprise 套件 Developer Edition
3- 安装 Sybase Adaptive Server Enterprise 套件 Express Edition
4- 评估 Sybase Adaptive Server Enterprise 套件
输入以上选项之一: 2
===============================================================================
最终用户许可协议
--------
1) 所有地区
请输入与您的安装地点对应的数字。 (1-1) (DEFAULT: 1): 1
IMPORTANT - READ CAREFULLY BEFORE USING THE ACCOMPANYING
SOFTWARE
SYBASE(R) ADAPTIVE SERVER(R) ENTERPRISE
DEVELOPER'S EDITION v15.5.x
LICENSE AGREEMENT
NOTICE TO USER: BY INSTALLING OR USING THIS SOFTWARE YOU
ACCEPT ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT.
PLEASE READ IT CAREFULLY.
THE FOLLOWING TERMS AND CONDITIONS ("AGREEMENT") SHALL
GOVERN YOUR INSTALLATION AND USE OF THE ACCOMPANYING
ADAPTIVE SERVER ENTERPRISE DEVELOPER'S EDITION v15.5.x
SOFTWARE PROGRAM, DOCUMENTATION AND RELATED EXPLANATORY
MATERIALS (THE "PROGRAM"). BY INSTALLING AND USING THE
PROGRAM YOU AGREE TO ABIDE BY THE TERMS AND CONDITIONS OF
THIS AGREEMENT. IF YOU DO NOT ACCEPT OR AGREE WITH THESE
TERMS, YOU MAY NOT INSTALL OR USE THE PROGRAM.
YOU ARE REQUIRED TO ACCEPT THE TERMS OF THE AGREEMENT BEFORE
按 Enter 键可阅读协议文本 [键入 'back' 并按 Enter 键可跳过协议文本] :
YOU CONTINUE TO INSTALL THE PROGRAMS. YOU INDICATE YOUR
ACCEPTANCE OF THIS AGREEMENT BY CLICKING "I ACCEPT" BELOW.
UPON YOUR ACCEPTANCE OF THIS AGREEMENT, SYBASE GRANTS YOU A
LIMITED, NON-EXCLUSIVE LICENSE TO USE THE PROGRAM AS
FOLLOWS:
1. USE OF PROGRAM. You may install and use the Program
internally in your organization solely for development
purposes. Except as otherwise specifically authorized, this
Program is limited to use on one (1) CPU by a maximum of
twenty-five (25) individual connection(s), and the
components of this Program may not be unbundled and used by
different or additional CPUs. Deployment licenses for any
purpose (including, without limitation, usage in a general
production environment or on a webserver) must be purchased
from Sybase before you deploy any production components
contained in this Program. The Program may not be
transferred, sold, assigned, sublicensed or otherwise
conveyed (whether by operation of law or otherwise) to
按 Enter 键可阅读协议文本 [键入 'back' 并按 Enter 键可跳过协议文本] : back
我同意适用于指定的安装地点的 Sybase 许可证的条款。 (Y/N): y
===============================================================================
预安装摘要
-----
请在继续操作之前查看以下内容:
产品名:
Sybase Adaptive Server Enterprise 套件
安装文件夹:
/home/sybase
产品功能部件:
Adaptive Server Enterprise,
Open Client,
DB-Library,
jConnect 7.0 for JDBC,
Interactive SQL,
QPTune,
SySAM 许可证实用程序,
Remote Command and Control Agent for Adaptive Server,
ASE ODBC 驱动程序,
用于 Python 的 ASE 扩展模块,
用于 PERL 的 ASE 数据库驱动程序,
用于 PHP 的 ASE 扩展模块,
Sybase Control Center
磁盘空间信息(用于安装目标):
所需空间: 1,627,442,492 字节
可用空间: 59,284,746,240 字节
请按 <ENTER> 键继续:
===============================================================================
准备安装
----
InstallAnywhere 现已准备好将 Sybase Adaptive Server Enterprise 套件 安装到系统上的以下位置:
/opt/sybase
按 <ENTER> 键进行安装:
===============================================================================
正在安装...
-------
[==================|==================|==================|==================]
[------------------|-------------
等待安装
===============================================================================
准备安装
----
InstallAnywhere 现已准备好将 Sybase Adaptive Server Enterprise 套件 安装到系统上的以下位置:
/opt/sybase
按 <ENTER> 键进行安装:
===============================================================================
正在安装...
-------
[==================|==================|==================|==================]
[------------------|------------------|------------------|------------------]
===============================================================================
配置新服务器
------
Sybase Adaptive Server Enterprise 套件 包含需要配置的产品。 如果选择在此屏幕上配置产品,则可以为每个产品指定自定义值。
如果不选择现在配置产品,则可以以后进行配置。
请取消选择不想现在配置的产品:
[X] 1 - 配置新的 Adaptive Server
[X] 2 - 配置新的 Backup Server
[X] 3 - 配置新的 XP Server
[X] 4 - 配置新的 Job Scheduler
[X] 5 - 启用自我管理
[X] 6 - 配置 Sybase Control Center
若要选择一个项目,请输入其编号,或在完成后输入 0: (DEFAULT: 0): 0
===============================================================================
配置新的 Adaptive Server
--------------------
Adaptive Server 名称 (DEFAULT: LOCALHOST):
管理员的口令:
Confirm System Administrator's Password:
端口号 (DEFAULT: 5000):
错误日志 (DEFAULT: /opt/sybase/ASE-15_0/install/LOCALHOST.log):
应用程序类型
->1- 混合(OLTP/DSS)
2- 联机事务处理(OLTP)
3- 决策支持系统(DSS)
选择一种应用程序类型: 1
页大小
1- 2k
->2- 4k
3- 8k
4- 16k
Select a page size: 2
警告: 您已选择 4k 作为 Adaptive Server
的逻辑页大小。 如果您计划从另一个数据库装载转储,
请确保此逻辑页大小与源数据库
的大小相匹配。 以前的 Adaptive Server 版本中的
缺省逻辑页大小为 2KB。
请按 <ENTER> 键继续:
->1- us_english
缺省语言:
1- cp437 : Code Page 437, (United States) character set.
2- cp850 : Code Page 850 (Multilingual) character set.
3- iso15 : ISO_8859-15:1998, Latin9, Western Europe
->4- iso_1 : ISO 8859-1 (Latin-1) - Western European 8-bit character set.
5- mac : Macintosh default character set for Western European locales.
6- roman8 : Hewlett-Packard proprietary character set for European locales.
7- roman9 : Hewlett-Packard proprietary character set for European locales.
8- utf8 : Unicode 3.1 UTF-8 Character Set
缺省字符集: 8
->1- altdict : Alternate (lower-case first) dictionary ordering
2- altnoacc : Alternate (lower-case first) accent-insensitive dictionary
ordering
3- altnocsp : Alternate (lower-case first) case-insensitive dictionary ordering
with order-by preference
4- big5bin : Ordering that matches the binary ordering of the big5 character
set
5- bin_utf8 : Binary ordering, for the ISO 10646-1, UTF-8 multibyte encoding
character set (utf8).
6- binary : Binary ordering for UTF-16
7- cp932bin : Ordering that matches the binary ordering of the cp932 character
set
8- cyrdict : Common cyrillic dictionary ordering
9- cyrnocs : Common cyrillic case-insensitive dictionary ordering
10- defaultml : Default Unicode multi-lingual ordering
11- dict : General-purpose dictionary ordering
12- dynix : Chinese phonetic ordering
13- elldict : Greek dictionary ordering
14- espdict : Spanish dictionary ordering
15- espnoac : Spanish accent-insenitive dictionary ordering
16- espnocs : Spanish case-insensitive dictionary ordering
17- eucjisbn : Ordering that matches the binary ordering of the EUCJIS
character set
18- euckscbn : Ordering that matches the binary ordering of the EUCKSC
character set
19- gb2312bn : Ordering that matches the binary ordering of the gb2312
character set
20- gbpinyin : Chinese phonetic ordering
21- gbpinyinnocs : Chinese phonetic ordering with no case preference
22- hundict : Hungarian dictionary ordering
23- hunnoac : Hungarian accent-insensitive dictionary ordering
24- hunnocs : Hungarian case-insensitive dictionary ordering
25- iso14651 : Ordering as per ISO14651 standard
26- noaccent : General-purpose accent-insensitive dictionary ordering
27- nocase : General-purpose case-insensitive dictionary ordering
28- nocasep : General-purpose case-insensitive dictionary ordering with
order-by preference
29- rusdict : Russian dictionary ordering
30- rusnocs : Russian case-insensitive dictionary ordering
31- scandict : Scandinavian dictionary ordering
32- scannocp : Scandinavian case-insensitive dictionary ordering with order-by
preference
33- sjisbin : Ordering that matches the binary ordering of the SJIS character
set
34- thaidict : Thai dictionary ordering
35- turdict : Turkish dictionary ordering
36- turknoac : Turkish accent-insensitive dictionary ordering
37- turknocs : Turkish case-insensitive dictionary ordering
38- utf8_nocase : Case insensitive ordering, for use with any utf8-based 8-bit
environment.
39- utf8bin : Ordering for UTF-16 that matches the binary ordering of UTF-8
缺省排序顺序:
优化 ASE 配置
->1- 否
2- 是
是否要优化 ASE 配置?:
创建样本数据库
->1- 否
2- 是
是否要创建样本数据库?:
主设备 (DEFAULT: /opt/sybase/data/master.dat):
主设备大小(MB) (DEFAULT: 60):
主数据库大小(MB) (DEFAULT: 26):
系统过程设备 (DEFAULT: /opt/sybase/data/sysprocs.dat):
系统过程设备大小(MB) (DEFAULT: 172):
系统过程数据库大小(MB) (DEFAULT: 172):
系统设备 (DEFAULT: /opt/sybase/data/sybsysdb.dat):
系统设备大小(MB) (DEFAULT: 6):
系统数据库大小(MB) (DEFAULT: 6):
Tempdb 设备 (DEFAULT: /opt/sybase/data/tempdbdev.dat):
Tempdb 设备大小(MB) (DEFAULT: 100):
Tempdb 数据库大小(MB) (DEFAULT: 100):
启用 PCI
->1- 否
2- 是
是否要配置 PCI/JAVA?:
===============================================================================
配置新的 Backup Server
------------------
Backup Server 名称 (DEFAULT: LOCALHOST_BS):
端口号 (DEFAULT: 5001):
错误日志 (DEFAULT: /opt/sybase/ASE-15_0/install/LOCALHOST_BS.log):
===============================================================================
配置新的 XP Server
--------------
端口号 (DEFAULT: 5002):
错误日志 (DEFAULT: /opt/sybase/ASE-15_0/install/LOCALHOST_XP.log):
===============================================================================
配置新的 Job Scheduler
------------------
js_server_name (DEFAULT: LOCALHOST_JSAGENT):
端口号 (DEFAULT: 4900):
管理设备 (DEFAULT: /opt/sybase/data/sybmgmtdb.dat):
管理设备大小(MB) (DEFAULT: 75):
管理数据库大小(MB) (DEFAULT: 75):
===============================================================================
配置自我管理
------
自我管理用户名 (DEFAULT: sa):
===============================================================================
Sybase Control Center - 配置自我发现服务适配器
-----------------------------------
发现服务使客户端应用程序能够在企业环境中查找 Sybase 资源,而无需定义本地接口文件。 Sybase Control Center
目前支持两种发现方法: JINI 和 UDP。
JINI 需要专用 JINI 服务器提供发现服务,并能在整个企业范围内提供这些服务。 UDP 不需要专用服务器,但仅限于在本地子网中执行发现服务。
是否要配置 UDP 适配器? (Y/N): n
是否要配置 JINI 适配器? (Y/N): n
您没有选择任何适配器。 您需要选择至少一个适配器。
是否要配置 UDP 适配器? (Y/N): y
是否要配置 JINI 适配器? (Y/N): n
===============================================================================
Sybase Control Center - 配置 RMI 端口
---------------------------------
RMI 服务需要使用未被此系统上的其它应用程序或服务使用的端口。 请接受缺省端口或指定一个未使用的端口。
RMI 端口: [整数 (1025-65535)] (DEFAULT: 9999):
===============================================================================
Sybase Control Center - Configure Administration Passwords
----------------------------------------------------------
Enter passwords for Sybase Control Center administrators.
SCC agent administrator password:
Confirm SCC agent administrator password:
===============================================================================
新服务器配置摘要
--------
Adaptive Server
Adaptive Server 名称 LOCALHOST
端口号 5000
应用程序类型 混合(OLTP/DSS)
创建样本数据库 false
页大小 4k
错误日志 /opt/sybase/ASE-15_0/install/LOCALHOST.log
主设备 /opt/sybase/data/master.dat
主设备大小(MB) 60
主数据库大小(MB) 26
系统过程设备 /opt/sybase/data/sysprocs.dat
系统过程设备大小(MB) 172
系统过程数据库大小(MB) 172
系统设备 /opt/sybase/data/sybsysdb.dat
系统设备大小(MB) 6
系统数据库大小(MB) 6
Tempdb 设备 /opt/sybase/data/tempdbdev.dat
Tempdb 设备大小(MB) 100
Tempdb 数据库大小(MB) 100
缺省语言 us_english
缺省字符集 utf8
缺省排序顺序 altdict
Backup Server
Backup Server 名称 LOCALHOST_BS
端口号 5001
错误日志 /opt/sybase/ASE-15_0/install/LOCALHOST_BS.l
XP Server
XP Server 名称 LOCALHOST_XP
端口号 5002
错误日志 /opt/sybase/ASE-15_0/install/LOCALHOST_XP.l
Job Scheduler
Job Scheduler 代理名称 LOCALHOST_JSAGENT
端口号 4900
管理设备 /opt/sybase/data/sybmgmtdb.dat
管理设备大小(MB) 75
管理数据库大小(MB) 75
自我管理
自我管理用户名 sa
自我管理用户口令 ******
Sybase Control Center - 配置自我发现服务适配器
adaptor UDP
Sybase Control Center - 配置 RMI 端口
RMI 端口 9999
Sybase Control Center - Configure Administration Passwords
SCC agent administrator password ******
是否要继续? (DEFAULT: yes):
===============================================================================
配置新的 Adaptive Server
--------------------
Warning: You have selected '4k' as the logical page size for the Adaptive
Server. If you plan to load dump from another database, make sure this logical
page size matches the size of the source database. The default logical page
size in previous Adaptive Server versions was 2KB.
Building Adaptive Server 'LOCALHOST':
Writing entry into directory services...
Directory services entry complete.
Building master device...
Master device complete.
Writing RUN_LOCALHOST file...
RUN_LOCALHOST file complete.
Starting server...
Set SA password...
SA password is set.
Building sysprocs device and sybsystemprocs database...
sysprocs device and sybsystemprocs database created.
Running installmaster script to install system stored procedures...
installmaster: 10% complete.
installmaster: 20% complete.
installmaster: 30% complete.
installmaster: 40% complete.
installmaster: 50% complete.
installmaster: 60% complete.
installmaster: 70% complete.
installmaster: 80% complete.
installmaster: 90% complete.
installmaster: 100% complete.
installmaster script complete.
Creating two-phase commit database...
Two phase commit database complete.
Extending tempdb database ...
Extending tempdb database complete.
Installing common character sets (Code Page 437, Code Page 850, ISO Latin-1,
Macintosh and HP Roman-8)...
Setting server name in Adaptive Server...
Server name added.
Setting optimization goal...
Setting optimization goal complete.
Server 'LOCALHOST' was successfully created.
===============================================================================
设置 Adaptive Server 缺省语言
-----------------------
Installing character set 'UTF-8' in the Adaptive Server...
Character set 'UTF-8' was successfully installed in the Adaptive Server.
Installing character set 'ISO_8859-15:1998' in the Adaptive Server...
Character set 'ISO_8859-15:1998' was successfully installed in the Adaptive
Server.
Installing character set 'roman9' in the Adaptive Server...
再等待一会儿
Character set 'roman9' was successfully installed in the Adaptive Server.
Making 'UTF-8' the Adaptive Server's default character set...
Making 'Alternate (lower-case first) dictionary ordering' the Adaptive Server's
default sort order...
The Adaptive Server's default character set is now 'UTF-8'.
The Adaptive Server's default sort order is now 'Alternate (lower-case first)
dictionary ordering'.
Done
===============================================================================
配置新的 Backup Server
------------------
Building Backup Server 'LOCALHOST_BS':
Writing entry into directory services...
Directory services entry complete.
Writing RUN_LOCALHOST_BS file...
RUN_LOCALHOST_BS file complete.
Starting server...
Server started.
Server 'LOCALHOST_BS' was successfully created.
===============================================================================
配置新的 XP Server
--------------
Building XP Server 'LOCALHOST_XP':
Writing entry into directory services...
Directory services entry complete.
Setting server name in Adaptive Server...
Server name added.
Server 'LOCALHOST_XP' was successfully created.
'LOCALHOST_XP' will be started when needed by the Adaptive Server.
===============================================================================
配置新的 Job Scheduler
------------------
Building Job Scheduler 'LOCALHOST_JSAGENT':
Writing entry into directory services...
Directory services entry complete.
Installing required script(s) in related Adaptive Server...
installjsdb: 10% complete.
installjsdb: 20% complete.
installjsdb: 30% complete.
installjsdb: 40% complete.
installjsdb: 50% complete.
installjsdb: 60% complete.
installjsdb: 70% complete.
installjsdb: 80% complete.
installjsdb: 90% complete.
installjsdb: 100% complete.
jst_get_object_quoted_name: 10% complete.
jst_get_object_quoted_name: 20% complete.
jst_get_object_quoted_name: 30% complete.
jst_get_object_quoted_name: 100% complete.
jst_check_reorg_space: 10% complete.
jst_check_reorg_space: 20% complete.
jst_check_reorg_space: 30% complete.
jst_check_reorg_space: 100% complete.
jst_database_names: 10% complete.
jst_database_names: 20% complete.
jst_database_names: 30% complete.
jst_database_names: 100% complete.
jst_get_index_names: 10% complete.
jst_get_index_names: 20% complete.
jst_get_index_names: 30% complete.
jst_get_index_names: 100% complete.
jst_get_datachange: 10% complete.
jst_get_datachange: 20% complete.
jst_get_datachange: 100% complete.
jst_get_datestr: 10% complete.
jst_get_datestr: 20% complete.
jst_get_datestr: 30% complete.
jst_get_datestr: 100% complete.
jst_get_freespace: 10% complete.
jst_get_freespace: 20% complete.
jst_get_freespace: 100% complete.
jst_get_mdcache_type_config: 10% complete.
jst_get_mdcache_type_config: 20% complete.
jst_get_mdcache_type_config: 30% complete.
jst_get_mdcache_type_config: 40% complete.
jst_get_mdcache_type_config: 100% complete.
jst_get_usedspace: 10% complete.
jst_get_usedspace: 20% complete.
jst_get_usedspace: 100% complete.
jst_reconf_mdcache_type: 10% complete.
jst_reconf_mdcache_type: 20% complete.
jst_reconf_mdcache_type: 30% complete.
jst_reconf_mdcache_type: 100% complete.
jst_version_num: 10% complete.
jst_version_num: 20% complete.
jst_version_num: 30% complete.
jst_version_num: 100% complete.
jst_valid_ase_version: 10% complete.
jst_valid_ase_version: 20% complete.
jst_valid_ase_version: 30% complete.
jst_valid_ase_version: 40% complete.
jst_valid_ase_version: 50% complete.
jst_valid_ase_version: 100% complete.
jst_delete_statistics: 10% complete.
jst_delete_statistics: 20% complete.
jst_delete_statistics: 30% complete.
jst_delete_statistics: 100% complete.
jst_dump_databases: 10% complete.
jst_dump_databases: 20% complete.
jst_dump_databases: 30% complete.
jst_dump_databases: 40% complete.
jst_dump_databases: 50% complete.
jst_dump_databases: 60% complete.
jst_dump_databases: 100% complete.
jst_dump_logs: 10% complete.
jst_dump_logs: 20% complete.
jst_dump_logs: 30% complete.
jst_dump_logs: 40% complete.
jst_dump_logs: 50% complete.
jst_dump_logs: 60% complete.
jst_dump_logs: 70% complete.
jst_dump_logs: 100% complete.
jst_reclaim_index_space: 10% complete.
jst_reclaim_index_space: 20% complete.
jst_reclaim_index_space: 30% complete.
jst_reclaim_index_space: 100% complete.
jst_reclaim_table_space: 10% complete.
jst_reclaim_table_space: 20% complete.
jst_reclaim_table_space: 30% complete.
jst_reclaim_table_space: 100% complete.
jst_reconf_locks: 10% complete.
jst_reconf_locks: 20% complete.
jst_reconf_locks: 100% complete.
jst_reconf_mdcache: 10% complete.
jst_reconf_mdcache: 20% complete.
jst_reconf_mdcache: 100% complete.
jst_reconf_usr_conns: 10% complete.
jst_reconf_usr_conns: 20% complete.
jst_reconf_usr_conns: 30% complete.
jst_reconf_usr_conns: 100% complete.
jst_reorg_rebuild_indexes: 10% complete.
jst_reorg_rebuild_indexes: 20% complete.
jst_reorg_rebuild_indexes: 100% complete.
jst_reorg_rebuild_tables: 10% complete.
jst_reorg_rebuild_tables: 20% complete.
jst_reorg_rebuild_tables: 30% complete.
jst_reorg_rebuild_tables: 100% complete.
jst_update_statistics: 10% complete.
jst_update_statistics: 20% complete.
jst_update_statistics: 30% complete.
jst_update_statistics: 40% complete.
jst_update_statistics: 100% complete.
jst_svr_update_statistics: 10% complete.
jst_svr_update_statistics: 20% complete.
jst_svr_update_statistics: 30% complete.
jst_svr_update_statistics: 40% complete.
jst_svr_update_statistics: 50% complete.
jst_svr_update_statistics: 100% complete.
Installing SybBackupDbToDiskTemplate.xml in the Adaptive Server...
Task failed
----------------------------------------------------------------
W E L C O M E T O
TemplateImport Utility [version 1.11] Mar 21, 2022 11:38:50 AM
Runtime Switches:
TemplateImport Properties:
Server_Machine_Name: localhost
Server_Name: LOCALHOST
Server_Port: 5000
Template_Description_Override: Dumps specified database(s).
Template_Group_Path_Override: Backups
Template_Language: en
Template_Name_Override: Sybase Backup Database to Disk Template
Template_Version_Override: 3.1
Template_XML_File: /opt/sybase/ASE-15_0/jobscheduler/Templates
/xml/en/SybBackupDbToDiskTemplate.xml
----------------------------------------------------------------
Reading XML File: /opt/sybase/ASE-15_0/jobscheduler/Templates/xml/en/SybBackupD
bToDiskTemplate.xml
XML File Read Completed Successfully
Creating Initial Template Record
SQLException: JZ006: Caught IOException: java.net.ConnectException: Connection
refused
SQLException during getConnection: java.sql.SQLException: JZ006: Caught
IOException: java.net.ConnectException: Connection refused
Exception : SQLException when trying to connect
SQLException: java.sql.SQLException: JZ006: Caught IOException:
java.net.ConnectException: Connection refused
Exception in thread "main" java.lang.NullPointerException
at com.sybase.util.template.TemplateBase.execUpdate(TemplateBase.java:3174)
at
com.sybase.util.template.TemplateBase.createTemplate(TemplateBase.java:2246)
at
com.sybase.util.template.TemplateImport.importTemplate(TemplateImport.java:425)
at
com.sybase.util.template.TemplateImport.mainRoutine(TemplateImport.java:361)
at com.sybase.util.template.TemplateImport.main(TemplateImport.java:349)
Server 'LOCALHOST_JSAGENT' was not created.
配置新的 Job Scheduler 失败
请按 <ENTER> 键继续:
===============================================================================
安装已完成
-----
4、启动服务
(1)手动
进入sybase安装目录 /opt/sybase/ASE-15_0/install
执行./startserver -f RUN_LINUXI60M -f RUN_LINUXI60M_BS
[sybase@localhost ASE-15_0]$ cd install/
[sybase@localhost install]$ ll
总用量 13160
-rwxr-xr-x. 1 sybase sybase 2600128 5月 25 2013 auditinit
-rwxr-xr-x. 1 sybase sybase 10632165 5月 25 2013 auditinit.sym
-rw-------. 1 sybase sybase 1647 3月 21 11:37 LOCALHOST_BS.log
-rw-r-----. 1 sybase sybase 180691 3月 21 11:38 LOCALHOST.log
-rwx------. 1 sybase sybase 500 3月 21 11:34 RUN_LOCALHOST
-rwx------. 1 sybase sybase 426 3月 21 11:37 RUN_LOCALHOST_BS
-rwxr-xr-x. 1 sybase sybase 4192 11月 12 2008 setperm_all
-rwxr-xr-x. 1 sybase sybase 825 6月 7 2013 showserver
-rwxr-xr-x. 1 sybase sybase 15722 6月 7 2013 startserver
-rwxr-xr-x. 1 sybase sybase 1715 6月 7 2013 sybhauser
drwxrwxr-x. 3 sybase sybase 19 3月 21 11:26 veritas
[sybase@localhost install]$ ./startserver -f RUN_LOCALHOST -f RUN_LOCALHOST_BS
/opt/sybase/ASE-15_0/bin/dataserver: error while loading shared libraries: libsbgse2.so: cannot open shared object file: No such file or directory
[sybase@localhost install]$ Backup Server/15.7 SP101/EBF 21341/P/Linux AMD Opteron/Enterprise Linux/ase157sp101/4236/64-bit/OPT/Thu Jun 6 09:42:50 2013
Confidential property of Sybase, Inc.
Copyright 1987, 2013
Sybase, Inc. All rights reserved.
Unpublished rights reserved under U.S. copyright laws.
This software contains confidential and trade secret information of Sybase,
Inc. Use, duplication or disclosure of the software and documentation by
the U.S. Government is subject to restrictions set forth in a license
agreement between the Government and Sybase, Inc. or other written
agreement specifying the Government's rights to use the software and any
applicable FAR provisions, for example, FAR 52.227-19.
Sybase, Inc. One Sybase Drive, Dublin, CA 94568, USA
No server log file open; Using stderr for log.
Mar 21 11:42:35 2022: Backup Server: 1.56.2.1: The SYBASE environment variable must be set.
(2)自动启动服务
新建一个XX.sh文件,将起服务的操作放到文件里面;每次需要启动服务时直接执行以下该文件即可。
- source /opt/sybase/SYBASE.sh
- cd /opt/sybase/ASE-15_0/install
- ./startserver -f RUN_LOCALHOST -f RUN_LOCALHOST_BS
通过sh XX.sh 执行该文件就可以直接启动服务了。
(3)如何停止服务:
进入sybase安装目录 /opt/sybase/ASE-15_0/install,执行./showserver命令查看sybase服务启动情况。
[sybase@localhost install]$ ./showserver
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
0 S sybase 11324 11323 0 80 0 - 10566 poll_s 11:37 pts/1 00:00:01 /opt/sybase/ASE-15_0/bin/backupserver -e/opt/sybase/ASE-15_0/install/LOCALHOST_BS.log -N25 -C20 -M/opt/sybase/ASE-15_0/bin/sybmultbuf -SLOCALHOST_BS
0 S sybase 11277 11276 17 80 0 - 155567 futex_ 11:37 ? 00:01:28 /opt/sybase/ASE-15_0/bin/dataserver -sLOCALHOST -d/opt/sybase/data/master.dat -e/opt/sybase/ASE-15_0/install/LOCALHOST.log -c/opt/sybase/ASE-15_0/LOCALHOST.cfg -M/opt/sybase/ASE-15_0
[sybase@localhost install]$
找到对应服务的进程号直接kill掉