Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

WinDU Patching - AddColumns doubt

$
0
0

Hello everybody,

 

I'm trying to patch WinDU on PDMLink 10.0 R020. I'm specifically trying to install the "10.0-M0X0_WINDU_WINRU_SUPPORT_PS5" patch (http://www.ptc.com/WCMS/files/122537/en/10.0-M0X0_WINDU_WINRU_SUPPORT_PS5.zip).

In the html guide included within the patch zip archive, is said:

----------------------------------

Prequisite for Customers Using AddColumns Utility

If you have ever used the AddColumns utility to add columns, perform the following steps to keep the codebase in sync with the database:

  1. Before patch installation:
    1. Identify which types the AddColumns utility has been used for; refer to the CustomTypedColumnsAdditions*.html files and check which types are listed in the Altered Tables section.
    2. Execute the InfoReport command from a windchill shell for each type identified in previous step.
      For example, from a windchill shell, execute:
    3.   InfoReport wt.part.WTPart
    4. This will generate reports (.out files) under $(wt.temp) e.g. $(wt.temp)\wt.part.WTPart.out 
    5. Take a backup of the generated reports.
  2. After patch installation, re-execute the commands from step 1.
  3. Compare the reports from step 1 and step 2. If the reports are the same (replicas of each other), your installation is complete and you can skip the remaining steps. If the reports are not same, proceed to step 4.
  4. In the report from step 1, count the *TypeInfo.ptc_<datatype>_XX unique references for each of the datatypes below to figure out the total number of columns.
  5.   TypeInfo.ptc_str_ -> For String datatype 
  6. TypeInfo.ptc_lng_ -> For Long datatype

  7. TypeInfo.ptc_dbl_ -> For Double datatype

  8. TypeInfo.ptc_bln_ -> For Boolean datatype

  9. TypeInfo.ptc_tms_ -> For TimeStamp datatype

  10. TypeInfo.ptc_ref_ -> For ObjectReference datatype

  11. TypeInfo.ptc_rht_ -> For InlineBlob datatype

  12. Examples:

  13. If you search for ‘TypeInfo.ptc_str_’and only find a wt.part.WTPartTypeInfo.ptc_str_1 reference, then, there is one column of String datatype.

  14. If you search for ‘TypeInfo.ptc_lng_’ and find wt.part.WTPartTypeInfo.ptc_lng_1 and wt.part.WTPartTypeInfo.ptc_lng_2 references, then, there are two columns of Long datatype.

  15. Run the following command:

     AddColumns [-a] type_name {datatype=number} where, -a => is the option that causes the tool only to add columns to the specified type class without upgrading database schema.
     For example, since we found one string and two long columns in step 4, we would execute:

     AddColumns -a wt.part.WTPart String=1 Long=2



----------------------------------

Attached to this message, the two .out files related to the WTPart Type (before and after the patch installation).

 

What is the AddColumns command that I have to run in order to properly complete the patch installation, and why?

 

Thank you,

 

Fabio.


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>