Содержание
- Error while trying to retrieve text ora 01019
- Answered by:
- Question
- Error while trying to retrieve text ora 01019
- Вопрос
- ORA-01019 подключение к Oracle из Excel
- 5 ответы
- DataStage job fails with error ORA-12154 when accessing an Oracle database via the Oracle run-time client.
- Troubleshooting
- Problem
- Resolving The Problem
- подскажите по perl+oracle. Помогите советом
- #1 mstf
- #2 puzanov
- #3 mstf
- #4 mstf
Error while trying to retrieve text ora 01019
This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Answered by:
Question
I’ve got a legacy 32-bit application that uses the Microsoft ODBC for Oracle driver. I’ve had no problem getting it running on Windows 7 and Windows Server 2008. I went to install it on Windows Server 2012 though, and I get the following error when trying to connect to an Oracle database:
Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC driver for Oracle][Oracle]Error while trying to retrieve text for error ORA-01019
This is regardless of whether I use a connection string like so: «Driver=;Server=MyDB;Uid=MyUser;Pwd=MyPass» or through a 32-bit DSN entry.
The 32-bit oracle driver IS installed, and I can actually connect fine with their ODBC driver. No matter what I try though, I can’t connect using the MS ODBC for Oracle driver. I noticed that I get that error above regardless of whether the oracle driver is installed or not, so I’m thinking maybe the MS ODBC for Oracle driver doesn’t recognize that the oracle driver is installed at all.
At this point, I’ve spent 3 days trying everything I could find on the internet. I’ve reinstalled the Oracle driver countless times, but it really doesn’t seem to be an issue with the Oracle driver, it seems to be the MS ODBC for Oracle driver specifically. The error message doesn’t change whether the oracle driver is there or not.
Switching over to use a different driver is the long term solution, but I need this working now, and when I tried simply swapping out the MS ODBC for Oracle driver for the actual Oracle ODBC driver, there were too many issues since the application uses stored procedures and parameters in the specific format that the MS ODBC for Oracle driver expects.
Any help would be appreciated, I don’t want to have to roll back to 2008.
Источник
Error while trying to retrieve text ora 01019
Вопрос
I’ve got a legacy 32-bit application that uses the Microsoft ODBC for Oracle driver. I’ve had no problem getting it running on Windows 7 and Windows Server 2008. I went to install it on Windows Server 2012 though, and I get the following error when trying to connect to an Oracle database:
Microsoft OLE DB Provider for ODBC Drivers: [Microsoft][ODBC driver for Oracle][Oracle]Error while trying to retrieve text for error ORA-01019
This is regardless of whether I use a connection string like so: «Driver=;Server=MyDB;Uid=MyUser;Pwd=MyPass» or through a 32-bit DSN entry.
The 32-bit oracle driver IS installed, and I can actually connect fine with their ODBC driver. No matter what I try though, I can’t connect using the MS ODBC for Oracle driver. I noticed that I get that error above regardless of whether the oracle driver is installed or not, so I’m thinking maybe the MS ODBC for Oracle driver doesn’t recognize that the oracle driver is installed at all.
At this point, I’ve spent 3 days trying everything I could find on the internet. I’ve reinstalled the Oracle driver countless times, but it really doesn’t seem to be an issue with the Oracle driver, it seems to be the MS ODBC for Oracle driver specifically. The error message doesn’t change whether the oracle driver is there or not.
Switching over to use a different driver is the long term solution, but I need this working now, and when I tried simply swapping out the MS ODBC for Oracle driver for the actual Oracle ODBC driver, there were too many issues since the application uses stored procedures and parameters in the specific format that the MS ODBC for Oracle driver expects.
Any help would be appreciated, I don’t want to have to roll back to 2008.
Источник
ORA-01019 подключение к Oracle из Excel
Я установил Oracle 10g Express Edition. При попытке проверить соединение я получаю сообщение об ошибке «Ошибка при попытке получить текст для ошибки ORA-01019».
задан 22 июля ’10, 02:07
ORA-01019 означает «невозможно выделить память на стороне пользователя». — Jeffrey Kemp
Во-первых, переформатируйте текст вашего вопроса — вынесите текст из блока [code], исправьте отступ. — Alexander Malakhov
Вы пытались подключиться к базе данных из SQL * Plus? Интерфейс Apex работает без проблем? — Jeffrey Kemp
В Q вы говорите, что извлекаете текст. Вы имеете в виду извлечение из Excel? Потому что относительно БД я вижу только вставку — Alexander Malakhov
5 ответы
Недавно у меня возникла следующая ошибка.
Мне удалось решить проблему, просто изменив строку подключения.
кто-то модифицировал/обновлял компоненты на коробке.
«ORA-01019 не может выделить память на стороне пользователя
Причина. Распределитель памяти на стороне пользователя возвратил ошибку.
Действие: увеличьте размер кучи процесса или переключитесь на старый набор вызовов».
Дополнение из комментариев:
Не могли бы вы попробовать этот код?
‘закрыть конец соединения
Создан 22 июля ’10, 10:07
Как увеличить размер кучи процесса или переключиться на старый набор вызовов — Рамеш
Я пытался найти это для вас в Google, но я не могу найти конкретного ответа — Сюул Янссен
Я надеюсь, что это поможет немного, но я не мог найти, как это сделать. msdn.microsoft.com/en-us/library/ms810466.aspx — Сюул Янссен
На самом деле я подключаюсь из Excel, в чем проблема — Рамеш
Это не проблема. Я пытался найти рабочий пример для вас. Может быть, вам стоит попробовать это. (Код смотрите в посте) — Сюул Янссен
(Это не поместилось в поле для комментариев)
Вам нужен хотя бы один водитель. Драйвер oracle лучше, но Microsoft Driver тоже подойдет.
Давайте сначала попробуем создать строку подключения. Щелкните правой кнопкой мыши на рабочем столе и создайте новый файл .txt. Теперь переименуйте ваш текстовый файл в something.udl Дважды щелкните файл udl. Перейдите в «Поставщик» и выберите «Поставщик Microsoft OLEDB для Oracle». Затем нажмите «Далее». В поле имени сервера вы вводите свое имя TNS. Затем введите имя пользователя и пароль и поставьте V внутри «Разрешить сохранение пароля» (это нам понадобится) И нажмите «Проверить соединение». Убедитесь, что это работает.
Если это работает, нажмите OK. Теперь откройте файл UDL в текстовом редакторе. Вы увидите что-то похожее на:
Скопируйте эту часть в строку подключения:
Теперь ваша строка подключения должна выглядеть так:
Источник
DataStage job fails with error ORA-12154 when accessing an Oracle database via the Oracle run-time client.
Troubleshooting
Problem
DataStage job fails with error ORA-12154 when accessing an Oracle database via the Oracle run-time client. The following are typical errors, but multiple variations exist: Error while trying to retrieve text for error ORA-12154 APT_OraReadOperator: connect failed. ORA-12154: TNS:could not resolve the connect identifier. ORA-12154: TNS:could not resolve service name
Resolving The Problem
Error while trying to retrieve text for error ORA-12154
The above error means that not only did the connection to Oracle Database fail, but that Oracle was unable to retrieve the text of error message ORA-12154. This usually indicates that either the DataStage userid running the job does not have read access to the Oracle run-time client files, or that the environment variable ORACLE_HOME is not defined.
ORA-12154: TNS:could not resolve the connect identifier.
ORA-12154: TNS:could not resolve service name
The above 2 errors indicate that the connection identifier or service name specified in the DataStage job (or in the ORACLE_SID environment variable or ODBC definition) was not known to either the Oracle client or the Oracle server. The connection/service identifiers known to the Oracle run-time client are defined in the tnsnames.ora file, $ORACLE_HOME/network/admin/tnsnames.ora
Verify that the identifier specified for the failing Oracle connection has been defined in tnsnames.ora. If it is correctly defined, then next verify that the ORACLE_HOME environment variable is correctly defined, and that tnsnames.ora file has correct read permissions.
If the above items are configured correctly, also check the listener.log on Oracle server to confirm that the service id (or the database it maps to) are known to the Oracle server.
Setting up environment variables required to use Oracle run-time client
The Oracle client requires that the following environment variables be defined. These should be set in the .dsenv file in the DataStage DSEngine directory.
ORACLE_HOME=/home/oracle
LIBPATH=$LIBPATH:$ORACLE_HOME/lib:
PATH=$PATH:$ORACLE_HOME/bin
Change the path defined for ORACLE_HOME to the correct path for your system. ORACLE_HOME should be set to the absolute path to the home Oracle directory which is the directory level directly above the lib and bin directories.
Please also note that the name of the library path environment variable varies with different operating systems:
- AIX — use LIBPATH
- Solaris — use LD_LIBRARY_PATH
- HP-UX — use SHLIB_PATH
- Linux — use LD_LIBRARY_PATH
Источник
подскажите по perl+oracle. Помогите советом
#1 mstf
Вообще не знаю Oracle, поэтому и вопрос
Подскажите к примеру как разрешить такую ситуацию.
На однорм сервере стоит Oracle, на другом перл.
какие модуля нужно ставить на сервер(где крутиться перл), чтобы можно было работать с сервером Oracle.
#2 puzanov
#3 mstf
спасибо, буду разбираться
#4 mstf
Если можно еще раз помогите советом,
Ситуация такая на одном сервере стоит Oracle(ОС солярка), на другом перл(ос фрюха). На том сервере где перл, я поставил модуль DBD(оракл тут не стоит и нет никакого клиента). теперь пишу такой код
#!/usr/bin/perl
use strict;
use DBI;
use DBD::Oracle;
$ENV = ‘/home/oracle7’; — тут не знаю что писать если путь к ораклу на другой машине, то я не знаю этот путь. Вопрос — это критично?
$ENV = ‘AMERICAN_AMERICA.CL8MSWIN1251’ ;
my $dbh = DBI->connect (‘dbi:Oracle:host=ип_адрес;sid=БД;port=1523′,’логин’, ‘пароль’) or die «$DBI::errstrn»;
вот и после того как запускаю скрипт система пишет ошибку
DBI connect(‘host=ип_адрес;sid=БД;port=1523′,’логин’. ) failed: Error while trying to retrieve text for error ORA-01019 (DBD: login failed, probably a symptom of a deeper problem) at ./con.pl line 10
Error while trying to retrieve text for error ORA-01019 (DBD: login failed, probably a symptom of a deeper problem)
с чем связана ошибка, с синтаксисом или с подключением, логи оракла я не имею возможности смотреть поэтому не знаю?
Не обойдите стороной проблему, в перле и в оракле вообще ничего не понимаю.
Источник
Problem
Attempts to open a requirement from IBM Rational RequisitePro client results in the error «The project named «XXXX» could not be opened, because ODBC may not be configured properly.»
Symptom
The full error message is as follows:
The project named "XXXX" could not be opened, because ODBC may not be configured properly.
ODBC Error:
[Microsoft][ODBC driver for Oracle][Oracle]Error while trying to retrieve text for error ORA-01019
Unable to connect to datasource
Cause
The ORACLE_HOME directory is not valid on the RequisitePro client machine.
Resolving The Problem
The following steps will help to correct the ORACLE_HOME directory on the client machine:
- Start Control Panel and open «System»
- Select «Advanced» tab and double-click on «Environment Variable» button
- Select the system variable «ORACLE_HOME» and click Edit
- Input the correct directory of ORACLE_HOME into «Variable value» field. e.g.»C:oracleora10.2″
- Click OK to save the changes
After the above changes are applied, you can open requirements successfully.
[{«Product»:{«code»:»SSSHCT»,»label»:»Rational RequisitePro»},»Business Unit»:{«code»:»BU053″,»label»:»Cloud & Data Platform»},»Component»:»Database: Oracle»,»Platform»:[{«code»:»PF033″,»label»:»Windows»}],»Version»:»7.0;7.0.0.1;7.0.0.2;7.0.0.3;7.0.0.4;7.0.0.5;7.0.0.6;7.0.0.7;7.0.0.8;7.0.0.9;7.0.1;7.0.1.1;7.0.1.2;7.0.1.3;7.0.1.4;7.0.1.5;7.0.1.6;7.0.1.7;7.0.1.8;7.0.1.9″,»Edition»:»»,»Line of Business»:{«code»:»LOB45″,»label»:»Automation»}}]
17 Years Ago
Hi there,
I’m using asp.net (c#) framework version 1.1 and trying to connect to my Oracle database 10G (10.1.0.2.0) which installed on the same server as the IIS and I’m getting the following error:
OleDbException (0x80004005): error while trying to retrieve text for error ora 01019
I can connect through sqlplus and I did give aspnet user full control on my Oracle_Home.
In addition I defined the ORACLE_HOME in the system environment and in the system PATH.
although I had few oracel version installed I removed them all (from the registery as well) and now I only got this 10G as my only Oracle_Home.
this is the code I’m using for openning the db connection:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
string constr = «Provider=MSDAORA.1;Data Source=wstdb;User Id=stdb;PASSWORD=stdb;OLE DB Services=-2»;
OleDbConnection conn = new OleDbConnection(constr);
conn.Open();
I got the error while opening the connection.
I realy need help.
Thanks,
Adi
Recommended Answers
I am not sure what your problem is being caused by, but this is the definition of ORA-01019 if you didn’t know.
ORA-01019: unable to allocate memory in the user side
Cause: The user side memory allocator returned an error.
Action:. Increase the size of the process heap or …
Jump to Post
All 4 Replies
17 Years Ago
I am not sure what your problem is being caused by, but this is the definition of ORA-01019 if you didn’t know.
ORA-01019: unable to allocate memory in the user side
Cause: The user side memory allocator returned an error.
Action:. Increase the size of the process heap or switch to the old set of calls.
adi75
0
Newbie Poster
17 Years Ago
thanks Kate,
do u know how to increase it?
adi75
0
Newbie Poster
17 Years Ago
Hi,
I figured it out and here is what I did:
I’ve notice that I still have leftover of Oracle9i footprints in some of the registry key such as InprocServer32 so I change the value to the existing OracleHome -10 to E:oracleproduct101~1.0Db_1binoradc.ocx
After a reboot it partially worked and gave me another error : tns could not find service name although it’s properly configured.
Then I took the same code to a new project and it worked!!!
It’s very strange but we are dealing with computers….
Cheers,
Adi
17 Years Ago
Hi Adi, I am glad you have it figured out now.
Reply to this topic
Be a part of the DaniWeb community
We’re a friendly, industry-focused community of developers, IT pros, digital marketers,
and technology enthusiasts meeting, networking, learning, and sharing knowledge.