Subject | Re: Corrupt GDB - Re Restore Crisis |
---|---|
Author | rodbracher |
Post date | 2002-09-30T12:38:12Z |
Yes - the file was just copied. ( We had no idea our client was doing
this - they thought it a good idea ! ) They then deleted the orig GDB
on the orig server !
We cannot be 100% that there were users logged on or not - but I'm
pretty sure the server was not shutdown.
Rod
this - they thought it a good idea ! ) They then deleted the orig GDB
on the orig server !
We cannot be 100% that there were users logged on or not - but I'm
pretty sure the server was not shutdown.
Rod
--- In ib-support@y..., "Alan McDonald" <alan@m...> wrote:
> do you mean the file was just copied?
> out of interest were there connected users at the time of copying?
> Alan
> -----Original Message-----
> From: rodbracher [mailto:rod@m...]
> Sent: Monday, 30 September 2002 21:38
> To: ib-support@y...
> Subject: [ib-support] Corrupt GDB - Re Restore Crisis
>
>
> All is fixed - thanks to everybody's responses. I am just going
to
> post a summary of what happened - as if I had read this before my
> crisis it would have been useful.
>
> I had a corrupt GDB. A validate would give messages like :
>
> PROG1 (Server) Sat Sep 28 13:48:14 2002
> Database: C:\DELPHDAT\SQF900~1\PPERFECT.GDB
> Index 11 is corrupt (missing entries) in table WAYBILL (197)
>
>
> PROG1 (Server) Sat Sep 28 13:48:15 2002
> Database: C:\DELPHDAT\SQF900~1\PPERFECT.GDB
> Relation has 1 orphan backversions (0 in use) in table
> WAYBILL (197)
>
> I did a backup and restore - all the records were reported there -
> but all tables were empty ! The crux was when I discoverd the all
> useful -y restorelog.txt switch for GBak. At the end of the
restore I
> got :
>
> gbak: creating indexes
> gbak: ERROR: attempt to store duplicate value (visible to active
> transactions) in unique index "RDB$PRIMARY67"
> gbak: Index "RDB$PRIMARY67" failed to activate because:
> gbak: The unique index has duplicate values or NULLs.
> gbak: Delete or Update duplicate values or NULLs, and activate
> index with
> gbak: ALTER INDEX "RDB$PRIMARY67" ACTIVE;
>
> When I tried to activate the index in IBConsole I got the above
same
> error. There were no key duplicates in the orig GDB - so I did a
> backup-restore but using the -inactive switch on the GBak
restore.
>
> Now I had data in my tables. And a query
>
> Select key_field, count(key_field) from table
> group by key_field
> having count(*) > 1
>
> retuned 4 records.
>
> So back to the orig GDB - I deleted the records ( the ones I
could
> see ) - and another backup and restore with indexs active worked -
> and my database had no validation errors.
>
> Now in the new GDB the other records on the key were there -
which I
> could delete.
>
> Strange but true.
>
> The corruption was caused by a transfer of the GDB from 1 server
to
> another - not good.
>
> Thanks
>
> Rod
>
>
> To unsubscribe from this group, send an email to:
> ib-support-unsubscribe@e...
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.
>
>
>
> [Non-text portions of this message have been removed]