`
天空之城
  • 浏览: 402814 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Linux平台安装Informix Dyanmic Server 10

阅读更多

Linux平台安装Informix Dyanmic Server 10.00.UC4

 

第一步,安装必须的包(RH AS3)

 gcc and c++ compiler 3.2.3

 

        compat-gcc-7.3
        compat-gcc-c++-7.3
        compat-libstdc++-7.3
        glibc-devel-2.3.2
        libaio-0.3.96
        libgcc-3.2.3
        libstdc++-3.2.3
        ncurses-5.3
        openmotif-2.2.3
        pam-0.75
        XFree86-libs-4.3.0

 

第二步,搭建安装环境

1.建立informix用户组和用户

以root身份登陆,然后:

groupadd -g 3000  informix

useradd -u 3000 -g 3000 informix -d /home/informix -m informix

2.修改环境变量

#su informix
#cd
#ls -a
#vi .bash_profile

修改为如下:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

#PATH=$PATH:$HOME/bin
INFORMIXDIR=/opt/informix   //informix的安装路径
export INFORMIXDIR
INFORMIXSERVER=informix  //informix的服务器名
export INFORMIXSERVER
ONCONFIG=onconfig.informix //informix的配置文件名
export ONCONFIG
LD_LIBRARY_PATH=/opt/informix   //informix的lib库路径
export LD_LIBRARY_PATH

PATH=$PATH:$HOME/bin:$INFORMIXDIR/bin 


export PATH
unset USERNAME

 

保存退出之后,修改权限

#chmod 755 .bash_profile

使以上设定生效

#./.bash_profile

 

第三步,上传安装文件

 

1.用SecureFX连接虚拟机,将安装文件IDS.10.00.UC4.Linux.tar上传到 /home/informix 目录下
2.以root/informix身份登陆系统,到/home/informix,解压安装文件

$tar xvf IDS.10.00.UC4.Linux.tar


第四步,开始安装

以root身份登陆(我看过网上的很多文档,都是以informix用户登陆来安装,但我以informix身份登陆进行安装的时候,系统提示我需要以root身份来安装)

#cd /home/informix/SERVER

执行安装脚本

#./installserver

 

Initializing InstallShield Wizard........
          Launching InstallShield Wizard........


   1. Release Notes
   2. Quick Beginnings Guide
   3. Begin Installation

Please select one of these options [3]   //回车

Beginning installation...

接下来的安装过程要做一些选择,都比较简单,基本上按照默认的就可以,一路回车,直到安装完成,得到如下提示:
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 exis
ting setup

 

我们可以根据提示来具体的配置informix服务器。

 

第五步,配置informix

 

1. 在informix安装目录建立data目录,然后touch一个空文件作为数据库的默认设备,并且修改空文件的权限为660

$ mkdir data
$ cd data
$ touch datadbs.dat
$ chmod 660 datadbs.dat //一定要执行这一步,否则在后续的启动过程中会出错

 

2.配置onconfig文件

默认的配置文件在 /opt/informix/etc/onconfig.std

我们复制一份,并且改其后缀名为之前设定的informix服务器名,此处为 informix

$cd /opt/informix/etc/onconfig.std
$cp onconfig.std  onconfig.informix
$vim onconfig.informix

打开之后,我们需要修改的地方有以下几项:

# Root Dbspace Configuration

ROOTNAME       rootdbs   # Root dbspace name       //rootdbs换成datadbs
ROOTPATH      /dev/online_root # Path for device containing root dbspace 
              // 把/dev/online_root换成 /opt/informix/data/datadbs.dat
ROOTOFFSET      0               # Offset of root dbspace into device (Kbytes)
ROOTSIZE        30000           # Size of root dbspace (Kbytes)

# Physical Log Configuration

PHYSDBS  rootdbs #            //rootdbs换成 datadbs
PHYSFILE        2000            # Physical log file size (Kbytes)


# System Archive Tape Device

TAPEDEV         /dev/tapedev    # Tape device path      //tapedev换成null
TAPEBLK         32              # Tape block size (Kbytes)
TAPESIZE        10240           # Maximum amount of data to put on tape (Kbytes)

# Log Archive Tape Device

LTAPEDEV       /dev/tapedev    # Log tape device path   //tapedev换成null
LTAPEBLK        32              # Log tape block size (Kbytes)
LTAPESIZE       10240           # Max amount of data to put on log tape (Kbytes)


# System Configuration

DBSERVERNAME                    # Name of default database server  
//数据库服务器名称,这里设置成和环境变量里的一样 informix

最后,将这个文件中所有的/usr/informix换成 /opt/informix (informix的安装目录)

可以使用shell脚本命令来完成,在命令行运行

:%s/\/usr\/informix/\/opt\/informix

 

3.配置系统服务(需要root权限)

su到root用户
#vim /etc/services

在最后一行,添加如下内容:

informix_services 8888/tcp          #informix server services

 

4.配置sqlhosts文件(切换回informix用户)

安装完成后,有个默认的sqlhosts.std文件,在/opt/informix/etc 目录下

$cd /opt/informix/etc
$cp sqlhosts.std sqlhosts
$vim sqlhosts

修改为如下内容:

informix        onipcshm        rouse           informix_services
informix        onsoctcp        rouse           informix_services

informix:是数据库服务器名,和环境变量中的一样
onipcshm/onsoctcp:使用的协议名称,连接数据库的两种方式
rouse:主机名,和/etc/hosts里的一样
informix_services:服务名,和/etc/services中的一样

 

5.启动informix

修改完所有配置文件之后,重启系统,然后可以尝试启动informix服务器

$ oninit -ivy  //第一次启动的时候需加 -ivy参数,以后正常启动时直接 oninit

Checking group membership to determine server run mode...succeeded
Reading configuration file '/opt/informix/etc/onconfig.informix'...succeeded
Creating /INFORMIXTMP/.infxdirs...succeeded
Creating infos file "/opt/informix/etc/.infos.informix"...succeeded
Linking conf file "/opt/informix/etc/.conf.informix"...succeeded
Writing to infos file...succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 1380 kbytes...succeeded
Allocating 10016 kbytes for buffer pool of 2K page size...succeeded
Initializing rhead structure...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
Initialization of Encryption...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'ipcshm' listener threads...succeeded
Starting tracing...succeeded
Initializing 1 flushers...succeeded
Initializing log/checkpoint information...succeeded
Opening primary chunks...succeeded
Opening mirror chunks...succeeded
Initializing dbspaces...succeeded
Validating chunks...succeeded
Creating database partition...succeeded
Initialize Async Log Flusher...succeeded
Forking btree cleaner...succeeded
Initializing DBSPACETEMP list...succeeded
Checking database partition index...succeeded
Checking location of physical log...succeeded
Initializing dataskip structure...succeeded
Checking for temporary tables to drop...succeeded
Forking onmode_mon thread...succeeded
Verbose output complete: mode = 5

说明执行成功,如果中间出现error或者warning,我们可以man一下日志文件(/opt/informix/online.log),来看看是什么问题。

接下来,到/opt/informix/data 查看一下datadbs.dat文件的大小,如果不为0,那么说明数据库创建成功。

$ onstat -i
IBM Informix Dynamic Server Version 10.00.UC4     -- On-Line -- Up 00:06:29 -- 28552 Kbytes
onstat>

说明数据库状态正常,退出 onstat 输入 q 就可以

分享到:
评论

相关推荐

    Linux下informix安装Linux下informix安装

    Linux 下 Informix 安装 Linux 下 Informix 安装是一个复杂的过程,需要按照一定的步骤进行。以下是 Informix 11.5 for Linux as4 u2 的安装过程: 一、软件包下载 首先需要在 IBM 官方网站上注册并下载安装包 iif...

    Linux下安装informix数据库

    Linux下安装informix数据库,11.5版本了 实际安装过

    IBM Informix Dynamic Server for UNIX and Linux 安装指南 V11.0

    ### IBM Informix Dynamic Server for UNIX and Linux 安装指南 V11.0 #### 关键知识点解析 **一、IBM Informix Dynamic Server (IDS)** IBM Informix Dynamic Server(简称IDS)是IBM公司开发的一款高性能数据库...

    Linux下的Informix数据库简明安装指南

    Informix与Oracle等数据库相比,速度并不占优,但可靠性非常好。本文介绍了Informix数据库在Linux环境下的安装过程。

    Informix 安装指南 For Unix&Linux安装指南 V9.4.rar

    本指南将针对"Unix&Linux"平台上的Informix V9.4进行深入的安装讲解,旨在帮助用户顺利安装并配置这一强大的数据库系统。 **一、系统需求** 在开始Informix的安装之前,需要确保您的Unix或Linux环境满足以下硬件和...

    IBM Informix Dynamic Server 11.50 UNIX Linux和Mac OS X平台 安装指南

    IBM给出的informix 11.5在非windows平台下的安装和配置指南,中文版,非常适合informix数据库管理员和学习者

    linux系统中informix的安装

    该文档是如何教大家在linux系统中安装informix数据

    IBM Informix Dynamic Server 11

    ### IBM Informix Dynamic Server 11:下一代OLTP数据服务器技术 #### 一、概述 IBM Informix Dynamic Server (IDS) 11 是IBM推出的一款高性能的在线事务处理(OLTP)数据库管理系统。该系统旨在为用户提供高效、...

    IBM Informix Dynamic Server for Windows安装指南

    - **定义与用途**:IBM Informix Dynamic Server (IDS) 是一款高性能、高可用性的数据库管理系统,它专为关键业务应用程序设计,支持多种平台包括Windows操作系统。IDS以其卓越的数据处理能力、可靠性和易于管理而...

    IBM Informix Dynamic Server 管理员指南 11.5

    9. **操作系统的兼容性**:由于Informix可以在多种操作系统上运行,指南会讨论在不同平台(如Unix、Linux、Windows)上的特定配置和考虑事项。 10. **服务与支持**:提供了获取IBM官方技术支持和社区资源的信息,...

    linux下informix自启动设置

    在Linux操作系统中,Informix数据库管理系统是广泛应用的关系型数据库系统,尤其在企业级环境中,确保其在系统启动时自动运行是非常关键的。本教程将详细解释如何在Linux下配置Informix自启动设置,以实现数据库服务...

    linux下informix安装说明

    linux操作系统,informix数据库安装文档,数据备份,数据维护。

    Informix 11.5 for Linux x64安装文档

    《Informix 11.5 for Linux x64 安装指南》 Informix 11.5 是一款高效的企业级数据库管理系统,尤其适合在Linux x64环境下运行。本安装文档将指导用户完成Informix的基本安装过程,包括系统需求、参数配置以及必要...

    INFORMIX安装INFORMIX安装

    根据提供的文件信息,我们可以归纳出一个详细的步骤指南来完成INFORMIX数据库系统的安装与配置。以下将基于给定的信息,详细地阐述每一步的具体操作及其意义。 ### INFORMIX安装流程详解 #### 1. 准备环境 - **...

    Informix11.5_for_linux5安装步骤

    本文档将详细介绍如何在Linux环境下安装IBM Informix 11.5版本,并且特别针对的是AS4(即Red Hat Enterprise Linux 4)平台。Informix是一款功能强大的关系型数据库管理系统,广泛应用于各种高性能数据库应用领域,...

    在redhat linux es4上安装informix11.5过程

    在redhat linux es4上安装informix11.5过程

    详解Linux下INFORMIX安装.pdf

    在深入探讨Linux环境下INFORMIX数据库的安装过程之前,我们首先需要了解INFORMIX是什么。INFORMIX是一款由IBM公司开发的关系型数据库管理系统(RDBMS),以其高效能、高可用性和强大的数据处理能力而闻名。它广泛...

    window下安装informix

    #### 二、安装Informix Server ##### 1. 默认配置安装 - **用户名和密码**:安装过程中,默认的用户名和密码为`informix`。用户可以根据实际需求更改。 - **Services Name 和 Port Number**:这些设置允许自定义,...

    informix 安装指南 for unix&linux安装指南 v9.4

    《Informix 安装指南 for Unix&Linux 安装指南 V9.4》是一份详细的指导文档,专门针对在Unix和Linux操作系统上安装Informix数据库管理系统的过程。Informix是一款高效、可靠的数据库解决方案,广泛应用于企业级应用...

    IBM Informix Dynamic Server 11 系统管理(918 考

    ### IBM Informix Dynamic Server 11 系统管理(918 考试)核心知识点解析 #### 一、序言 IBM Informix Dynamic Server (IDS) 是一款高性能的关系型数据库管理系统,广泛应用于电信、金融、政府等多个领域。本教程...

Global site tag (gtag.js) - Google Analytics