以HP 11.0上安装Sybase Adeptive Server 11.9.3为例,说明数据库的安装过程,笔者刚装过,在RS6000上参数设置更简单,以字符终端为例,图形方式更简单!
1、 用SAM修改异步IO的参数asycdsk,OUT->IN;(AIX 为aio available)
2、 用SAM修改共享内存最大值参数shmmax为1.5G(可以为物理内存大小或更大,但是HP Unix11上设置共享内存的值最大为1.75G,大于此值需要打补丁);
3、 Sybase系统将安装在9.98和9.99的内置硬盘上的mount在/home上的文件系统/dev/vg00/lvol5下,该文件系统扩到2G;
4、 用SAM建立新组:Sybase;
5、 用SAM建立新用户:Sybase,属于Sybase组;
7、 #mknod /dev/async C 101 5
#chmod 0660 /dev/async
#chown Sybase::Sybase /dev/async
8、 #mkdir mnt
#mount –F cdfs –o –ro /dev/cdrom /mnt
9、 #su – Sybase
$cat /mnt/install/CAS(显示序列号,抄下做备用);
10、$/mnt/sybload –D,做缺省选择最后输入序列号;
11、修改.profile文件,全文如下:
# @(#) $Revision: 72.2 $
# Default user .profile file (/usr/bin/sh initialization).
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# Set up the search paths:
PATH=$PATH:.
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
SYBASE=/home/Sybase;export SYBASE
PATH=$SYBASE/bin:$PATH:.;export PATH
SHLIB_PATH=$SYBASE/lib;export SHLIB_PATH
12、cp ./init/sample_resource_files/srvbuild/srvbuild.ada*.rs $SYBASE/bin/ase1.rs
cp ./init/sample_resource_files/srvbuild/srvbuild.bac*.rs $SYBASE/bin/back1.rs
(源文件在./init/sample_resource_files/srvbuild下)
13、vi ase1.rs
ase1.rs全文如下:
sybinit.release_directory:/home/Sybase
sybinit.product: sqlsrv
sqlsrv.server_name: HPWG
sqlsrv.new_config: yes
sqlsrv.do_add_server: yes
sqlsrv.network_protocol_list: tcp
sqlsrv.network_hostname_list: hpwg2
sqlsrv.network_port_list: 4100
sqlsrv.master_device_physical_name:/Sybase/sybdev/master.dat
sqlsrv.master_device_size: 60
sqlsrv.master_database_size: 15
sqlsrv.errorlog: /Sybase/errorlog
sqlsrv.do_upgrade: no
sqlsrv.sybsystemprocs_device_physical_name:/Sybase/sybdev/sybprocs.dat
sqlsrv.sybsystemprocs_device_size: 80
sqlsrv.sybsystemprocs_database_size:60
sqlsrv.default_backup_server: SYB_BACKUP
14、$srvbuildres –r ase1.rs
15、拷贝 sqlloc.rs 至 ./bin/locl.rs
修改字符集为iso_1,排序字符集为bin_iso_1。locl.rs 修改后如下:
sybinit.release_directory:/home/Sybase
sqlsrv.server_name: HPWG
sqlsrv.sa_login: sa
sqlsrv.sa_password:
sqlsrv.default_language: USE_DEFAULT
sqlsrv.language_install_list: USE_DEFAULT
sqlsrv.language_remove_list: USE_DEFAULT
sqlsrv.default_characterset: iso_1
sqlsrv.characterset_install_list: USE_DEFAULT
sqlsrv.characterset_remove_list: USE_DEFAULT
sqlsrv.sort_order: bin_iso_1
# An example sqlloc resource file...
# sybinit.release_directory: USE_DEFAULT
# sqlsrv.server_name: PUT_YOUR_SERVER_NAME_HERE
# sqlsrv.sa_login: sa
# sqlsrv.sa_password:
# sqlsrv.default_language: french
# sqlsrv.language_install_list: spanish,german
# sqlsrv.language_remove_list: USE_DEFAULT
# sqlsrv.default_characterset: cp437
# sqlsrv.characterset_install_list: mac,cp850
# sqlsrv.characterset_remove_list: USE_DEFAULT
# sqlsrv.sort_order: dictionary
16、修改back1.rs.
back1.rs全文如下:
sybinit.release_directory:/home/Sybase
sybinit.product: bsrv
bsrv.server_name:SYB_BACKUP
bsrv.do_add_backup_server: yes
bsrv.network_protocol_list: tcp
bsrv.network_hostname_list: hpwg2
bsrv.network_port_list: 4200
bsrv.language: USE_DEFAULT
bsrv.character_set: USE_DEFAULT
bsrv.tape_config_file: USE_DEFAULT
bsrv.errorlog: USE_DEFAULT
17、$svrbuildres –r back1.rs
18、至此可以尝试运行isql:
isql –Usa –P –S HPWG 测试服务器是否成功安装
19、dump database master to “/dev/rmt/0mn” capacity=12000000
测试BACKUP服务器是否成功安装.