`
linuxstuding
  • 浏览: 1226886 次
文章分类
社区版块
存档分类
最新评论

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.

分享到:
评论

相关推荐

    数字证书(密码11).zip

    A file that is required cannot be installed because the cabinet file C:\ProgramData\Package Cache\{C57Al78F-F1CF...cab has an invalid digital sianature.This may indicate that the cabinet file is corrupt.

    sbt-launch-0.13.6.jar

    针对SparkR安装出现的Invalid or corrupt jarfile sbt/sbt-launch-0.13.5.jar替代

    BURNINTEST--硬件检测工具

    the major sub-systems of a computer to be simultaneously tested for reliability and stability. Status ====== This is a shareware program. This means that you need to buy it if you would like to ...

    SQLite Expert Professional Edition 5.2.0.178

    SQLite Expert Professional Edition 5.2.0.178 X86: Copy "SQLiteExpertPro32.exe" to installation folder X64: Copy "SQLiteExpertPro64.exe" to installation folder

    mysql innodb 异常修复经验分享

    一套测试用的mysql库,之前用的centos6默认源里的mysql 5.1.71的版本 。后来想试用下Percona server 5.7,由于这套库里没有什么重要数据 。所以操作前也未进行备份,配置好源后,直接就进行了安装。...

    U盘安装系统

    制作完成后用U盘引导安装系统将不会出现INF file txtsetup.sif is corrupt or missing,的错误。

    VclZip pro v3.10.1

    This was due to a problem where it would be freed automatically if there was a problem with the ArchiveStream when trying to open it as a zip file (possibly corrupt). Best practice is that ...

    wrar571.exe

    "File names to find" mask after searching inside of archive. So it did not display archive names for masks like *.rar and applied this mask only to files inside of archives; h) when running an ...

    ak2新版内核AKAIO1.5

    ak2新版内核 AceKard All-In-One (AK-AIO) v1.5 ... - Third option in "which cheat file to download" box displays the setting window at plugin launch, can be used for future expansion + Uses gelu's...

    【老版本浏览器】支持老插件,如CSS Usage的,老版本火狐firefox浏览器。

    【老版本浏览器】支持老插件,如CSS ...其他版本浏览器不支持CSS Usage,会报错:This add-on could not be installed because it appears to be corrupt. 这个版本安装CSS Usage没问题,也可以安装其他老版本的插件。

    开源项目-corrupt-go-smbus.zip

    开源项目-corrupt-go-smbus.zip,corrupt/go-smbus - Go bindings for the System Management Bus (SMBus) kernel interface

    Wireshark 用户手册

    Wireshark用户手册,英文原版 Wireshark User's Guide v1.11.3-rc1-2115-ga99a036 for Wireshark 1.11

    VS2005 的cvtres.exe(用于修复EVC的Link1123链接错误)

    LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt Error executing link.exe. ------------------------------------------------------------ 解决办法: 把common/evc/...

    untrunc fixes corrupt mp4 files.zip.zip

    untrunc fixes corrupt mp4 files.zip

    网络修复winsrepair

    3) This notice may not be removed or altered from any distribution. 4) You may not resell or charge for the software. 5) You may not reverse engineer, decompile, disassemble, derive the source code of...

    刺客信条修改器

    刺客信条的一个修改器,在游民星空下的,只是修改器

    vivado 2016.1 license ,亲测兼容win10

    win10终于可以完美支持啦!亲测! win10终于可以完美支持啦!亲测! win10终于可以完美支持啦!亲测! 前段时间在win10上安装2015.4,总会有各种莫名的问题。虽然能安装成功,但生成bitstream时会一直停留在综合阶段...

    资源 gradle-3.3-all.zip

    Android studio 快速解决Gradle's dependency cache may be corrupt 和 Gradle配置 gradle-3.*-all.zip快速下载

    MS-DOS 5.0

    be able to determine the amount of extended memory you have. To avoid this problem, disable the card before running Setup. 2.12 Bernoulli Cache -------------------- Before running Setup, open the ...

    gradle-3.3-all

    快速解决Gradle's dependency cache may be corrupt 解决gradle找不到,联网失败等问题

Global site tag (gtag.js) - Google Analytics