How to use TOraSession with NET mode

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ronnin
Posts: 1
Joined: Fri 28 Oct 2005 01:47

How to use TOraSession with NET mode

Post by ronnin » Fri 28 Oct 2005 01:54

e.g There is a Oracle Database with TNS Description as

(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.11.12)(PORT=1521)))(CONNECT_DATA=(SID=theSID)(SERVER=DEDICATED)))

how to set ConnectionString of TOraSession?

thank you forward.

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Fri 28 Oct 2005 12:52

Use the following expression:
OraSession.ConnectString = 'UserName/[email protected]:1521:theSID';

Post Reply