文档库 最新最全的文档下载
当前位置:文档库 › windows+informix+环境搭建说明

windows+informix+环境搭建说明

二、Informix数据库安装(windows)

1、在IFMXDATA目录下生成文件:copy nul rootdbs_dat.001
2、扩充数据库空间:onspaces -a rootdbs -o 0 -p C:\IFMXDATA\ol_ea001\rootdbs_dat.001 -s 1000000
onspaces -a rootdbs -o 0 -p D:\IFMXDATA\ol_lyc\rootdbs_dat.001 -s 1000000

2.2、增加数据库日志空间:onparams -a -d rootdbs -s size
3、设置字符集:修改Informix数据启动文件
set CLIENT_LOCALE=EN_US.8859-1
set DB_LOCALE=EN_US.8859-1
set SERVER_LOCALE=EN_US.8859-1
set DBDATE=Y4MD-
4、导入备份数据库文件:dbimport databasename
5、修改informix安装目录下\etc\ONCONFIG.***文件中的
TAPEDEV \\.\tape0 # Tape device path 为
TAPEDEV NUL # Tape device path(其中***为informix的server名称)
原因:informix为Linux文件系统,在windows下就必须修改

6、如果提示Mirror那么需要修改ONCONFIG.***文件中的Mirror配置部分为0,将路径清空
7、设置数据库日志格式:ontape -s -U xxloan(用户数据库)
这一句一定要执行,不然到时候会报:SQLException :transactions is not surported
8、设置数据库临时表空间设备:DBSPACETEMP rootdbs # Default temp dbspaces
9、查看数据库日志模式 onmonitor (UNIX环境下)
10、如果报没有select view权限,那么需要修改数据库中的用户名"informix"---->"loan"



安装informix for nt时报错

日志报错信息:

Thu Jan 12 08:14:38 2006

08:14:38 DR: DRAUTO is 0 (Off)
08:14:43 Informix Dynamic Server Version 7.31.TC8 Software Serial Number AAB#A585185
08:14:43 listener-thread: err = -25572: oserr = 0: errstr = : Network driver cannot bind a name to the port.

08:14:43 Attempting to bring listener thread down.

08:14:43 Server stopped.

08:14:43 Informix Dynamic Server Stopped.
08:14:47 mt_shm_remove: WARNING: may not have removed all/correct segments

导入数据的时候是乱码
去掉最后一行 后还需要还一下cmd的属性-选项-当前代码页--选 gbk


解决办法:
修改注册表中informix下面的HKEY_LOCAL-MACHINE SOFTWARE INFORMIX SQLHOSTS
修改service项,把他该为tcp端口号!
HKEY_LOCAL_MACHINE\SOFTWARE\Informix\SQLHOSTS\ol_lyc
host 电脑名字
service 电脑名字
protocol olsoctcp


SQL 状态 = 08004,错误代码 = -908 而失败。



SQL 状态 = IX000,错误代码 = -582
没有打开日志

SQL 状态 = 08004,错误代码 = -908 而失败
ip 不对

状态 = IX000,错误代码 = -761
重启linux

952
密码不正确


-12204 RSAM error: Long transaction detected.
The database server ran out of log space in which to record this transaction. A transaction that is not fully recorded cannot be rolled back. To preserve database integrity, the database server ended the current operation that caused the long transaction.

Terminate the application and replan it so that it requires less log space in a transaction. Alternatively, contact the database s

erver administrator to discuss increasing the number or the size of the logical logs. Be prepared to talk about the number of rows being updated or inserted and the size of each row.

空间不够
onparams -a -d rootdbs -s size

HKEY_LOCAL_MACHINE\SOFTWARE\Informix\SQLHOSTS\ol_lyc
HOST 机器名字
SERVICE 机器名字
PROTOCOL olsoctcp

[informix@lyc ~]$ onmonitor
Termcap entry too long
Too many tc= indirections

Program stopped at "tb4_main.4gl", line number 71.
FORMS statement error number -1170.
The type of your terminal is unknown to the system.
修改/home/informix/.bashrc在里面增加
export TERMINFO=/home/informix/etc/typetab
export TERMCAP=/home/informix/etc/termcap
后正常。



329
没有这个库


三、Weblogic安装
创建domain
配置config.xml文件
DriverName:https://www.wendangku.net/doc/cc18854587.html,rmix.jdbc.IfxDriver
URL:jdbc:informix-sqli://stephen:1526/loan:INFORMIXSERVER=ol_stephen;
设置test表:TestConnectionsOnReserve="true" TestTableName="yh"


四、ftp问题
在从WINDOWS传到UNIX在每行的结尾可能会出现^M
解决方法:
1、用ASCII模式重传。
2、用vi 中的替换
%s/^M$// <- ^ ctrl+v M ctrl+m


onstat -g sql
onmode -z 97

onmode -uy
onmode -my


问题:Could not access INFORMIXDIR /usr/informix. 解决 source .bash_profile


onmode

onmode -ky 完全关闭数据库 (y是对一切回答为yes,去掉提示)
onmode -sy 宽限的切换到静态方式
onmode -uy 马上切换到静态方式
onmode -my 从静态方式切换到联机方式
说明:联机方式:用户可以连接 (可以用onmode -uy切到静态, 用onmode -ky关闭)
静态方式:用户不可以连接,但可以使用实用程序进行访问IDS (比如onstat) (可以用onmode -m切换到联机)
完全关闭:没有启动服务,什么都不能访问(可以用oninit切换到联机)

相关文档
相关文档 最新文档