sybase部署-创新互联

部署环境:

创新互联公司基于分布式IDC数据中心构建的平台为众多户提供西云机房 四川大带宽租用 成都机柜租用 成都服务器租用。

32位SUSE10.2 linuex(IP地址192.168.117.120),ASE12.5.3

步骤

1.创建服务账户

groupadd sybase

useradd -g sybase sybase

2.创建安装目录

mkdir /opt/sybase

chown sybase.sybase /opt/sybase

接下来所有的操作都是在sybase用户下进行

这里我们用图形化方式做配置,所有设置下环境变量DISPLAY

export DISPLAY=192.168.117.1:0.0   本机的IP地址

3.开始安装ASE

./setup -options-record  /tmp/silentinstall.txt  (加上这个参数可以得到静默安装的参数文件)

sybase部署

sybase部署

sybase部署

sybase部署

这里先不选任何配置项,后面手动配置,因为有参数和环境变量需要修改

sybase部署

至此,ASE的安装完成,接下来我们开始创建server

4.修改相应参数

配置共享内存大小

echo "kernel.shmmax=671088640" >> /etc/sysctl.conf

用root执行/sbin/sysctl -p使配置生效

配置环境变量LD_POINTER_GUARD

echo "LD_POINTER_GUARD=1" >> /home/sybase/.bashrc

cat /opt/sybase/SYBASE.sh >> /home/sybase/.bashrc

echo "DSQUERY=SYBASE" >> /home/sybase/.bashrc

echo "DSLISTEN=SYBASE" >> /home/sybase/.bashrc

source  /home/sybase/.bashrc

export LANG=C

编辑服务器配置文件

vi sqlsrv.rs

sybinit.release_directory: /opt/sybase

sybinit.product: sqlsrv

sqlsrv.server_name: SYBASE

sqlsrv.new_config: yes

sqlsrv.do_add_server: yes

sqlsrv.sa_login: sa

sqlsrv.sa_password:

sqlsrv.default_language: us_english

sqlsrv.default_characterset: utf8

sqlsrv.sort_order: binary

sqlsrv.network_protocol_list: tcp

sqlsrv.network_hostname_list: sybase

sqlsrv.network_port_list: 5000

sqlsrv.server_page_size: 2k

sqlsrv.force_buildmaster: yes

sqlsrv.master_device_physical_name: /opt/sybase/data/master.dat

sqlsrv.master_device_size: 500

sqlsrv.master_database_size: 120

sqlsrv.errorlog: /opt/sybase/ASE-12_5/install/SYBASE.log

sqlsrv.do_upgrade: no

sqlsrv.sybsystemprocs_device_physical_name: /opt/sybase/data/sybsystemprocs.dat

sqlsrv.sybsystemprocs_device_size: 500

sqlsrv.sybsystemprocs_database_size: 120

sqlsrv.sybsystemdb_device_physical_name: /opt/sybase/data/sybsystemdb.dat

sqlsrv.sybsystemdb_device_size: 500

sqlsrv.sybsystemdb_database_size: 200

sqlsrv.default_backup_server: SYBASE_BS

vi bsrv.rs

sybinit.boot_directory:     /opt/sybase

sybinit.release_directory:    /opt/sybase

sybinit.product:         bsrv

bsrv.do_add_backup_server:    yes

bsrv.server_name:        SYBASE_BS

bsrv.errorlog:          /opt/sybase/ASE-12_5/install/SYBASE_BS.log

bsrv.network_port_list:     5001

bsrv.network_hostname_list:   sybase

bsrv.network_protocol_list:   tcp

bsrv.character_set:       utf8

bsrv.language:          us_english

bsrv.tape_config_file:  USE_DEFAULT

bsrv.network_name_alias_list:

bsrv.notes:

bsrv.connect_retry_delay_time:  5

bsrv.connect_retry_count:    5

bsrv.addl_cmdline_parameters:

bsrv.new_config:         yes

bsrv.do_upgrade:         no

sqlsrv.sa_login:         sa

sqlsrv.sa_password:

vi xp.rs

sybinit.release_directory:            /opt/sybase

sybinit.product:                 xp

xp.server_name:                 SYBASE_XP

xp.new_config:                  yes

xp.do_add_xp_server:              yes

xp.do_upgrade:                 no

xp.network_protocol_list:            tcp

xp.network_hostname_list:            sybase

xp.network_port_list:              5002

xp.related_sqlsrvr:               SYBASE

sqlsrv.sa_login:                 sa

sqlsrv.sa_password:

vi msrv.rs

sybinit.release_directory:        /opt/sybase

sybinit.product:             msrv

msrv.server_name:            SYBASE_MS

msrv.new_config:             yes

msrv.do_add_monitor_server:       yes

msrv.do_upgrade:             no

msrv.network_protocol_list:       tcp

msrv.network_hostname_list:       sybase

msrv.network_port_list:         5003

msrv.errorlog:              /opt/sybase/ASE-12_5/install/SYBASE_MS.log

sqlsrv.related_sqlsrvr:         SYBASE

sqlsrv.sa_login:             sa

sqlsrv.sa_password:

5.通过执行程序srvbuild创建相应服务

./srvbuild -r sqlsrv.rs

./srvbuild -r bsrv.rs

./srvbuild -r xp.rs

./srvbuild -r msrv.rs

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


名称栏目:sybase部署-创新互联
文章起源:http://hbruida.cn/article/dpshgi.html