Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote Views to Oracle Generating a Session per table
Message
 
 
À
18/05/2006 15:38:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
Oracle
Divers
Thread ID:
01123375
Message ID:
01126556
Vues:
20
>My VFP application is currently opening an Oracle session for each remote view that I use. I changed my tools/options/remote data / share connections to my default, and re-built all my views with this option. I also removed my connection re-built it and then re-built my views. I am manuall creating the views, as I do not know a different way. I am still using 23 Oracle sessions. Are there other settings that I can adjust to reduce the Oracle session count?

Run the GENDBC program that comes with VFP against your DBC --

OPEN DATABASE MyDBC
do home() + [tools\gendbc\gendbc]

It will create a PRG file with all the code needed to recreate your DBC and remote views. You can then look at that code to see if your connection is really being shared. If not, I would just create a fixit prg file to loop through all the remote views in the DBC to set the ShareConnection property to .T. on all the RVs.
lnKount = ADBOBJECTS(laViews, 'VIEW')
for each lcView in laViews
    	DBSETPROP(lcView,"VIEW","ShareConnection",.T.)
endfor
As an alternative to GENDBC, you can issue --

? DBGETPROP(ViewName, 'View', 'ShareConnection')

from the Command Window to see if the connection is shared.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform