ODBC Locking Database Issue

Post Reply
User avatar
Eric
MVP
Posts: 373
Joined: Wed May 14, 2008 1:21 pm
OLAP Product: TM1
Version: 9.4
Excel Version: 2003
Location: Chicago, IL USA

ODBC Locking Database Issue

Post by Eric »

I have an access database where I have drill's setup from TM1 to show detail. It appears that there is an open ODBC connection keeping the database locked. I do not think it is the TM1 server because all TM1 services run under user tm1app and the ODBC lock is from user admin.

So I guess my question is to confirm my theory.

Does the TM1 ODBC connect with the service user,"tm1app", or are they run by a different user,"admin"?

* I also double checked. The DSN ODBC Connection is NOT setup with a fixed user and password.
Regards,
Eric
Blog: http://tm1-tipz.blogspot.com
Articles: http://www.google.com/reader/shared/use ... /label/TM1


Production: 32 bit 9.0 SP2, Windows 2000 Advanced Server. Web: 32 bit 9.0 SP2, Windows 2000 Server. Excel 2003
User avatar
Steve Rowe
Site Admin
Posts: 2417
Joined: Wed May 14, 2008 4:25 pm
OLAP Product: TM1
Version: TM1 v6,v7,v8,v9,v10,v11+PAW
Excel Version: Nearly all of them

Re: ODBC Locking Database Issue

Post by Steve Rowe »

Hi Eric,

I had a lot of trouble with TM1 locking an access DB it was loading data from. It seemed that often a lock was left behind or I would get strange out of memory issues being reported from ODBC.

I was not able to solve this and in the end I had to restart the box to clear the issues. There is a thred on this somewhere but I can't find it.

Cheers
Technical Director
www.infocat.co.uk
Martin Erlmoser
Community Contributor
Posts: 125
Joined: Wed May 28, 2008 1:22 pm
OLAP Product: TM1, Cognos Express,..
Version: 9.1.4 FP1
Excel Version: 2010
Location: Vienna
Contact:

Re: ODBC Locking Database Issue

Post by Martin Erlmoser »

we have this problem also with access dbs,.. recycle the server and it works again
but sorry i don't have a better solution
User avatar
Eric
MVP
Posts: 373
Joined: Wed May 14, 2008 1:21 pm
OLAP Product: TM1
Version: 9.4
Excel Version: 2003
Location: Chicago, IL USA

Re: ODBC Locking Database Issue

Post by Eric »

Found out a few things.

1) If you open the .ldb file in notepad it tell you all of the users that are connected
2) ODBCClose(); Does not work


Still no answer other than reboot. Still looking though the "jet engine" for something.
Regards,
Eric
Blog: http://tm1-tipz.blogspot.com
Articles: http://www.google.com/reader/shared/use ... /label/TM1


Production: 32 bit 9.0 SP2, Windows 2000 Advanced Server. Web: 32 bit 9.0 SP2, Windows 2000 Server. Excel 2003
User avatar
Alan Kirk
Site Admin
Posts: 6608
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: ODBC Locking Database Issue

Post by Alan Kirk »

Eric wrote:Found out a few things.

1) If you open the .ldb file in notepad it tell you all of the users that are connected
2) ODBCClose(); Does not work

Still no answer other than reboot. Still looking though the "jet engine" for something.
Just a couple of random, untested thoughts... often locking problems in Access result from a database being opened in Exclusive mode. Might be worth checking both the default open mode in the .mdb (Tools -> Options -> Advanced) and the DSN Configure... -> [Options] and make sure that the default mode is Shared and the Exclusive box is unchecked, respectively.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Post Reply