12 12
发新话题
打印

[求助] File names.dat may be corrupt 如何修复?( 此文章被查看:3003次,被回复:11篇!! )

File names.dat may be corrupt 如何修复?

各位好!
    日前我的库不知甚么原因,有2个目录不能打开,分析之后目录可以打开了,但是目录中有个文件是错的,但是删除不了,报无法找到文件的错误,然后又再次分析后,显示如下:
Analyze Visual SourceSafe Version 6.0 (Build 8169)
Database analysis in progress @ 07-04-05;12:34p.
Creating a new nameset, or long filename information, for the file BOSS2.doc.
File names.dat may be corrupt
Analysis complete @ 07-04-05;12:34p
        Potentially serious errors or inconsistencies were found.


问题仍然存在!

谁有好的解决办法嘛?共享一下吧!多谢多谢!



© 本文为 babyoneSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

文件  BOSS2.doc 能co吗?如果能co,执行不获得本地版本co,  再ci。试试看



© 本文为 hiflySCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

不行,对那个坏了的文件甚么操作都执行不了:(
真是郁闷啊,难道真的只有重建库么?



© 本文为 babyoneSCMLife 共同所有,未经同意,请勿转载 ©如该文侵犯了您的版权,请联系管理员

TOP

VSS本来是个好东西,只是对于它的资料比较少,出了问题就难得解决了!

呵呵!

出现这个错误的时候,只要从命令窗口CD到VSS的安装目录下的win32目录中。

运行 "ANALYZE.EXE -X  E:\VSS\data" (后面添对应的目录)。

便会找出对应的出错的文件。

再 “ANALYZE -F e:\vss\data” (需要所有的用户都退出VSS后才能执行)。

每次执行一条命令后在data目录下会生成一个"backup\analyze.log"的文件,在下条命令执行前,需要删除这个文件。

哈哈!:lol 如有不懂之处请在后面跟帖说明!
复制内容到剪贴板
代码:
QUOTE:
The VSS Data folder contains the database of all your files and [url=mk:@MSITStore:E:\Program%20Files\Microsoft%20Visual%20Studio\VSS\SSUSEXP.CHM::/html/ssglossary.htm#project]projects[/url]. Although every precaution has been taken to ensure the integrity of all VSS files, file corruption due to network or operating system problems is possible. The Analyze.exe utility is provided to enable you to search for and fix any corruption or errors.

Note   Doing a full backup of your Data folder on a regular basis is highly recommended.
To run Analyze.exe:
Lock out all users and have them quit VSS. See [url=mk:@MSITStore:E:\Program%20Files\Microsoft%20Visual%20Studio\VSS\SSUSEXP.CHM::/html/lock_a_database.htm]Lock a Database[/url] for more information.
Note   VSS users can have files checked out when a database is locked.
Open a command prompt to run Analyze. For example, you might enter C:\vss\win32\analyze ..\data
The program goes through the VSS database, reporting any possible problems. If errors or corrupted files are discovered, you can fix them using the -F, -C, and -D parameters.
We recommend that you run Analyze twice — first with the -F option (to fix any errors found), and the second time to check if any errors remain. If you still have errors after the first run, you can check the Microsoft Knowledge Base article Q152807 for more information.




QUOTE:
Analyze.exe scans a [url=mk:@MSITStore:E:\Program%20Files\Microsoft%20Visual%20Studio\VSS\SSUSEXP.CHM::/html/ssglossary.htm#vssdatabase]VSS database[/url] for integrity and/or errors, displays them and, if set to do so, fixes them. [url=mk:@MSITStore:E:\Program%20Files\Microsoft%20Visual%20Studio\VSS\SSUSEXP.CHM::/html/ssglossary.htm#vssadministrator]VSS administrators[/url] should run Analyze.exe every week to verify that there are no problems in the VSS database.
Administrators can use the 32-bit command-line utility to repair version 4.0 VSS databases (and later). For example, a database problem exists when you select a file that you know exists in the VSS database, use a command, such as Get, and receive the error message, "File does not exist."
Administrators can run Analyze.exe manually from the command line, or as part of a script for unattended operation, to analyze or fix the problem. Analyze.exe is in the WIN32 folder under the folder in which you installed VSS.
We recommend that you run Analyze.exe twice — first with the -F option (to fix any errors found), and the second time to check if any errors remain. If you still have errors after the first run, you can check the Microsoft Knowledge Base at[url=http://www.microsoft.com/kb]http://www.microsoft.com/kb[/url]) article Q152807 for more information.
SyntaxANALYZE [-B<folder>] [-C] [-D] [-F] [-I-] [-V] [-X] [-?] [-H] <Full Database Path | @Response File | List of Files>OptionDescription
-B<folder> Specify a backup folder.
-C Clean up and compress the database. This option can be slow.
-D Delete any unused files.
-F Attempt to repair any inconsistencies and corruption that are detected.
-I- Continue without stopping for user input (allowing unattended operation). By default, Analyze.exe leaves the results window on display.  
-Vn Specify the verbosity of output. -V1 displays only critical errors, -V2 displays critical and significant errors, -V3 displays all errors, and -V4 shows all errors and warnings. The -V4 option shows its output in the lower pane of the Analyze Results window and contains detailed information on what the utility attempted and accomplished. The default is -V1. -V (without a number) is equivalent to
-V4.
-X Directs Analyze.exe to not lock files as it processes. Allows Analyze.exe to run against a live database. This option cannot be used with the -c, -d, or -f options and use of this option is not recommended unless absolutely necessary.  
Full Database Path Path of the VSS data folder to analyze. This parameter must be the first non-switch parameter. A data path, list of files, or response file must be present on the command line.
@Response File File produced by running Analyze.exe, containing listing of problem files, named Analyze.bad by default. Using this file as input directs Analyze.exe to work on fewer files, thereby improving performance. To do this, the response file must be in the path or in the same folder as Analyze.exe (the Win32 folder).
List of Files List of files to analyze. List can include only log files, or complete data paths, such as C:\VSS\Data\A\AAAAAAAA.
-?, -H Displays usage message containing descriptions of valid options.
Order of options is not important, but the full database path, response file, or list of files must be included on the command line as the first non-option item.
Examples
ANALYZE -C -D -F -V4 C:\VSS\Data Analyzes and repairs the complete database and generates verbose output.
ANALYZE -BC:\Temp C:\VSS\Data Analyzes the database, but does not fix it. Creates a list of corrupted files in C:\Temp.
ANALYZE -F -C -D @C:\Temp\Analyze.badFixes any problems in the files listed in the Analyze.bad file generated by the preceding example.
Remarks
The types of problems that Analyze.exe can correct include:
Parent/child mismatch. Possible situations include those in which a project thinks it has a file or subproject but the child disagrees, a child thinks it has a parent but the parent disagrees, or child and parent don't reference each other but the child counts are off.
Corrupt database files. These files include the following: Names.dat (stores long file names longer than 34 characters), Rights.dat (stores relationships between users and project rights), Status.dat (stores check out status for files), Um.dat (stores all users in a VSS database), and Version.dat (stores the VSS version).
Removing unused items from the database.
Administrators should run Analyze.exe regularly to verify that no problems exist in their VSS databases. All results of Analyze/Repair are logged to the file, Analyze.log, which is placed in the \VSS\Data\Backup folder and is replaced each time Analyze.exe is run. When you analyze the database, Analyze.exe creates a file listing all corrupted files. This file is called Analyze.bad and is also placed in the \VSS\Data\Backup folder. In addition, the original versions of files that have been repaired are placed in the \VSS\Data\Backup folder.
Under normal conditions, all users should be logged out of VSS before Administrators run Analyze.exe. Users must be logged out to run Analyze.exe with the - F option to repair problems. Analyze.exe does not run if any users are logged into VSS unless the -X option is supplied.
Analyze.exe writes output to the Analyze Results window. This window may contain two panes. You must close any open results windows before running Analyze.exe another time.
The top (or only) pane contains summary information. For example:

Analyze Version 4.00[Build 1110]
Database analysis in progress.
The Parent Project for item acctapp is corrupt and the link to the child file has been lost until the project is recovered.
Analysis complete.

This is the information provided in the output window when you run Analyze.exe using the -V or -V4 option for verbose output. When you use the -V option, the information provided is written to the bottom pane of the Analyze Results window. The following example shows verbose output:

Started analyzing user management system.
Successfully completed analyzing the user management system.
Rebuilding corrupted project for item aaaaaaaa.
Building the project list.
Checking cross-file relationships.
Checking parent/child relationships.
Validating the Security System.
Writing a new copy of 'c:\vss\data\a\aaaaaaaa'.
The count of children of item 'aaaaaaaa', as given in its header, does not match the number of children found on disk. The count will be adjusted.
The count of subprojects of item 'aaaaaaaa', as given in its header, does not match the number of subprojects found on disk. The count will be adjusted.
Note that the actual output in the Analyze Results window does not wrap; it scrolls within the pane.
The Rights.dat file contains the rights and assignments for each user. If that file is rebuilt by Analyze.exe, all information about rights for individual users and projects is lost. When you run VSS again, each user has the read/write or read-only rights for the entire database that were assigned when that user was added to the user list for the database. Use the Rights and Assignments commands to set rights for individual users and projects again or clear the Enable Rights and Assignments commands check box on the Project Rights tab to use the read/write or read-only rights.

© 本文为 babyone 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

在网上搜索了一下:
这个问题没有办法解决!主要原因造成的是你在向VSS里面拖项目的时候,由于网络原因,数据传输丢包,造成的。这种问题没有办法解决,只能重新建立库,重来一遍。
建议最好不要采用拖文件的方式,加载文件。

的确是因为延时造成丢包,我重新建了VSS,
——微软有没有对此BUG的解决办法呢,都想改用CVS了,可是CVS也有局限的,
我现在是在远程VSS服务器上操作而不用我本地的来拖文件了,这样也可以解决这个问题

http://www.mypm.net/bbs/Article. ... id=30158&page=1

© 本文为 hifly 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

已经重新建库了,郁闷啊!
不拖,直接加载就不会出错吗?

© 本文为 babyone 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

回复 #6 babyone 的帖子

我还没有遇到过此类错误!

© 本文为 hifly 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

这已经使我第二次遇到了,只好重新建库了。
郁闷的!

© 本文为 babyone 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

为避免再次发生,建议将data目录下的文件进行日常备份,不含子目录。
这些文件是有关库和用户权限等重要信息的文件。

© 本文为 hifly 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

只要备份DATA目录么?我是全部copy的,实在是怕了!
还有什么好的备份方法吗?

© 本文为 babyone 所有,未经同意,请勿转载
©如该文侵犯了您的版权,请联系管理员

TOP

 12 12
发新话题