SYBASE-IQ-For-linux-AS-4安装手册.doc_第1页
SYBASE-IQ-For-linux-AS-4安装手册.doc_第2页
SYBASE-IQ-For-linux-AS-4安装手册.doc_第3页
SYBASE-IQ-For-linux-AS-4安装手册.doc_第4页
SYBASE-IQ-For-linux-AS-4安装手册.doc_第5页
已阅读5页,还剩8页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Sybase IQ For SUN安装手册七号信令集中监测系统V5.5.1Sybase IQ For SUN安装手册1290000 SM02北京中创信测科技股份有限公司二零零五年八月版权所有 翻印必究目 录第一章安装SYBASE IQ31.1设置系统共享内存31.2创建sybiq用户31.3编辑sybiq用户环境变量(若使用csh)31.4安装SybaseIQ41.5修改语言环境61.6在interfaces中添加asiqdemo库信息71.7在interfaces中添加其他库信息7第二章创建用户数据库72.1启动demo库72.2准备建库设备72.3创建用户数据库目录82.4创建用户数据库zciq182.5编辑用户数据库启动文件zciq1.cfg92.6修改interfaces文件102.7启动用户数据库10第三章其他设置103.1设置加载内存(单位M)103.2添加用户103.3IQ客户端配置11第1章第一章 安装SYBASE IQ1.1 设置系统共享内存即修改/etc/sysctl.conf文件,已经在操作系统安装文档中说明设置系统共享内存为服务器物理内存的7/8(推荐值,也可等于内存大小)以root身份登录vi /etc/systemset shmsys:shminfo_shmmax=7000000000 #设置为系统共享内存的7/8,可到/usr/platform/sun4u/sbin目录下运行prtdiag文件来查看共享内存大小修改后需要重启动服务器使之有效1.2 创建sybiq用户创建sybiq用户和组,已经在操作系统安装文档中说明,也可使用如下命令把sybiq用户设置为bash:groupadd sybiquseradd m d /sybiq/asiq126 s /bin/bash g sybiq sybiqpasswd sybiq(并根据提示输入密码两次)以root身份登录创建用户:#cd /#mkdir sybiq#cd /sybiq#mkdir install#mkdir asiq1261.3 编辑sybiq用户环境变量(若使用bash)$vi /sybiq/asiq126/.bashrc,添加下面内容:LANG=zhexport LANGSYBASE=/sybiq/asiq126export SYBASEASDIR=$SYBASE/ASIQ-12_6export ASDIRPATH=$SYBASE/ASIQ-12_6/bin:$SYBASE/OCS-12_5/bin:$PATH:$SYBASEexport PATHIQLIB=$SYBASE/ASIQ-12_6/lib:$SYBASE/OCS-12_5/libexport IQLIBLD_LIBRARY_PATH=$IQLIBexport LD_LIBRARY_PATH修改完成后使用$source .bashrc使环境变量生效1.4 安装SybaseIQ最好创建独立的文件系统/sybiq来安装SybaseIQ(server 12.5 for linux)创建安装目录$mkdir /sybiq/install将SybaseIQ的安装包sybiqserver.tar解压缩到/sybiq/install:$cd /sybiq/install$tar -xvf sybiqserver.tar若把安装包上传后在本地安装,则以sybiq用户登陆,在安装包解压后的目录下执行$chmod -R +x *$./sybinstall1: Sybase IQ 12.6 Enterprise Edition Install Sybase IQ 12.6 Welcome to Sybase IQ. This script will install Sybase IQ and other supporting products on your system. You may quit at any time by pressing c.Press return to continue:次数直接回车即可2: Sybase IQ 12.6 Enterprise Edition Select the location where you are installing the software 1) Argentina 20) Netherlands 2) Australia 21) New Zeland 3) Belgium (French) 22) Norway 4) Belgium (English) 23) Philippines 5) Brazil 24) Peoples Republic of China (PRC) 6) Canada 25) Singapore 7) Denmark 26) Spain (Spanish) 8) France (French) 27) Spain (English) 9) France (English) 28) Sweden10) Germany (German) 29) Switzerland (German)11) Germany (English) 30) Switzerland (English)12) Hong Kong 31) Taiwan13) India 32) Thailand14) Italy (Italian) 33) United Kingdom15) Italy (English) 34) United States of America16) Japan 35) Americas (Mid/So.), Asia Pacific - General17) Korea 36) Europe, Middle East, Africa - General18) Malaysia 37) Other Locations19) MexicoPlease enter the number for the location you are installing (1.37, Q): 243:阅读license(可能是乱码),按回车I agree with the terms of the license, for the location specified ?y4: Sybase IQ 12.6 Enterprise Edition Select ProductsDestination Directory ($SYBASE) Free Space(k)- -/sybiq/asiq126 29775232# Product Size(k) Install Directory- - - -1) Sybase IQ 290460 $SYBASE/ASIQ-12_62) SDK (Open Client) 12.5.1 378404 $SYBASE/3) Sybase Central Java Edition 4.3 4324 $SYBASE/shared/sybcentral434) jConnect 5.5 17004 $SYBASE/shared5) jConnect 6.0 5744 $SYBASE/shared6) Java Runtime Environment 1.4.2 73132 $SYBASE/shared/jre-1_42 Options - 1.6) De/Select Product for Installation C) Change Target Directory S) Selection Completed Q) Quit the InstallPlease enter (1.6, C, S or Q ) S5: Sybase IQ 12.6 Enterprise Edition Setup Utility Database The utility database is a phantom database that allows users to connect to an IQ server without specifying a database. The utility_db allows the user only a narrow range of specialized file manipulation statements which include: CREATE DATABASE, DROP DATABASE, RESTORE DATABASE. The ascii file contains the DBAs login and password is $ASDIR/bin/util_db.ini. By default the login is dba with a password of sqlDo you want to change the current user and password ? N6:-Enter optional component-At this time you can install optional components.Do you have any components and license to enter at this time ? N7: Sybase IQ 12.6 Enterprise Edition Environment SetupThe following environment files have been created- /sybiq/asiq126/ASIQ-12_6/ASIQ-12_6.csh (Sybase IQ) /sybiq/asiq126/ASIQ-12_6/ASIQ-12_6.sh (Sybase IQ) /sybiq/asiq126/SYBASE.csh (SDK (Open Client) 12.5.1) /sybiq/asiq126/SYBASE.sh (SDK (Open Client) 12.5.1)Installation completed.1.5 IQ安装完毕打补丁当前最新的补丁包是EBF12697.tar将SybaseIQ的补丁包解上传到/sybiq/install:$ tar -xvf EBF12697.tar$chmod R +x *$cd ebf12697/server.SunOS64安装过程如下:1:执行安装脚本$./sybinstall2: Sybase IQ 12.6 ESD 4 Welcome to ESD 4 for Sybase IQ 12.6 This update will install Sybase IQ 12.6 ESD 4 in the directory designated by $SYBASE. Please make sure that there are no servers running before starting the update. Target: /sybiq/asiq126Would you like to review the cover letter at this time ? Y3:Begin installing the update ?Y4: Sybase IQ 12.6 ESD 4 Installing Updates-Updating Sybase IQ 12.6Update completed.1.6 修改语言环境将$SYBASE /locales/locales.dat文件 linux小节中的 locale = zh, chinese, eucgb(若没有则直接添加如下一行) 修改为:locale = zh, us_english, iso_1再加一行:locale = zh_CN.GB18030, us_english, iso_11.7 在interfaces中添加asiqdemo库信息在$SYBASE目录下创建interfaces文件,添加启动的数据库IP及端口信息:asiqdemo master tcp ether 192.168.2.110 2638 query tcp ether 192.168.2.110 26381.8 在interfaces中添加其他库信息例如:添加静态库信息:CENTERDB master tcp ether 192.168.2.33 4100 query tcp ether 192.168.2.33 4100添加其余iq库信息:zciqN master tcp ether 192.168.X.XX 2640 query tcp ether 192.168.X.XX 2640第2章第二章 创建用户数据库2.1 修改asiqdemo.cfg$cd $SYBASE/ASIQ-12_5/demo$vi asiqdemo.cfg修改其中的-gp参数为327682.2 启动demo库cd $SYBASE/ASIQ-12_5/demostart_asiq asiqdemo.cfg asiqdemo.db2.3 准备建库设备l 若想将zciq1的用户库建在裸设备/dev/rdsk/c2t0d0s0和/dev/rdsk/c2t0d0s1上,则将裸设备属主改为sybiqsu - root#chown sybiq:sybiq /dev/rdsk/c2t0d0s0#chown sybiq:sybiq /dev/rdsk/c2t0d0s1linux下l 若想将zciq1的用户库建在文件系统/iqdata和/iqtemp上,则将文件系统的属主改为sybiqchown sybiq:sybiq /iqdatachown sybiq:sybiq /iqtemp2.4 创建用户数据库目录cd $SYBASEmkdir zcdyiq注:此目录下存放用户库的数据库文件、配置文件、日志文件等2.5 创建用户数据库zciq1isql -Udba -PSQL Sasiqdemo1 drop database /sybiq/asiq126/zcdyiq/zciq1.db2 go1 create database /sybiq/asiq126/zcdyiq/zciq1.db2 blank padding on3 java on4 COLLATION EUC_CHINA5 page size 32768#若此处配置提示不生效,则需要修改demo库的-gp参数为32768(编辑$ASDIR/demo/asiqdemo.cfg)后重启demo库再重建zciq1库即可6 iq page size 1310727 iq path /dev/rdsk/c2t0d0s0 #iq建在裸设备上8 temporary path /dev/rdsk/c2t0d0s1 #临时文件建在裸设备上9 go1 commit2 go1 quitlinux下l 若数据库建立在文件系统上而非裸设备上,需在iq path和temporary path中指定要建立的文件名,如下:1 drop database /sybiq/asiq126/zcdyiq/ psm.db2 go1 create database /sybiq/asiq126/ zcdyiq/psm.db 2 blank padding on3 java on4 COLLATION EUC_CHINA5 page size 32768#若此处配置提示不生效,则需要修改demo库的-gp参数为32768(编辑$ASDIR/demo/asiqdemo.cfg)后重启demo库再重建zciq1库即可6 iq page size 1310727 iq path /iqdata/ psm iq size 20000 #/iqdata为文件系统,zciq1为指定生成的文件前缀,在执行完建库命令后iq会自动创建文件/iqdata/zciq1.iq,指定iq大小,单位默认为M8 temporary path /iqtemp/ psm temporary size 5000 #iqtemp为文件系统,zciq1为指定生成的文件前缀,在执行完建库命令后iq会自动创建文件/iqtemp/zciq1.iqtmp(若此处不指定temporary size,则temporary size默认为iq size的一半)9 go1 commit2 go1 exit注:执行以上命令之前,在/iqdata目录下不存在zciq1.iq,并且在/iqtemp目录下不存在zciq1.iqtmp文件,否则会提示有同名文件,执行失败2.6 编辑用户数据库启动文件zciq1.cfg$cd $SYBASE/zcdyiq$vi zciq1.cfg-n zciq1-c 1024m根据现场情况,大小建议为.db文件的1.21.3倍-gc 20-gd all-gl all-gm 50-gp 32768-ti 4400-gr 6000-tl 300-iqtss 1000-iqmc 2000 依据共享内存大小不同进行合理配置-iqtc 2000 依据共享内存大小不同进行合理配置-x tcpipport=2640其中:-n 服务器名_库名-iqmc IQ MAIN CACHE大小,单位M-iqtc IQ TEMP CACHE大小,单位M用例中给IQ分配了6000M的共享内存,MAIN CACHE和TEMP CACHE各3000M-gp 4096 catalog store page size-gd all limits users who can start database to those with certain level of permission-gl all limits users who can load or unload tables-gm 50 default number of connections-gc 20 checkpoint interval,单位为“分钟”-gr recovery time-ti 4400 client time out set to 72 hours (4400 minutes)-c 32MB on 32-bit platforms and 48MB on 64-bit platforms Catalog store cathe size-tl set the network connection time out2.7 修改interfaces文件加入所建数据库的ip及端口信息zciq1 master tcp ether 192.168.2.113 2640 query tcp ether 192.168.2.113 26402.8 启动用户数据库$cd $SYBASE/zcdyiq$start_asiq zciq1.cfg zciq1.db第3章第三章 其他设置3.1 设置加载内存(单位

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论