请教RedHat Enterprise Linux 5下安装IDS11.5
如题~谁能给发一份参考文档~先谢谢的说~邮箱yutianyi2009@163.com
回复 #1 shadow2009ty 的帖子
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
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
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:
Press 1 for Next, 3 to Cancel or 4 to Redisplay
Choose the setup type that best suits your needs.
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:
Press 1 for Next, 2 for Previous, 3 to Cancel or 4 to Redisplay
Do you want to enable role separation for auditing procedures?
[ ] 1 - Yes
2 - No
To select an item enter its number, or 0 when you are finished:
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
Do you want to create an IDS demonstration database server instance?
[ ] 1 - Yes
2 - No
To select an item enter its number, or 0 when you are finished:
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
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
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
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
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
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
4、创建IDS服务器
1)创建环境变量文件ifx.env
cd /opt/IBM/informix/
内容:
export INFORMIXDIR=/opt/IBM/informix
PATH=$INFORMIXDIR/bin:$PATH
export PATH
export INFORMIXSERVER=idssvr
export ONCONFIG=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)
$ cp sqlhosts.std sqlhosts
$ vi sqlhosts
idssvr onipcshm RHEL4 svc_idssvr
idssvr:informix服务器名称(数据库实例名)
onipcshm:通信协议
RHEL4:机器名称
svc_idssvr:informix服务名(和端口号帮定)
在/etc/services文件末,添加服务(root用户操作)
# Local services
svc_idssvr 9088/tcp
3)创建数据库根文件(系统表空间文件)
$ cd $INFORMIXDIR
$ 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
$ mkdir data
$ cd data
$ touch rootdata01
$ chmod 660 rootdata01
4)配置数据库服务器参数文件:onconfig
$ cp onconfig.std onconfig-idssvr
$ vi onconfig-idssvr
修改下面3个参数
ROOTPATH $INFORMIXDIR/data/rootdata01
DBSERVERNAME idssvr
DEF_TABLE_LOCKMODE ROW
5)创建数据库服务器
$ 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
检查是否成功
$ onstat -
IBM Informix Dynamic Server Version 11.50.UC4 -- On-Line -- Up 00:00:37 -- 144676 Kbytes
页:
[1]