Error while trying to retrieve text for error ORA-01019 的解決辦法

來源:互聯網
上載者:User

搞了好久,這篇文章幫到了我,感謝。

原文地址:https://www.cnblogs.com/zhenfei/p/4425874.html


這個問題涉及到 64 位的oracle服務, 和32位的用戶端導致的問題。

環境如下: win8.1 + 64位oracle 11.1 做伺服器, 用戶端由於採用32位程式,不支援64位的oracle用戶端,所以採用32位的10.2 的 instantclient 包。

問題現象:無法串連oracle伺服器,plsql、sqlplus 均串連正常, 程式串連時報錯 Error while trying to retrieve text for error ORA-01019。

Oracle文檔上對這個錯誤的描述為:

ORA-01019: unable to allocate memory in the user 
Cause: The user side memory allocator returned error.

Action: Increase the processes heap size or switch to the old set of calls.

 

解決:

導致這個問題的原因似乎是ODBC沒有使用Oracle提供的驅動程式,而是使用了ORACLE_HOME之外系統提供的驅動。顯然不是記憶體的問題。 所以解決第一步:

1、在環境變數中增加 ORACLE_HOME 指向64位安裝目錄,而不是 instantclient 目錄。我想此步可以讓 windows 使用匹配的檔案去驅動

   做了第一步以後,再串連,錯誤提示變成了, 不能分配記憶體的錯誤。 接著再第二步

2、將 10.2 的 Instantclinet 包換成 11.1 匹配的 32位 instantclient 包

    換了後,串連正常。

 

環境變數中 tns_admin 和 path 都可以指向這 32 位的 instantclient 包位置路徑。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.