|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
4 A7 ~& L3 a, M$ S& H [171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
5 d% T/ Q5 K o6 t1 }9 B% k1 w/ ?5 m3 L& }) C! h; x7 G8 j0 Q
问题
]+ t- c; s$ U! g+ b默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
' g: L2 `% d9 i( }9 B9 F模块中的功能无法登录
# \2 W6 b2 F1 T+ z+ [& }; S* u- ]8 w. p% ]' c# F) B
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
% B! g( n% c, Z, E0 T* O& Yuser ID or the password is invalid.
% k/ B4 i2 \: @( b d- f1 X8 v: ?& \* i
方法
) F$ @& o4 n0 Z4 r修改 populatefsc 脚本,增加登录信息 0 O. h; \; v. v- ^
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 $ N1 F ^2 W% v% c8 S1 X
set TC_DBA_USER=infodba N0 _( W/ \3 v. Z3 P9 z. b/ X1 z7 A
. \+ t u8 s( Q2 m3 f
在 populatefsc.pl 中 : 3 P- ~- u1 ?7 O9 W
+ P+ S$ |: u/ Z9 S* w在 runPLMXMLExport 子程序下增加红色标记的代码 " j$ R! c8 J1 h' c& G
$ R- @0 T+ q3 S# This will be the full path to the executable.
n( Q3 |( x% q3 |, b( Z; A9 j1 I2 Xmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; - t8 N0 C- J0 E3 _
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; : z; ]3 I4 a+ b0 |$ P) }+ V
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; % @0 I3 z0 F4 v( W$ P& g$ l
# Make sure we can find what we are executing.
$ G8 }- h* g1 Y3 z2 `) `: r1 ydie "The ${exe_name} executable was not found at the following location:
: F! } ~& E- w${exe_path}\n" unless -x ${exe_path};
, A8 G/ k- w$ w1 U0 z _- h. B, r0 `0 h- o
# Start building the command line. 0 {; P& R, P7 ?7 ]# {+ z9 n
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
# D, A. P: E9 s: o1 G# w3 b9 P: k/ E/ R& {5 K. `! K& {$ \
# Take care of possible empty spaces in the argument values
/ G- i: {6 `9 P$ G/ {) j( n7 Vmy $outputFileStr = $hashRef->{'output_file'};
# e, P) I) i" K0 e* ]8 ?$ i$outputFileStr = handleEmptySpaceInPath($outputFileStr); $ |+ E( g! e/ x. ^
my $scoUid = $hashRef->{'uid'}; % U& S0 ^+ B2 d
$scoUid = handleEmptySpaceInPath($scoUid);
: m- V: `' A3 ]6 c: y* \$ _ u: \/ D& q- C
# Add the extra options.
; [- Y7 m. P" ^addOption(\@args, '-xml_file=', $outputFileStr, 1); / ]6 y) }; _6 J8 A8 H
addOption(\@args, '-uid=', $scoUid, 1);
. J2 Z- J! C4 R% P, n) {& eaddOption(\@args, '-u=', $tcdbauser, 1);
2 I, p& T a+ M! S4 B3 T' oaddOption(\@args, '-pf=', $pwdfile, 1);
" e m. M2 F) Z8 k3 h8 b( ] H# {: K+ `2 A6 G- w0 j- v6 u6 F
在 runLoadFscCache 子程序下增加红色标记的代码 / u0 l! b, ~5 c8 j7 D( i
& j) }( ?; }/ x/ ^' ^
# This will be the full path to the executable. # l! c* o- e- ^+ C5 E
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; . n& E/ P! ~$ M. \) a) |
+ }- i8 K$ {+ d" L' g
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
. P7 q8 y7 M- ]- V: a$ Mmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
8 ^ M3 \3 X) S$ L- `' T/ k# Make sure we can find what we are executing.
O4 w6 M X7 |6 P; B6 W7 ?die "The ${exe_name} executable was not found at the following location: 7 t1 u. S3 e8 X) o6 [) Q4 V
${exe_path}\n" unless -x ${exe_path};
/ V; {5 S8 ]) r2 T( e' l2 d+ Y9 z; }1 W, Z8 |8 l, U
# Figure out output information from command line input
% f& J+ _( @# X! p' r, K- y0 Lmy $outputFileStr = $hashRef->{'output_file'};
! [* N* B7 P1 [$ G# N: j& vmy $fscUri = $hashRef->{'targets'};
]6 l/ Z A; |2 @, W( ^
+ {5 Q: W! }, h/ j6 B$ O7 L b# Check possible empty space in the string 0 s) K9 z4 ]1 v
$outputFileStr= handleEmptySpaceInPath($outputFileStr); ; k4 Z7 ?4 S1 Y& z/ y3 p8 @; Z
$fscUri = handleEmptySpaceInPath($fscUri);
" j" r% V5 X" R# i c! S
" m, \- s$ ]4 ~+ q! K8 Y$ E# Add the extra options.
5 q0 } T' K* I5 k, Smy @args= ( $exe_path, '-f=load' ); # U' n( N' ? @" u
addOption(\@args, '-plmxml=', $outputFileStr, 1);
: H: J4 E" @4 s o" a* L5 ZaddOption(\@args, '-fsctargets=', $fscUri, 1);
( z. n( S6 Q9 W% v' N7 eaddOption(\@args, '-u=', $tcdbauser, 1);
9 ?8 k9 z+ n2 \" e, I7 b9 WaddOption(\@args, '-pf=', $pwdfile, 1); 7 s: h5 F) P# H& V2 J# ^
. p" x6 x+ c" i) O0 J, r7 _1 `' j7 ]3 G+ P+ ]" v3 V0 D- E7 G5 A1 C
! S. `. p/ e: f, F: D4 y+ Z7 Z, |% ]
|
|