Page 1 of 1

UNIDAC 8.0.1 on samsung A5 (2017)

Posted: Tue 24 Sep 2019 03:42
by xfrans
Dear support
i am using
- UNIDAC 8.0.1 Trial Edtion
- Delphi XE7
- Samsung A5 (2017) android version 8.0.0

and want to connect to oracle Database in android.
the problem is, when i put the Tbutton in form to connect the oracle database, its always failed, the application close suddenly .

here is my script in button.onclick;
Connection: TUniConnection;
begin
Connection := TUniConnection.Create(nil);
try
Connection.ProviderName := 'Oracle';
Connection.SpecificOptions.Values['Direct'] := 'True';
Connection.Server := '172.20.1.9:1521:pdksdb;
Connection.Username := 'dblive';
Connection.Password := 'dblive';
Connection.Connect;
finally
Connection.Free;
end;

i'm already make sure that my android connect with the ip server,

thanks for the advice

Re: UNIDAC 8.0.1 on samsung A5 (2017)

Posted: Wed 25 Sep 2019 12:00
by ViktorV
1. Make sure that the form contains the TOracleUniProvider component or the OracleUniProvider unit has been added to the USES section.
2. Make sure that you have access to the 172.20.1.9 server from a mobile device, e.g. by executing the following command: ping 172.20.1.9
3. Make sure that pdksdb is a valid SID
Also, let us know whether the error occurs when using our Mobile demo project, which is located in the 'Demos\Mobile' folder (the path is relative to your UniDAC demos installation path).