Lightroom catalog files (.lrcat extension), are in reality SQLite database archives; for that reason it's possible to manage them with the free sqlite3 application (Windows and MAC).
With Sqlite command line utility is possible to repair and compress a catalog (even when Lightroom itself fails opening them):
sqlite3.exe catalogname.lrcat .dump | sqlite3.exe newcatalogname.lrcat