We have a copy of our index files from last night in another location, and need to overwrite one of today's indexes with its day-old twin-- long story short, we were running a tsql "create index" command and had to kill it partway through for a variety of reasons.
Now, we've got an entry in SYSINDEX for that index, the usual index files (indexname.btr .tok, etc) and a lot of T00<<XYZ>> files. We'd like to overwrite the files with what we had from last night (slightly out of index, but oh well) and were wondering the best way to go about doing it, which files to delete and copy over, any system tables to watch out for, etc?
Thanks for any and all help, we're using your Solaris product, version 4.04.1067329099
Slight correction; when I say "any system tables to watch out for" I'm referring to system table *entries*. We're not going to overwrite the system tables themselves.
You can delete all of the associated T files and files with the prefix of the indexname (indexname*). Then bring all files with the index prefix (indexname*) over from backup.
I'm not sure I've done it 100% correctly-- I mean, I deleted the old files (T files and indexname*), then copied in the new ones. However, when I run a search on the field in question, it feels like it's linear. Slow.
So, I figured what the heck, and I ran my tsql "create index..." statement again, expecting it to tell me the index is already there, but what I got was a message saying the index is the index is "already being created", like it's still in-progress. Could that be affecting me here, and should I try something?
Thanks again for the help, I know this isn't 100% Thunderstone reccomended activity.
What is the SYSINDEX entry for that NAME? Is is a METAMORPH or METAMORPH INVERTED INDEX? They TYPE field will indicate the type of index. The page at http://www.thunderstone.com/texis/site/ ... ables.html describes the types and what they mean. Had you dropped the index before the aborted create?
It's a metamorph inverted index. I didn't drop the index before the aborted create. Instead, I tried creating it again after copying the backups over and unsuccessfully running a search, to see the message I'd get on screen.
What is the TYPE field for the SYSINDEX entry? Is there an entry? If you update the one with the NAME and FNAME being the name of your index to 'F' then Texis should recognize it.