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

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

呵呵!

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

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

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

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

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

=========================================================================

QUOTE:
The VSS Data folder contains the database of all your files and [url=mk:@MSITStore:E:Program%20FilesMicrosoft%20Visual%20StudioVSSSSUSEXP.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%20FilesMicrosoft%20Visual%20StudioVSSSSUSEXP.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:vsswin32analyze ..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%20FilesMicrosoft%20Visual%20StudioVSSSSUSEXP.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%20FilesMicrosoft%20Visual%20StudioVSSSSUSEXP.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 athttp://www.microsoft.com/kb) 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:VSSDataAAAAAAAAA.
-?, -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:VSSData Analyzes and repairs the complete database and generates verbose output.
ANALYZE -BC:Temp C:VSSData Analyzes the database, but does not fix it. Creates a list of corrupted files in C:Temp.
ANALYZE -F -C -D @C:TempAnalyze.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 VSSDataBackup 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 VSSDataBackup folder. In addition, the original versions of files that have been repaired are placed in the VSSDataBackup 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:vssdataaaaaaaaaa'.
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.

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值