설치 및 업그레이드 > 설치 및 구성 안내서 > 고급 구성 > 데이터베이스 초기화 및 데이터 로드 > 데이터베이스 스키마 작성
  
데이터베이스 스키마 작성
데이터를 로드할 수 있으려면 데이터베이스 스키마를 작성해야 합니다. 다음 시나리오에서는 Windchill 설치 중 데이터를 로드해야 합니다.
새 Windchill 설치 후 데이터베이스 스키마를 작성하는 경우
추가 Windchill 모듈 설치 후 데이터베이스 스키마를 작성하는 경우
이 단원에서는 PTC Solution Installer에서 자동으로 작성하도록 허용하지 않은 경우 데이터베이스 스키마를 수동으로 작성하는 방법에 대해 설명합니다.
데이터베이스 스키마 작성 작업은 Windchill 셸에서 수행합니다. Windchill 셸을 열려면 다음 명령 중 하나를 사용하십시오.
UNIX or Linux
<WT_HOME>/bin/windchill --java=<JAVA_HOME>/bin/java shell
Windows
<WT_HOME>\bin\windchill.exe --java=<JAVA_HOME>\bin\java shell
Oracle
1. 다음 명령 중 하나를 사용하여 데이터베이스 스키마를 로드합니다.
UNIX or Linux
싱글 바이트 문자 지원
windchill --javaargs="-Dwt.tools.sql.dbUser=<username> -Dwt.tools.sql.dbPassword=<password>" wt.tools.
sql.SQLCommandTool create_ddl_wt.sql <WT_HOME>/db/sql
멀티 바이트 문자 지원
windchill --javaargs="-Dwt.tools.sql.dbUser=<username>
-Dwt.tools.sql.dbPassword=<password>"
wt.tools.sql.SQLCommandTool create_ddl_wt.sql <WT_HOME>/db/sql3
Windows
싱글 바이트 문자 지원
windchill.exe --javaargs="-Dwt.tools.sql.dbUser=<username>
-Dwt.tools.sql.dbPassword=<password>"
wt.tools.sql.SQLCommandTool create_ddl_wt.sql <WT_HOME>\db\sql
멀티 바이트 문자 지원
windchill.exe --javaargs="-Dwt.tools.sql.dbUser=<username>
-Dwt.tools.sql.dbPassword=<password>"
wt.tools.sql.SQLCommandTool create_ddl_wt.sql <WT_HOME>\db\sql3
2. 다음 명령 중 하나를 사용하여 추가 열을 로드합니다.
UNIX or Linux
windchill --jap=wt.properties\com.ptc.windchill.upgrade.tools.
upgradeframework.java.args --cpp=wt.properties\com.ptc.windchill.
upgrade.tools.classpath com.ptc.windchill.upgrade.statemachine.
DynamicLauncher -actc -noui
Windows
windchill.exe --jap=wt.properties\com.ptc.windchill.upgrade.tools.
upgradeframework.java.args --cpp=wt.properties\com.ptc.windchill.
upgrade.tools.classpath com.ptc.windchill.upgrade.statemachine.
DynamicLauncher -actc -noui
3. 다음 명령 중 하나를 사용하여 DBTableHashes를 초기화합니다.
UNIX or Linux
ant -f <WT_HOME>/bin/upgradeTools.xml -v populateDbHashes
Windows
ant.bat -f <WT_HOME>\bin\upgradeTools.xml -v populateDbHashes
SQL Server
1. 다음 명령 중 하나를 사용하여 데이터베이스 스키마를 로드합니다.
UNIX or Linux
windchill --javaargs=”-Dwt.tools.sql.autoCommit=true
-Dwt.tools.sql.verbose=6 -Dwt.tools.sql.dbUser=<username>
-Dwt.tools.sql.dbPassword=<password>” wt.tools.sql.SQLCommandTool
create_ddl_wt.sql <WT_HOME>/db/sqlServer
Windows
windchill.exe --javaargs=”-Dwt.tools.sql.autoCommit=true
-Dwt.tools.sql.verbose=6 -Dwt.tools.sql.dbUser=<username>
-Dwt.tools.sql.dbPassword=<password>” wt.tools.sql.SQLCommandTool
create_ddl_wt.sql <WT_HOME>\db\sqlServer
2. 다음 명령 중 하나를 사용하여 추가 열을 로드합니다.
UNIX or Linux
windchill --jap=wt.properties\com.ptc.windchill.upgrade.tools.
upgradeframework.java.args --cpp=wt.properties\com.ptc.windchill.
upgrade.tools.classpath com.ptc.windchill.upgrade.statemachine.
DynamicLauncher -actc -noui
Windows
windchill.exe --jap=wt.properties\com.ptc.windchill.upgrade.tools.
upgradeframework.java.args --cpp=wt.properties\com.ptc.windchill.
upgrade.tools.classpath com.ptc.windchill.upgrade.statemachine.
DynamicLauncher -actc -noui
3. 다음 명령 중 하나를 사용하여 DBTableHashes를 초기화합니다.
UNIX or Linux
ant -f <WT_HOME>/bin/upgradeTools.xml -v populateDbHashes
Windows
ant.bat -f <WT_HOME>\bin\upgradeTools.xml -v populateDbHashes