>按钮。
13、出现如图14所示的对话框,开始建立Sybase数据库服务器。
图14
数据库服务器建立完毕出现“srvbuildquestion”对话框,如图15所示:
图15
单击按钮。
14、回到”srvbuild-StatusOutput”对话框,即前一对话框。
单击按钮,出现对话框提示是否要退出,单击按钮退出。
回到“sybsetup”对话框,如图16所示:
图16
单击
按钮退出.
15、正常启动sybase数据库,下面还需手动修改数据库对中文的支持。
方法如下:
用vi(或其他编辑器)修改文件/opt/sybase/locales/locales.dat:
在文件sybase/locales/locales.dat中出现[sun]及[sun_svr4]的段中,删除(或注释掉):
;locale=zh,chinese,eucgb
;locale=zh_CN,chinese,eucgb
;locale=zh_TW,chinese,eucgb
;locale=us_english.utf8,us_english,utf8
各增加一行:
[sun]
locale=zh,us_english,iso_1
[sun_svr4]
locale=zh,us_english,iso_1
如果“locale=zh,us_english,iso_1”一行已存在,删除原设置行,重新输入。
执行以下命令设置Sybase目录访问权限(注意严格按照大小写输入):
#chmod–R+rx/opt/sybase
Sybase数据库安装完毕。
16、验证数据库已经正确安装:
如果要使用命令行启动数据库,需要设定数据库的环境变量。
如果要每个登录用户均能正常启动sybase数据库,需要在/etc/profile中增加环境变量:
#vi/etc/profile
在其中加入:
SYBASE=/opt/sybase(数据库安装路径)
exportSYBASE
DSQUERY=N2000DBServer(主数据库服务器名)
exportDSQUERY
设置完成环境变量后,重启机器:
#sync
#reboot
重新登录系统后,进入sybase安装目录启动数据库服务器:
#cd$SYBASE/install
#./startserver–f./RUN_N2000DBServer(主数据库服务器名)
打开另一个终端控制台:
#cd$SYBASE/bin
#./isql-Usa-P-SN2000DBServer
出现isql语言输入提示符1>
1>sp_helpdb
2>go
查看当前sybase数据库服务器中的数据库情况,初始安装一般包含master、model、sybsystemprocs、tempdb四个数据库。
如果以上均显示正确,则证明sybase数据库安装正确,否则请检查各配置文件:
/etc/profile,/etc/system,.$SYBASE/locales/locales.dat。
附文:
sybload安装Sybase数据库软件方法
如前文所说,Sybase11.9.2的安装文件sybsetup对可用空间的处理范围不够,当Sybase安装目录的磁盘空间太大时,sybsetup安装程序会不能正确识别安装目录的可用空间大小。
这时需要用sybload来进行Sybase软件的安装,详细安装方法如下:
#./sybload–D
会出现提示信息:
SYBLOAD-ProductDistributionProgram
Sybase(c)1996
Currentdirectoryis"/export/sybaseins".
Isthisthecorrectdirectoryforinstallation?
Ifso,pleaseenter'y'or'Y':
n
输入n,不将sybase安装在此缺省目录,会出现提示信息:
Pleasespecifythecorrectinstallationdirectoryhere.
Anullentrywillterminatethisinstallation:
/opt/sybase
输入sybase安装目录,如/opt/Sybase
注意:
这里需要提前创建/opt/Sybase文件夹,否则会提示:
Unabletochangedirectoryto"/opt/sybase".
如果尚未存在/opt/Sybase,需要另外打开一个终端控制台,创建此目录:
#cd/opt
#mkdirsybase
然后会出现提示信息:
Currentdirectoryis"/opt/sybase".
Isthisthecorrectdirectoryforinstallation?
Ifso,pleaseenter'y'or'Y':
y
输入y,确认安装目录。
然后会出现提示信息:
IsthisaLocalorRemoteinstallation,asdefinedinyourInstallationGuide?
PleaseenterLforLocalorRforRemote.
>L
输入L,选择本地安装,然后会出现提示信息:
Pleaseenterthefullnameofthediskfileoftheglobalarchive:
>/export/sybaseins/sybimage
输入安装文件全路径,如/export/sybaseins/sybimage,然后会出现提示信息:
Youspecified/export/sybaseins/sybimageforthemediadevice.Isthiscorrect?
pleaseenter'y'or'Y'tocontinue:
y
输入y,确认安装文件,然后会出现提示信息:
PleaseenteryourCustomerAuthorizationString,lettersonly:
>BYBYBFHABYBKBYGKTMBKBYBYBYHVIBYIQE
输入CAS
说明:
这里的CAS字符串是保存在sybase安装文件包的install目录下的CAS文件中,可以另外打开一个终端控制台:
#cd/export/sybaseins/install’假定sybase安装目录为/export/sybaseins
#moreCAS
正确输入CAS后会出现提示信息:
SybaseProductsavailableforinstallation:
ProductNo.1:
AdaptiveServerEnterprise,Sun4_SVR4,11.9.2
ProductNo.2:
MonitorServerfor11.9.2ASE,Sun4_SVR4,11.9.2
ProductNo.3:
MonitorServerfor11.0.xSQLServer,Sun4_SVR4,11.5.1
ProductNo.4:
MonitorClientLibrary,Sun4_SVR4,11.9.2
ProductNo.5:
HistoricalServer,Sun4_SVR4,11.9.2
ProductNo.6:
LanguageModulesforBrazilianPortuguese,Sun4_SVR4,11.9
ProductNo.7:
LanguageModulesforChinese,Sun4_SVR4,11.9
ProductNo.8:
LanguageModulesforFrench,Sun4_SVR4,11.9
ProductNo.9:
LanguageModulesforGerman,Sun4_SVR4,11.9
ProductNo.10:
LanguageModulesforJapanese,Sun4_SVR4,11.9
ProductNo.11:
LanguageModulesforKorean,Sun4_SVR4,11.9
ProductNo.12:
LanguageModulesforSpanish,Sun4_SVR4,11.9
PleaseentertheProductNumbersthatyouwishtoinstall,oneperline.
Terminateyourentrieswithablankline.
>1
>
输入1,选择安装AdaptiveServerEnterprise,Sun4_SVR4,11.9.2,然后输入回车。
系统会提示:
Thefollowingproductswerechosenforinstallation:
ChoiceNo.1:
AdaptiveServerEnterprise,Sun4_SVR4,11.9.2
Ifthislistiscorrectasshown,
pleaseenter'y'or'Y'tocontinue,
'q'or'Q'toquit,
oranyothercharactertomakeanothersetofchoices:
y
输入y确认我们的选择,系统开始安装sybase,出现提示信息:
x./bin/backupserver,891475bytes,1742tapeblocks
x./bin/bcp,708466bytes,1384tapeblocks
x./bin/buildmaster,542315bytes,1060tapeblocks
x./bin/charset,376609bytes,736tapeblocks
x./bin/dataserver,4861559bytes,9496tapeblocks
x./bin/defncopy,616219bytes,1204tapeblocks
……
x./xappdefaults/Dsedit_dce,242bytes,1tapeblocks
x./xappdefaults/Sqlloc,233bytes,1tapeblocks
x./xappdefaults/Sqlupgrade,245bytes,1tapeblocks
x./xappdefaults/Srvbuild,240bytes,1tapeblocks
x./xappdefaults/Sybhelp,235bytes,1tapeblocks
Thefollowingproductshavebeendistributedfromtape:
AdaptiveServerEnterprise,Sun4_SVR4,11.9.2
ThisconcludesthetapedistributionportionoftheSybaseInstallation.
PleaseconsultyourInstallationGuideforfurtherinstallationinstructions.
Sybase数据库软件安装完毕。
接下来我们运行sybsetup文件,来建立sybase数据库服务器。
./sybsetup
出现“sybsetup”对话框,这里我们直接开始安装数据库服务器,在“InstallSybaseServers”中单击“BuildNewServers(Adaptive,Backup,MonitorandXP)”,如图10所示。
后续的安装步骤和前文完全相同。