|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
) q4 R6 R& v6 h: n2 c2 T% @171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
3 W2 b! B6 ?3 X# }1 h: \3 ~! R/ f0 e
问题 & x& I0 |2 j) I( E/ y. V
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该) u$ w4 y- C8 @8 E! K" A8 U0 ^
模块中的功能无法登录
, w7 T7 B5 U5 r( T0 f( ~, q1 v( o4 i% X- g! F! u
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
" a& J: Y! n4 m7 o5 \user ID or the password is invalid.
" Z% [$ J3 c" ~, l2 Q: d$ F/ ~! B- z' z' J" ?. B! N# x: N: q
方法 . x3 T9 r0 T1 ^7 q) T; y. S
修改 populatefsc 脚本,增加登录信息 " N8 }( ]9 v# J {
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 7 J" \6 U Z- W2 P" B
set TC_DBA_USER=infodba
8 q: q2 o/ a# ^: c5 ^
1 U! `5 {6 E6 z& g在 populatefsc.pl 中 :
/ F3 a- L1 v4 L* U8 f" C
9 w& G" W. m$ a' y在 runPLMXMLExport 子程序下增加红色标记的代码
0 x' a- v3 Q7 x+ F' g# J& d! x1 _6 D+ x, G5 v3 U) } {3 G
# This will be the full path to the executable.
2 M8 s6 |. E- Z, a% g6 Lmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
3 A5 u! p" ~/ }! M4 [9 m* zmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
1 J1 F% p$ y+ L, b7 a5 Wmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ! F7 h! j5 k- x0 p
# Make sure we can find what we are executing. 7 a* R/ I) [0 W8 v3 {" V
die "The ${exe_name} executable was not found at the following location:
% d: y" c) t2 @) Q' f3 O) x${exe_path}\n" unless -x ${exe_path};
& c) n: ~1 E5 `: C4 T
: E# V" w8 B! G7 `# Start building the command line.
{/ q* h. i/ h l Rmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
; `/ Z) Y$ y6 I4 D, M, k7 V
% p: ~9 ?; t2 H) q6 Z2 e# Take care of possible empty spaces in the argument values
# Y( J. T! q% {$ C. F. xmy $outputFileStr = $hashRef->{'output_file'};
; Q3 y: a- b. |$ l. u$outputFileStr = handleEmptySpaceInPath($outputFileStr);
( F: W" _8 F7 E% Y. |- ^9 Z4 a( f2 |my $scoUid = $hashRef->{'uid'};
# v% l" s% ?6 `9 W# B$scoUid = handleEmptySpaceInPath($scoUid); ' M. }0 [/ q: C3 X& W" c( |% \
$ ~9 f% d0 Y- p& m/ [7 ~" _7 o
# Add the extra options. 3 h8 W8 y l- \+ ^0 W8 q
addOption(\@args, '-xml_file=', $outputFileStr, 1); ' {. N# W; x3 e: p+ K& |5 [: g6 ^+ q
addOption(\@args, '-uid=', $scoUid, 1); : Q; d# ^6 a' `
addOption(\@args, '-u=', $tcdbauser, 1);
/ n1 ]; ?/ R! u( ?7 z5 D# y0 H+ eaddOption(\@args, '-pf=', $pwdfile, 1); ' C; G" I6 N7 `; E
" ^) N- F% S _8 L
在 runLoadFscCache 子程序下增加红色标记的代码 ' i* |, O6 b/ Z) V& \& |1 J. F+ p8 i
- n) t! k. P1 G; i( I* V: ]& h# This will be the full path to the executable. 5 g# ?* v8 d9 Y
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 2 H# {7 F9 V6 B0 n
* k4 V1 X2 U: @# ?my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ' r% a: D& r$ Y2 N
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; o" K4 `2 A- s* M5 P
# Make sure we can find what we are executing.
3 e3 `' \: A7 T8 }/ Q: n& M' f' ^die "The ${exe_name} executable was not found at the following location:
7 z6 W# R6 v" ?: j/ [. g3 h6 c. W${exe_path}\n" unless -x ${exe_path}; % w9 r3 u& B( I6 Q* _3 @
" E3 d/ O6 h$ P v# Figure out output information from command line input ( |9 Z5 K" B3 ]/ H0 I
my $outputFileStr = $hashRef->{'output_file'};
1 c5 s q# N: k8 x! g' hmy $fscUri = $hashRef->{'targets'}; % o$ Z" K' D# H6 ~/ y
& _5 J5 K7 P+ s$ i: J7 J
# Check possible empty space in the string ; ]% t9 `9 S B+ ?- S
$outputFileStr= handleEmptySpaceInPath($outputFileStr); : [. q6 G- x3 ^( Q- g8 p$ g
$fscUri = handleEmptySpaceInPath($fscUri); ! ?! l0 k* d1 j/ m M
0 E% I4 H ]) y" f( p5 N# Add the extra options.
, P& p% q- j$ \6 y$ Y6 e8 @' pmy @args= ( $exe_path, '-f=load' ); ' a- Z7 y" M7 e5 x
addOption(\@args, '-plmxml=', $outputFileStr, 1); # s6 [& ~0 k* v7 _. j$ v7 j
addOption(\@args, '-fsctargets=', $fscUri, 1);
$ F9 H! M" \+ e3 { x) C: v4 M( xaddOption(\@args, '-u=', $tcdbauser, 1);
8 q) M# F% a5 }& f8 i, X1 G, J+ ~addOption(\@args, '-pf=', $pwdfile, 1); : J5 s. p' }0 u2 T9 }. b+ v8 F0 s
$ Z" w* R: I" h# y
, {1 v! [1 I/ ?4 D" F3 R" s
; V% C) }! K: }8 @ F Y/ J* c4 k |
|