UNIDAC

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
radomir23
Posts: 18
Joined: Thu 19 Apr 2012 06:04

UNIDAC

Post by radomir23 » Tue 02 Jul 2013 12:56

[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

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: UNIDAC

Post by AlexP » Tue 02 Jul 2013 13:16

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.

radomir23
Posts: 18
Joined: Thu 19 Apr 2012 06:04

Re: UNIDAC

Post by radomir23 » Wed 03 Jul 2013 07:43

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

radomir23
Posts: 18
Joined: Thu 19 Apr 2012 06:04

Re: UNIDAC

Post by radomir23 » Wed 03 Jul 2013 07:47

i have in c++ builder 2010 uncheck build with runtime packages


can make error ?

radomir23
Posts: 18
Joined: Thu 19 Apr 2012 06:04

Re: UNIDAC

Post by radomir23 » Wed 03 Jul 2013 08:19

note: I have win7 64bit HOME premium 4GB ram and intel i3


Thank you

radomir23
Posts: 18
Joined: Thu 19 Apr 2012 06:04

Re: UNIDAC

Post by radomir23 » Wed 03 Jul 2013 08:29

please help my

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: UNIDAC

Post by AlexP » Wed 03 Jul 2013 13:33

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.

radomir23
Posts: 18
Joined: Thu 19 Apr 2012 06:04

Re: UNIDAC

Post by radomir23 » Wed 03 Jul 2013 14:05

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

radomir23
Posts: 18
Joined: Thu 19 Apr 2012 06:04

Re: UNIDAC

Post by radomir23 » Thu 04 Jul 2013 05:21

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

radomir23
Posts: 18
Joined: Thu 19 Apr 2012 06:04

Re: UNIDAC

Post by radomir23 » Thu 04 Jul 2013 06:57

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

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: UNIDAC

Post by AlexP » Thu 04 Jul 2013 07:53

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

radomir23
Posts: 18
Joined: Thu 19 Apr 2012 06:04

Re: UNIDAC

Post by radomir23 » Fri 05 Jul 2013 06:46

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

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: UNIDAC

Post by AlexP » Mon 08 Jul 2013 10:19

hello,

These changes have been applied since RAD Studio XE2. In lower versions, there will be the same problems.

radomir23
Posts: 18
Joined: Thu 19 Apr 2012 06:04

Re: UNIDAC

Post by radomir23 » Tue 09 Jul 2013 06:22

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

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: UNIDAC

Post by AlexP » Tue 09 Jul 2013 08:24

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

Post Reply