且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Clearcase-查找创建视图的时间

更新时间:2023-12-05 18:24:10

与视图关联的任何元数据都处于启用状态

Any metadata associated with the view is on the view server side, where the view storage are kept.

一个可能与创建日期最接近的文件是 .hostname 文件。

它仅在创建视图时创建和更新,除非更改视图未注册,否则再也不会更改。注册(非常罕见)。

view.dat 也是不错的选择(但也可以重新生成,并且

The one file which could be the closest from the creation date would be the .hostname file within a view storage.
It is only created and updated on the view creation, and never change unless the view is unregistered, and then re-registered (very rare).
view.dat is also a good candidate (but can also be regenerated, and is for snapshot view only)

IBM文章列出了所有相关文件:

This IBM article lists all relevant files:

# .access_info
# .pid



可以用ClearCase comman重新生成的文件ds:



Files that can be regenerated with ClearCase commands:

# .compiled_spec -- regenerate by running cleartool setcs -current
# .hostname -- regenerate by unregistering and re-registering the view
# view.dat -- Snapshot views only:  
  can be regenerated by running the "regen_view_dot_dat.pl" script 
  found in <cc-home-dir>\etc\utils

有关重新生成view.dat文件的更多详细信息,请参见technote1204161。 / p>

可以通过以下方式手动替换文件:在同一用户的同一台计算机上创建新视图,然后将受影响的文件复制到视图存储中:



See technote1204161 for more details on the regenerating the view.dat file.

# config_spec
# groups.sd
# identity.sd
# view_db.state (as long as the view is not in the process 
  of being reformatted); see technote 1134858 for more information
# db/view_db.dbd (for schema 9 views only; 2002.05.00 and earlier)
# db/view_db_schema_version
# .view - The copy obtained from the new view must be edited to contain the correct information for the old view as described below. The correct information can be obtained from the output of "cleartool lsview -long <old_viewtag>".




  • 第1行:视图存储目录的位置,以主机名:路径名格式

  • 第2行:视图的UUID(唯一标识符),不得更改

  • 第3行:第1行中指定的主机名

    • Line 1: the location of the view storage directory, in hostname:pathname format
    • Line 2: the view's UUID (unique identifier), which must not be changed
    • Line 3: the hostname specified in line 1
# All other files in the db directory except the ones mentioned above 
  ( view_db_schema_version and view_db.dbd)