手動建立資料庫結構描述
如果您選擇不使用安裝程式載入資料,則必須在安裝程式安裝解決方案之後,使用
資料庫初始化及資料載入一節中的指示手動載入。但是,在某些情境中,需要其他步驟方能完成您的安裝。這些情境是:
• 使用安裝程式安裝時,您選擇不自動建立結構描述及載入資料。
• 使用安裝程式新增至現有 Servigistics InService 安裝時,您選擇不自動建立結構描述及載入資料。
• 您選擇略過使用安裝程式載入基礎資料。
正在載入 e3c 結構描述
1. 從指令 shell 中執行下列其中一個指令,來開啟 Windchill shell:
在 UNIX/Linux 中:
<WT_HOME>/bin/windchill --java=<JAVA_HOME>/bin/java shell
在 Windows 中:
<WT_HOME>/bin/windchill.bat --java=<JAVA_HOME>\bin\java.exe shell
2. 透過執行下列指令載入 Servigistics InService 的資料庫結構描述:
<swDir>/utilities/ant/bin/ant -v -f <swDir>/utilities/create3cSchema.xml
-DswDir=<swDir> -Dhostname=<dbhost> -Dport=<dbport> -Dtype=<database Type>
-Dvendor=<database Vendor> -Dsid=<dbname>
-DdbName=<dbname>-Duser_CMIDB=<cmi_username> -Duser_3CDB=<e3c_username>
-Duser_CMIDB=<cmi_username> -Duser_E3CDB=<e3c_username>
-Duser_TitanDB2=<titandb2_username>
-Duser_TitanDB=<titandb_username> -Dpassword_CMIDB=<cmi_password>
-Dpassword_E3CDB=<e3c_password>
-Dpassword_TitanDB2=<titandb2_password> -Dpassword_TitanDB=<titandb_password>
其中,<swDir> = 軟體目錄的位置<dbhost> = 安裝期間在安裝程式中輸入的資料庫主機名稱<dbport> = 安裝期間在安裝程式中輸入的資料庫埠<database Type> = 所安裝資料庫的類型,例如 Oracle、SQL 或 PostgreSQL<database Vendor> = 資料庫的廠商,例如 Oracle、Microsoft 或 PostgreSQL<dbname> = 安裝期間在安裝程式中輸入的全球資料庫名稱 (SID) 或服務名稱<cmi_username> = 安裝期間在安裝程式中輸入的 CMI 結構描述使用者名稱<e3c_username> = 安裝期間在安裝程式中輸入的 E3C 結構描述使用者名稱<titandb2_username> = 安裝期間在安裝程式中輸入的 TitanDB2 結構描述使用者名稱
資料庫範例:
• Oracle︰
/data/ptcG800/InService/InS_SW/SW/utilities/ant/bin/ant -v -f
/data/ptcG800/InService/InS_SW/SW/utilities/create3cSchema.xml
-DswDir=/data/ptcG800/InService/InS_SW/SW
-Dhostname=hrz-slmorcl12 -Dport=1521
-Dtype=thin -Dvendor=oracle
-Dsid=orcl12.ptcnet.ptc.com
-DdbName=orcl12.ptcnet.ptc.com
-Duser_CMIDB=TESTXCMI -Duser_E3CDB=TESTXE3C
-Duser_TitanDB2=TESTXT2 -Duser_TitanDB=TESTXT1
-Dpassword_CMIDB=TESTXCMI
-Dpassword_E3CDB=TESTXE3C
-Dpassword_TitanDB2=TESTXT2
-Dpassword_TitanDB=TESTXT1
• SQL Server︰
D:\ptcG656\InService\InS_SW\SW\utilities\ant\bin\ant -v -f
D:\ptcG656\InService\InS_SW\SW\utilities\create3cSchema.xml
-DswDir=D:\ptcG656\InService\InS_SW\SW -Dhostname=PAWSSV-SLM04T.ptcnet.ptc.com
-Dport=1433
-Dtype=sqlserver
-Dvendor=microsoft
-Dsid=testdb
-DdbName=testdb
-Duser_CMIDB=TESTXCMI
-Duser_E3CDB=TESTXE3C
-Duser_TitanDB2=TESTXT2
-Duser_TitanDB=TESTXT1
-Dpassword_CMIDB=TESTXCMI
-Dpassword_E3CDB=TESTXE3C
-Dpassword_TitanDB2=TESTXT2
-Dpassword_TitanDB=TESTXT1
• PostgreSQL︰
D:\ptcG761\InService\InS_SW\SW\utilities\ant\bin\ant -v -f
D:\ptcG761\InService\InS_SW\SW\utilities\create3cSchema.xml
-DswDir=D:\ptcG761\InService\InS_SW\SW
-Dhostname=pawssv-pgs01w.ptcnet.ptc.com
-Dport=5432
-Dtype=postgresql
-Dvendor=postgresql
-Dsid=postgres
-DdbName=postgres
-Duser_CMIDB=ptc_pub01w761_cmi
-Duser_E3CDB=ptc_pub01w761_e3c
-Duser_TitanDB2=ptc_pub01w761_titan
-Duser_TitanDB=ptc_pub01w761_titan
-Dpassword_CMIDB=ptc_pub01w761_cmi
-Dpassword_E3CDB=ptc_pub01w761_e3c
-Dpassword_TitanDB2=ptc_pub01w761_titan2
-Dpassword_TitanDB=ptc_pub01w761_titan