Zeos Oracle

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
emersonldc@gmail.com
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 03.08.2021, 07:37

Zeos Oracle

Post by emersonldc@gmail.com »

Hi!
I'm trying to connect to oracle database using Lazarus with Zeos, but I'm not getting it. In Lazarus I put the TZconnection component and define the following data:
database MyBank
Hostname: 192.168.0.46
Port 1521
user dev
password 123456
Oracle protocol
And when you click connected, the following message appears:
"SQL Error: OCI_ERROR: ORA-12154: TNS:could not resolve the connect identifier specified"
Note: I have already downloaded the oracle client corresponding to the server version and I am using the correct dlls.
Can someone help me?
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: Zeos Oracle

Post by marsupilami »

Hello and welcome to the forums ;)

There is another thread where a another user has a similar issue. aehimself has posted some hints there: viewtopic.php?f=50&t=132821#p163981
Maybe this helps.

Best regards,

Jan
emersonldc@gmail.com
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 03.08.2021, 07:37

Re: Zeos Oracle

Post by emersonldc@gmail.com »

I managed to solve it as follows:

z_conexao.Connected := False;
z_conexao.Database := '192.168.0.46/orcl';
z_conexao.HostName := MyBank;
z_conexao.LibraryLocation := 'C:\Windows\oci.dll';
z_conexao.Port := 1521;
z_conexao.User := 'test';
z_conexao.Password := '123456';
z_conexao.Protocol := 'oracle';
z_conexao.LoginPrompt := False;
z_conexao.Connected := True;

Thank you for the tips!
Post Reply