Converting a type object from unshared to shared

You can convert an unshared attribute type, hyperlink type, or label type to be shared.

About this task

For example, if a project manager at the San Francisco site creates an unshared attribute type called TESTED_BY and the Bangalore project manager also needs to use it, you can convert the type to shared.

Note: You cannot convert a shared type object to unshared. To restrict instance creation of a type to one replica, you must remove all instances of the type, remove the type, and create a new unshared type.

For information about using the Properties Browser on Windows® to convert an unshared type object to a shared type object, see the MultiSite Help.

Procedure

  1. Determine which replica masters the type object:
    
    cleartool describe attype:TESTED_BY@/vobs/stage 
    attribute type "TESTED_BY"
      created 03-Oct-00.10:29:06 by John Cole (jcole.user@goldengate)
      master replica: sanfran_hub@/vobs/dev
      instance mastership: unshared
    ...
    
  2. At the master replica, enter a mkobjecttype –replace –shared command to replace the definition of the type, where object is one of the object types, such as at (attribute), hl (hyperlink), or lb (label).

    For example, to replace the definition of an attribute type:

    cleartool mkattype –replace –shared –c "needed at multiple sites" TESTED_BY
    Replaced definition of attribute type "TESTED_BY".
    
  3. Export and send an update packet to the other replicas that must use the type:
    multitool syncreplica –export –fship bangalore boston_hub
    ...
    
  4. At the receiving replicas, import the update packet:
    
    multitool syncreplica –import –receive
    ...
    
  5. At the receiving replicas, confirm that the type object is shared:
    cleartool describe –fmt "%n\t%[type_mastership]p\n" 
    attype:TESTED_BY@/vobs/dev 
    TESTED_BY     shared