informix简要安装(修改后) (3)

合集下载

informix安装的一般步骤

informix安装的一般步骤

我在公司,不能用QQ,我尽量帮你查,下面是informix5安装的一般步骤: 二、安装步骤:第一步:建立INFORMIX数据库系统用户安装INFORMIX数据库系统之前, 必须首先建立INFORMIX用户, 其用户名为informix, 用户组为informix。

Informix用户的建立步骤如下:1)以超级用户root注册;2)输入如下命令:#sysadmsh3)按顺序选择如下菜单:Accounts—User—Create4)系统出现输入画面时,依次输入(或选择)如下内容:Username后输入:informixComment可不输Modify defaults?选择yes5)系统出现另一个画面,此时依次输入(或选择)如下内容:Login group时选择Specify 后输入:informix(**如果系统中没有informix用户组,系统会提示:Do you wish to create it?: 选择yesGroup ID: 选择Default**)系统出现一个提示框,里面有两个用户组:group 和informix将光标停在group上面,输入一个空格,再打回车。

Login shell选择:DefaultHome directory选择:Default、Create homeUser ID number选择:DefaultType of user选择:Default6)系统提示:Are you sure you wish to create this new user account?Please choose one of: 选择:Yes7)当系统提示:Press to continue:时,输入回车键。

接着系统提示:Assign first password :选择:NowForce change at first login: 选择No然后,在提示:Setting password for user:informixPassword change is forced for informix.Choose passwordYou can choose whether you pick a password,Of have the system create one for you.1. Pick a password2. Prounceable password will be generated for youEnter choice (default is 1): 直接输入回车Please enter new password:New password : 输入新口令Re-enter password: 重新输入新口令Press to continue:输入回车键8)退出实用程序sysadmsh,则新用户informix就已经按照要求建立起来了。

AIX上Informix的安装过程

AIX上Informix的安装过程

AIX上Informix的安装过程操作系统:AIX 4.3.3数据库产品:IBM Informix Cl IE ntSDK 2.70CU1(32位/64位)IBM Informix Dynamic Server 9.21系统配置:数据库服务器为IBM小型机。

IBM Informix数据库软件安装在机器内置硬盘上,划分出1G的文件系统挂在根文件系统的/informix目录下,每次机器启动时自动将此文件系统自动mount。

确保硬盘有足够剩余空间,至少剩余6G。

1 IBM Informix数据库产品的安装过程注::1.以下安装过程中,在命令行中出现 '$'的为informix用户登录,出现 '# ' 为root用户登录。

2.确认系统ROOT 的 PP SIZE,执行$lsvg rootvg可以查看到该项参数值。

1.1 设置AIX Unix环境(5和6步可以不做)1. 以root 登录。

使用 AIX 中的系统管理工具smitty。

2. 建立一个文件系统,该文件系统挂在根目录的informix目录下,不要创建该目录,在创建该文件系统时指明挂在/informix系统自动会创建该目录,文件系统要有1G大小。

#smitty/System Storage Management/File Systems/ Add File Systems/Journaled File System/Add a Journaled File Syste/Add a Standard Journaled File System选择rootvg设置SIZE of file system等于1000兆×1024K×2BLOCK=2048000BLOCK设置MOUNT POINT为/Informix设置Mount AUTOMATICALLY at system restart?为yes#mount /informix3. 创建用户组informix。

informix数据库安装过程

informix数据库安装过程

青海农信核心业务主机安装过程一:准备环境:创建VG的命令mkvg –f –vg applvg hdisk1文件系统是建立在lv(逻辑卷)上的,lv(逻辑卷)是建立在vg(卷组)上的Jfs(raw/jfs2)←lv←vg1、用smitty建立/usr/informix文件系统。

空间为1G。

2、chown -R informix:informix informixMount /Informix 激活文件系统3、用smitty建立informix用户,令informix用户的主目录为/usr/informix。

4、编辑/usr/informix目录下的.profile文件写入脚本。

ONCONFIG=onconfig.qhnxINFORMIXSERVER=qhnxonlineINFORMIXDIR=/usr/informixINFORMIXBINDIR=$INFORMIXDIR/binTERMCAP=$INFORMIXDIR/etc/gtmp/termcapDBEDIT=viDBLANG=english_us.8859LIBPATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$INFORMIXDIR/lib/tools:/usr/lib:. DBDATE=Y4MDINFORMIXSTACKSIZE=128KAIOOFF=1TERM=vt100PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.PATH=$PATH:$INFORMIXBINDIRexport ONCONFIG INFORMIXSERVER DBDATE DBEDIT DBLANG LIBPATH INFORMIXSTACKSIZE KAIOOFF INFORMIXBINDIR TERM PATH INFORMIXDIR PATH TERMCAPif [ -s "$MAIL" ] # This is at Shell startup. In normalthen echo "$MAILMSG" # operation, the Shell checksfi # periodically.PS1='[229:$LOGNAME]:$PWD>'export PS1alias 'l=ls -l'set -o vi或者可以将2.1 2.3 2.6 2.7的/usr/Informix 下的.profile 文件拷贝过来。

informix安装与配置

informix安装与配置

经常在论坛中看到有新人寻求informix的安装步骤,回想自己当初刚接触时,也是得到了众多好心人的帮助。

如今将自己的实际经验与从前前辈们的安装文档自整理下放到这里,希望能对有需要的人有所帮助。

由于毕竟经验有限,其中难免有遗漏或者不足的地方,欢迎大家批评指正!1. 创建informix组和informix用户,组ID和用户ID为301(注:此处可根据需要自己设置),并为informix用户设置密码group:informixuser:informix2. 为Informix数据库安装创建文件系统,并赋予权限,例:/informixchown -R informix:informix /informix3. 修改环境变量.profile文件INFORMIXDIR=/informix;PA TH=$PA TH:$INFORMIXDIR/bin;ONCONFIG=onconfig.test;INFORMIXSERVER=online;TERMCAP=$INFORMIXDIR/etc/termcap;TERM=vt100;export INFORMIXDIR PA TH ONCONFIG INFORMIXSERVER TERMCAP TERM4. 数据库安装必须用root用户安装安装目录选择informix./ids_install(此为10版本的集成安装,显示如下:Product Setup Type------------------------------------------------ ------------------------1. [ ] IBM Informix IConnect2. [x] IBM Informix Client-SDK Typical3. [x] IBM Informix Dynamic Server Typical4. [x] IBM Informix JDBC Driver)若为10以下的版本,可以选择进入SERVER文件夹,执行installserver进行安装。

informix入门基础学习教程

informix入门基础学习教程

informix入门基础学习教程Informix是一个关系型数据库管理系统(RDBMS),是IBM公司开发的一种数据库管理系统。

它具有高效、可靠、安全的特点,被广泛应用于企业级应用程序中。

本文将介绍Informix的基础知识和学习教程。

一、Informix的概述Informix是一种面向企业级应用的数据库管理系统,它提供了高性能、可扩展、可靠的数据存储和处理能力。

Informix支持多种操作系统平台,包括Windows、Linux、Unix等。

它的特点包括事务处理、并发控制、数据安全等。

二、安装和配置Informix2. 配置Informix服务器,设置数据库存储路径、内存大小等参数。

3.创建数据库实例,设置数据库名称、用户名和密码等信息。

三、Informix的基本概念1. 数据库:Informix中的数据库是一组相关表的集合,用于存储和管理数据。

2.表:表是数据库中的基本组成单元,用于存储数据。

每个表包含多个列,每个列定义了一种数据类型。

3.列:列是表中的一个字段,用于存储特定类型的数据。

4.行:行是表中的一条记录,包含了一组相关的数据。

5.索引:索引是对表中一列或多列的值进行排序的数据结构,用于提高查询性能。

6.视图:视图是一个虚拟的表,它是基于一个或多个表的查询结果。

视图可以简化复杂的查询操作。

四、基本操作1.创建数据库:使用CREATEDATABASE语句创建一个新的数据库。

2.创建表:使用CREATETABLE语句创建一个新的表,并定义表中的列和其数据类型。

3.插入数据:使用INSERTINTO语句将数据插入到表中。

4.查询数据:使用SELECT语句从表中检索数据。

5.更新数据:使用UPDATE语句修改表中的数据。

6.删除数据:使用DELETEFROM语句从表中删除数据。

7.创建索引:使用CREATEINDEX语句在表上创建索引,以提高查询性能。

8.创建视图:使用CREATEVIEW语句创建一个新的视图。

Informix安装步骤

Informix安装步骤

Informix安装步骤./ids_install -javahome /usr/bin/java1.前言本文主要描述的是在linux环境下的informix的安装配置步骤,且本实例采用的Cook File作为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.106libgcc-4.1.1libstdc++-4.1.1ncurses-5.5pam-0.99.6.2采用如下指令,查看本机是否安装了上面系统补丁页脚内容1rpm –qa | grep <rpm name>2.2.确认Informix所需的内核参数查看文件$INFORMIXDIR/release/en_us/0333/ids_machine_notes_11.50.txt,确认该平台下Informix所需的内核参数配置。

SHMMAX: 33554432SHMMIN: 1SHMMNI: 128SHMSEG: 128SHMALL: 4194304SEMMNI: 128SEMMSL: 250SEMMNS: 32000SEMOPM: 32SHMBASE 0x44000000L请参考如下步骤进行内核参数修改:以root的身份登录页脚内容2修改文件/etc/sysctl.conf执行“sysctl –p”,使更改生效2.3.确认DISK剩余空间充足请确保磁盘剩余空间>1G,由于本实例采用cook file作为chunk文件,所以建议至少大于2G的磁盘空间2.4.创建Informix用户及组以root用户执行如下指令,创建所需的user和groupgroupadd informix;useradd informix –g informix3.安装informix软件3.1.创建安装环境在/home/informix目录下创建install目录,并将informix的安装包放在其目录下3.2.解压安装包tar -xvf IDS.11.50.FC5.Linux.x86.CZ5IZEN.tar3.3.执行安装指令页脚内容3su – rootexport INFORMIXDIR=/home/informix/ids1150 安装目录cd /home/informix/install/./ids_install下面出现的是安装过程中需要选择的一些信息:是否选用图形界面安装Do you want to run installer in GUI mode [y/n] : n 确认安装选项1. Release Notes2. Installation Guide3. Launch Information Center4. Begin InstallationPlease select one of these options [4] 4确认继续执行安装页脚内容4Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] 1确认安装版本Welcome to the InstallShield Wizard for IBM Informix Dynamic Server Version 11.50 BundleThe InstallShield Wizard will install IBM Informix Dynamic Server Version 11.50 Bundle on your computer.To continue, choose Next.Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1确认接受使用许可协议并继续Press Enter to continue viewing the license agreement, or, Enter "1" to accept the agreement, "2" to decline it or "99" to go back to the previous screen, "3" Print, "4" Read Non-IBM Terms.1Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] 1确认安装目录继续页脚内容5IBM Informix Dynamic Server Version 11.50 Bundle Install Location Please specify a directory or press Enter to accept the default directory. Directory Name: [/home/informix/ids1150]Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] 1确认安装的产品并继续Select the products you would like to install:To select/deselect a product or to change its setup type, type its number: Product Setup Type------------------------------------------------ ------------------------1. [ ] IBM Informix IConnect Version 3.502. [x] IBM Informix Client-SDK Version3.50 Typical3. [x] IBM Informix Dynamic Server Version 11.50 Typical4. [x] IBM Informix JDBC Driver Version 3.50Other options:0. Continue installingEnter command [0]页脚内容6Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1确认是否进行角色分离Do you want to enable role separation for auditing procedures? [ ] 1 - Yes[X] 2 - NoTo select an item enter its number, or 0 when you are finished: [0]If you enable role separation, you can assign existing groups of users to specific roles.If you do not enable role separation, the database server administrator performs all administration tasks.Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1确认是否建立IDS示范数据库服务器实例并继续Do you want to create an IDS demonstration database server instance? [ ] 1 - Yes[X] 2 - No页脚内容7To select an item enter its number, or 0 when you are finished: [0]You can use a demonstration database server instance to verify that IDS is installed correctly and that the hardware is configured correctly. You can also configure the demonstration database server instance to use it as a production instance.Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1确认安装信息并继续IBM Informix Dynamic Server Version 11.50 Bundle will be installed in the following location:/home/informix/ids1150with the following features:IBM Informix Client-SDK Version 3.50IBM Informix Dynamic Server Version 11.50IBM Informix JDBC Driver Version 3.50for a total size:446.5 MB页脚内容8Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1开始安装Installing IBM Informix Client-SDK Version 3.50. Please wait...0 % complete10 % complete20 % complete30 % complete40 % complete50 % complete60 % complete70 % complete80 % complete90 % complete100 % complete……确认是否读安装文本并继续页脚内容9Press ENTER to read the text [Type q to quit] qPress 1 for Next, 3 to Cancel or 4 to Redisplay [1] 1确认成功安装The InstallShield Wizard has successfully installed IBM Informix Dynamic Server Version 11.50 Bundle. Choose Next to continue the wizard.Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] 11. Release Notes2. Installation Guide3. Launch Information Center4. Finish InstallationPlease select one of these options [4] 4Finishing installation...Press 3 to Finish or 4 to Redisplay [3]rmix实例配置4.1.环境变量的设置页脚内容10su – Informix 切换至informix用户vi setenv1150 建立一个脚本写环境变量INFORMIXSERVER=pc100_ids1150INFORMIXDIR=/home/informix/ids1150 INFINFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhostsONCONFIG=onconfig.$INFORMIXSERVERPATH=$INFORMIXDIR/bin:$PATHexport INFORMIXSERVER INFORMIXDIR INFORMIXSQLHOSTS ONCONFIG PATH 将脚本写到.bash_profile中. /home/informix/setenv1150执行. ./.bash_profile4.2.配置SQLHOSaobTS文件页脚内容114.3.配置ONCONFIG文件页脚内容124.4.建立chunk目录并建立文件4.5.初始化实例oninit –i5.日志的移动5.1.分别建立一个物理的和逻辑的chunk文件并更改权限页脚内容13touch llogdbs.chkchmod 660 plogdbs.chkchmod 660 llogdbs.chk5.2.分别建立物理和逻辑的dbspaceonspaces -c -d plogdbs -p /home/informix/ids1150/chunk/plogdbs.chk -o 0 -s 50000onspaces -c -d llogdbs -p /home/informix/ids1150/chunk/llogdbs.chk -o 0 -s 500005.3.移动物理日志将物理日志从rootdbs下移动到plogdbsonparams -p -s 49000 -d plogdbs5.4.逻辑日志的增加onparams -a -d llogdbs -s 5000注意:此操作执行10次,但是在最后一次的时候会报错,是因为空间已经不够了。

实验5Informix软件安装及配置

实验5Informix软件安装及配置

实验5Informix软件安装及配置informix安装配置实验指导书深圳市讯⽅通信技术有限公司2009年8⽉⽬录1. 实验⽬的 (4)2. 实验器材 (4)3. 实验内容说明 (4)4. 实验步骤 (4)4.1安装INFORMIX前准备 (4)4.1.1 增加informix⽤户组 (4)4.1.2 增加informix⽤户 (5)4.1.3 激活informix⽤户 (5)4.2安装I NFORMIX数据库 (5)4.2.1 上传⽂件到服务器 (5)4.2.2 执⾏安装 (5)4.3配置INFORMIX数据库 (13)4.3.1 创建错误信息⽬录 (13)4.3.2 设置环境变量 (14)4.3.3 增加数据库服务信息 (14)4.3.4 配置数据库服务端⼝ (15)4.3.5 检查⽂件配置 (15)4.3.6 创建rootdbs数据库空间 (16)4.3.7 配置onconfig⽂件 (16)4.3.8 初始化数据库 (18)4.3.9 查看数据库运⾏状态 (18)4.3.10 启动后创建⽤户空间 (18)4.3.11 创建命令 (19)4.4启动关闭数据库 (20)5. 附录A:INFROMIX常⽤命令 (20)5.1 ONINIT (20)5.1.1 功能说明 (20)5.1.2 使⽤说明 (21)5.1.3 举例说明 (21)5.2 ONMODE (21)5.2.1 功能简述 (21)5.2.2 使⽤说明 (21)5.2.3 举例说明 (23)5.3 ONSPACES (23)5.3.1 功能简述 (23)5.3.2 使⽤说明 (23)5.3.3 举例说明 (24)5.4 ONSTAT (24)5.4.1 功能简述 (24)5.4.2 使⽤说明 (24)1. 实验⽬的1、通过本实验,让学⽣了解informix软件安装及配置。

2、了解informix软件特点,熟悉基本数据库操作。

2. 实验器材1、安装Linux AS4以上版本操作系统的PC机⼀台(或者LinuxAS4操作系统安装在虚拟机上);2、informix数据库软件⼀套;3. 实验内容说明informix是IBM公司出品的关系数据库管理系统(RDBMS)家族。

informix安装及配置

informix安装及配置

Informix生产系统安装及配置一、ApplicationDB数据库安装与配置1、创建用户和用户组创建informix用户和informix组Informix用户挂载点/Informix2、修改环境变量修改informix用户的.profile文件,Vi .profile 添加以下内容:INFORMIXDIR=/Informix;PATH=$INFORMIXDIR/bin:$PATH;ONCONFIG=onconfig.loan;INFORMIXSERVER=loandb;export INFORMIXDIR PATH ONCONFIG INFORMIXSERVERexport TERM=vt100TERMINFO=$INFORMIXDIR/etc/typetab;TERMCAP=$INFORMIXDIR/etc/termcap;DBDATE=Y4MD-;Export TERMINFOR TERMCAP DBDATE3、安装数据库及组件Csdk安装:1)Cd /opt/Informix_setup/csdk2)Chmod 777 installclientsdk3)./installclientsdk4)根据安装向导填写安装路径/informix,其他选项按默认值选择,之后开始安装IDS安装:1)Cd /opt/Informix_setup/server2)Chmod 777 installserver3)./installserver4)根据安装向导填写安装路径/informix,其他选项按默认值选择,之后开始安装4、更改磁盘设备信息属组及权限并链接设备文件将所有为AppliactionDB数据库创建的裸设备的字符型设备文件(c类型)的属组更改为informix:InformixCd /devChownInformix:Informixrloan* rflow* rtemp* rphy* rlog*将所有为AppliactionDB数据库创建的裸设备的字符型设备文件(c类型)的权限更改为660Chmod 660 rloan* rflow* rtemp* rphy* rlog*Su –InformixMkdir data将所有为AppliactionDB数据库创建的裸设备的字符型设备文件(c类型)软链接到该目录下,例如:Ln –s /dev/rloan_rootdbsloan_rootdbs链接所在目录:Loan_data_01:/Informix/data/loan_data/Loan_data_02:/Informix/data/loan_data/Loan_index_data:/Informix/data/loan_index/Flow_data_01:/Informix/data/flow_data/Flow_data_02:/Informix/data/flow_data/Flow_index_data:/Informix/data/flow_index/Tempdbs:/Informix/data/temp_data/Rootdbs:/Informix/data/Phy_loan_log:/Informix/data/Log_loan_log:/Informix/data/5、创建onconfig脚本Su –InformixCd etcCponconfig.stdonconfig.loanOnconfig参数修改:################################################################### # Licensed Material - Property Of IBM## "Restricted Materials of IBM"## IBM Informix Dynamic Server# Copyright IBM Corporation 1996, 2009. All rights reserved.## Title: onconfig.std# Description: IBM Informix Dynamic Server Configuration Parameters ## Important: $INFORMIXDIR now resolves to the environment# variable INFORMIXDIR. Replace the value of the INFORMIXDIR# environment variable only if the path you want is not under# $INFORMIXDIR.## For additional information on the parameters:# /infocenter/idshelp/v115/index.jsp####################################################################################################################################### Root Dbspace Configuration Parameters#################################################################### ROOTNAME - The root dbspace name to contain reserved pages and # internal tracking tables.# ROOTPATH - The path for the device containing the root dbspace # ROOTOFFSET - The offset, in KB, of the root dbspace into the# device. The offset is required for some raw devices. # ROOTSIZE - The size of the root dbspace, in KB. The value of # 200000 allows for a default user space of about# 100 MB and the default system space requirements.# MIRROR - Enable (1) or disable (0) mirroring# MIRRORPATH - The path for the device containing the mirrored# rootdbspace# MIRROROFFSET - The offset, in KB, into the mirrored device## Warning: Always verify ROOTPATH before performing# disk initialization (oninit -i or -iy) to# avoid disk corruption of another instance###################################################################ROOTNAME rootdbsROOTPATH $INFORMIXDIR/data/loan_rootdbs(修改到rootdbs所在目录)ROOTOFFSET 256 (偏移量256K)ROOTSIZE 4000000(大小4G)MIRROR 0MIRRORPATH $INFORMIXDIR/tmp/demo_on.root_mirrorMIRROROFFSET 0#################################################################### Physical Log Configuration Parameters#################################################################### PHYSFILE - The size, in KB, of the physical log on disk. # If RTO_SERVER_RESTART is enabled, the# suggested formula for the size of PHSYFILE# (up to about 1 GB) is:# PHYSFILE = Size of BUFFERS * 1.1# PLOG_OVERFLOW_PATH - The directory for extra physical log files# if the physical log overflows during recovery # or long transaction rollback# PHYSBUFF - The size of the physical log buffer, in KB###################################################################PHYSFILE 39000000PLOG_OVERFLOW_PATH $INFORMIXDIR/tmpPHYSBUFF 128################################################################### # Logical Log Configuration Parameters################################################################### # LOGFILES - The number of logical log files# LOGSIZE - The size of each logical log, in KB# DYNAMIC_LOGS - The type of dynamic log allocation.# Acceptable values are:# 2 Automatic. IDS adds a new logical log to the# root dbspace when necessary.# 1 Manual. IDS notifies the DBA to add new logical # logs when necessary.# 0 Disabled# LOGBUFF - The size of the logical log buffer, in KB###################################################################LOGFILES 250LOGSIZE 10000DYNAMIC_LOGS 2LOGBUFF 64################################################################### # Long Transaction Configuration Parameters################################################################### # If IDS cannot roll back a long transaction, the server hangs# until more disk space is available.## LTXHWM - The percentage of the logical logs that can be# filled before a transaction is determined to be a # long transaction and is rolled back# LTXEHWM - The percentage of the logical logs that have been # filled before the server suspends all other# transactions so that the long transaction being# rolled back has exclusive use of the logs## When dynamic logging is on, you can set higher values for# LTXHWM and LTXEHWM because the server can add new logical logs# during long transaction rollback. Set lower values to limit the # number of new logical logs added.## If dynamic logging is off, set LTXHWM and LTXEHWM to# lower values, such as 50 and 60 or lower, to prevent long# transaction rollback from hanging the server due to lack of# logical log space.## When using Enterprise Replication, set LTXEHWM to at least 30%# higher than LTXHWM to minimize log overruns.###################################################################LTXHWM 70LTXEHWM 80################################################################### # Server Message File Configuration Parameters################################################################### # MSGPATH - The path of the IDS message log file# CONSOLE - The path of the IDS console message file###################################################################MSGPATH $INFORMIXDIR/online_loan.logCONSOLE $INFORMIXDIR/tmp/online.con################################################################### # Tblspace Configuration Parameters################################################################### # TBLTBLFIRST - The first extent size, in KB, for the tblspace # tblspace. Must be in multiples of the page size. # TBLTBLNEXT - The next extent size, in KB, for the tblspace# tblspace. Must be in multiples of the page size. # The default setting for both is 0, which allows IDS to manage# extent sizes automatically.## TBLSPACE_STATS - Enables (1) or disables (0) IDS to maintain# tblspace statistics###################################################################TBLTBLFIRST 0TBLTBLNEXT 0TBLSPACE_STATS 1################################################################### # Temporary dbspace and sbspace Configuration Parameters################################################################### # DBSPACETEMP - The list of dbspaces used to store temporary# tables and other objects. Specify a colon# separated list of dbspaces that exist when the# server is started. If no dbspaces are specified,# or if all specified dbspaces are not valid,# temporary files are created in the /tmp directory# instead.# SBSPACETEMP - The list of sbspaces used to store temporary# tables for smart large objects. If no sbspace# is specified, temporary files are created in# a standard sbspace.###################################################################DBSPACETEMP tempdbsSBSPACETEMP################################################################### # Dbspace and sbspace Configuration Parameters################################################################### # SBSPACENAME - The default sbspace name where smart large objects # are stored if no sbspace is specified during# smart large object creation. Some DataBlade# modules store smart large objects in this# location.# SYSSBSPACENAME - The default sbspace for system statistics# collection. Otherwise, IDS stores statistics# in the sysdistrib system catalog table.# ONDBSPACEDOWN - Specifies how IDS behaves when it encounters a# dbspace that is offline. Acceptable values# are:# 0 Continue# 1 Stop# 2 Wait for DBA action###################################################################SBSPACENAMESYSSBSPACENAMEONDBSPACEDOWN 2################################################################### # System Configuration Parameters################################################################### # SERVERNUM - The unique ID for the IDS instance. Acceptable # values are 0 through 255, inclusive.# DBSERVERNAME - The name of the default database server# DBSERVERALIASES - The list of up to 32 alternative dbservernames, # separated by commas###################################################################SERVERNUM 0DBSERVERNAME loandbDBSERVERALIASES loandbshm################################################################### # Network Configuration Parameters################################################################### # NETTYPE - The configuration of poll threads# for a specific protocol. The# format is:# NETTYPE <protocol>,<# poll threads> # ,<number of connections/thread># ,(NET|CPU)# You can include multiple NETTYPE# entries for multiple protocols.# LISTEN_TIMEOUT - The number of seconds that IDS# waits for a connection# MAX_INCOMPLETE_CONNECTIONS - The maximum number of incomplete# connections before IDS logs a Denial # of Service (DoS) error# FASTPOLL - Enables (1) or disables (0) fast# polling of your network, if your# operating system supports it.###################################################################NETTYPE s octcp,8,500,NET (网络协议用户4000)NETTYPE ipcshm,2,50,CPU (内存通道用户100)LISTEN_TIMEOUT 60MAX_INCOMPLETE_CONNECTIONS 1024FASTPOLL 1################################################################### # CPU-Related Configuration Parameters################################################################### # MULTIPROCESSOR - Specifies whether the computer has multiple # CPUs. Acceptable values are: 0 (single# processor), 1 (multiple processors or# multi-core chips)# VPCLASS cpu - Configures the CPU VPs. The format is:# VPCLASS cpu,num=<#>[,max=<#>][,aff=<#>]# [,noage]# VP_MEMORY_CACHE_KB - Specifies the amount of private memory# blocks of your CPU VP, in KB, that the# database server can access.# Acceptable values are:# 0 (disable)# 800 through 40% of the value of SHMTOTAL# SINGLE_CPU_VP - Optimizes performance if IDS runs with# only one CPU VP. Acceptable values are:# 0 multiple CPU VPs# Any nonzero value (optimize for one CPU VP) ###################################################################MULTIPROCESSOR 1VPCLASS cpu,num=8,noageVP_MEMORY_CACHE_KB 0SINGLE_CPU_VP 0################################################################### # AIO and Cleaner-Related Configuration Parameters################################################################### # VPCLASS aio - Configures the AIO VPs. The format is:# VPCLASS aio,num=<#>[,max=<#>][,aff=<#>][,noage] # CLEANERS - The number of page cleaner threads# AUTO_AIOVPS - Enables (1) or disables (0) automatic management # of AIO VPs# DIRECT_IO - Specifies whether direct I/O is used for cooked# files used for dbspace chunks.# Acceptable values are:# 0 Disable# 1 Enable direct I/O# 2 Enable concurrent I/O####################################################################VPCLASS aio,num=1CLEANERS 8AUTO_AIOVPS 1DIRECT_IO 0################################################################### # Lock-Related Configuration Parameters################################################################### # LOCKS - The initial number of locks when IDS starts. # Dynamic locking can add extra locks if needed. # DEF_TABLE_LOCKMODE - The default table lock mode for new tables.# Acceptable values are ROW and PAGE (default). ###################################################################LOCKS 1000000DEF_TABLE_LOCKMODE row################################################################### # Shared Memory Configuration Parameters################################################################### # RESIDENT - Controls whether shared memory is resident.# Acceptable values are:# 0 off (default)# 1 lock the resident segment only# n lock the resident segment and the next n-1# virtual segments, where n < 100# -1 lock all resident and virtual segments# SHMBASE - The shared memory base address; do not change# SHMVIRTSIZE - The initial size, in KB, of the virtual# segment of shared memory# SHMADD - The size, in KB, of additional virtual shared# memory segments# EXTSHMADD - The size, in KB, of each extension shared# memory segment# SHMTOTAL - The maximum amount of shared memory for IDS,# in KB. A 0 indicates no specific limit.# SHMVIRT_ALLOCSEG - Controls when IDS adds a memory segment and# the alarm level if the memory segment cannot# be added.# For the first field, acceptable values are:# - 0 Disabled# - A decimal number indicating the percentage# of memory used before a segment is added# - The number of KB remaining when a segment# is added# For the second field, specify an alarm level# from 1 (non-event) to 5 (fatal error).# SHMNOACCESS - A list of up to 10 memory address ranges# that IDS cannot use to attach shared memory.# Each address range is the start and end memory # address in hex format, separated by a hyphen. # Use a comma to separate each range in the list. ###################################################################RESIDENT 0SHMBASE 0x700000010000000SHMVIRTSIZE 32656SHMADD 8192EXTSHMADD 8192SHMTOTAL 0SHMVIRT_ALLOCSEG 0,3SHMNOACCESS################################################################### # Checkpoint and System Block Configuration Parameters################################################################### # CKPINTVL - Specifies how often, in seconds, IDS checks# if a checkpoint is needed. 0 indicates that# IDS does not check for checkpoints. Ignored # if RTO_SERVER_RESTART is set.# AUTO_CKPTS - Enables (1) or disables (0) monitoring of# critical resource to trigger checkpoints# more frequently if there is a chance that# transaction blocking might occur.# RTO_SERVER_RESTART - Specifies, in seconds, the Recovery Time# Objective for IDS restart after a server# failure. Acceptable values are 0 (off) and# any number from 60-1800, inclusive.# BLOCKTIMEOUT - Specifies the amount of time, in seconds,# for a system block.###################################################################CKPTINTVL 1800AUTO_CKPTS 1RTO_SERVER_RESTART 0BLOCKTIMEOUT 3600################################################################### # Transaction-Related Configuration Parameters################################################################### # TXTIMEOUT - The distributed transaction timeout, in seconds# DEADLOCK_TIMEOUT - The maximum time, in seconds, to wait for a# lock in a distributed transaction.# HETERO_COMMIT - Enables (1) or disables (0) heterogeneous# commits for a distributed transaction# involving an EGM gateway.###################################################################TXTIMEOUT 300DEADLOCK_TIMEOUT 60HETERO_COMMIT 0################################################################### # ontape Tape Device Configuration Parameters################################################################### # TAPEDEV - The tape device path for backups. To use standard# I/O instead of a device, set to stdio.# TAPEBLK - The tape block size, in KB, for backups# TAPESIZE - The maximum amount of data to put on one backup# tape. Acceptable values are 0 (unlimited) or any# positive integral multiple of TAPEBLK.###################################################################TAPEDEV /dev/nullTAPEBLK 32TAPESIZE 0################################################################### # ontapeLogial Log Tape Device Configuration Parameters################################################################### # LTAPEDEV - The tape device path for logical logs# LTAPEBLK - The tape block size, in KB, for backing up logical # logs# LTAPESIZE - The maximum amount of data to put on one logical# log tape. Acceptable values are 0 (unlimited) or any # positive integral multiple of LTAPEBLK.###################################################################LTAPEDEV /dev/nullLTAPEBLK 32LTAPESIZE 0################################################################### # Backup and Restore Configuration Parameters#################################################################### BAR_ACT_LOG - The ON-Bar activity log file location.# Do not use the /tmp directory. Use a# directory with restricted permissions.# BAR_DEBUG_LOG - The ON-Bar debug log file location.# Do not use the /tmp directory. Use a# directory with restricted permissions.# BAR_DEBUG - The debug level for ON-Bar. Acceptable# values are 0 (off) through 9 (high).# BAR_MAX_BACKUP - The number of backup threads used in a# backup. Acceptable values are 0 (unlimited)# or any positive integer.# BAR_RETRY - Specifies the number of time to retry a# backup or restore operation before reporting # a failure# BAR_NB_XPORT_COUNT - Specifies the number of data buffers that# eachonbar_d process uses to communicate# with the database server# BAR_XFER_BUF_SIZE - The size, in pages, of each data buffer.# Acceptable values are 1 through 15 for# 4 KB pages and 1 through 31 for 2 KB pages.# RESTARTABLE_RESTORE - Enables ON-Bar to continue a backup after a# failure. Acceptable values are OFF or ON.# BAR_PROGRESS_FREQ - Specifies, in minutes, how often progress# messages are placed in the ON-Bar activity# log. Acceptable values are: 0 (record only# completion messages) or 5 and above.# BAR_BSALIB_PATH - The shared library for ON-Bar and the# storage manager. The default value is# $INFORMIXDIR/lib/ibsad001 (with a# platform-specific file extension).# BACKUP_FILTER - Specifies the pathname of a filter program# to transform data during a backup, plus any# program options# RESTORE_FILTER - Specifies the pathname of a filter program# to transform data during a restore, plus any # program options# BAR_PERFORMANCE - Specifies the type of performance statistics# to report to the ON-Bar activity log for backup # and restore operations.# Acceptable values are:# 0 = Turn off performance monitoring (Default) # 1 = Display the time spent transferring data # between the IDS instance and the storage # manager# 2 = Display timestamps in microseconds# 3 = Display both timestamps and transfer # statistics###################################################################BAR_ACT_LOG $INFORMIXDIR/tmp/bar_act.logBAR_DEBUG_LOG $INFORMIXDIR/tmp/bar_dbug.logBAR_DEBUG 0BAR_MAX_BACKUP 0BAR_RETRY 1BAR_NB_XPORT_COUNT 20BAR_XFER_BUF_SIZE 31RESTARTABLE_RESTORE ONBAR_PROGRESS_FREQ 0BAR_BSALIB_PATHBACKUP_FILTERRESTORE_FILTERBAR_PERFORMANCE 0################################################################### # Informix Storage Manager (ISM) Configuration Parameters################################################################### # ISM_DATA_POOL - Specifies the name for the ISM data pool# ISM_LOG_POOL - Specifies the name for the ISM log pool###################################################################ISM_DATA_POOL ISMDataISM_LOG_POOL ISMLogs################################################################### # Data Dictionary Cache Configuration Parameters################################################################### # DD_HASHSIZE - The number of data dictionary pools. Set to any# positive integer; a prime number is recommended. # DD_HASHMAX - The number of entries per pool.# Set to any positive integer.###################################################################DD_HASHSIZE 31DD_HASHMAX 10################################################################### # Data Distribution Configuration Parameters#################################################################### DS_HASHSIZE - The number of data Ddstribution pools.# Set to any positive integer; a prime number is# recommended.# DS_POOLSIZE - The maximum number of entries in the data# distribution cache. Set to any positive integer.###################################################################DS_HASHSIZE 31DS_POOLSIZE 127################################################################### User Defined Routine (UDR) Cache Configuration Parameters################################################################### PC_HASHSIZE - The number of UDR pools. Set to any# positive integer; a prime number is recommended.# PC_POOLSIZE - The maximum number of entries in the# UDR cache. Set to any positive integer.###################################################################PC_HASHSIZE 31PC_POOLSIZE 127#################################################################### SQL Statement Cache Configuration Parameters#################################################################### STMT_CACHE - Controls SQL statement caching. Acceptable# values are:# 0 Disabled# 1 Enabled at the session level# 2 All statements are cached# STMT_CACHE_HITS - The number of times an SQL statement must be# executed before becoming fully cached.# 0 indicates that all statements are# fully cached the first time.# STMT_CACHE_SIZE - The size, in KB, of the SQL statement cache# STMT_CACHE_NOLIMIT - Controls additional memory consumption.# Acceptable values are:# 0 Limit memory to STMT_CACHE_SIZE# 1 Obtain as much memory, temporarily, as needed # STMT_CACHE_NUMPOOL - The number of pools for the SQL statement# cache. Acceptable value is a positive# integer between 1 and 256, inclusive.###################################################################STMT_CACHE 0STMT_CACHE_HITS 0STMT_CACHE_SIZE 512STMT_CACHE_NOLIMIT 0STMT_CACHE_NUMPOOL 1################################################################### # Operating System Session-Related Configuration Parameters################################################################### # USEOSTIME - The precision of SQL statement timing.# Accepted values are 0 (precision to seconds)# and 1 (precision to subseconds). Subsecond# precision can degrade performance.# STACKSIZE - The size, in KB, for a session stack# ALLOW_NEWLINE - Controls whether embedded new line characters # in string literals are allowed in SQL# statements. Acceptable values are 1 (allowed) # and any number other than 1 (not allowed).# USELASTCOMMITTED - Controls the committed read isolation level.# Acceptable values are:# - NONE Waits on a lock# - DIRTY READ Uses the last committed value in # place of a dirty read# - COMMITTED READ Uses the last committed value # in place of a committed read# - ALL Uses the last committed value in place # of all isolation levels that support the last # committed option###################################################################USEOSTIME 0STACKSIZE 64ALLOW_NEWLINE 0USELASTCOMMITTED NONE################################################################### # Index Related Configuration Parameters################################################################### # FILLFACTOR - The percentage of index page fullness# MAX_FILL_DATA_PAGES - Enables (1) or disables (0) filling data# pages that have variable length rows as# full as possible# BTSCANNER - Specifies the configuration settings for all # btscanner threads. The format is:# BTSCANNER num=<#>,threshold=<#>,rangesize=<#>, # alice=(0-12),compression=[low|med|high|default] # ONLIDX_MAXMEM - The amount of memory, in KB, allocated for# the pre-image pool and updator log pool for# each partition.###################################################################FILLFACTOR 90MAX_FILL_DATA_PAGES 0BTSCANNER num=1,threshold=5000,rangesize=-1,alice=6,compression=default ONLIDX_MAXMEM 5120#################################################################### Parallel Database Query (PDQ) Configuration Parameters#################################################################### MAX_PDQPRIORITY - The maximum amount of resources, as a# percentage, that PDQ can allocate to any# one decision support query# DS_MAX_QUERIES - The maximum number of concurrent decision# support queries# DS_TOTAL_MEMORY - The maximum amount, in KB, of decision# support query memory# DS_MAX_SCANS - The maximum number of concurrent decision# support scans# DS_NONPDQ_QUERY_MEM - The amount of non-PDQ query memory, in KB.# Acceptable values are 128 to 25% of# DS_TOTAL_MEMORY.# DATASKIP - Specifies whether to skip dbspaces when# processing a query. Acceptable values are:# - ALL Skip all unavailable fragments# - ON <dbspace1><dbspace2>... Skip listed# dbspaces# - OFF Do not skip dbspaces (default)###################################################################MAX_PDQPRIORITY 100DS_MAX_QUERIESDS_TOTAL_MEMORYDS_MAX_SCANS 1048576DS_NONPDQ_QUERY_MEM 128DATASKIP#################################################################### Optimizer Configuration Parameters# OPTCOMPIND - Controls how the optimizer determines the best# query path. Acceptable values are:# 0 Nested loop joins are preferred# 1 If isolation level is repeatable read,# works the same as 0, otherwise works same as 2# 2 Optimizer decisions are based on cost only# DIRECTIVES - Specifies whether optimizer directives are# enabled (1) or disabled (0). Default is 1.# EXT_DIRECTIVES - Controls the use of external SQL directives.# Acceptable values are:# 0 Disabled# 1 Enabled if the IFX_EXTDIRECTIVES environment# variable is enabled# 2 Enabled even if the IFX_EXTDIRECTIVES# environment is not set# OPT_GOAL - Controls how the optimizer should optimize for# fastest retrieval. Acceptable values are:# -1 All rows in a query# 0 The first rows in a query# IFX_FOLDVIEW - Enables (1) or disables (0) folding views that# have multiple tables or a UNION ALL clause.# Disabled by default.# AUTO_REPREPARE - Enables (1) or disables (0) automatically# re-optimizing stored procedures and re-preparing# prepared statements when tables that are referenced # by them change. Minimizes the occurrence of the# -710 error.####################################################################OPTCOMPIND 2DIRECTIVES 1EXT_DIRECTIVES 0OPT_GOAL -1IFX_FOLDVIEW 0AUTO_REPREPARE 1#################################################################### Read-ahead Configuration Parameters####################################################################RA_PAGES - The number of pages, as a positive integer, to# attempt to read ahead#RA_THRESHOLD - The number of pages, as a postive integer, left# before the next read-ahead group。

Informix安装全攻略

Informix安装全攻略
若有多个online,Message Log最好区分开来,如online_01.log
Dump Shared Memory改为N
(7)新建一个Dbቤተ መጻሕፍቲ ባይዱpace
onmonitor->Dbspaces->Create
名称、大小自定,Mirror、Temp都为N,路径/u1/cookfile/infx01
输入/opt/Informix 安装路径
若在安装过程中出现:
etc/brand: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory
o options
为指定连接提供额外的灵活性。
(5)编辑.profile文件
su - informix
vi .profile
添加内容如下:
INFORMIXDIR=/u1/informix;export INFORMIXDIR
INFORMIXSERVER=test_on;export INFORMIXSERVER
解决:
修改配置文件onconfig中的服务器标识号(默认为0),只要是唯一就可以了,不能过太。在多实例安装中常出现此问题。例如
SERVERNUM 49 # Unique id corresponding to a Dynamic Server instance
nettype最后三个字母按如下方式表示特定的IPC机制或通讯协议。
shm 共享内存通讯
str 数据流管道通讯

Informix安装步骤

Informix安装步骤

Informix安装步骤./ids_install -javahome /usr/bin/java1.前言本文主要描述的是在linux环境下的informix的安装配置步骤,且本实例采用的Cook File作为Chunk文件。

2.安装前准备(release文件首先得解压IDS安装包之后在解压的目录中find . –name “ids_mach*”)2.1.确认Informix所需的系统补丁●通过查看$INFORMIXDIR/rel ease/en_us/0333目录下的●采用如下指令,查看本机是否安装了上面系统补丁rpm –qa | grep <rpm name>2.2.确认Informix所需的内核参数●查看文件$INFORMIXDIR/release/en_us/0333/ids_machine_notes_11.50.txt,确认该平台下Informix所需的内核参数配置。

请参考如下步骤进行内核参数修改:以root的身份登录修改文件/etc/sysctl.conf执行“sysctl –p”,使更改生效2.3.确认DISK剩余空间充足请确保磁盘剩余空间>1G,由于本实例采用cook file作为chunk文件,所以建议至少大于2G的磁盘空间2.4.创建Informix用户及组以root用户执行如下指令,创建所需的user和group3.安装informix软件3.1.创建安装环境在/home/informix目录下创建install目录,并将informix的安装包放在其目录下3.2.解压安装包3.3.执行安装指令下面出现的是安装过程中需要选择的一些信息:●是否选用图形界面安装●确认安装选项●确认继续执行安装●确认安装版本●确认接受使用许可协议并继续●确认安装目录继续●确认安装的产品并继续●确认是否进行角色分离Do you want to enabl e rol e separation for auditing procedures? [ ] 1 - Yes[X] 2 - NoTo select an item enter its number, or 0 when you are finished: [0]If you enabl e rol e separation, you can assign existing groups of users to specific rol es.If you d o not enabl e rol e separation, the database server administrator performs all administration tasks.Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] 1●确认是否建立IDS示范数据库服务器实例并继续●确认安装信息并继续●开始安装●确认是否读安装文本并继续●确认成功安装rmix实例配置4.1.环境变量的设置su – Informix 切换至informix用户vi setenv1150 建立一个脚本写环境变量将脚本写到.bash_profil e中执行. ./.bash_profile4.2.配置SQLHOSaobTS文件4.3.配置ONCONFIG文件4.4.建立chunk目录并建立文件4.5.初始化实例oninit –i5.日志的移动5.1.分别建立一个物理的和逻辑的chunk文件并更改权限5.2.分别建立物理和逻辑的dbspace5.3.移动物理日志将物理日志从rootdbs下移动到pl ogdbs5.4.逻辑日志的增加注意:此操作执行10次,但是在最后一次的时候会报错,是因为空间已经不够了。

Informix安装配置精讲

Informix安装配置精讲

Informix-online Dynamic server完全安装手册一、安装步骤:(1)创建informix目录:/informix如果已创建,这一步可以不执行。

(2)创建informix用户及informix组。

(3)设置环境变量。

设置环境变量在profile文件增加以下内容:INFORMIXDIR=/usr/InformixINFORMIXSERVER=pthkONCONFIG=onconfig.pthkPATH=$PATH:$INFORMIXDIR/binexport INFORMIXDIR INFORMIXSERVERexport ONCONFIG PA TH说明:INFORMIXSERVER 该环境变量被设置为服务器的名称,它是客户机与服务器进行连接的入口,它的值将放入sqlhosts文件中,只有该值有效时客户才能完成与服务器的连接(如果客户与服务器的机型不同,则需要将sqlhosts文件同时装入所有的机器中,以便进行初始化操作)。

(4)SQL 和 online的安装以 root 用户注册, 进入 informix 用户目录:# cd /usr/informix执行命令:# . ./.profile使informix 环境变量生效;SQLRT.TAR、CONNECT.CPI 、IDS.CPI将SQL的安装文件拷贝到当前目录下:用 tar 或 cpio 命令(根据安装文件类型而定);#tar xvf (文件名.TAR)#cpio –icudvmB –I (文件名.cpi)执行SQL的安装程序:# ./installsql根据屏幕提示输入正确的序列号 (serial number) 和活动码 (active number);完成SQL的安装;#./installconn第一个选yes第二个选no将 online 的安装文件拷贝到当前目录下:用 tar 或cpio 命令(根据安装文件类型而定); 将安装文件展开;执行 online 的安装程序:# ./installserver根据屏幕提示输入正确的序列号 (serial number) 和活动码 (active number);完成 online 的文件安装(5) 修改sqlhosts文件中的通信参数。

informix安装

informix安装
首先挂载usb,将安装包带入虚拟机中。
#pwd
/
#doscp /dev/dsk/1sC:/* /usr/local
#cd /usr/local
#gunzip cce.tgz
#tar xvf cce.tar
#cd cce-0.51
#gmake clean
11.启动及监视
$ more online.log(日志文件)
$ isgl (看isgl是否好)
$ esql (看esql是否好)
$ onmode -k(关闭数据库)
$ onstat - (看状态)
$ oninit (启动数据库)
12.中文插件安装
执行isql命令后有显示乱码的问题出现,此时需要装载中文字符集。
ROOTSIZE 200000(数据存储空间容量)
PHYSFILE 10000
LOGSIZE 5000
TAPEDEV /dev/null
LTAPEDEV /dev/null
DBSERVERNAME online
NETTYPE tlitcp,1,40,NET
8.修改系统核心参数
在root用户下
# cd /usr/informix
# cd release/en_us/0333
# more IDS_7.3(记录如下参数及后面的值)
SHMMAX:409600000 SHMALL:512
SHMMIN:1 SHMMNI:100
SHMSEG:6 SEMMNI: 8192
SEMMAP: 8192 SEMMNS: 8192
SEMMNU: 100 SEMMSL: 25

Informix_安装手册

Informix_安装手册

Informix数据库AIX平台安装指南主机Informix产品安装指南∙此安装指南包括如下产品的安装:∙Client SDK∙IDS.2000(二)创建Informix组、用户和目录创建用户组、用户: informix。

∙组号和用户号应大于等于100∙Informix用户要属于Informix组∙设置Informix主目录, /informix∙为Informix用户设置口令(二)设置UNIX环境设置Informix产品安装时,至关重要的两个环境变量:INFORMIXDIR和PATH。

∙修改/informix/.profile,在其中增加:INFORMIXDIR=/informixPATH=$INFORMIXDIR/bin:$PATHexport INFORMIXDIR PATH∙执行新的环境变量$ su - informix(三)安装产品安装顺序:1. Client SDK2. IDS.20001.安装ClientSDK以informix用户身份安装(1)安装介质∙进入informix主目录:$ cd∙安装product code$ cpio –icdumvB < /cdrom/CLISDK/clntsdk.cpi∙弹出介质# umount /mnt(2)执行安装脚本$ ./installclientsdk对“是否与9版本数据库一起使用”的问题问答“yes”。

输入产品的License 和 Key。

当屏幕出现“请以root身份执行/informix/RUN_AS_ROOT. clientsdk”并返回命令行状态后,继续操作。

$ su# /informix/RUN_AS_ROOT.clientsdk2.安装IDS.2000以informix用户身份安装(1)安装介质∙进入informix主目录:$ cd∙安装product code$ cpio –icdumvB < /cdrom/IDS/IDS2000.cpi∙弹出介质# umount /mnt(2)执行安装脚本$ ./installserver输入产品的License 和 Key。

Informix安装步骤

Informix安装步骤

Informix安装步骤。

/ids_install —javahome /usr/bin/java1.前言本文主要描述的是在linux环境下的informix的安装配置步骤,且本实例采用的Cook File作为Chunk文件。

2.安装前准备(release文件首先得解压IDS安装包之后在解压的目录中find 。

–name “ids_mach *")2.1.确认Informix所需的系统补丁●通过查看$INFORMIXDIR/rel ease/en_us/0333目录下的●采用如下指令,查看本机是否安装了上面系统补丁rpm –qa | grep <rpm name〉2.2.确认Informix所需的内核参数●查看文件$INFORMIXDIR/release/en_us/0333/ids_machine_notes_11.50.txt,确认该平台下Informix所需的内核参数配置.请参考如下步骤进行内核参数修改:➢以root的身份登录➢修改文件/etc/sysctl。

conf➢执行“sysctl –p”,使更改生效2.3.确认DISK剩余空间充足请确保磁盘剩余空间〉1G,由于本实例采用cook file作为chunk文件,所以建议至少大于2G的磁盘空间2.4.创建Informix用户及组➢以root用户执行如下指令,创建所需的user和group3.安装informix软件3.1.创建安装环境在/home/informix目录下创建install目录,并将informix的安装包放在其目录下3.2.解压安装包3.3.执行安装指令下面出现的是安装过程中需要选择的一些信息:●是否选用图形界面安装●确认安装选项●确认继续执行安装●确认安装版本●确认接受使用许可协议并继续●确认安装目录继续●确认安装的产品并继续●确认是否进行角色分离Do you want to enabl e rol e separation for auditing procedures?[ ] 1 - Yes[X] 2 — NoTo select an item enter its number, or 0 when you are finished:[0]If you enabl e rol e separation,you can assign existing groups of users to specific rol es。

AIX下informix安装

AIX下informix安装

Logdbs Disk2 1500000 100
Phydbs Disk1 100000 40100
一、INFORMIX数据库服务器产品安装
1、建立“Informix”组和“Informix”用户
以root用户身份注册。
1) 用AIX“smit mkgroup”命令建立一个名为“Informix”的组,组号大于100。
2) 用AIX“smit mkuser”命令建立一个名为“informix”的用户,用户号大于100,该用户属于“Informix”组。
如果UNIX核心参数的缺省值小于Online所需,则需先调整UNIX核心参数。一般情况下,AIX UNIX核心参数缺省值可满足Online需求,暂不调整。
3) 交换驱的调整
使用#smit chps根据以下表格调整SWAP区:
内存 SWAP区
64M >=128M
128M >=256M
输入序列号,如INF#X999999
输入KEY,如AAABBB
3) 然后安装ESQL/C
c、 类似2)中a、,注意文件名为ESQL.TAR或ESQL.CPIO
d、 执行安装命令#./installesql
输入序列号,如INF#X999999,注意字母必须大写
输入KEY,如AAABBB,注意字母必须大写
注意:
1) .profile文件编辑完后,
2) 执行命令行:$. $HOME/.profile,
3) 输出新设的环境参数。另外其他与informix同
4) 组用户的HOME目录下的.profile文件中也需加入同样的环境参数设置。
5) 不用多国语言支持(GLS),不要设DB_LOCALE及CLIENT_LOCALE。

informix安装步骤

informix安装步骤

Informix安装方法一、获取informix 9.4的安装包informix安装包包括三部分服务器、客户端和开发包。

本文档所在的文件夹内包括了informix 9.4的安装包的安装包,此处不必单独获取。

如果需要获取,建议从IBM官方网站上下载,下载方法如下图:二、搭建安装informix的环境搭建环境主要包括建立informix用户和配置informix环境变量两部分⏹使用root用户登录,执行建立组合用户的操作建立组:groupadd -g 20000 informix建立用户:useradd -u 20000 -g 20000 -d /home/informix -m informix设置口令:password informix⏹使用informix用户登录,配置环境变量修改informix用户环境变量:编辑 informix用户的.bash_profile文件,增加以下环境变量。

注意设置完成后需要退出informix用户并重新登录,才能使新的.bash_profile文件生效INFORMIXDIR=/home/informixINFORMIXSERVER=cs_dbsONCONFIG=onconfig.csDBDATE=MDY4*LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$LD_LIBRARY_PATH export INFORMIXDIR INFORMIXSERVER ONCONFIG LD_LIBRARY_PATHPATH=$PATH:$INFORMIXDIR/binexport PATH三、安装informix服务器⏹将informix安装盘内的SERVER目录内的全部内容拷贝到informix用户目录下⏹使用“chmod +x install*”命令将脚本文件全部赋予可执行权限。

脚本文件是:install_glsinstall_msginstallserver⏹使用su root命令获取root权限⏹使用./installserver执行informix服务器安装脚本注意:安装过程中显示的“Press RETURN tocontinue”中的RETURN 就是回车键的意思安装图片如下:开始安装完成安装⏹删除不再使用的安装文件IDSreinstallfiles、IIF.cpi 、install_gls、install_msg installserver四、安装客户端开发包(CSDK)⏹使用“tar xvf clientsdk.2.81.UC3.LINUX-I32.tar”解压从CSKD安装包。

详解Linux下INFORMIX安装

详解Linux下INFORMIX安装

INFORMIX安装1.安装informix一定要先安装jdk。

Jdk安装完毕,在/etc/profile中配置java环境变量,然后在/etc/rc.local中把共享内存改为当前机器内存的一半。

2.建informix用户:增加用户组:建立informix组:groupadd -g 1001 informix增加用户:建立informix用户:useradd -u 1001 -g 1001 -d /opt/informix -m informix –s /bin/csh(groupadd命令增加用户组groupadd [-g gid] groupg 制定组的ID号gid 组的ID号(不能与现有的组ID号重复)group 组名增加用户useradd命令增加用户组useradd [-u uid | -g group] | -d dir | -s shell | -c comment | -m [-k skel_dir] ] login说明:u 指定用户ID号g 制定所在组d 指定用户目录s 制定用户SHELLc 用户的注释m 建立用户目录login 用户的登录名)命令:su root #转到root用户groupadd -g 1001 informix #新建informix组useradd -u 1001 -g 1001 -d/opt/informix -m informix -s /bin/csh #新建informix 用户3.转到root用户,执行命令:passwd Informix,为informix增加密码,激活用户;命令:id #确认是否为root用户passwd informix #设置密码,2次输入informix密码su –informix #激活用户,登陆informix用户4.在本机利用ftp工具将informix的安装tar包(C15M7NA.tar)传到/commsoft目录(以bin方式上传)。

AIX安装informix数据库

AIX安装informix数据库

AIX安装informix数据库前几天,项目组使用的数据库的空间分配出现了交叉的情况,无法恢复,只能重装数据库..在陈邦振的蛊惑下,熬了一个通宵,终于安装完成,并从开发走向了系统集成的不归路。

本文主要说了一些基本的DBA知识。

1.以root用户登录,首先建立informix组及用户,建立informix文件系统创建用户informix。

(修改)该用户主目录为/informix,用户组为informix,用户口令为informix(可以任意更改)。

其用户号必须大于或等于100。

设置User NAME为informix设置Primary GROUP为informix设置HOME directory为/Informix将/informix目录的宿主改为informix:informixchown informix:informix /informix2.将informix初始化必须用到的chunk建立好!如下:assist -g dgname make chunkname 2000m layout=stripe user=informixgroup=informix mode=660一般一个chunk不超过2G,这些chunk就是实际的物理存储块,不可以直接使用,需要做映射,也就是我们程序中所谓的引用。

ln -s 实体名虚拟连接比如 ln –s /dev/chunk1 /Informix/chunk/chunk1这些虚拟链接将作为给各个数据库空间(dbs) 增加的基本单位。

实际使用中,custdbs(包含custdb)和Billdbs(包含billdb)一般都要10个chunkAcctdbs和proddbs需要的比较少。

3.下面是安装informix,很简单,一般就是全部安装就可以了将安装文件用tar命令解压后,运行安装的sh文件0) All Products listed below1) IBM Informix Dynamic Server 9.402) IBM Informix IConnect3) IBM Informix JDBC version 2.214) IBM Informix Server Administrator5) Configure a Demo IDS Server (requires IDS)Enter the number(s) of the products to install, separated by spaces(i.e. "1 2 3"): 0安装过程比较简单,那些英文单词都是很基本的。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
useradd -g users -d /home/fenet -p rrlrrl fenet
useradd -g users -d /home/login -p rrlrrl login
useradd -g useposuser
useradd -g users -d /home/rrltrans -p rrlrrl rrltrans
ISM_LOG_POOL DBMIData # 将ISMLogs 改为 DBMIData
12、 配置alarmprogram.sh 文件
目录路径:/home/informix/etc 下
su - informix
vi etc/alarmprogram.sh
BACKUPLOGS=N # 把N 改为 Y
Using default value 1578
Last cylinder or +size or +sizeM or +sizeK (1578-5221, default 5221): 1833
Command (m for help): n
First cylinder (1834-5221, default 1834):
1、分区
[root@kaohe122 /]# fdisk /dev/sda
The number of cylinders for this disk is set to 5221.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
Using default value 1834
Last cylinder or +size or +sizeM or +sizeK (1834-5221, default 5221): 2089
Command (m for help): n
First cylinder (2090-5221, default 2090):
useradd -g users -d /home/shopuser -p rrlrrl shopuser
useradd -g users -d /home/sysadmin -p rrlrrl sysadmin
useradd -g users -d /home/posback -p posback posback
Using default value 2090
Last cylinder or +size or +sizeM or +sizeK (2090-5221, default 5221): 2345
Command (m for help): n
First cylinder (2346-5221, default 2346):
5、建立用户名和组
groupadd informix
groupadd bargroup
useradd -g users -d /front/pos -p pos pos
useradd -g users -d /front/posftp -p posftp posftp
Using default value 2346
Last cylinder or +size or +sizeM or +sizeK (2346-5221, default 5221): 3625
Command (m for help): w
The partition table has been altered!
Using default value 1450
Last cylinder or +size or +sizeM or +sizeK (1450-5221, default 5221): 1577
Command (m for help): n
First cylinder (1578-5221, default 1578):
useradd -g informix -d /home/informix -p rrlrrl informix
useradd -g bargroup -d /home/tapeback -p rrlrrl tapeback
useradd -g users -d /home/back -p rrlrrl back
Directory Name: [/opt/IBM/informix] /home/informix
一直回车。 安装完后会自己退出。
7、配置环境变量
echo '
INFORMIXDIR=/home/informix
INFORMIXSERVER=onkaohe64
DBDATE=Y4MD0
vi sqlhosts
将下面两行前面加#
#demo_on onipcshm on_hostname on_servername
#demo_se seipcpip se_hostname sqlexec
再添加下面一行
/dev/raw/raw1 /dev/sda5
/dev/raw/raw2 /dev/sda6
/dev/raw/raw3 /dev/sda7
Using default value 1450
Last cylinder or +size or +sizeM or +sizeK (1450-5221, default 5221):
Using default value 5221
Command (m for help): n
First cylinder (1450-5221, default 1450):
ONCONFIG=kaohe64.cfg
export LANG=en_US.ISO8859-1
export INFORMIXDIR INFORMIXSERVER DBDATE ONCONFIG
export TERMINFO=/home/informix/etc/typetab
export TERMCAP=$INFORMIXDIR/etc/termcap
ln -s /dev/raw/raw2 /informix.links/plogdbs
ln -s /dev/raw/raw3 /informix.links/llogdbs
ln -s /dev/raw/raw4 /informix.links/tempdbs
ln -s /dev/raw/raw5 /informix.links/datadbs
ROOTPATH /informix.links/rootdbs #更改为 /informix.links/rootdbs
ROOTSIZE 1024000 # 更改1024000 考试为1G
DBSERVERNAME onkaohe # 在后面添加onkaohe
NETTYPE soctcp,1,300,NET #将后来的ipcshm,1,50,CPU 改为 soctcp,1,300,NET
13、 初始化informix
su - informix
oninit -ivy
14
onspaces -c -d plogdbs -p /informix.links/plogdbs -o 0 -s 2048000
onspaces -c -d llogdbs -p /informix.links/llogdbs -o 0 -s 2048000
/dev/raw/raw4 /dev/sda8
/dev/raw/raw5 /dev/sda9 ' >> /etc/sysconfig/rawdevices
4、设置数据库块文件
ln -s /dev/raw/raw1 /informix.links/rootdbs
The new table will be used at the next reboot.
Syncing disks.
[root@kaohe122 /]#
2、
mkdir /dev/raw
mkdir /informix.links
3、设置raw文件
echo '
#store spaces for Front informix server on front
'>>/home/informix/.bashrc
8、
su - informix
cd etc
cp onconfig.std kaohe64.cfg
cp sm_versions.std sm_versions
cp sqlhosts.std sqlhosts
9、 修改sqlhosts文件,
LTAPEDEV /dev/null #将/dev/tapedev 改为 /dev/null。注意有两项要改。
BAR_BSALIB_PATH /usr/lib/libxnmi.so #后台加个/usr/lib/libxnmi.so
ISM_DATA_POOL DBMIData #将ISMData 改为 DBMIData
(e.g., DOS FDISK, OS/2 FDISK)
相关文档
最新文档