歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> Linux文化 >> Informix Online for Linux的安裝方法

Informix Online for Linux的安裝方法

日期:2017/2/27 12:21:06   编辑:Linux文化

盡心奉獻-Informix Online for Linux的安裝方法!
1、 創建INFORMIX用戶組和informix用戶。
home=/usr/informix
2、 給informix加密碼。
3、 展開informix安裝文件:
rpm -i ******************.rpm(共三個)
4、 修改root的profile,增加
INFORMIXDIR=/usr/informix
export INFORMIXDIR
執行profile
5、 數據庫安裝,安裝的原則是先裝低版本的軟件,
後裝高版本的軟件,最後裝online。
a、 #cd /usr/informix
b、 #./installclientsdk
c、 #./installonline
6、 增加文件系統online。用戶可以定義別的文件系統。
mount /online文件系統。創建數據文件onlinedbs。
#cd /online
#>onlinedbs
#chmod 660 onlinedbs
7、 修改/online和/online/onlinedbs的權限
#chown informix /online
#chgrp informix /online
#chown informix /online/onlinedbs
#chgrp informix /online/onlinedbs
8、 以informix注冊
cd /usr/informix/etc
9、 將onconfig.std文件拷貝到onconfig或別的文件名。
vi onconfig中的參數
a、ROOTPATH /online/onlinedbs
b、ROOTSIZE 100000
c、CONSOLE /dev/null
d、TAPDEV /dev/null或用戶定義
e、LTAPDEV /dev/null
f、DBSERVERNAME db(此項可自己定義但要求與sqlhosts中的定義一致。)
以上所有的內容均可由用戶定義。
10、 初始化共享內存
11、 修改informix的.profile文件
$cd
vi .profile增加以下內容
INFORMIXDIR=/usr/informix
INFORMIXSERVER=db
ONCONFIG=onconfig
PATH=$PATH:/usr/informix/bin
export INFORMIXDIR INFORMIXSERVER ONCONFIG PATH
$chmod +x .profile
$. ./.profile
12、 修改sqlhosts文件(/usr/informix/etc)
在此文件中有類似demo_on onipcshm on_hostname on_servername的兩行,

在第二行前加"#",並增加相應內容如下:
demo_on onipcshm on_hostname on_servername
增加:db onipcshm test1 on_servername
與onconfig share memory中一致,要求此項為onipcshm
主機名可自己定義
13、 執行onmonitor
如果運行onmonitor出現如下信息:
The type of your terminal is unknown to the system
可以編輯informix的.profile文件 如:
TERM=vt100
TERMCAP=/usr/informix/etc/termcap
export TERM TERMCAP
如果運行onmonitor出現如下信息:
(Share) Memory fault
可以適當增加系統的共享內存。
在菜單中選擇parameteràinitialization
按esc鍵默認其設定值,進行初始化配置。如果返回出錯,
檢查/usr/informix/online.log文件判斷出錯原因。如果
是共享內存或信號燈出錯,可以適當增加系統的共享內存
或信號燈。
exit退出onmonitor
#su - informix
$oninit
14、 測試安裝是否正確
$dbaccessdemo7
$dbaccess
15、必要時要重新編譯內核或用onmonitor進行參數微調
16、由於版權原因,不能提供Informix Online的License S/N
和Key,希望諒解!
17、打倒瘟到死!Linux萬歲!!


Copyright © Linux教程網 All Rights Reserved