windows系统下Informix_11.7安装手册

合集下载

informix数据库安装维护手册

informix数据库安装维护手册

Informix 操作文档V1.2亿阳信通股份有限公司传输网管事业部文档修改记录版本号主要作者修改记录完成日期批准人1.0 段绍其创建2006-05-091.1 段绍其修改创建用户,安装INFORMIX10软件2006-08-071.2 段绍其修改了部分可能造成疑问的部分2006-12-26目录1, 概述 (4)2,安装及配置INFORMIX CLIENT SDK (4)2.1,安装 (4)2.2,配置网络服务 (5)2.3,测试配置 (7)3,数据库server安装 (10)3.1,安装前准备工作组和用户配置 (10)3.1.1,组和用户配置 (10)3.1.2, 安装前需要考虑因素 (19)3.1.3, 安装前需要配置的因素 (19)3.2, server安装 (20)3.2.1软件介质安装 (20)3.2.2 server配置 (24)4,数据库起停命令 (27)4.1,数据库启动 (27)4.2,检查数据库状态 (27)4.3,数据库停止 (28)4.4,将数据库转为单用户状态 (28)4.5,将数据库从单用户转化为正常状态 (28)4.6,数据库检查各种命令 (28)4.6.1检查设备空间 (28)4.6.2查找服务名,端口号等 (29)4.6.3检查数据库服务中各个配置参数情况 (29)4.6.4检查内存使用情况 (29)4.6.5查看数据库系统的日志状态 (30)4.6.6通过onstat –F查看磁盘的输入输出情况 (30)5,数据库备份恢复 (32)5.1, 数据库备份(unload) (32)5.2, 备份(dbexport) (34)5.3, 数据库恢复(load) (34)5.4, 数据库恢复(dbimport) (35)6, 故障处理 (35)1, 概述移动资管系统目前大量使用INFORMIX数据库,因此,对INFORMIX数据库应该有一个基本的了解,才能做到正常的系统维护,在此对客户端安装,server安装,数据库的各种检查,起停命令,数据库的备份恢复及部分简单处理作逐一介绍。

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生产系统安装及配置一、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 数据流管道通讯

Informix11.5 for windows 安装配置

Informix11.5 for windows 安装配置

Informix 11.50 for Windows安装配置一、测试环境
操作系统:Windows Server 2008 64bit
Informix版本:Informix Ultimate Edition 11.5 for Windows 64
二、安装
1.解压iif.11.50.FC9TL.win2003.zip文件,双击运行setup.exe进行安装。

2.选项需要安装的组件包(这里使用了默认的IDS,DBDK,CSDK)
3.点击Next继续执行
4.阅读并接受协议,点击Next
5.选择Typical方式进行安装
6.选择安装目录,这里安装路径设置为“E:\informix11.5”。

7.设置informix 用户密码
8.确认安装信息,点击“Next”
9.等待IDS安装结束,点击“Finish”。

10.自动加载DBDK安装程序
11.点击Next执行安装
12.设置DBDK安装目录
13.点击Done完成DBDK安装
14.自动加载CSDK安装程序
15.选择接受许可协议
16.设置本地信息,默认Windows用户
17.选择Custom进行安装
18.为Client-SDK设置路径
19.点击Next后,进行安装
20.完成CSDK 安装
21.全部完成安装后,程序组里增加了IDS,DBDK,CSDK 三组,在IDS 的程序组里:以数据库服务名(ids1150)为标题的链接可视为informix 的console 接口,server instance manager 可以管理instance,modifyinstallation 可以管理informix 安装组件。

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数据库安装文档一、SCO UNIX5.0.7系统上安装Informix7.31数据库安装前提:●Informix7.31的安装介质(IDS.CPI.Z、SQL.TAR.Z、CLISDK.CPI.Z)。

●SCO UNIX系统的网络配置完成。

●机器有非UNIX分区的空闲空间14G以上。

1.创建informix组以root用户登录系统。

执行scoadmin-》Account Manager-》Group-》Add New GroupGroup Name:informix其它默认。

2.创建informix用户以root用户登录系统。

执行scoadmin-》Account Manager-》Users-》Add New Users设置如图3.设置informix用户的环境变量以informix用户登录系统编辑.profile 文件在文件的最后增加下面内容INFORMIXDIR=/usr/informixINFORMIXSERVER=onlineONCONFIG=onconfig.onlineexport INFORMIXDIR INFORMIXSERVER ONCONFIG保存退出从新以Informix用户登录系统。

4.准备数据空间以root用户登录系统执行fdisk# fdisk1. Display Partition Table2. Use Entire Disk for UNIX3. Use Rest of Disk for UNIX4. Create UNIX Partition5. Activate Partition6. Delete Partition7. Create PartitionEnter your choice or 'q' to quit:1先选1查看当前分区情况Current Hard Disk Drive: /dev/rhd00+-------------+----------+-----------+---------+---------+---------+| Partition | Status | Type | Start | End | Size |+-------------+----------+-----------+---------+---------+---------+| 1 | Active | UNIX | 1 | 65015 | 65015 |+-------------+----------+-----------+---------+---------+---------+ Total disk size: 133110 tracks (256 reserved for masterboot and diagnostics)Press <Return> to continue选择4创建UNIX分区再创建一个14G的UNIX分区,Current Hard Disk Drive: /dev/rhd00+-------------+----------+-----------+---------+---------+---------+| Partition | Status | Type | Start | End | Size |+-------------+----------+-----------+---------+---------+---------+| 1 | Active | UNIX | 1 | 65015| 65015 || 2 | Inactive | UNIX | 65016 | 133109 | 68094 |+-------------+----------+-----------+---------+---------+---------+Total disk size: 133110 tracks (256 reserved for masterboot and diagnostics)注:本例中硬盘总大小只有4G,第二个分区只有2G,在实际工作中分区的起始位置和大小要按实际情况填写。

Linux下安装INFORMIX 11.7

Linux下安装INFORMIX 11.7

Linux下安装INFORMIX 11.7在/opt下建立安装目录informix。

2,启动安装切换到root 用户下,运行安装文件中ids_install文件。

IDS产品套件包含多个产品,可以同时安装所有产品,也可以分别安装。

,安装脚本会安装IDS服务器以及相同目录中的其他相关产品。

installserver命令只安装IDS服务器,忽略其他产品。

安装过程启动。

默认为控制台安装模式(其他模式参见补充说明)。

安装过程会自动识别到安装目录/opt/informix 。

根据提示输入安装选项。

这个不用多说了,很简单的。

看到IBM Informix JDBC Driver: Successful提示时说明成功安装了。

注意:运行安装脚本需要根不熟悉的最好选择典型安装,如需图形化安装则用命令./ids_install -gui 补充:其他安装模式? GUI模式:当在安装命令中指定�Cgui选项时,进入这种模式。

GUI模式与控制台模式相似,但是使用一个Java图形界面与安装程序交互。

安装命令的示例: installserver-gui? 静默模式:这种模式支持非交互式安装。

静默模式使用一个.ini文件提供响应信息,这些信息在控制台模式和GUI模式中是通过键盘或鼠标提供的。

IDS提供两个默认的.ini文件,您也可以创建自己的.ini文件。

在交互式安装期间,在安装命令中指定-record选项,就可以自动地创建.ini文件。

示例:installserver-recordmyresponses.ini要想使用自己创建的.ini文件,必须在安装命令中指定-options选项。

示例:install_ids-silent-optionsmyresponses.ini如果使用默认的.ini文件(bundle.ini或server.ini),必须在安装命令中指定�Cacceptlicense=yes选项;否则,安装不会成功。

示例:installserver-silent-acceptlicense=yes在安装期间还可以指定其他选项,包括:? -javahome,使用已经安装的JRE? -PinstallLocation=,指定不同的安装目录 ? -log,指定非默认的日志文件名可以在同一个系统上同时存在IDS的多个版本。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

windows系统下Informix 11.7安装手册1. 概述Informix在windows系统下的安装过程与Linux下的有些不同,这里通过实际操作,详细描述了Informix在windows系统下的安装,创建实例,配置数据库的过程.2. 安装环境超级用户:informix 密码:informix一般用户:XYRZ 密码:XYRZ实例名:ol_informix1170端口:9088数据库名:xydb3 informix软件安装得到Informix 11.7 developer edition在windows32位系统下的安装包iif.11.70.TC5DE.win2003,大小约为498MB,安装包为.zip的压缩文件。

因Informix软件需要使用Informix账户进行管理,所以在安装之前需要创建Informix用户。

如果系统中没有预先创建Informix账户,则Informix Server的安装过程中将自动创建该用户,下面以没有预先创建Informix账户的环境为例,详细介绍安装过程。

1)将得到的安装包解压到合适的位置。

2)双击启动安装程序ids_install.exe,得到如下图所示安装界面,单击next按钮进入下一步单击“next”按钮。

4)单击next按钮后得到如下安装界面。

选择合适的安装位置来安装Informix Server,默认为:C:\Program Files\IBM\Informix\11.70。

这里选择e盘下的Informix文件夹作为安装位置(e:\Informix),在地址栏里输入e:\Informix。

也可以通过点击“choose”按钮来选择安装位置或点击“Restore Default Folder”来重新使用默认安装路径。

然后单击“next”按钮。

5)单击next按钮进入下一步,在这里可以选择安装的类型。

“typical”为标准的安装类型,“Custom”为自定义安装类型。

在这里我们选择默认的“typical”类型并创建默认实例。

注:可以选择typical类型,并创建实例,这样比较简单,系统会自动创建ol_infromix1770的实例。

我装的时候是采用这种方式。

(也可以不创建默认实例,然后手工创建,选择默认的“typical”类型并取消创建默认实例。

此处应强调的是,在默认情况下“create server instance”前的复选框不能去掉。

这里应先点选“custom”前的单选按钮,之后再点选“typical”按钮,此时便可以去掉“create server instance”前的复选框了。

)如下图所示。

6)单击next按钮进入下一步,将再次出现接受协议界面,单击“我接受许可协议中的全部条款”单选按钮。

该部与前面第3部类似,故不赘述7)单击next按钮进入下一步,此时将出现如下图所示界面。

此时Informix正在检查运行时环境,此过程视系统情况而异等待时间有所不同。

8)等待一段时间后,将出现如下的安装界面。

由于预先未创建Informix用户,安装程序将自动创建Informix用户,如下图所示,按照提示为Informix用户输入密码。

9)点击next按钮,出现如下图所示的界面,确定安装信息无误。

的安装。

钮。

12)安装成功,将出现如下图所示的安装界面,点击“Done”按钮退出安装界面。

4. 创建实例注意:该步骤仅在上节第5小节中选择不创建实例时才需要,如果已创建实例就不需要执行。

Windows中通过使用“Server Instance Manager”来创建实例。

1)按照“开始”->“程序”->“IBM Informix 11.7”下运行“Server Instance Manager”程序,得到如下界面。

单击“create new”按钮创建一个新的实例。

2)出现如下图所示界面,修改Server Number数为一个0~255内独一无二的值,即如果曾经创建一个实例且该实例使用1为Server Number,则其他实例便不能再使用1了。

这里使用15作为Server Number。

设定完后点击“next”按钮。

3)出现如下图所示界面,修改Dynamic Server Name为一个实例的名称,这里使用demoserver。

设定完成后点击“next”按钮。

4)出现如下图所示界面,修改服务名称和端口号为独一无二的值。

并单击“next”按钮。

这里需要注意的是对于所设的端口号需要特别记住,因为许多用于数据库连接的客户端软件都需要使用该端口号。

也可以通过查找C:\Windows\System32\drivers\etc\services文件来找到每个实例所对应的端口。

5)出现如下图所示界面,在密码栏里输入Informix用户的密码并单击“next”按钮。

5)出现如下图所示界面,直接单击“Finish”按钮。

6)经过一系列配置以后,系统将会显示如下图所示界面,对于windows XP用户,可以直接点击“yes”按钮将该实例初始化。

如是windows 7系统则暂时忽略该对话框,完成注意事项后所提示的之后,再点击“yes”来初始化实例。

注意事项:至此整个Informix服务器的配置过程已经完成,在Windows XP操作系统下直接初始化创建好的实例即可,但在windows 7系统下则有可能出现问题。

如在windows 7系统下出现问题,可采用如下所示方法解决:Informix安装文件夹->bin文件夹->找到oninit.exe程序并右键打开改程序的属性->打开Compatibility选项卡->勾选“Run this program as an administrator”复选框。

如下图所示。

5. 配置数据库1)增加表空间先在D:\informix\ol_informix1170\dbspaces目录下,建立空文件datadbs1.000,然后执行创建数据表空间命令:onspaces -c -d dbspce1 -p D:\informix\ol_informix1170\dbspaces\datadbs1.000 -o 5000 -s 102400空间名为dbspce1,数据库文件为D:\informix\ol_informix1170\dbspaces\datadbs1.000,大小为102400,偏移量为5000字节2)增加用户增加操作系统用户XYRZ,并更改隶属关系,增加informix-Admin角色。

建议用户名不要用大写,否则在后面授权时,容易出问题,导致授权到小写的用户名上。

增加用户后需要用该用户登录后才能在客户端用该用户进行连接。

(注意:以下步骤可以不做,仅供参考。

实例创建完后,需要对数据库进行配置操作,包括:创建逻辑日志,创建物理日志,添加表空间等操作。

这里给出这些操作的脚本,实际进行配置数据库时只需对上述配置做少许修改即可。

如可以根据需要和实际情况调节dbspace的路径和大小。

使用如下步骤即可以完成对Informix数据库的配置:将下述脚本存储为dbspace.sql,切换到Informix 用户->开始->程序->IBM Informix 11.7,找到刚刚创建成功的实例图标,点击该图标,在弹出的命令行窗口下使用Dbaccess sysadmin dbspace.sql即可,如下图所示。

)6. 创建数据库切换到Informix用户。

在开始->程序->IBM Informix 11.7,找到刚刚创建成功的实例图标,点击该图标,在弹出的命令行窗口下使用dbaccess命令创建数据库、表即可。

如下图所示为使用dbaccess创建数据库,在命令行中创建数据库。

Create database xydb in dbspce1 with log授予用户权限切换到Informix用户。

在开始->程序->IBM Informix 11.7,找到刚刚创建成功的实例图标,点击该图标,在弹出的命令行窗口下使用dbaccess xydb –命令,在命令窗口中授予权限:grant dba to XYRZ; --该处授权后因为大小写问题不能生效,需要用informix登录路Server Studio进行授权。

新增用户权限7. 启动和停止数据库实例因为windows操作系统中Informix的实例是以服务的形式存在的,所以也可以通过使用启动windows服务的方法来启动实例,尤其是在windows 7系统下,只能通过该方法启动实例。

启动服务的方法如下:开始->运行->输入“services.msc”->找到相关服务并点击右键->在弹出菜单中点击“start”。

如下图所示为启动实例的方法。

停止实例的方法与启动的方法类似,只需右键并点击stop即可。

8. 注意事项在windows下安装配置Informix与在Linux下有一些不同,主要注意一下几点:1)在windows 7系统下应注意必须使用启动服务的方法来启动实例。

2)配置数据库时使用文中给出的脚本来进行配置。

3)所有操作应使用Informix用户,当然也可以使用grant命令先给其他用户赋权限后再执行操作。

9.连接数据库可以采用IBM提供的免费工具IBM Data Studio来连接数据库,也可以采用Server Studio JE来连接。

1)Server Studio JE连接数据库在左侧connection中点击New-Connection在概述中输入连接名(自定义,无实际意义),DBMS类型等信息在数据库信息中输入Sever名(创建的实例名),Host[port](主机名+端口,端口在C:\windows\system32\drivers\etc\services的最后查找),用户名和用户ID,数据库名等信息主机连接,该页签可以不填,主要用于在linux下测试linux主机的连接可用性可以点击Test来测试连接,连接后可以在数据库中进行相关对象的管理,如添加表、视图等,如下图。

2)IBM Data Studio连接在【所有数据库】上点击右键,【新建数据库连接】不填完成。

相关文档
最新文档