|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
% G3 J* e- D% P9 \
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 : z# ^1 c) `6 @, s8 v* n
1 v5 c' F! @# l, [" O5 m
问题
" n! G' o3 F! o0 }' L2 m默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该' B+ | a5 O$ s6 q) G! \
模块中的功能无法登录 & K2 \/ f0 ?" u# ~
+ z+ h5 @! c. m; P0 `4 W
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
# ?2 P5 ^0 L5 Q6 K% _% `6 @2 Vuser ID or the password is invalid. 3 `2 q% S! J2 i- d: n( w- p3 o. N
3 [" f! |1 |( m; \5 O方法
6 |" Q( E1 ], ^+ V0 Y4 O修改 populatefsc 脚本,增加登录信息 , Q( `$ n5 Z$ ~ a0 d, f
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 % A5 z2 Q- Q2 ]( c$ u+ ~; u
set TC_DBA_USER=infodba / f7 o! ?2 V1 x9 e
5 \% `" v" g8 N
在 populatefsc.pl 中 :
1 b H- X( l' W; |+ i6 e2 ]) a
. X. Q. y7 S( F在 runPLMXMLExport 子程序下增加红色标记的代码
6 F, u% R4 E0 P0 \/ C0 l4 Y. |; m) F! [% R+ x M2 n; n
# This will be the full path to the executable.
! z4 K$ }+ F+ @1 Y; }% D' [my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
( g6 Q0 P- R0 ]$ \. Nmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
0 t* G6 `* ?. J! Q& smy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; , O7 c7 v x* n+ g
# Make sure we can find what we are executing. 4 s7 J' p$ R! ^) ^+ U0 r
die "The ${exe_name} executable was not found at the following location:
* G2 Y2 k' s& ^; l$ ?" g T5 V${exe_path}\n" unless -x ${exe_path}; 8 o& j. S. V1 z$ _
) j3 A, x9 C# }; y! t$ O3 o# Start building the command line. # A' r* W& N: J! Q! f9 l+ u" Q3 P
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
' v5 F( ~5 u8 v8 a4 h! f: I v# |! g- C' M
# Take care of possible empty spaces in the argument values
- r( f: b, `- Zmy $outputFileStr = $hashRef->{'output_file'};
$ B( A/ _7 v% j9 O6 q% N) h6 ~- R$outputFileStr = handleEmptySpaceInPath($outputFileStr); - ~9 o% \" \- S9 ?8 \
my $scoUid = $hashRef->{'uid'}; 6 {- @( x6 d9 Y3 j% }0 F& S! d
$scoUid = handleEmptySpaceInPath($scoUid);
/ s: N. e& X; [9 L4 }: @( z
( r- M& S6 N/ R% u* |# Add the extra options. 3 c- b: D5 [5 k. R n
addOption(\@args, '-xml_file=', $outputFileStr, 1); 1 n* g0 i' t2 j0 b, i& h4 B
addOption(\@args, '-uid=', $scoUid, 1);
( ?. f/ v: {. A. K1 ~addOption(\@args, '-u=', $tcdbauser, 1);
' }4 e' a% i( b0 h& `addOption(\@args, '-pf=', $pwdfile, 1); / y: i0 K3 t1 `; C: E4 `+ S5 b$ V
! R2 X, j+ _8 M
在 runLoadFscCache 子程序下增加红色标记的代码 - _0 f! i; B, s. o4 k
! f1 D+ q" c' H3 O6 w, ]& B
# This will be the full path to the executable.
& Q9 a7 V; @2 A$ O( @8 e( vmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 1 z2 a9 T: @# f7 R" C5 c' x' c
. V- s% ^2 A: r5 Dmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
: J8 i+ |; c: |my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; $ E5 e& \/ L. |% i
# Make sure we can find what we are executing.
$ Q; k( J/ T+ O2 ?die "The ${exe_name} executable was not found at the following location: ) b, W- w5 j6 l4 m( z
${exe_path}\n" unless -x ${exe_path}; : ?$ }; p/ M2 R; _( N9 X" g& G& D% H1 P
/ A5 |0 U5 l k% O8 i0 k
# Figure out output information from command line input & t+ D5 k% H5 X4 } v6 O2 q4 o) R7 O
my $outputFileStr = $hashRef->{'output_file'}; 1 s' }& x" G$ R& g) B
my $fscUri = $hashRef->{'targets'}; 0 ^# p+ c* @2 w* s5 c* a5 ?! [
" r$ Z1 \ m4 ?' L# Check possible empty space in the string + ~; N( ?. p' T a- L
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
; @+ ?6 W6 U" a4 r1 w1 R$fscUri = handleEmptySpaceInPath($fscUri);
+ L$ _# n. @! z. C4 L- N! L3 u' L- q8 X" x8 J0 @8 W% b7 k
# Add the extra options. 3 X1 @0 b) L0 Y% Q! W
my @args= ( $exe_path, '-f=load' );
0 \8 `! `: N1 k8 s5 JaddOption(\@args, '-plmxml=', $outputFileStr, 1); $ Y* p# o5 H# L% y2 @& i. d
addOption(\@args, '-fsctargets=', $fscUri, 1);
5 ?! R* Q( F. Q; laddOption(\@args, '-u=', $tcdbauser, 1);
- U8 F$ {) o# ]1 p) L# caddOption(\@args, '-pf=', $pwdfile, 1); 8 O4 w" t* z7 f$ Y. Y5 `0 |+ K
- N$ K' Y8 L$ s) [/ l" H2 ?1 D; g
$ \ ? k4 Y" T2 y% A# k8 y
0 x9 k2 I/ E" O# R+ o |
|