在redhat linux es4上安装informix11.5过程
2009/07/30 13:36
1、创建用户组和用户
groupadd informix useradd -g informix informix 2、安装 GUI安装 media_location/ids_install CONSOLE安装 media_location/SERVER/installserver installserver:Installs Dynamic Server and its features. 安装选项: Typical Installation就是完全安装 Custom Installation 3、IDS软件的console安装过程 以root用户在console模式下安装: Initializing InstallShield Wizard........ Launching InstallShield Wizard........ Welcome to the InstallShield Wizard for IBM Informix Dynamic Server Version 11.50 The InstallShield Wizard will install IBM Informix Dynamic Server Version 11.50 on your computer. To continue, choose Next. IBM Informix Dynamic Server Version 11.50 IBM Corporation http://www.ibm.com Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] International Program License Agreement Part 1 - General Terms BY DOWNLOADING, INSTALLING, COPYING, ACCESSING, OR USING THE PROGRAM YOU AGREE TO THE TERMS OF THIS AGREEMENT. IF YOU ARE ACCEPTING THESE TERMS ON BEHALF OF ANOTHER PERSON OR A COMPANY OR OTHER LEGAL ENTITY, YOU REPRESENT AND WARRANT THAT YOU HAVE FULL AUTHORITY TO BIND THAT PERSON, COMPANY, OR LEGAL ENTITY TO THESE TERMS. IF YOU DO NOT AGREE TO THESE TERMS, - DO NOT DOWNLOAD, INSTALL, COPY, ACCESS, OR USE THE PROGRAM; AND - PROMPTLY RETURN THE PROGRAM AND PROOF OF ENTITLEMENT TO THE PARTY 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. 1 Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] Checking for Prerequisites ... IBM Informix Dynamic Server Version 11.50 Install Location Please specify a directory or press Enter to accept the default directory. Directory Name: [/opt/IBM/informix] Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] Choose the setup type that best suits your needs. [X] 1 - Typical The program will be installed with the suggested configuration. Recommended for most users. [ ] 2 - Custom The program will be installed with the features you choose. Recommended for advanced users. To select an item enter its number, or 0 when you are finished: [0] Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] Do you want to enable role separation for auditing procedures? [ ] 1 - Yes [X] 2 - No To 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] Do you want to create an IDS demonstration database server instance? [ ] 1 - Yes [X] 2 - No To 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] IBM Informix Dynamic Server Version 11.50 will be installed in the following location: /opt/IBM/informix with the following features: Base Server Database Server Extensions J/Foundation Built-in DataBlade Modules Conversion and Reversion Support XML Publishing Global Language Support (GLS) West European and Americas East European and Cyrillic Chinese Japanese Korean Other Press ENTER to read the text [Type q to quit] Backup and Restore ON-Bar Utilities Informix Interface for Tivoli Storage Manager Informix Storage Manager archecker Utility Demos Data-Loading Utilities onunload and onload Utilities dbload Utility High-Performance Loader(HPL) Enterprise Replication Administrative Utilities Performance Monitoring Utilities Miscellaneous Monitoring Utilities Auditing Utilities Database Import and Export Utilities for a total size: 275.2 MB Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay [1] Installing IBM Informix Dynamic Server Version 11.50. Please wait... 0 % complete 10 % complete 20 % complete 30 % complete 40 % complete 50 % complete 60 % complete 70 % complete 80 % complete 90 % complete 100 % complete Creating uninstaller... Performing GSKit Installation ... Performing GSKit installation for Linux ... Branding Installed Files ... Please read the information below. Set required environment variables Set $INFORMIXDIR to the directory where the IDS server is installed. Set $PATH to include $INFORMIXDIR/bin Set $INFORMIXSERVER to the name of the database server Set $ONCONFIG to the name of the active onconfig configuration file. If using a sqlhosts file other than $INFORMIXDIR/etc/sqlhosts Set $INFORMIXSQLHOSTS If using a locale/language other than the default Set $CLIENT_LOCALE Set $DB_LOCALE Set $SERVER_LOCALE Set $DBLANG Prepare connectivity files sqlhosts /etc/hosts /etc/services Prepare configuration file Set DBSERVERNAME Set SERVERNUM Set ROOTNAME Press ENTER to read the text [Type q to quit] Set ROOTPATH Set ROOTSIZE Initialize database server As informix or root, run oninit If initializing a new server for the FIRST time, run oninit -i This will overwrite any existing data, so use caution on an existing setup For more information please refer to the IBM Informix Dynamic Server Getting Started Guide Press 1 for Next, 3 to Cancel or 4 to Redisplay [1] The InstallShield Wizard has successfully installed IBM Informix Dynamic Server Version 11.50. Choose Finish to exit the wizard. Press 3 to Finish or 4 to Redisplay [3] 4、创建IDS服务器 1)创建环境变量文件ifx.env cd /opt/IBM/informix/ 内容: export INFORMIXDIR=/opt/IBM/informix PATH=$INFORMIXDIR/bin:$PATH export PATH export INFORMIXSERVER=idssvr export NCONFIG=onconfig.idssvr export CLIENT_LOCALE=zh_CN.GB18030-2000 #设置DB中存放数据的字符集,和GLS目录下的文件关联 export DB_LOCALE=zh_CN.GB18030-2000 export SERVER_LOCALE=zh_CN.GB18030-2000 export DBLANG=en_us #设置DB工作语言环境,和msg目录下的文件关联 export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhosts export INFORMIXTERM=$INFORMIXDIR/etc/termcap LD_LIBRARY_PATH=$INFORMIXDIR/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH export TERMCAP=$INFORMIXDIR/etc/termcap export INFORMIXTERM=TERMCAP chmod +x ifxenv 在informix用户的profile末添加 . /opt/IBM/informix/ifx.env 2)配置连接服务及端口号 修改$INFORMIXDIR/etc/sqlhost文件(window上存放在HKEY_LOCAL_MACHINE\SOFTWARE\Informix\SQLHOSTS) [informix@REHL4 etc]$ cp sqlhosts.std sqlhosts [informix@REHL4 etc]$ vi sqlhosts idssvr onipcshm RHEL4 svc_idssvr idssvr:informix服务器名称(数据库实例名) onipcshm:通信协议 RHEL4:机器名称 svc_idssvr:informix服务名(和端口号帮定) 在/etc/services文件末,添加服务(root用户操作) # Local services svc_idssvr 9088/tcp 3)创建数据库根文件(系统表空间文件) [informix@REHL4 ~]$ cd $INFORMIXDIR [informix@REHL4 informix]$ ls aaodir dbssodir doc extend gls gskit ids_license ifx.env ism msg snmp tmp uninstallserver bin demo etc forms gsk help idssvr.env incl lib release ssl uninstall_ids1150 [informix@REHL4 informix]$ mkdir data [informix@REHL4 informix]$ cd data [informix@REHL4 data]$ touch rootdata01 [informix@REHL4 data]$ chmod 660 rootdata01 4)配置数据库服务器参数文件:onconfig [informix@REHL4 etc]$ cp onconfig.std onconfig-idssvr [informix@REHL4 etc]$ vi onconfig-idssvr 修改下面3个参数 ROOTPATH $INFORMIXDIR/data/rootdata01 DBSERVERNAME idssvr DEF_TABLE_LOCKMODE ROW 5)创建数据库服务器 [informix@REHL4 ~]$ oninit -ivy Checking group membership to determine server run mode...succeeded Reading configuration file '/opt/IBM/informix/etc/onconfig.idssvr'...succeeded Creating /INFORMIXTMP/.infxdirs...succeeded Creating infos file "/opt/IBM/informix/etc/.infos.idssvr"...succeeded Linking conf file "/opt/IBM/informix/etc/.conf.idssvr"...succeeded Checking config parameters...succeeded Writing to infos file...succeeded Allocating and attaching to shared memory...succeeded Creating resident pool 10572 kbytes...succeeded Allocating 100016 kbytes for buffer pool of 2K page size...succeeded Initializing rhead structure...succeeded Initialization of Encryption...succeeded Initializing ASF...succeeded Initializing Dictionary Cache and SPL Routine Cache...succeeded Bringing up ADM VP...succeeded Creating VP classes...succeeded Onlining 0 additional cpu vps...succeeded Onlining 2 IO vps...succeeded Forking main_loop thread...succeeded Initializing DR structures...succeeded Forking 1 'ipcshm' listener threads...succeeded Starting tracing...succeeded Initializing 8 flushers...succeeded Initializing log/checkpoint information...succeeded Initializing dbspaces...succeeded Opening primary chunks...succeeded Opening mirror chunks...succeeded Validating chunks...succeeded Creating database partition...succeeded Initialize Async Log Flusher...succeeded Starting B-tree Scanner...succeeded Initializing DBSPACETEMP list...succeeded Checking database partition index...succeeded Initializing dataskip structure...succeeded Checking for temporary tables to drop...succeeded Forking onmode_mon thread...succeeded Creating periodic thread...succeeded Starting scheduling system...succeeded Verbose output complete: mode = 5 检查是否成功 [informix@REHL4 ~]$ onstat - IBM Informix Dynamic Server Version 11.50.UC4 -- On-Line -- Up 00:00:37 -- 144676 Kbytes |
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/611609/viewspace-681125/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/611609/viewspace-681125/