|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
; X% F1 I. }# Y4 `$ l8 a171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
8 f" P( I- G( K3 e
0 X. e" F$ `! l* v: _问题 7 J+ b% N* t4 k+ [/ \$ C
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
. @5 U3 _! X) V# a. w& L9 x模块中的功能无法登录 ( e- R! K4 D9 K; {- L
1 E, `! ~2 |9 p8 @ O; i/ }0 FERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 0 |, X3 L" s% S, F
user ID or the password is invalid.
& V7 Q0 c- C8 \( R$ v8 e1 g0 A) L1 v4 }' Z( T9 M
方法 7 V( j2 Y% L8 z5 i9 q' ]4 R
修改 populatefsc 脚本,增加登录信息
3 |3 n5 L# B% O: w: ^在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 % C5 J6 M2 H1 P( y) U4 S4 V
set TC_DBA_USER=infodba 7 O" l* C& k& C: `3 n
' j2 j2 o/ ?1 e7 J在 populatefsc.pl 中 :
5 }0 \% H( z7 l9 U) a m! U" w! o1 ]) ]. ?3 N5 D
在 runPLMXMLExport 子程序下增加红色标记的代码
) q+ s7 u: V8 c/ x2 ~% h
# z3 R( F) P- ^ \/ y- L# This will be the full path to the executable.
( B% \4 {$ Q1 `/ R. I% B4 p xmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 2 K4 p5 P5 Y) y Y( ~5 N" }9 _' x
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; & s$ n9 r! m7 s( i
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
0 p9 T- q, U9 e3 C. ^# Make sure we can find what we are executing.
9 {) R) r( d: y7 kdie "The ${exe_name} executable was not found at the following location:
: d, H7 w+ x7 l5 |5 I${exe_path}\n" unless -x ${exe_path};
i/ N; M$ M# d# y0 w/ z& X# Y' \6 `, I
# Start building the command line.
+ ?% q$ u3 T! ~my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 3 @2 N' h2 q6 S4 k" D9 m2 t
- U, P) x3 m$ ?
# Take care of possible empty spaces in the argument values ! n" T* S) y0 v, M) j) ~7 l& E
my $outputFileStr = $hashRef->{'output_file'};
a: z @* b2 T$outputFileStr = handleEmptySpaceInPath($outputFileStr);
4 u% i/ a9 @/ ]8 j; v9 o4 emy $scoUid = $hashRef->{'uid'}; 0 @- V$ c% j* ]; P
$scoUid = handleEmptySpaceInPath($scoUid);
" u: E1 j, b2 t4 `; s3 a
7 @ h/ \0 t3 `: w# I# Add the extra options.
+ a& L! E9 I( Y) NaddOption(\@args, '-xml_file=', $outputFileStr, 1); , R/ R3 `5 ]. p& {
addOption(\@args, '-uid=', $scoUid, 1); 5 F* }9 q& k% f: D3 |
addOption(\@args, '-u=', $tcdbauser, 1);
9 q( O- X( b( t. HaddOption(\@args, '-pf=', $pwdfile, 1); 2 c D; _# v9 A7 |; ?! E/ _
' B/ @+ K/ }: j. r: [) ^
在 runLoadFscCache 子程序下增加红色标记的代码
$ v. r$ n! i3 }- X m
' V9 `6 G; t& u) H# This will be the full path to the executable.
3 v O% P; F+ Q' S3 fmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
8 W0 o' D% A3 {$ x8 l% y
6 _: F9 H4 E; j2 Wmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
) k9 D% J9 q z: E8 ?0 m% E1 o. o' Nmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; : K7 O1 X% D! Y& w4 c: Y! F
# Make sure we can find what we are executing. ) E2 ~5 h6 T3 n: M5 p/ b. _1 |; X
die "The ${exe_name} executable was not found at the following location:
, a$ U J3 z% k+ g/ Z8 D w* ]; A5 o2 H${exe_path}\n" unless -x ${exe_path};
6 q& Y: f i6 _2 o4 E! Z; U' [, ]6 b+ [" h4 b1 y% V
# Figure out output information from command line input # u6 D- n1 P' L9 t& S0 o# \
my $outputFileStr = $hashRef->{'output_file'};
2 t; ~* A$ m- N5 e( v8 tmy $fscUri = $hashRef->{'targets'}; + ~, b9 [1 H% H/ r" i5 R
9 Z) v" i; R" `" D3 c
# Check possible empty space in the string * z3 {+ J, r, Q: _1 |
$outputFileStr= handleEmptySpaceInPath($outputFileStr); " J- F0 e% j. I; A. m! i# c
$fscUri = handleEmptySpaceInPath($fscUri); 7 e; u2 p. _) ^: r% [( ~5 t
% u6 p/ P6 {9 K% g6 }# d# Add the extra options.
4 `6 T4 @3 q, Imy @args= ( $exe_path, '-f=load' );
/ y% \0 b+ |( x% {addOption(\@args, '-plmxml=', $outputFileStr, 1);
6 o4 U5 {3 F( x$ OaddOption(\@args, '-fsctargets=', $fscUri, 1);
8 j. T2 ?9 L! ^) ?# l; _4 \/ VaddOption(\@args, '-u=', $tcdbauser, 1);
6 ~0 O& C( Z/ ?" X+ ^4 Z6 Q# yaddOption(\@args, '-pf=', $pwdfile, 1);
. K& r2 T3 r# ~6 H6 E/ r& e3 Y% t; b6 W
7 Z4 s+ v1 S) e! W, O5 \+ i3 ]0 ~% R+ b! E- p( l
|
|