溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

informix數(shù)據(jù)庫Linux/Unix下安裝配置

發(fā)布時間:2020-08-25 17:32:48 來源:網(wǎng)絡(luò) 閱讀:3306 作者:魔心 欄目:數(shù)據(jù)庫

1、數(shù)據(jù)庫安裝前準備

  • 創(chuàng)建informix組和用戶

    使用root用戶創(chuàng)建informix組和informix用戶,并修改口令

    groupadd  informix;

    useradd -g informix -d /opt/informix -m informix;

    passwd informix;

    chmod 755 /opt/informix;

  • 創(chuàng)建數(shù)據(jù)庫安裝目錄

    假設(shè)將數(shù)據(jù)庫的數(shù)據(jù)文件存放在/dbs目錄

   mkdir dbs;

   chown  informix:informix /dbs;

   cd /dbs;

   touch rootdbs;

   chown  informix:informix rootdbs;

   chmod 660 rootdbs;

  • 準備informix環(huán)境變量

   export INFORMIXSERVER=ifxserver

   export INFORMIXDIR=/opt/informix

   export ONCONFIG=onconfig.ifxserver

   export INFORMIXSQLHOSTS=$INFORMIXDIR/etc/sqlhosts.ifxserver

   export PATH=$INFORMIXDIR/bin:/usr/bin:${PATH}:.

  • 安裝JDK

2、數(shù)據(jù)庫安裝

  • 使用root用戶執(zhí)行ids_install文件進行安裝

3、數(shù)據(jù)庫初始化

  • 將/opt/informix/etc/目錄中的onconfig.std文檔拷貝一份,名稱為$ONCONFIG變量指定(onconfig.ifxserver),并編輯以下參數(shù):

   ROOTPATH  /dbs/rootdbs
   DBSERVERNAME  ifxserver

  • 將/opt/informix/etc/目錄中的sqlhosts.std文檔拷貝一份,名稱為$INFORMIXSQLHOSTS變量指定的名稱(sqlhosts.ifxserver),并編輯為:

   ifxserver  onsoctcp  IP   port

  • 初始化數(shù)據(jù)庫:oninit -ivy

4、數(shù)據(jù)庫配置

  • 創(chuàng)建dbspace(在/dbs目錄中創(chuàng)建操作系統(tǒng)文件,并修改這些文件屬性為660,屬主為informix:informix)

    touch datadbs1 llogdbs plogdbs 

    onspaces -c -d datadbs1 -p  /dbs/datadbs1 -o 0 -s 200000 -k 8k

    onspaces -c -d plogdbs -p /dbs/plogdbs -o 0 -s 2000000;  
    onspaces -c -d llogdbs -p /dbs/llogdbs -o 0 -s 2000000;

  • 添加物理日志和邏輯日志

    onparams -p -s 1999000 -d plogdbs

    onparams -a -d llogdbs -s 100000  

5、informix安裝完成

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI