|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
6 K: m. H5 A2 U6 z4 |3 `
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
7 t- _3 F. X/ v5 e* F0 a Y: }3 N# v; @) O: A& p& M5 U4 {4 V
问题
, K) F8 {5 E3 \默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该- F. @ I3 C2 Y% p+ {: f
模块中的功能无法登录
3 W% N" t- E9 y% q( w& ^8 |8 g+ `1 }: k
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
3 b* p3 l% l8 Q- fuser ID or the password is invalid. 0 ^+ A; P2 |: c8 p6 q
! x& b' R! e) u! F0 p方法
) Q6 D' m. X, |2 ?- `% P$ a修改 populatefsc 脚本,增加登录信息 2 M% P% ]# \7 T7 F* i. b) d
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
9 u! H( I) ], I% fset TC_DBA_USER=infodba : o1 F5 O, M3 s4 o6 r" g! _
+ I5 m$ H# M5 f在 populatefsc.pl 中 : . Z% {3 k; J% j* Y4 Y6 ~* G; Z
1 z: w5 y( j! |! i, a1 @在 runPLMXMLExport 子程序下增加红色标记的代码 , n8 Q: d1 ]1 v% z: @
5 W- L5 z) X0 w4 f( f! ~
# This will be the full path to the executable. 1 f* t& @3 B/ |7 s
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ( ?$ ^9 R$ f K- z# ~0 z: z
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ) P) E. ?8 i: r
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; $ K( }5 }0 \4 R/ }1 t8 n
# Make sure we can find what we are executing. , F& X0 L/ O8 T/ E" ]
die "The ${exe_name} executable was not found at the following location:
+ ^ M/ i4 p; v: {- }" w${exe_path}\n" unless -x ${exe_path}; ) t, O. u5 P5 t" K3 @
$ {6 X# k; |( c
# Start building the command line.
# A3 o [& h: }: [my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
2 w* E8 u/ W2 q+ x7 W6 K, Y$ E9 y6 }
# Take care of possible empty spaces in the argument values : b0 m: t" L$ _/ ~ h
my $outputFileStr = $hashRef->{'output_file'};
3 e* ?& s/ Z( B: x$ F. }' W* R1 O$outputFileStr = handleEmptySpaceInPath($outputFileStr); 5 p& t6 t) X, ?
my $scoUid = $hashRef->{'uid'}; ; S$ g. n2 J% T
$scoUid = handleEmptySpaceInPath($scoUid); , b0 q/ f( L: n
0 {4 ? X4 D0 S; n3 Q$ z7 X# Add the extra options.
3 }) I. C' v' t8 p! \addOption(\@args, '-xml_file=', $outputFileStr, 1);
/ q$ B: i) x- Y4 x8 aaddOption(\@args, '-uid=', $scoUid, 1);
. p0 n d) i. LaddOption(\@args, '-u=', $tcdbauser, 1); : J2 K8 K) j, C8 q! \- n# n
addOption(\@args, '-pf=', $pwdfile, 1); 4 c) C1 r& r5 w e' z1 p
+ s- U3 |8 p( q, |- j/ k在 runLoadFscCache 子程序下增加红色标记的代码 4 D2 I( X) A2 F6 l4 i* ~6 q9 J u
% }4 x1 e `! I6 q2 O+ U/ `# This will be the full path to the executable.
3 K) @0 j7 T1 n, L2 umy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
2 m7 K' b' S; a: a, b/ t* K
) v5 X$ |% q w/ [my $tcdbauser= "$ENV{'TC_DBA_USER'}";
3 R$ f( F9 H: X! ^" @my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
" X0 Y E5 z% E3 }/ P8 w8 g# Make sure we can find what we are executing. . ]4 l# N3 T. S0 E0 h
die "The ${exe_name} executable was not found at the following location:
. h5 g. K* T/ e${exe_path}\n" unless -x ${exe_path};
( l& p; X# e9 w% r. {0 T0 I) [ s
# Figure out output information from command line input
" q/ Q6 C7 Z( z. v/ e; j/ Z( `my $outputFileStr = $hashRef->{'output_file'}; % M. q C& @* O2 Z* b
my $fscUri = $hashRef->{'targets'}; t8 o" T% ?; A- ~& u
* C8 X4 G2 a/ a9 ~- f# Check possible empty space in the string 9 W2 y9 [+ A1 _8 r2 ]0 e- K
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 4 e) W: g) K) ]/ a( Y6 `# i
$fscUri = handleEmptySpaceInPath($fscUri); # q% ?4 z& h. q; k" ~1 E
0 A b" {* Q! G- k& O, f" K# Add the extra options. & v2 M9 D) N$ z+ t
my @args= ( $exe_path, '-f=load' ); 0 L# Z9 R1 L; r1 I" ?# y
addOption(\@args, '-plmxml=', $outputFileStr, 1);
/ O2 ]) `# {5 `6 \( k; v% SaddOption(\@args, '-fsctargets=', $fscUri, 1); ; A) L* ]8 J6 z8 b$ h. W
addOption(\@args, '-u=', $tcdbauser, 1); 9 v( T- s% b/ q8 [- X
addOption(\@args, '-pf=', $pwdfile, 1);
$ I/ ^. L) ?7 l+ W/ T! V9 u4 P% o! N) K; {
1 H, z9 Y! u! X2 Z/ q; Q
2 u# l& }+ L- O6 A7 I# r: g |
|