Page 1 of 2
UNIDAC
Posted: Tue 02 Jul 2013 12:56
by radomir23
[ILINK32 Error] Fatal: Unable to open file 'ORAPROVIDER140.OBJ'
I Have BC++ 2010
Please Help Please Help
Please Help Please Help
Please Help Please Help
Re: UNIDAC
Posted: Tue 02 Jul 2013 13:16
by AlexP
Hello,
To work with OracleUniProvider in C++ Builder, you must change the following code:
#pragma link "OracleUniProvider"
to
#pragma link "oraprovider140.lib"
The same is true for the rest of the providers.
Re: UNIDAC
Posted: Wed 03 Jul 2013 07:43
by radomir23
thank you but always is
[ILINK32 Error] Fatal: Unable to open file 'ORAPROVIDER140.OBJ'
i change
see
#pragma package(smart_init)
#pragma link "DBAccess"
//#pragma link "OracleUniProvider"
#pragma link "oraprovider140.lib"
#pragma link "Uni"
#pragma link "UniProvider"
#pragma resource "*.dfm"
please help
thank you very much
B.R Rado
Re: UNIDAC
Posted: Wed 03 Jul 2013 07:47
by radomir23
i have in c++ builder 2010 uncheck build with runtime packages
can make error ?
Re: UNIDAC
Posted: Wed 03 Jul 2013 08:19
by radomir23
note: I have win7 64bit HOME premium 4GB ram and intel i3
Thank you
Re: UNIDAC
Posted: Wed 03 Jul 2013 08:29
by radomir23
please help my
Re: UNIDAC
Posted: Wed 03 Jul 2013 13:33
by AlexP
Hello,
Unfortunately, for the time being, the "build with runtime packages" option mustn't be disabled in С++Builder when working with UniDAC. We will try to add the necessary OBJ files into one of the next versions.
Re: UNIDAC
Posted: Wed 03 Jul 2013 14:05
by radomir23
AlexP wrote:Hello,
Unfortunately, for the time being, the "build with runtime packages" option mustn't be disabled in С++Builder when working with UniDAC. We will try to add the necessary OBJ files into one of the next versions.
Thank you very much so i must check "build with runtime packages" ?
and then i must replace #pragma link "OracleUniProvider"
to
#pragma link "oraprovider140.lib" or no replace ?
thanks
Re: UNIDAC
Posted: Thu 04 Jul 2013 05:21
by radomir23
AlexP wrote:Hello,
Unfortunately, for the time being, the "build with runtime packages" option mustn't be disabled in С++Builder when working with UniDAC. We will try to add the necessary OBJ files into one of the next versions.
can i ?
make.bat CBuilder 14
Re: UNIDAC
Posted: Thu 04 Jul 2013 06:57
by radomir23
AlexP wrote:Hello,
Unfortunately, for the time being, the "build with runtime packages" option mustn't be disabled in С++Builder when working with UniDAC. We will try to add the necessary OBJ files into one of the next versions.
please can you generate obj file for bc2010
very very thanks
note: when i check "build with runtime packages" i must with exe file *.bpl files copy to exe file
Re: UNIDAC
Posted: Thu 04 Jul 2013 07:53
by AlexP
Hello,
OBJ files will be added for all IDEs, where this problem occurs.
If you check "build with runtime packages" you will also need to deploy the following BPL files with your application:
Code: Select all
dacXX.bpl always
dacXX.bpl always
unidacXX.bpl always
dacvclXX.bpl if your application uses the UniDacVcl unit
unidacvclXX.bpl if your application uses the UniDacVcl unit
crcontrolsXX.bpl if your application uses the CRDBGrid component
Re: UNIDAC
Posted: Fri 05 Jul 2013 06:46
by radomir23
AlexP wrote:Hello,
OBJ files will be added for all IDEs, where this problem occurs.
If you check "build with runtime packages" you will also need to deploy the following BPL files with your application:
Code: Select all
dacXX.bpl always
dacXX.bpl always
unidacXX.bpl always
dacvclXX.bpl if your application uses the UniDacVcl unit
unidacvclXX.bpl if your application uses the UniDacVcl unit
crcontrolsXX.bpl if your application uses the CRDBGrid component
When I use BC XE3 UPDATE2 then is all OK
i not must replace
#pragma link "OracleUniProvider" to #pragma link "oraprovider140.lib"
and linker not error /[ILINK32 Error] Fatal: Unable to open file 'ORAPROVIDER140.OBJ'/
and note I use not check "build with runtime packages"
and all is OK exe file is 6MB and i not need bpl files so is very good
why BC2010 not works but bcxe3 works good ????
thanks Rado
Re: UNIDAC
Posted: Mon 08 Jul 2013 10:19
by AlexP
hello,
These changes have been applied since RAD Studio XE2. In lower versions, there will be the same problems.
Re: UNIDAC
Posted: Tue 09 Jul 2013 06:22
by radomir23
AlexP wrote:hello,
These changes have been applied since RAD Studio XE2. In lower versions, there will be the same problems.
Thanks very much
i have still two question
1. when i not connect with oci then i connect direct is ok so below?
////////////////Connect OCI///////////////////////////////
UniConnection1->Server="L2SERVER";
UniConnection1->SpecificOptions->Values["Direct"]="false";
//////////////////////////////////////////////////////////
UniConnection1->Connect();
Oracle_Query = new TUniQuery(NULL);
Oracle_Query->Connection=UniConnection1;
TimerProcess->Enabled=true;
} catch (...) {
try {
////////////////when exception try Connect DIRECT///////////////////////////////
UniConnection1->Server="172.17.150.50:1521:L2SERVER";
UniConnection1->SpecificOptions->Values["Direct"]="true";
//////////////////////////////////////////////////////////
UniConnection1->Connect();
Oracle_Query = new TUniQuery(NULL);
Oracle_Query->Connection=UniConnection1;
TimerProcess->Enabled=true;
} catch (...) {//when not connect OCI and too no connect direct so error message
Application->MessageBox(L"Error no OCI no Direct connection",L"Error",MB_OK + MB_ICONERROR);
}
}
is so good ?
2. which different OCI and Direct connection ???
Thank you very much
Rado
Re: UNIDAC
Posted: Tue 09 Jul 2013 08:24
by AlexP
Hello,
1) Yes, you can use the provided code, however, it would be more correct to move creation of TuniQuery out from the Try..Catch block.
2) In the OCI mode, there must be an Oracle client installed and configured on a PC; the Direct mode requires no additional software to be installed: connection to a database works directly via the TCP/IP protocol