Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ORA-00018: maximum number of sessions exceeded
Message
From
12/10/2006 11:38:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
ORA-00018: maximum number of sessions exceeded
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Oracle
Miscellaneous
Thread ID:
01161494
Message ID:
01161494
Views:
61
I have created a new form based on business objects, data objects, collections and cursor adapters. The form works great! But I have only a single problem.

The cursor adapters are creating new inactive connections to the Oracle database. For example, when I open the form it creates two. Moving from one record to another creates another one because a query is performed to get some support info from the database. Because I didn't know this was going on, I inadvertantly used all 500 connections to the test server, bringing it down!

Now I am looking into this further and noticed that after exiting my application and explicitly DESTROYing each cursor adapter, data environment, collection, business object etc, the inactive sessions in Oracle still persist. Only after exiting Visual FoxPro completely, do these inactive sessions get removed from the Oracle database.

Does anyone have any kind of solution for this?

Each business object has it's own data environment object. Each data environment object creates a new private data session. Within this environment, the cursor adapter is added.
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Next
Reply
Map
View

Click here to load this message in the networking platform