|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
9 v& g# O8 A p9 }& s3 Y
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 & {/ p* J0 Y& m5 g; R
' H m; f9 j* n6 F问题
6 S9 S7 c7 z; v# {1 w! v( h; m默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该2 ]* z, C* F( E4 l$ \
模块中的功能无法登录 3 f; X: B; q/ L
$ a; `: D+ h' k9 B
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
' _! c/ Q) {' }" r1 i. b3 duser ID or the password is invalid.
: \# P/ n, `2 u; o
5 r7 j$ U, n& h7 s3 Y( X方法
8 A8 L* D& K3 t; [5 x修改 populatefsc 脚本,增加登录信息
) ?! W" w: W/ v9 g2 p6 K在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 9 {) n' Q9 U8 ]+ c
set TC_DBA_USER=infodba
4 I. \# B4 C5 b' y/ K9 G- N: R7 ?6 x6 W/ b. c. m
在 populatefsc.pl 中 : 9 d' c( I* b, T, t
" N* y9 P6 G$ i+ O& P- r在 runPLMXMLExport 子程序下增加红色标记的代码 9 O3 h) M: I7 W
; Y$ p" q: V% I$ E8 _# This will be the full path to the executable.
. F9 G9 L5 s% V0 w: F3 y% Cmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
. j' k( q( Q& a0 D1 v' Fmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
d' u3 [' \2 G- c( \" y# ^1 E' Emy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; . r. \8 b/ f% v6 v8 u3 W
# Make sure we can find what we are executing. 2 Z! {, I- \/ I- U
die "The ${exe_name} executable was not found at the following location:
) e9 x# X* y% P. T${exe_path}\n" unless -x ${exe_path}; , G0 V, ?0 b/ o' a8 M% @
2 \& _, _$ N0 q! ?# Start building the command line.
4 q& r# q7 S2 w( ], A0 U* {my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); . t6 l5 f9 @5 u2 I/ v! H
* p! ^2 a& C3 I0 z( V" \& _! L* a
# Take care of possible empty spaces in the argument values
/ K% k9 r8 O% a8 u5 ymy $outputFileStr = $hashRef->{'output_file'}; b/ x# ]+ U/ m/ m( R2 U! `
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
& b Q2 c$ s4 P. cmy $scoUid = $hashRef->{'uid'};
5 u8 p: Q: [) _1 |& m$scoUid = handleEmptySpaceInPath($scoUid);
, J0 m3 D, s; {1 ~7 I* ~+ ^- [4 h! m8 z8 V
# Add the extra options.
$ z. m! T' n2 S" M) uaddOption(\@args, '-xml_file=', $outputFileStr, 1); # P9 C9 P0 _# o/ E P
addOption(\@args, '-uid=', $scoUid, 1); % s: Q Z/ k$ X# q) V* R/ o. U" d
addOption(\@args, '-u=', $tcdbauser, 1);
" q6 G @3 M2 J8 F, HaddOption(\@args, '-pf=', $pwdfile, 1); / {$ C& {/ ?0 l6 \% `. U7 Z' J" l" i
- p" J% i' R8 u! M
在 runLoadFscCache 子程序下增加红色标记的代码
$ b9 H. a; d0 G1 B$ T6 N, E3 }. b/ Q8 {
# This will be the full path to the executable. 1 y6 P4 h3 o" z
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; , f2 P. E/ P# N; F) T( h# r# d0 \* M4 o
: C5 f* i4 y5 b& Q9 |1 \* m0 r% Fmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; ' v {$ g$ p( H8 |* E
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 4 S+ i$ Q9 F7 T9 b5 Q
# Make sure we can find what we are executing. : M7 Q n0 Z5 P8 g
die "The ${exe_name} executable was not found at the following location:
. l6 n2 g- u0 `6 S# C${exe_path}\n" unless -x ${exe_path}; 1 N! i5 f- g& }8 l% A- C
* ]( h+ _4 K8 Y; S
# Figure out output information from command line input
9 y+ g, u. E# omy $outputFileStr = $hashRef->{'output_file'};
8 ^ P0 l0 q# j ]* W9 O: ?my $fscUri = $hashRef->{'targets'}; + O1 i0 _1 l( U) I* q5 c
1 E" `$ D) U, T. f7 d$ Y
# Check possible empty space in the string
8 @8 L- H& w! Q! b5 }$outputFileStr= handleEmptySpaceInPath($outputFileStr);
% K3 r* m; l- ~* ?" u$fscUri = handleEmptySpaceInPath($fscUri);
$ |- M0 v' r/ q3 I; x) Q9 @: ~* _: O: k
# Add the extra options. * f+ b3 ~+ c8 @& o
my @args= ( $exe_path, '-f=load' ); 7 D S1 O, w& N9 q
addOption(\@args, '-plmxml=', $outputFileStr, 1);
( x0 i& P& Z# GaddOption(\@args, '-fsctargets=', $fscUri, 1);
: u8 W$ d( }8 T. ]8 baddOption(\@args, '-u=', $tcdbauser, 1);
5 o6 I: D& S' _4 }! y5 HaddOption(\@args, '-pf=', $pwdfile, 1);
- {- q# c2 G$ E/ o: N4 X6 \1 G9 ]4 n' u' U6 B$ y5 t
% C6 q4 q% H( [( _$ U: G3 b* @
: D! h a( h b! h' e A7 {+ O6 S |
|