papagregoire
Technical User
I've run a core database for years, with both direct access (on the aged iMac OS 8.5 required to run the system) and as a server, data accessed by mySQL Client apps on other computers (works only in Classic). Troublesome sometimes (my son wrote the db in his early teens), but never before anything like this.
1. Yesterday morning FoxPro (and the iMac) locked up while writing a web order download from one of the Clients
2. CPU restart OK, but neither the local Accounts nor the db server would load. Accounts gave messages "Not a table.dbf" and "Alias XXX not found"
3. I unwittingly made matters worse by opening some of those tables in VFP and using Reindex command (for reasons I don't understand the db has to run on 2.6, but many maintenance functions are more easily tended in VFP -- but not this one. Even worse perhaps was an attempt to run Gentags. Result was that I had VFP indexes, unusable by 2.6
4. I opened/ tried to open every dbf (a LOT of them) in 2.6, thereby identifying the files (about 25 of them) with bad indexes
5. I used Export to create (in a separate folder) new dbf & fpt for all those files -- but cdx's were not created. All of those files open fine in 2.6
6. A Microsoft tech note (ftp://ftp.microsoft.com/misc1/DEVELOPR/FOX/KB/Q202/5/20.TXT) says (apparently erroneously) that index problems are easy to fix in 2.6, simply by deleting the faulty index(es) and allowing the program to re-create them. Actually, it says to "re-create" the cdx files, but gives no clue as to how to go about this.
7. Resources available, in addition to the newly-created Export files: The entire database folder (cdx's and all) from yesterday morning, messy as it is (most of the files seem OK; open OK in 2.6); a complete backup of the database files from 7/19/12 (don't I wish I'd backed it up Thurs. night!)
Elsewhere on this forum there's reference to a command-line reindex command (I'll go back and find it), but I'm assuming this is likely to do nothing if there's no cdx file there to begin with (nevertheless I'll try it on an isolated copy of one dbf/fpt pair).
Until this problem is resolved, all inventory & shipping functions here are somewhere between badly crippled and dead in the water. Any assistance DEEPLY appreciated. Making matters worse, I have to leave here (for the week) tomorrow (Sunday 7/29/12) afternoon. I hope I can leave knowing the problem has been resolved!
1. Yesterday morning FoxPro (and the iMac) locked up while writing a web order download from one of the Clients
2. CPU restart OK, but neither the local Accounts nor the db server would load. Accounts gave messages "Not a table.dbf" and "Alias XXX not found"
3. I unwittingly made matters worse by opening some of those tables in VFP and using Reindex command (for reasons I don't understand the db has to run on 2.6, but many maintenance functions are more easily tended in VFP -- but not this one. Even worse perhaps was an attempt to run Gentags. Result was that I had VFP indexes, unusable by 2.6
4. I opened/ tried to open every dbf (a LOT of them) in 2.6, thereby identifying the files (about 25 of them) with bad indexes
5. I used Export to create (in a separate folder) new dbf & fpt for all those files -- but cdx's were not created. All of those files open fine in 2.6
6. A Microsoft tech note (ftp://ftp.microsoft.com/misc1/DEVELOPR/FOX/KB/Q202/5/20.TXT) says (apparently erroneously) that index problems are easy to fix in 2.6, simply by deleting the faulty index(es) and allowing the program to re-create them. Actually, it says to "re-create" the cdx files, but gives no clue as to how to go about this.
7. Resources available, in addition to the newly-created Export files: The entire database folder (cdx's and all) from yesterday morning, messy as it is (most of the files seem OK; open OK in 2.6); a complete backup of the database files from 7/19/12 (don't I wish I'd backed it up Thurs. night!)
Elsewhere on this forum there's reference to a command-line reindex command (I'll go back and find it), but I'm assuming this is likely to do nothing if there's no cdx file there to begin with (nevertheless I'll try it on an isolated copy of one dbf/fpt pair).
Until this problem is resolved, all inventory & shipping functions here are somewhere between badly crippled and dead in the water. Any assistance DEEPLY appreciated. Making matters worse, I have to leave here (for the week) tomorrow (Sunday 7/29/12) afternoon. I hope I can leave knowing the problem has been resolved!