Hi,
I'm having a problem with a UniConnection via a VPN-Tunnel.
With a non-direct connection i am getting an ORA-12545: "CONNECT unsuccessful" at both runtime and designtime.
With a direct connection i can connect at designtime (Data Editor of a query also worked), but at runtime it throws the following exception:
Class N_26 "Net error 206"
The same project works fine with an oracle server in the local network.
The Oracle SQLDeveloper has no problem connecting to any of the servers.
UniDAC: 2.70.0.8
Delphi 2007 Prof.
Oracle 10g
UniConnection via VPN (Oracle)
At first try to connect using Oracle client (set the Direct option to False). In this case you should assign to Server the name of database alias from the tnsnames.ora file.
If you don't have an alias for your database, your should create one.
You can use the HomeName option in SpecificOptions of TUniConnection to select an Oracle client.
If you don't have an alias for your database, your should create one.
You can use the HomeName option in SpecificOptions of TUniConnection to select an Oracle client.
OK , I have now uninstalled and installed (and uninstalled and installed and so on) all OracleClients. At the moment I have installed the Oracle Client 11.1.0 and I can connect to the Oracle Database in Designtime with the following Settings:
However, at Runtime, it throws an ORA-12154 TNS: Couldn't resolve the Connect Identifier.
When I change the HomeName-Property from an empty string to 'c:\oracle\product\11.1.0\Client' (where the oci.dll is located) The TUniConnection can't find the oci.dll.
BTW: The Connection is placed on a DataModule inside a DLL. If I put the TUniConnection on the Form there's no problem connecting at design- or runtime.
Code: Select all
Server='ORCL';
Username='User';
Password='xxx'
When I change the HomeName-Property from an empty string to 'c:\oracle\product\11.1.0\Client' (where the oci.dll is located) The TUniConnection can't find the oci.dll.
BTW: The Connection is placed on a DataModule inside a DLL. If I put the TUniConnection on the Form there's no problem connecting at design- or runtime.