Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Multiple Sessions in Oracle

Posted on 2000-03-22
6
Medium Priority
?
327 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 800 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

610 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