|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
' U- j* H" V8 q$ Y8 j% S
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
3 |7 ]! G3 ]6 O( p. e3 p5 w+ {: x* t3 J5 c5 b
问题 9 P D/ n- C* r; a2 ]) X
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该. c* p4 P. U5 O" g
模块中的功能无法登录
; M! G/ u* f9 `
& `5 b# c6 ?, |$ b4 |$ jERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 5 R2 q1 ^, x: J' x$ ^
user ID or the password is invalid. 6 e4 |8 m3 E' y0 {) V) f8 f3 L
* X& n8 ]+ P. A方法
+ d+ r: U2 l I1 @ s% K, C修改 populatefsc 脚本,增加登录信息
* L: a6 u' p# h( E在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 0 L, r* ]- i( u: g$ |0 h* f
set TC_DBA_USER=infodba 3 h* D; O# ~3 X u5 W
" e4 g, u% E6 F% Y在 populatefsc.pl 中 : - t7 Z* Q9 t4 [+ V
6 x7 H4 ^6 P9 B在 runPLMXMLExport 子程序下增加红色标记的代码 ' [) N$ p( F8 V: A+ J/ p
^; [7 H7 o6 M+ J0 N+ K' m+ f% q
# This will be the full path to the executable. * N* V: Y7 u* X5 R7 i0 y
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
2 x! u2 K5 J/ U; L4 P cmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; 4 x5 D, ^* T. A
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
. d+ a! T x, g& m% Y$ \# Make sure we can find what we are executing.
6 w- E! B) u/ ~, Adie "The ${exe_name} executable was not found at the following location: 3 o4 I3 ]( d) A! |/ c6 D9 l" c( f7 {5 V
${exe_path}\n" unless -x ${exe_path}; 7 D b x6 j' U4 \/ h- L
/ h2 P: e8 W% u/ J- q# Start building the command line. . F6 ?$ [+ B+ _2 s" D7 |! ]. D4 p
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
5 e; U& D" H' _7 T: k
8 P Q% i( }3 | P# e# Take care of possible empty spaces in the argument values
! E! m- \ d D; Gmy $outputFileStr = $hashRef->{'output_file'}; ! K- b& E4 A: J4 F
$outputFileStr = handleEmptySpaceInPath($outputFileStr); 0 L, E/ |8 j) Q6 o
my $scoUid = $hashRef->{'uid'};
* s( I& n) V7 I# U; ]' N( h$scoUid = handleEmptySpaceInPath($scoUid); 0 F. |. ?' U2 _
& ?5 C; D$ E# z% f9 C7 w# Add the extra options. * k/ P% t6 }) s1 }6 [
addOption(\@args, '-xml_file=', $outputFileStr, 1);
: R9 r4 j+ x- F7 C# e% FaddOption(\@args, '-uid=', $scoUid, 1); 7 i. _5 p) q4 L1 s5 P
addOption(\@args, '-u=', $tcdbauser, 1); ; B; ] p% u& u& d
addOption(\@args, '-pf=', $pwdfile, 1); - M" S0 w7 I3 p) T
9 _0 T9 v; Y4 F* a' z/ J! u# C! \在 runLoadFscCache 子程序下增加红色标记的代码
, M) X9 d' O9 G, M. o) v
. l# {5 W4 E. }+ x) J% I7 G. V" \# w* Y# This will be the full path to the executable.
2 @. Y6 z# a6 r& smy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
# f' u c. E) p
, {7 j( o- D" ]( P2 ymy $tcdbauser= "$ENV{'TC_DBA_USER'}"; 0 S6 l1 h6 S( A* w& a" `( t
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; # o- I" X7 B, n9 _9 _
# Make sure we can find what we are executing. & p) I( ~! `9 H* \3 O- k- A0 C
die "The ${exe_name} executable was not found at the following location: , j, q L; ~2 v+ b
${exe_path}\n" unless -x ${exe_path}; 9 D5 m" n; r+ n; L) C/ X" S
2 a# J; @. l! W# Figure out output information from command line input
8 T! N7 d2 C8 m m3 T$ Zmy $outputFileStr = $hashRef->{'output_file'};
7 g+ E/ Y+ r2 Qmy $fscUri = $hashRef->{'targets'};
|! _7 d# g& D' W( @$ ?# G' X6 y) M5 J9 X/ v
# Check possible empty space in the string 9 a- k- S8 O" Z9 |. E! ?, ~
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
, z- o* M9 l& E2 r0 u* l% `1 K: {$fscUri = handleEmptySpaceInPath($fscUri);
! A7 h! m) J, w) R& M! \7 f! Y/ {% a% r8 j
# Add the extra options.
* X. ~ S$ t4 p, imy @args= ( $exe_path, '-f=load' );
" ?' I7 ~+ T( X' `7 s' GaddOption(\@args, '-plmxml=', $outputFileStr, 1);
: |/ j1 Z {+ maddOption(\@args, '-fsctargets=', $fscUri, 1);
6 N3 C* W: t: r+ K, q& o0 iaddOption(\@args, '-u=', $tcdbauser, 1); " n! |0 f8 I: _7 h# H
addOption(\@args, '-pf=', $pwdfile, 1);
% I1 ?! V/ S* F7 H/ ?
- e1 O5 s+ y$ Z! K. M/ j
( h2 R/ V: ~/ h2 b, E6 Q' q
( C& m( ^& P. J4 l# X |
|