direct mode in oracle suport server_name

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
daizhicun
Posts: 109
Joined: Thu 21 Jan 2010 11:49

direct mode in oracle suport server_name

Post by daizhicun » Thu 31 Mar 2011 14:40

in direct mode at oracle;


sid mode:
uniconnection1.Server:='127.0.0.1:1521:SID';

but i don't know how to set :SERVICE_NAME

it is still like SID MODE?
uniconnection1.Server:='127.0.0.1:1521:SERVICE_NAME' ?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Fri 01 Apr 2011 08:21

Hello,

For connection with using Service Name, you should use the following syntax:
uniconnection1.Server:= '127.0.0.1:1521:sn=SERVICE_NAME';
This feature is available starting with UniDAC 3.60.0.15

daizhicun
Posts: 109
Joined: Thu 21 Jan 2010 11:49

Post by daizhicun » Fri 01 Apr 2011 13:09

ok,IT IS OK!

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Wed 06 Apr 2011 07:15

Hello,

It is good to see that this problem was solved. If any other questions come up, please contact me.

Post Reply