How can I connect to Oracle withi uniDac
The connect dialog does NOT offer Port nor has a field for service ....
I have to connect to 192.168.200.30 Port 1521 Service BELVIS
Thanx
Beat
How to connect with oracle ... using ip:port:service
-
[email protected]
- Posts: 3
- Joined: Fri 05 Aug 2011 10:36
Hello,
You should use the Direct mode by setting TUniConnection in the following way:
You can get more detailed information in the UniDAC help, the Using UniDAC with Oracle.Connecting in Direct mode topic.
You should use the Direct mode by setting TUniConnection in the following way:
Code: Select all
var
UniConnection: TUniConnection;
begin
UniConnection := TUniConnection.Create(nil);
UniConnection.ProviderName := 'Oracle';
UniConnection.SpecificOptions.Values['Direct'] := 'True';
// SID
UniConnection.Server:= '192.168.200.30:1521:BELVIS';
//or
// Service Name
UniConnection.Server:= '192.168.200.30:1521:sn=BELVIS';
UniConnection.Username := 'scott';
UniConnection.Password := 'tiger';
UniConnection.Connect;-
[email protected]
- Posts: 3
- Joined: Fri 05 Aug 2011 10:36