Solved

Multiple Sessions in Oracle

Posted on 2000-03-22
6
316 Views
Last Modified: 2010-05-18
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
Comment
Question by:evansj
  • 4
  • 2
6 Comments
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2646505
listening . . . (too late now here)
0
 
LVL 27

Accepted Solution

by:
kretzschmar earned 200 total points
ID: 2648167
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
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2650357
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:evansj
ID: 2650915
To Meikl: It worked this morning, now its doing almost the same thing with 7 connects 6 inactive one active.
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 2653627
hi evans,
that are bad news :-(
what was different?

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

meikl
0
 

Author Comment

by:evansj
ID: 2653976
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi 2 69
select query - oracle 16 100
Is anyone willing to have a look through this code and help debug? 25 84
Need Help Delphi 2010 CheckBox1 Stored value in memo 13 71
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question