|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
3 d$ o: T8 ?# l3 e: g; C# b6 L
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 ; S: R3 A% Y" g2 {3 N
5 B' ]9 K7 K5 E问题 3 h9 F. d$ Q% C5 V7 P8 s/ k
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
+ x% n* Q6 r! v$ W1 Q5 M& X模块中的功能无法登录
& U% @5 N5 F' t/ o; b
0 a# N7 N& k) [9 e o+ I* K6 Z- bERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
; P& ]7 @! }4 \) X9 `user ID or the password is invalid. ' i+ p) O6 q+ {6 r+ C, C4 ?
$ r5 |) b4 O2 U* ]6 V方法 % Y9 {" g: V4 L, v
修改 populatefsc 脚本,增加登录信息
3 {: U( h; }# w: R在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 7 l) A' V1 [6 ?9 @
set TC_DBA_USER=infodba 5 s4 }% n: W$ k# U8 x
* ]( O1 a) D& [; C在 populatefsc.pl 中 :
+ I- `- P. b2 h: X: C" C1 Q4 D' D
在 runPLMXMLExport 子程序下增加红色标记的代码
/ [0 F; j( D- O8 J& N/ |
+ `" H5 f, T& d) l1 G- K# This will be the full path to the executable. , t0 y% K8 p7 U' k% v$ S) P5 c
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
# J9 ~/ h) ^8 c& X. bmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; # r* u* i, A+ A7 d6 S9 v
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 6 W8 z. s4 f ]. p: w; G" i
# Make sure we can find what we are executing.
6 Q7 M% g( {; u. Y3 T ~( ldie "The ${exe_name} executable was not found at the following location:
l+ e7 G1 K; _& ]6 Y5 [/ I${exe_path}\n" unless -x ${exe_path};
% k) p9 ~. c$ I# v4 l1 ]0 J! g k( O; |! E( \# s! }1 ~8 G x2 ^ U, K
# Start building the command line. ( p$ H" L Z: g+ e5 g& {' _
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); % |) O z. J: s0 g: o3 }) m
2 ~" g# r. @* J. }
# Take care of possible empty spaces in the argument values ! [! V7 W2 q. z2 E3 V1 U( w
my $outputFileStr = $hashRef->{'output_file'};
7 { r% {- q$ b7 j& J2 o$outputFileStr = handleEmptySpaceInPath($outputFileStr); % z$ i- O, C# ]
my $scoUid = $hashRef->{'uid'}; : S- M/ t2 G3 s/ j4 ^" T
$scoUid = handleEmptySpaceInPath($scoUid);
+ O- S9 X1 R* ?1 c+ Q! j. V( ~% A: X# z! P8 A* }8 F
# Add the extra options. 5 w6 A% D" H& H. {" S
addOption(\@args, '-xml_file=', $outputFileStr, 1);
* X Q( c, M m' T1 LaddOption(\@args, '-uid=', $scoUid, 1);
- k% `3 ] M0 V0 B* D4 ZaddOption(\@args, '-u=', $tcdbauser, 1); : j) f9 z- E8 H* r- ~) J
addOption(\@args, '-pf=', $pwdfile, 1);
$ M, M! D* l, A7 S$ |! @! O4 v& I) x& H! e c
在 runLoadFscCache 子程序下增加红色标记的代码
. G( a& ?8 _! G) f% D6 r# B; d4 c, j$ p- r% Z0 S
# This will be the full path to the executable.
) ^, L* v% d* l" V8 ^4 ymy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
' G) f Z: K$ T; S: ~4 N4 P
8 d" n5 O+ c, g/ `8 c7 gmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
( t- L M7 y" d4 }my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
& f& Z& ~ R6 j8 u5 G# Make sure we can find what we are executing.
( \+ r$ h' j6 C4 ~die "The ${exe_name} executable was not found at the following location:
, Q; \9 A. G8 h0 O" J9 J${exe_path}\n" unless -x ${exe_path};
5 m+ e, {) x; ]+ [" K" j D# Y) g# o4 H. v. C' a/ e
# Figure out output information from command line input
( v% U5 l1 _- tmy $outputFileStr = $hashRef->{'output_file'}; & F5 H, A5 E/ \+ h" v1 w9 U$ ?
my $fscUri = $hashRef->{'targets'};
9 b; B7 l* D# b0 k3 v+ g ~! ?; b
# Check possible empty space in the string
5 {+ v/ ^- R: ~3 K3 u" [$outputFileStr= handleEmptySpaceInPath($outputFileStr); ! \5 B8 \8 v6 D$ G$ ?
$fscUri = handleEmptySpaceInPath($fscUri); 9 \9 a4 ]+ V& J/ U$ W, }
7 H2 M4 K' {1 }& l7 x# U$ ?
# Add the extra options.
6 i; g/ E) R( g9 Imy @args= ( $exe_path, '-f=load' ); , |8 J2 ]# N/ N2 n3 `
addOption(\@args, '-plmxml=', $outputFileStr, 1); ; }% N/ l6 ^- v$ n7 G
addOption(\@args, '-fsctargets=', $fscUri, 1);
[! `7 G& h. @* z% r R" C1 iaddOption(\@args, '-u=', $tcdbauser, 1); ) Q2 R. n9 b$ H1 W/ {1 @# e
addOption(\@args, '-pf=', $pwdfile, 1);
+ l4 k: J Q4 }8 Q5 e% b3 _$ @! x0 `1 Q W
% m2 W7 `, F# Z! m
$ V$ d) e8 F: L |
|