[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference orarep::nomahs::dbintegrator_public_public

Title:DB Integrator Public Conference
Notice:Database Integration - today! Kit/Doc info see note 36
Moderator:BROKE::ABUGOV
Created:Mon Sep 21 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1171
Total number of notes:5187

1100.0. "DB2 gateway and temp-table-files" by ORAREP::GIDDAY::BURKE (S'ti Dab ot Klat Sdrawkcab) Mon Oct 14 1996 04:02

    Hi everyone,
    
    I hope this  is not a repeat program - A scan of titls from this
    conference didn't help much.
    
    We have a customer that uses MS access and ODBC to querie various
    databases, in particular DB2.
    
Temporary files are being left behind after DBI queries that cross tables 
between all sorts of DBI databases gateways, but we can repreoduce this
    behaviour by querying the DB2 database

The files are being found in the default directory of the account that is used 
to make the network connection using ODBC. Checked that this account has the  
privs to delete these files - it does (damn it!)



TDC001aaa969520.dat is an examples filename(s) being left behind - there are 
thousands of these, and it is presumed that this 'problem' has always existed.

DBI version  3.0d(we think), better information to follow....


SQLRDB Odbc driver is version 2.0a

Access is the queries tool, version  2.0,


	Has anybody seen this kind of behaviour before? - the files look so
    unfamiliar to me, my guess is that the Db2 gateway is creating them
    (will need some time to get access to a person who can give me
    versions).
    
    
    I guess this does represent a 'bug', but I have almost no experience
    with the DB2 gateway, so any thoughts would be welcome,
    
    Regards,
    	Ben Burke
    	Sydney CSC
T.RTitleUserPersonal
Name
DateLines
1100.1Temp files beging with TDC and SQL ServicesBROKE::ABROWNMon Oct 14 1996 14:3850
I did have a discussion with someone about this behavior, but
not sure it was in this conference.

As you have observed, under certain circumstances various gateways
will create tempoary files with names that typically begin with TDC.
These files are suppose to (will) go away no later then the time
the gateway image exits.  On some platforms these files are created
with an attribute like "delete on exit" and on other platforms the
gateway, itself, explicitly deletes them.

In your case I beleive that the following is happeing.  You are
using MS Access via ODBC driver (via SQL Services) to access DBI /
DB2 gateway.  I suspect that the SQL Services server is configured
in such a way that the DB2 Gateway image does not get run down.  For
example, this would be the case if it were set up as a SQL Services
class server with a non 0 value for MAX and some reasonably large value
for IDLE, I would expect the TDC files to stick around for at least
the value of IDLE.

There are a number of things you might do to avoid TDC file problems.
One approach would be to change the configuration of SQL Services (if
my hypothesis is correct) to cause executor images to be run down more
frequently.  This may not be desireable if fast attaches are important.

Another approach would be to cause the gateway to not create these TDC
files in the first place.  This is the approach I would take.  Typically
TDC files are created to support read-only dbkeys.  MS Access - ODBC Driver -
SQL Services - DB2 Gateway always requests dbkeys, though it rarely, if
ever requires them.  If you alter the dbkey mode to something other then
the default of read-only dbkeys the TDC files will not be created in the
first place.  If you are using V7 of DBI and/or Gateways you might have
luck with the new, NON_FUNC dbkey mode.  It is described in the "New
Features and Enhancements in V7.0" release note titled "New DBKey Mode
for Gateways: NON_FUNC" (1.17 in the rev of release notes I have.)  This
will be the most efficient mode you can choose; it was implemented
specifically for the benefit of MS Access users.  But you should read up
on it as there are potentially some limitations.  (Specifically, the
internal processing of certain complex requests requires the use of
valid dbkeys - when functional dbkeys are not available the request
will end with an error.)

If you have a pre V7 release (like V3.1 or V3.1A) you will probably want
to use user defined columns as dbkeys, or possibly primary keys as dbkeys.
Either of these 2 modes will be more efficient then what you have now, ie
the default of read-only dbkeys.

DB Key mode is configured by setting certain attach qualifiers, either in
the attach string or, more typically, in a configuration file.  This is
pretty well described in the DEC DB Integrator Product Family User's Guide,
but if you have any questions post them here and I will try to answer them.