Servigistics InService 部署 > 高级配置 > 数据库初始化和数据加载 > 手动创建数据库架构
  
手动创建数据库架构
如果选择不使用安装程序加载数据,则在安装程序安装完解决方案后,必须按照数据库初始化和数据加载部分中的说明手动加载数据。但是,在某些情况下,还需执行其他步骤才能完成安装。这些情况包括;
使用安装程序进行安装时,选择不自动创建架构和加载数据。
使用安装程序执行到现有 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