ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ORA-1019错误

ORA-1019错误

原创 Linux操作系统 作者:yangtingkun 时间:2009-12-08 23:55:48 0 删除 编辑

今天开发的同事碰到了这个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:

ORACLE_HOME

Specifies the top-level directory in which Oracle is installed.

TNS_ADMIN

Specifies the location of configuration files, for example, $ORACLE_HOME/network/admin. After installation Oracle creates the configuration files under /var/opt/oracle. If listener.ora and tnsnames.ora are in this directory, you might not need to set TNS_ADMIN, because by default Oracle uses /var/opt/oracle.

If you do not set these environment variables properly, Oracle returns the ORA-1019 error code the first time you attempt to connect. For information on error handling,

看来问题很可能是由于没有正确设置ORACLE_HOME环境变量造成的,在WINDOWS中设置系统环境变量,重启系统后,问题消失。

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4227/viewspace-621993/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
暂无介绍

注册时间:2007-12-29

  • 博文量
    1964
  • 访问量
    11076237