[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

Multiple Sessions in Oracle

I have a unique problem: I created an app in Delphi that is essentially a tracking program. It tracks certain items and the age. It also updates/inserts into the database. Now, when I log in to Oracle from within the Delphi app, everything is fine (I log in to Oracle as system and monitor V$Session); only one session is created. If I run this particular query from within the Delphi app, it creates 7 sessions in oracle. I've run the query in SQL Plus and only one session appears. Run within Delphi app, 7 sessions appear. We are running multi-threaded server and parallel server options o an Oracle 7.3.4 server (NT 4.0). I've created other Delphi apps that do not create this phenomenon. Here are some particlars:
- Query runs on a view of several tables (eqi-joined)
- View contains 2 longs
- Simple query only selects the fields
- App contains 2 query controls, one store procedure control, one database control, one table control and 3 datasources. I don't do multiple logins in a loop. I have noticed 7 sessions during logon and combo box population (via loop on table control). After it's finished, the other 6 sessions disappear. Another DBA and I watched as he killed every session, and nothing happened until he killed the true active session for the program. In fact here is the output from within SQL Plus:
USERNAME                       STATUS         SID   SERIAL# PROGRAM
------------------------------ -------- --------- --------- -------
EVANSJ                         INACTIVE        23       841 OraPgm
EVANSJ                         INACTIVE        30       412 OraPgm
EVANSJ                         INACTIVE        40       398 OraPgm
EVANSJ                         INACTIVE        51       267 OraPgm
EVANSJ                         INACTIVE        60       190 OraPgm
EVANSJ                         INACTIVE        66        56 OraPgm
EVANSJ                         INACTIVE        67        97 OraPgm

If anyone has encountered this problem and has solved it, or might know what's going on, there are 200 points for you.
0
evansj
Asked:
evansj
  • 4
  • 2
1 Solution
 
kretzschmarCommented:
listening . . . (too late now here)
0
 
kretzschmarCommented:
hi again,

i guess that depends on the bde sql-passthrough settings of your alias-driver.

check following entries:

set sqlpasstroughmode to shared noautocommit
set sqlmode to server

just a guess

meikl
0
 
kretzschmarCommented:
hi evansj,

i guess that my guess was right, isn't it?

thanks for accepting my comment as an answer :-)
glad to helped you
good luck again

meikl
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
evansjAuthor Commented:
To Meikl: It worked this morning, now its doing almost the same thing with 7 connects 6 inactive one active.
0
 
kretzschmarCommented:
hi evans,
that are bad news :-(
what was different?

will do a test on next monday,
maybe i can reproduce this

meikl
0
 
evansjAuthor Commented:
I tried down revving the BDE, then I uprevved back to 5.11. The phenomenon occurs more often than not, and sometimes only produces one instance.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now