Informix安装步骤.docx
《Informix安装步骤.docx》由会员分享,可在线阅读,更多相关《Informix安装步骤.docx(10页珍藏版)》请在冰豆网上搜索。
Informix安装步骤
Informix安装步骤
./ids_install-javahome/usr/bin/java
1.前言
本文主要描述的是在linux环境下的informix的安装配置步骤,且本实例采用的CookFile作为Chunk文件。
2.安装前准备(release文件首先得解压IDS安装包之后在解压的目录中find.–name“ids_mach*”)
2.1.确认Informix所需的系统补丁
通过查看$INFORMIXDIR/release/en_us/0333目录下的ids_machine_notes_11.50.txt文件得知需要安装以下的包:
libaio-0.3.106
libgcc-4.1.1
libstdc++-4.1.1
ncurses-5.5
pam-0.99.6.2
采用如下指令,查看本机是否安装了上面系统补丁
rpm–qa|grep
2.2.确认Informix所需的内核参数
查看文件$INFORMIXDIR/release/en_us/0333/ids_machine_notes_11.50.txt,确认该平台下Informix所需的内核参数配置。
SHMMAX:
33554432
SHMMIN:
1
SHMMNI:
128
SHMSEG:
128
SHMALL:
4194304
SEMMNI:
128
SEMMSL:
250
SEMMNS:
32000
SEMOPM:
32
SHMBASE0x44000000L
请参考如下步骤进行内核参数修改:
以root的身份登录
修改文件/etc/sysctl.conf
执行“sysctl–p”,使更改生效
2.3.确认DISK剩余空间充足
请确保磁盘剩余空间>1G,由于本实例采用cookfile作为chunk文件,所以建议至少大于2G的磁盘空间
2.4.创建Informix用户及组
以root用户执行如下指令,创建所需的user和group
groupaddinformix;
useraddinformix–ginformix
3.安装informix软件
3.1.创建安装环境
在/home/informix目录下创建install目录,并将informix的安装包放在其目录下
3.2.解压安装包
tar-xvfIDS.11.50.FC5.Linux.x86.CZ5IZEN.tar
3.3.执行安装指令
su–root
exportINFORMIXDIR=/home/informix/ids1150安装目录
cd/home/informix/install/
./ids_install
下面出现的是安装过程中需要选择的一些信息:
是否选用图形界面安装
DoyouwanttoruninstallerinGUImode[y/n]:
n
确认安装选项
1.ReleaseNotes
2.InstallationGuide
3.LaunchInformationCenter
4.BeginInstallation
Pleaseselectoneoftheseoptions[4]4
确认继续执行安装
Press1forNext,3toCancelor4toRedisplay[1]1
确认安装版本
WelcometotheInstallShieldWizardforIBMInformixDynamicServerVersion
11.50Bundle
TheInstallShieldWizardwillinstallIBMInformixDynamicServerVersion11.50
Bundleonyourcomputer.
Tocontinue,chooseNext.
Press1forNext,2forPrevious,3toCancelor4toRedisplay[1]1
确认接受使用许可协议并继续
PressEntertocontinueviewingthelicenseagreement,or,Enter"1"toaccept
theagreement,"2"todeclineitor"99"togobacktothepreviousscreen,"3"
Print,"4"ReadNon-IBMTerms.
1
Press1forNext,3toCancelor4toRedisplay[1]1
确认安装目录继续
IBMInformixDynamicServerVersion11.50BundleInstallLocation
PleasespecifyadirectoryorpressEntertoacceptthedefaultdirectory.
DirectoryName:
[/home/informix/ids1150]
Press1forNext,3toCancelor4toRedisplay[1]1
确认安装的产品并继续
Selecttheproductsyouwouldliketoinstall:
Toselect/deselectaproductortochangeitssetuptype,typeitsnumber:
ProductSetupType
------------------------------------------------------------------------
1.[]IBMInformixIConnectVersion3.50
2.[x]IBMInformixClient-SDKVersion3.50Typical
3.[x]IBMInformixDynamicServerVersion11.50Typical
4.[x]IBMInformixJDBCDriverVersion3.50
Otheroptions:
0.Continueinstalling
Entercommand[0]
Press1forNext,2forPrevious,3toCancelor4toRedisplay[1]1
确认是否进行角色分离
Doyouwanttoenableroleseparationforauditingprocedures?
[]1-Yes
[X]2-No
Toselectanitementeritsnumber,or0whenyouarefinished:
[0]
Ifyouenableroleseparation,youcanassignexistinggroupsofusersto
specificroles.
Ifyoudonotenableroleseparation,thedatabaseserveradministrator
performsalladministrationtasks.
Press1forNext,2forPrevious,3toCancelor4toRedisplay[1]1
确认是否建立IDS示范数据库服务器实例并继续
DoyouwanttocreateanIDSdemonstrationdatabaseserverinstance?
[]1-Yes
[X]2-No
Toselectanitementeritsnumber,or0whenyouarefinished:
[0]
YoucanuseademonstrationdatabaseserverinstancetoverifythatIDSis
installedcorrectlyandthatthehardwareisconfiguredcorrectly.Youcanalso
configurethedemonstrationdatabaseserverinstancetouseitasaproduction
instance.
Press1forNext,2forPrevious,3toCancelor4toRedisplay[1]1
确认安装信息并继续
IBMInformixDynamicServerVersion11.50Bundlewillbeinstalledinthe
followinglocation:
/home/informix/ids1150
withthefollowingfeatures:
IBMInformixClient-SDKVersion3.50
IBMInformixDynamicServerVersion11.50
IBMInformixJDBCDriverVersion3.50
foratotalsize:
446.5MB
Press1forNext,2forPrevious,3toCancelor4toRedisplay[1]1
开始安装
InstallingIBMInformixClient-SDKVersion3.50.Pleasewait...
0%complete
10%complete
20%complete
30%complete
40%complete
50%complete
60%complete
70%complete
80%complete
90%complete
100%complete
……
确认是否读安装文本并继续
PressENTERtoreadthetext[Typeqtoquit]q
Press1forNext,3toCancelor4toRedisplay[1]1
确认成功安装
TheInstallShieldWizardhassuccessfullyinstalledIBMInformixDynamicServer
Version11.50Bundle.ChooseNexttocontinuethewizard.
Press1forNext,3toCancelor4toRedisplay[1]1
1.ReleaseNotes
2.InstallationGuide
3.LaunchInformationCenter
4.FinishInstallation
Pleaseselectoneoftheseoptions[4]4
Finishinginstallation...
Press3toFinishor4toRedisplay[3]
4.Informix实例配置
4.1.环境变量的设置
su–Informix切换至informix用户
visetenv1150建立一个脚本写环境变量
INFORMIXSERVER=pc100_ids1150
INFORMIXDIR=/home/informix/ids1150
INFINFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhosts
ONCONFIG=onconfig.$INFORMIXSERVER
PATH=$INFORMIXDIR/bin:
$PATH
exportINFORMIXSERVERINFORMIXDIRINFORMIXSQLHOSTSONCONFIGPATH
将脚本写到.bash_profile中
./home/informix/setenv1150
执行../.bash_profile
4.2.配置SQLHOSaobTS文件
cdids1150/etc/
cpsqlhosts.stdsqlhosts
visqlhosts
pc100_ids1150onsoctcpPC100sqlexec1
注意:
sqlexec1的由来root下
cat/etc/services
sqlexec110001/tcp
上面参数列分别代表的是
实例名协议ip地址/主机名端口号
4.3.配置ONCONFIG文件
cdids1150/etc/
cponconfig.stdonconfig.$INFORMIXSERVER
vionconfig.$INFORMIXSERVER
ROOTPATH$INFORMIXDIR/chunk/rootdbs.chk
DBSERVERNAMEpc100_ids1150
NETTYPEsoctcp,1,50,NET非必须改
MSGPATH$INFORMIXDIR/tmp/online.log
LTAPEDEV/dev/null
4.4.建立chunk目录并建立文件
loginasInformix
mkdir$INFORMIXDIR/chunk
touch$INFORMIXDIR/chunk/rootdbs.chk
chmod660$INFORMIXDIR/chunk/rootdbs.chk
4.5.初始化实例
oninit–i
5.日志的移动
5.1.分别建立一个物理的和逻辑的chunk文件并更改权限
cdids1150/chunk/
touchplogdbs.chk
touchllogdbs.chk
chmod660plogdbs.chk
chmod660llogdbs.chk
5.2.分别建立物理和逻辑的dbspace
onspaces-c-dplogdbs-p/home/informix/ids1150/chunk/plogdbs.chk-o0-s50000
onspaces-c-dllogdbs-p/home/informix/ids1150/chunk/llogdbs.chk-o0-s50000
5.3.移动物理日志
将物理日志从rootdbs下移动到plogdbs
onparams-p-s49000-dplogdbs
5.4.逻辑日志的增加
onparams-a-dllogdbs-s5000
注意:
此操作执行10次,但是在最后一次的时候会报错,是因为空间已经不够了。
5.5.逻辑日志的删除
活动逻辑日志的切换
onmode–l
注意:
一直切换到自己新建的逻辑日志为止
完全检查点切换到当前日志
onmode–c
Ontape–a只有备份过后的逻辑日志才能删除
逻辑日志的删除
onparams-d-l1
onparams-d-l2
onparams-d-l3…
注意:
123分别代表的是逻辑日志的number
5.6.对数据库做全备份使日志的移动生效
ontape-s-L0
5.7.确认实例配置完成
Dbaccessdemodemo1–dbspacedatadbs