Home  >  Article  >  Database  >  Linux下安装Informix数据库

Linux下安装Informix数据库

WBOY
WBOYOriginal
2016-06-07 16:53:061491browse

1,首先建立Informix组和Informix用户使用root用户将Informix安装文件传入Linux使用root用户将Informix安装在/bank/informi目录下

1,首先建立Informix组和Informix用户
使用root用户将Informix安装文件传入Linux
使用root用户将Informix安装在/bank/informi目录下

2,安装好后用Informix进去设置
修改/bank/informix/.bash_profile文件
在/bank/informix/etc/目录下增加文件onconfig.cmsserver
在/bank/informix/etc/目录下增加文件sqlhosts
修改/etc/services文件
在/bank/informix/目录下新建2个文件夹data和log,并在data目录增加表空间rootdbs,tmpdbs,cifdbs,cmsdbs,migdbs;tmp目录增加表空间tmpdbs。先touch再chmod为660

然后使用onmonitor命令初始化设置Parameters-->Initialize
注意最后一页的最后一项修改为空

(可以省略下面的测试
使用命令oninit测试是否成功启动
使用命令onmode –ky测试是否成功关闭)

3,创建数据库空间
数据库没有启动时执行
$onspaces -c -d cifdbs -p "/bank/informix/data/cifdbs" -o 100 -s 512000
$onspaces -c -d migdbs -p "/bank/informix/data/migdbs" -o 100 -s 1024000
$onspaces -c -d cmsdbs -p "/bank/informix/data/cmsdbs" -o 100 -s 1024000
$onspaces -c -d tmpdbs -t-p "/bank/informix/data/tmpdbs" -o 100 -s 512000
$ontape -s -L 0 (0级备份)

4,,导入表结构和表数据
需要启动数据库之后
dbimport -q -c -d migdbs migdbs
./loadcmsdbs.sh /bank/informi/dataFrom2242 在目录/bank/informi/dataFrom2242下放着cmsdbs.exp文件

5,root新建一个用户a,informix用户进去为a赋权限grant dba to a
然后就可以使用终端访问了。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn