TOraSession

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Starina
Posts: 16
Joined: Tue 14 Dec 2004 15:17

TOraSession

Post by Starina » Fri 21 Jan 2005 09:36

Hi.

How can the different TOraSession component instances use
the same Oracle session?

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

Post by Alex » Fri 21 Jan 2005 15:50

You can use TOraSession.AssignConnect method for this task. Please see TOraSession.AssignConnect topic in ODAC help.

Starina
Posts: 16
Joined: Tue 14 Dec 2004 15:17

TOraSession

Post by Starina » Fri 06 May 2005 06:51

Hi.

I have an application and a dynamic-link library. This modules use different TOraSession instances. Can I use only one Oracle session shared between the TOraSession instances (not using ShareMem unit)?

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

Post by Alex » Tue 10 May 2005 09:57

You can use TOraSession.AssignConnect feature in your situation as in usual application.

Starina
Posts: 16
Joined: Tue 14 Dec 2004 15:17

AssignConnect

Post by Starina » Wed 11 May 2005 08:58

Please, small demo.

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

Post by Alex » Thu 12 May 2005 11:14

Sorry, it was my mistake, if You want to avoid using ShareMem unit in DLL then You need to realize AssignConnect functionality manually, i.e. pass all TOraSession properties to the DLL then create TOraSession instance and after that set its properties with passed ones, Also You must keep in mind that
you should avoid passing strings to DLL (use for example PChar).

Post Reply