Wednesday, August 1, 2007

Remove Corrupted View in Rational ClearCase

Objective: Remove Corrupted View

Error message below you get when you remove a view failed where the view is corrupted

cleartool rmview -tag viewname
cleartool: Error: Unable to open file"/view_stg/viewname.vws/.view": No such file or directory.
cleartool: Error: /view_stg/viewname.vws isn't a view: No such file or directory
cleartool: Error: Unable to remove view "/view_stg/viewname.vws".

Steps to remove the corrupted view:
1. list the view detail to get uuid

cleartool lsview -long viewname
Tag: viewname
Global path: /view_stg/viewname.vws
Server host: servername
Region: region_ux
Active: NO View tag
uuid:9e9c4e46.3f5311dc.86cc.00:14:c2:65:50:79
View on host: zmy12vw1
View server access path: /view_stg/viewname.vws
View uuid: 9e9c4e46.3f5311dc.86cc.00:14:c2:65:50:79
View owner: you

2. Then try remove the view again with uuid
cleartool rmview -vob /vobname -uuid 9e9c4e46.3f5311dc.86cc.00:14:c2:65:50:79
Can't remove view "/view_stg/viewname.vws" from VOB while view still exists.
Remove view /view_stg/viewname.vws" references from VOB anyway? [no] y
Removed references to view "9e9c4e46.3f5311dc.86cc.00:14:c2:65:50:79" from VOB "/vobname".

3. Lastly remove the view tag after all the vob references are removed
cleartool rmtag -view viewname


Reference:
http://www.philforhumanity.com/ClearCase_Support_4.html
http://publib.boulder.ibm.com/infocenter/cchelp/v7r0m0/index.jsp?topic=/com.ibm.rational.clearcase.books.cc_admin.doc/view-admin.htm

2 comments:

Anonymous said...

Thanks a lot for this post, it was very helpfull

Neeba N V said...

Thanks for this post. Really helpful.