UniDac and Oracle- Can`t initialize OCI. Error -1

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jacek878
Posts: 11
Joined: Fri 14 Nov 2008 08:08

UniDac and Oracle- Can`t initialize OCI. Error -1

Post by jacek878 » Tue 13 Jan 2009 09:04

Hi,
I would like to connect to Oracle Database 10g Express but if i use UniConnection with Oracle Provider i get error like in topic.
What can cause such effect.
I use Delphi2007
Listing up here:
[09D72FA4]{oraprovider105.bpl} Oraerroruni.RaiseError + $2C
[09D77A18]{oraprovider105.bpl} Oracalluni.LoadedOCI + $74
[09D77B77]{oraprovider105.bpl} Oracalluni.InitOCI + $10B
[09D9DD4C]{oraprovider105.bpl} Oraclassesuni.OCIInit + $0
[09DA085F]{oraprovider105.bpl} Oraclassesuni.TOCIConnection.Connect + $127
[082DC343]{unidac105.bpl} Uni.TUniTransaction.GetProvider + $6B
[20006936]{rtl100.bpl } System.@IsClass (Line 9077, "sys\system.pas" + 1) + $8

BR
Jacek

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 14 Jan 2009 08:37

This error can be caused by a problem in the Oracle client installation. Try to reinstall Oracle client. Note that only Oracle client Express Edition can connect to Oracle Database Express Edition.

jacek878
Posts: 11
Joined: Fri 14 Nov 2008 08:08

Post by jacek878 » Thu 15 Jan 2009 10:33

Do I need to install odbc drivers for oracle if I want to use UniDac?
I have reinstalled the whole database and the problem has occured again.
BR
Vaalar

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 20 Jan 2009 10:00

ODBC drivers are not required for UniDAC. You can try to connect to the database in the Direct mode without using Oracle client. Set Direct=True in the SpecificOptions of TUniConnection to enable the Direct mode.

jacek878
Posts: 11
Joined: Fri 14 Nov 2008 08:08

Post by jacek878 » Thu 22 Jan 2009 12:22

HI again,
I have an additional question,
Is it possible that i have problems with connection becouse I`m using Vista 64 bit and UniDac components use 32 bit?
BR
Jacek

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 23 Jan 2009 09:10

UniDAC requires 32-bit Oracle client. If you installed this client, you slould not have problems.

Post Reply