Solved

Multiple Sessions in Oracle

Posted on 2000-03-22
6
320 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 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
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!

 

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

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!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

739 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