Solved

Access DB corruption and Linux

Posted on 2007-04-11
7
260 Views
Last Modified: 2008-02-01
Hello Everybody

I am not sure where to post this so please let me know if it needs to be moved to a different section.

My Question concerns an Access Database 2003 that is being shared on a network share, after it is used for a while the database becomes corrupt and has to be restored, and this happens frequently.

Errors:

When a user exits the DB it would warn them that it was corrupted and it was going to be compacted, repaired, and renamed, after that it was deleted and a file with the name of db1.mdb was created.

 Or

This database has been converted from a prior version of Microsoft Office Access by using the DAO Compact Database method instead of the Convert Database command on the Tools menu (Database Utilities submenu). This has left the database in a partially converted state.

 Or

The database would open but certain tables were missing data or would not open.
In each instance the DB would grow 3 – 4 meg in size.

The file server is:

Compaq ML570 with 1 GB ram and close to 500 GB disk storage.
Fedora core 6.
Samba 3.0.24-1
All users have full permissions to the share.
veto oplocks is on for all files that relate to mdb .

Clients:

Windows XP SP2
MS Access 2003
2 GB ram
3 Ghz proc

Network:

All machines are on the same subnet, and the users have 2 switches and 1 fiber hub to cross to get to the server.

Switch on their floor -> Fiber Hub -> Switch where servers and lan come together

On the server, Ethereal, and ifconfig show 0 errors on the interfaces

Miscellaneous:

This File server services 5 other groups with no problems, but this is the only Access DB.

The DB was setup according to vendor instructions and is split.

The Access DB backend is about 10 MB.

Should this be moved to a Windows Server? My only other experience with a shared Access DB was at another company about 5 – 6 years ago and I remember having to occasionally restore it for the users. I seem to remember that the errors had to do with a compact of the db. Those servers were NT 4 and 2000.

0
Comment
Question by:mld4165
  • 4
  • 2
7 Comments
 
LVL 75
ID: 18893214
THis is just a back end with tables only?

mx
0
 
LVL 9

Expert Comment

by:TheSloath
ID: 18893721
I think this message:

When a user exits the DB it would warn them that it was corrupted and it was going to be compacted, repaired, and renamed, after that it was deleted and a file with the name of db1.mdb was created.

...would only be received if the database actually being opened (front end) was corrupt. I don't think MS Access offers to repair an MDB via linked tables if it finds it corrupt - I think it just returns 'invalid database format' or something. Was the message received when closing the back-end DB?


Are you saying ALL 3 of those errors happen or are they just suggestions?

Has it been converted?
0
 
LVL 1

Author Comment

by:mld4165
ID: 18894973
I was reading the ms website on access, and I am not a DB expert, but this database is not split.

I will have to call the vendor, because their instructions do not call for a front end and a back, but they say this db can be shared.

the shortcuts to launch Access that they had us create, refer to an mdw file. here is an example.
"C:\Office\MSACCESS.EXE" "N:\db\db_name.mdb" /wrkgrp "N:\db\db_name.mdw"

This is where I thought we setup sharing:
From Tools -> Options do this:
On the "General" tab, check "Compact on Close".
On the "Edit/Find" tab, in the "Confirm" section:
Uncheck Record Changes
Uncheck Action Queries
On the "Advanced" tab, make the following changes:
In the "Default open mode" section, select "Shared".
In the "Default record locking" section, select "Edited record".

Is that true? It seems that if multiple people were updating this one file it would / will turn to junk fast.

Thanks
mld4165
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 1

Author Comment

by:mld4165
ID: 18894988
TheSloath

>>Are you saying ALL 3 of those errors happen or are they just suggestions?

Yes.

DatabaseMX:

I'm not sure. I hope my prior post expalins what is going on.

thanks
mld4165
0
 
LVL 75
ID: 18895012
"On the "General" tab, check "Compact on Close"

This will fail ... unless there is only ONE user in the mdb at that moment.
In general, those settings above have nothing to do with 'sharing' in the sense you are referring to ... except
 
"In the "Default open mode" section, select "Shared".

Also ... "db_name.mdw" implies User Level Security (ULS) has been implemented.
0
 
LVL 75
ID: 18895043
"Is that true? It seems that if multiple people were updating this one file it would / will turn to junk fast."

There are many, many considerations when setting up a multi-user database on a server.

"This database has been converted from a prior version of Microsoft Office Access by using the DAO Compact Database method"

From the Help file:

"Caution Because the CompactDatabase method doesn't convert Microsoft Access objects, you shouldn't use CompactDatabase to convert a database containing such objects. To convert a database containing Microsoft Access objects, on the Tools menu, point to Database Utilities, and then click Convert Database."

*** OK ... Can you try importing ALL of the objects into a brand new MDB in the version you want to use - 2000, 2002 (aka XP) or 2003 ...

Start with that ... OR ... now that I see you have more than just tables ... try this first ... it's quick:

I would say a **DeCompile** is on order ... and also check for any **Missing References via the VBA Editor>>Tools>>References ....

Follow this procedure:

0) **Backup your MDB**
1) Compact and Repair
2) Execute the Decompile >> you database will reopen
3) Close the mdb
4) Compact and Repair
5) Open the mdb ... and then do a Compile (from the VBA Editor >> Menu >>Debug>>Compile<YourProjectName>)
6) Close the mdb
7) Compact and Repair one more time.

Here are sample 'links'.  Adjust your paths and file names accordingly:

Run this from Start>>Run, enter the following command line:

"C:\Program Files\Microsoft Office\Office\Msaccess.exe" /decompile C:\Access2003Clients\GoldstandtSma\App\SmaApp2K3.mdb

"C:\Program Files\Microsoft Office\Office\Msaccess.exe" /decompile C:\Access2003Clients\GoldstandtPdm\App\PdmAppl2K3.mdb

For more detail on the Decompile subject ... visit the Master on the subject (and other great stuff) Michael Kaplan:

http://www.trigeminal.com/usenet/usenet004.asp?1033

mx
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 18895056
Here is a recent EE thread you should read regarding Multi User apps ... lots of good infor.

http://www.experts-exchange.com/Microsoft/Development/MS_Access/Access_Coding-Macros/Q_22421098.html

mx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

896 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now