12 12
发新话题
打印

[已解决] 删除视图的命令是啥呀?( 此文章被查看:2834次,被回复:11篇!! )

删除视图的命令是啥呀?

删除视图的命令是啥呀?


问题已经解决 [打开主题]
本主题的最佳答案为 [ 10 楼].



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

TOP

你不是在gui界面下吗
是的话,右键就行了啊!



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

TOP

rmview



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

TOP

机器重装了,视图的存储目录已经没了,这样删不掉啊。

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

TOP

Usage: rmview [-force] {-tag dynamic-view-tag | dynamic-view-storage-pname}
       rmview [-force] {snapshot-view-pname | snapshot-view-storage-pname}
       rmview [-force] [-vob pname-in-vob | -avobs | -all] -uuid view-uuid

请问uuid是什么意思啊?

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

TOP

UUID是view的对象标识号!

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

TOP

因为视图在本地的存储路径已经没有,必须要通过删除uuid来删除view的注册信息。
除了命令行,可以直接在服务器的控制台中找到相应的view,删除

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

TOP

cleartoo desc -l vob  察看view得uuid信息 xxxxx
cleartool rmview -f  -all -uuid  xxxxx

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

TOP

Removing a View
To permanently remove a view (including its entries in the ClearCase registry and all
references to the view held by any VOBs), use the ClearCase Administration Console:
1 Navigate to the view storage node for the view. This is a subnode of the host node
for the host where the view storage directory resides.
2 Click Action > All Tasks > Remove View.
You can also use the cleartool rmview command.
If you have tried to remove a view by simply removing its storage directory, use the
following procedure to remove references to the view still held by VOBs:
1 Run the cleartool describe command, and note the view’s UUID from the list of
views referenced by a VOB:
cleartool describe –long vob:vob_tag
If the view tag still exists, you can use lsview –long to find the view UUID.
2 If the view tag still exists, remove it from the registry. In the ClearCase
Administration Console, you can use the View Tags node for the tag’s regions to
remove view tags. You can also use the following command:
cleartool rmtag –view view_tag
3 Unregister the view. In the ClearCase Administration Console, you can use the
View Object node to remove a view object. You can also execute the following
command, using the view’s UUID from Step 1:
cleartool unregister –view –uuid uuid
4 Remove references to this view from each VOB that holds them. In the ClearCase
Administration Console, you can use the Referenced Views subnode of a VOB
storage node to remove a view’s records from a VOB. You can also execute the
following command, using the view’s UUID from Step 1:
cleartool rmview –all –uuid uuid
After you have removed references to the view from all VOBs, remove the view storage
directory if any of it remains.

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

TOP

总结一下:
lsview -l 视图名称(可查询uuid)
unregister -view -uuid uuid
rmview -f -all -uuid uuid
rmtag -view 视图名称



最佳答案
该回答被楼主/管理员列为正解!

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

TOP

 12 12
发新话题