1.检验是否可以删除
bmide_remove_template -u=infodba -p=infodba -g=dba -mode=dryrun -template=v7box
BMIDE 移除模板
日期:周日 4月 23 2023 08:37:46 上午 中国标准时间
----------------------------------------------------------------------------
验证输入参数...
Finding the list of templates which are already installed...
正在以下位置为 TC_DATA_MODEL 创建备份:C:\Users\ADMINI~1\AppData\Local\Temp\230423083748\bmide_remove_template...
TC_DATA_MODEL 备份完成。
正在 "dryrun" 模式下为 "v7box" 模板运行 bmide_remove_template 实用程序...
正在检查要移除模板中定义的业务对象实例的计数...
正在执行 ["bmide_pretemplateinstall -u=infodba -p=***** -g=dba -templates=v7box -dryrun -removetemplate"]
**************** Date & Time: 周日 4月 23 08:37:52 上午 2023 *************
Validating Teamcenter Environment for script execution
Updating TC_DATA_MODEL with templates from datasetsDownloading File: model_lang.xml
Downloading File: model.xml
Total time for download 0.809937 seconds
[ 2.516 秒 ]
Extracting....
Extraction Completed. [89.788 second(s)]
Extracting Localizations....
Localization Extraction Completed.[13.703 second(s)]
Please refer [C:\Users\ADMINI~1\AppData\Local\Temp\business_model_extractor_2023_04_23_08-37-57.log] for log information
Executing extractor(Total Time) [ 107.702 秒 ]
正在执行流程模板
正在从主服务器文件移除模板...
Backing up the Consolidated Model File... [ 0.015 秒 ]
Backing up the Consolidated Model Localization File... [ 0.000 秒 ]
Finding Applicable Locales...
正在查找支持的编码...
Creating the Consolidated Model File... [ 4.001 秒 ]
Creating the Localization Consolidated Model File... [ 0.765 秒 ]
Loading the Backup File... [ 22.144 秒 ]
Loading the Consolidated File... [ 15.141 秒 ]
Comparing the two Files... [ 1.526 秒 ]
Creating the Delta file... [ 0.144 秒 ]
Comparing the two Localization Files... [ 0.351 秒 ]
Creating the Localization Delta file... [ 0.017 秒 ]
**The backup of all files used for delta generation is available in C:\Users\ADMINI~1\AppData\Local\Temp\compare_history\install_dryrun\model_compare_2023_04_23_08-40-27.zip
Adding Template to Master File... [ 0.108 秒 ]
脚本执行成功。
正在执行 ["D:\Siemens\Teamcenter14\bin\bmide_instance_delete -u=infodba -p=***** -g=dba -file=D:\Siemens\tcdata\model\delta.xml -mode=count -limit=all"]
DEBUG...Class Name=V7_rel_box_list Type Name=V7_rel_box_list
DEBUG...Class Name=Form Type Name=V7_DisBoxRevisionMaster
DEBUG...Class Name=V7_DisBoxRevision Type Name=V7_DisBoxRevision
DEBUG...Class Name=Form Type Name=V7_DisBoxMaster
DEBUG...Class Name=V7_DisBox Type Name=V7_DisBox
DEBUG...Class Name=Form Type Name=V7_BoxListRevisionMaster
DEBUG...Class Name=V7_BoxListRevision Type Name=V7_BoxListRevision
DEBUG...Class Name=Form Type Name=V7_BoxListMaster
DEBUG...Class Name=V7_BoxList Type Name=V7_BoxList
*** Database instances exist for reported model elements, so template removal is not allowed. ***
*** See the following section for log details about the bmide_instance_delete utility results.***
************************************************************************************************************************************
Log Section:
Log file : C:\Users\ADMINI~1\AppData\Local\Temp\bmide_instance_delete_IMC__1737282384_2023_04_23_08-40-31_count.log
************************************************************************************************************************************
**要移除的模板中定义了数据模型的数据库实例。因此无法删除该模板。
正在生成这些实例的详细信息...
正在执行 ["D:\Siemens\Teamcenter14\bin\bmide_instance_delete -u=infodba -p=***** -g=dba -file=D:\Siemens\tcdata\model\delta.xml -mode=dryrun -limit=all"]
DEBUG...Class Name=V7_rel_box_list Type Name=V7_rel_box_list
DEBUG...Class Name=Form Type Name=V7_DisBoxRevisionMaster
DEBUG...Class Name=V7_DisBoxRevision Type Name=V7_DisBoxRevision
DEBUG...Class Name=Form Type Name=V7_DisBoxMaster
DEBUG...Class Name=V7_DisBox Type Name=V7_DisBox
DEBUG...Class Name=Form Type Name=V7_BoxListRevisionMaster
DEBUG...Class Name=V7_BoxListRevision Type Name=V7_BoxListRevision
DEBUG...Class Name=Form Type Name=V7_BoxListMaster
DEBUG...Class Name=V7_BoxList Type Name=V7_BoxList
*** Database instances exist for reported model elements, so template removal is not allowed. ***
*** See the following section for log details about the bmide_instance_delete utility results.***
************************************************************************************************************************************
Log Section:
Log file : C:\Users\ADMINI~1\AppData\Local\Temp\bmide_instance_delete_IMC__1737282384_2023_04_23_08-40-33_dryrun.log
************************************************************************************************************************************
************************************************************************************************************************************
分析结果:
无法删除模板“v7box”,因为该模板中数据模型定义的数据库中有实例。
有关数据库中实例的更多信息,参见上方“日志区”中提到的“日志文件”。
************************************************************************************************************************************
成功执行 bmide_remove_template 实用程序。
bmide_remove_template 的日志文件位于 C:\Users\ADMINI~1\AppData\Local\Temp\bmide_remove_template_2023_04_23_08-37-45.log
2.删除创建的业务对象,如果无法删除,需要登录TC后手动删除。
bmide_remove_template -u=infodba -p=infodba -g=dba -mode=instanceDelete -template=v7box
Executing extractor(Total Time) [ 135.148 秒 ]
正在执行流程模板
正在从主服务器文件移除模板...
Backing up the Consolidated Model File... [ 0.004 秒 ]
Backing up the Consolidated Model Localization File... [ 0.004 秒 ]
Finding Applicable Locales...
正在查找支持的编码...
Creating the Consolidated Model File... [ 5.373 秒 ]
Creating the Localization Consolidated Model File... [ 0.931 秒 ]
Loading the Backup File... [ 25.301 秒 ]
Loading the Consolidated File... [ 17.072 秒 ]
Comparing the two Files... [ 1.853 秒 ]
Creating the Delta file... [ 0.153 秒 ]
Comparing the two Localization Files... [ 0.533 秒 ]
Creating the Localization Delta file... [ 0.027 秒 ]
**The backup of all files used for delta generation is available in C:\Users\ADMINI~1\AppData\Local\Temp\compare_history\install_dryrun\model_compare_2023_04_23_08-47-08.zip
Adding Template to Master File... [ 0.106 秒 ]
脚本执行成功。
正在执行 ["D:\Siemens\Teamcenter14\bin\bmide_instance_delete -u=infodba -p=***** -g=dba -file=D:\Siemens\tcdata\model\delta.xml -mode=export -limit=all"]
DEBUG...Class Name=V7_rel_box_list Type Name=V7_rel_box_list
DEBUG...Class Name=Form Type Name=V7_DisBoxRevisionMaster
DEBUG...Class Name=V7_DisBoxRevision Type Name=V7_DisBoxRevision
DEBUG...Class Name=Form Type Name=V7_DisBoxMaster
DEBUG...Class Name=V7_DisBox Type Name=V7_DisBox
DEBUG...Class Name=Form Type Name=V7_BoxListRevisionMaster
DEBUG...Class Name=V7_BoxListRevision Type Name=V7_BoxListRevision
DEBUG...Class Name=Form Type Name=V7_BoxListMaster
DEBUG...Class Name=V7_BoxList Type Name=V7_BoxList
*** Database instances exist for reported model elements, so template removal is not allowed. ***
*** See the following section for log details about the TCXML data export results.***
************************************************************************************************************************************
Log Section:
Log file :C:\Users\ADMINI~1\AppData\Local\Temp\bmide_instance_delete_IMC__1737282384_2023_04_23_08-47-12_tcxmloutput_export.log
************************************************************************************************************************************
*** See the following section for log details about the bmide_instance_delete utility results.***
************************************************************************************************************************************
Log Section:
Log file : C:\Users\ADMINI~1\AppData\Local\Temp\bmide_instance_delete_IMC__1737282384_2023_04_23_08-47-12_export.log
************************************************************************************************************************************
实例已成功导出。
正在执行 ["D:\Siemens\Teamcenter14\bin\bmide_instance_delete -u=infodba -p=***** -g=dba -file=D:\Siemens\tcdata\model\delta.xml -mode=delete -limit=all"]
DEBUG...Class Name=V7_rel_box_list Type Name=V7_rel_box_list
DEBUG...Class Name=Form Type Name=V7_DisBoxRevisionMaster
DEBUG...Class Name=V7_DisBoxRevision Type Name=V7_DisBoxRevision
DEBUG...Class Name=Form Type Name=V7_DisBoxMaster
DEBUG...Class Name=V7_DisBox Type Name=V7_DisBox
DEBUG...Class Name=Form Type Name=V7_BoxListRevisionMaster
DEBUG...Class Name=V7_BoxListRevision Type Name=V7_BoxListRevision
DEBUG...Class Name=Form Type Name=V7_BoxListMaster
DEBUG...Class Name=V7_BoxList Type Name=V7_BoxList
*** Database instances exist for reported model elements, so template removal is not allowed. ***
*** See the following section for log details about the bmide_instance_delete utility results.***
************************************************************************************************************************************
Log Section:
Log file : C:\Users\ADMINI~1\AppData\Local\Temp\bmide_instance_delete_IMC__1737282384_2023_04_23_08-47-18_delete.log
************************************************************************************************************************************
在要移除的模板中定义的数据模型的某些数据库实例无法被此实用程序删除。请手动删除它们。
成功执行 bmide_remove_template 实用程序。
bmide_remove_template 的日志文件位于 C:\Users\ADMINI~1\AppData\Local\Temp\bmide_remove_template_2023_04_23_08-43-53.log
3. 移除模板
bmide_remove_template -u=infodba -p=infodba -g=dba -mode=remove -template=v7box
标签:...,Name,Teamcenter,bmide,V7,Type,Class,模板 From: https://www.cnblogs.com/PLM-Teamcenter/p/17345963.html