今天开发的同事碰到了这个ORA-1019错误。
详细的错误信息为:
Microsoft OLE DB Provider for ODBC Drivers 错误 '80004005'
[Microsoft][ODBC driver for Oracle][Oracle]Error while trying to retrieve text for error ORA-01019
/includes/data_func.asp,行 12
而Oracle文档上对这个错误的描述为:
ORA-01019: unable to allocate memory in the user side
Cause: The user side memory allocator returned error.
Action: Increase the processes heap size or switch to the old set of calls.
从错误描述上看,似乎是内存分配的问题,但是客户端服务器上的内存有2G,而且并没有启动什么程序,显然不是简单的内存不足的问题。
不过问题多半是出在客户端程序上,检查了一下metalink,发现文档ID 91906.1中提到的问题可能和当前类似。导致这个问题的原因似乎是ODBC没有使用Oracle提供的驱动程序,而是使用了ORACLE_HOME之外系统提供的驱动。
又通过GOOGLE搜索了一下,找到了一篇文章,其中包含下面的描述:
You must set the following environment variables:
Specifies the top-level directory in which Oracle is installed. | |
看来问题很可能是由于没有正确设置ORACLE_HOME环境变量造成的,在WINDOWS中设置系统环境变量,重启系统后,问题消失。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/4227/viewspace-621993/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/4227/viewspace-621993/