7 Mayıs 2012 Pazartesi

How to recover crashed svn repository...


We are using visual svn 2.1.4. It is working on vmware virtual windows 7 on unbuntu linux box. Unfortunately, our electricity infrastructure has a big problem, the electric generator is not activated whenever the electric goes off. Well, this situation is not causing too much problem when our vmware is running on windows box.. But we have changed operating system to linux, it begun to cause problems.. Some files at vmware windows 7 are corrupted..

REPORT of '/svn/ttnetquestuswar/!svn/vcc/default': Could not read chunk size:

We get the above message from svn client, whenever we try to update..

Solution :

1. Stop visual svn server.

2. Backup your repository . You can copy your svn repository to another directory.

3. You should point crashed revision. You can use svnadmin verify command to point the crashed revision.

4. You should dump all revisions until the problematic revision (suppose that it is 1000) with this command ; svnadmin dump -r 1:999 > svndump.txt

5. You should also dump all revisions after the problematic one with this command (suppose the last revision is 2000) ; svnadmin dump --incremental -r 1001:2000 > svndump2.txt

6. Rename your old repository directory..

7. Create a new repository with the same name..

8. Load all changes to the brand new repository with these commands :
svnadmin load < svndump.txt
svnadmin load < svndump2.txt


9. Check your repository with svn verify..

10. Start your visual svn server..

5 Mayıs 2012 Cumartesi

Toad for oracle is not starting..


Well, recently toad is not answering , and I killed its process. But after that, whenever I want to start toad , I get this exception ;

Error reading TtdSQLRecall.HistorySQL: Stream read error

As usual, I googled it, but I could not find anything. As a solution, I have removed SavedSQL.dat file located "user files" directory under toad installation.. It worked for me, I hope it would solve your problem also..