|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
2 x: K$ N6 V: B& H; ?: l* s
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 : L% m9 o2 B4 [- @% f4 |8 H, h. h
# M2 R& M! r ]! V1 j% ] m1 C问题 * e! `' |/ [1 n" P' Z9 y
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该5 J2 T5 d9 [( A2 i7 _* F6 u) a
模块中的功能无法登录
' l6 I+ r% W; _. ^# g: Y; `' N. i+ x$ ]4 m) S: k# p0 L: s* G
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
3 l' A% B0 E' k- \+ Xuser ID or the password is invalid.
0 x: g H( t# e% |6 U+ u- B. E% c0 J8 S3 q! L
方法 % B/ ]# H! p' D ]
修改 populatefsc 脚本,增加登录信息 0 g9 X5 x1 P; V8 N- ^* K! p
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
; o) k) G. p( I: eset TC_DBA_USER=infodba 7 N) h1 U% c5 Z1 u, q. F. ]' p5 t
) i! b( a( |, {, N8 ]在 populatefsc.pl 中 :
. Z/ x& M* r% E3 k' [ c2 O% L, i3 u
9 I$ X$ U9 b' i" m4 P4 Y在 runPLMXMLExport 子程序下增加红色标记的代码 ; g& D. ?: R7 `7 P; P
, u; R- c5 ?, k. O# v
# This will be the full path to the executable.
4 `% W3 S% B& Cmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; . s z0 R7 S/ L% ]) C1 g6 U& q
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; % v: x' A) i7 w- o
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
. a6 U$ J, j/ e( [7 ], ]# Make sure we can find what we are executing.
9 t8 C2 r2 G9 _die "The ${exe_name} executable was not found at the following location: ; D. l- ~/ B* l
${exe_path}\n" unless -x ${exe_path};
; U5 @4 j) j3 [, X8 s. a+ I( n2 ?' R2 s, M c/ J; z* g3 A
# Start building the command line.
F, `) C' x# s) x+ pmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); ) y0 F$ Z7 M) g6 E9 k& m
; f5 s, g2 z9 w _5 U; J- W) U
# Take care of possible empty spaces in the argument values
+ r- l, {% t2 L' I, A( D- L$ qmy $outputFileStr = $hashRef->{'output_file'}; 2 ^+ S5 Z5 `; X
$outputFileStr = handleEmptySpaceInPath($outputFileStr); 9 w0 k& k6 z+ O- b, L
my $scoUid = $hashRef->{'uid'}; 1 j6 A+ z& w" R0 s; C7 A
$scoUid = handleEmptySpaceInPath($scoUid);
N5 l5 V6 R% Z" V$ r0 d) V5 v5 f0 g% h# l+ M
# Add the extra options.
& d( C" v! r1 ^& w: HaddOption(\@args, '-xml_file=', $outputFileStr, 1);
4 S: P9 Y! @2 V! qaddOption(\@args, '-uid=', $scoUid, 1); * R7 [( D* u% V% P! `2 Q7 v: v6 L
addOption(\@args, '-u=', $tcdbauser, 1);
" v5 N; d& W1 OaddOption(\@args, '-pf=', $pwdfile, 1); . i% ?3 T2 b- T* F! X
* {7 Z# v$ X# Y在 runLoadFscCache 子程序下增加红色标记的代码 4 L! p) |; V- k1 f8 B% j9 X
. p! q# k6 l* I" ?- G$ @# W/ ~' |
# This will be the full path to the executable.
, \0 \8 y/ R4 Ymy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 0 S9 q/ x7 A& {# ?2 t
& U& i7 c, G8 wmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
; O; S5 ?# o/ c4 j+ Imy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; % u4 g+ r: _/ P: ^( j! x2 @7 ^
# Make sure we can find what we are executing. ( P8 T+ H2 V" q$ T
die "The ${exe_name} executable was not found at the following location: ' c( a# n( {7 A; V
${exe_path}\n" unless -x ${exe_path}; 1 R) p7 c @: a
4 i8 z. J1 H3 v( V8 L
# Figure out output information from command line input
% q5 N9 H# r \9 A5 Z6 I8 M0 _: Bmy $outputFileStr = $hashRef->{'output_file'}; ' l# Q2 ?, K9 }4 h
my $fscUri = $hashRef->{'targets'}; . t% c- A) A& ^
2 u8 g% u# k1 ?! ^# B
# Check possible empty space in the string
: a7 K+ K. T8 V, \' {' g) i7 E$outputFileStr= handleEmptySpaceInPath($outputFileStr); # t) F+ H& e0 \& d- E) k
$fscUri = handleEmptySpaceInPath($fscUri);
* w0 K5 x% ~+ c/ @; ?" d3 I ^- }0 S: X2 c$ s8 c
# Add the extra options.
( v; V, }" Q2 R8 Gmy @args= ( $exe_path, '-f=load' ); ; U6 k( \+ o) l; P" x7 P1 l
addOption(\@args, '-plmxml=', $outputFileStr, 1); 0 T: z G. b# ?' u
addOption(\@args, '-fsctargets=', $fscUri, 1); - X8 a. [# J1 _4 Q- F
addOption(\@args, '-u=', $tcdbauser, 1); 9 j* F% ]4 P$ [. O) l
addOption(\@args, '-pf=', $pwdfile, 1); 5 V- r3 }4 o o# s
- ]8 Y" K7 ?) s
0 _- j- c3 L7 s
- j# p/ Q& o% c9 U# c% S$ I |
|