|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
3 p/ w/ G; e4 N4 r+ ?" E
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
1 d; p& M- H* j7 j t
" q0 R; P8 `7 w/ i问题 8 K/ c" d4 k" T3 r! g7 T* h. k
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
3 M" p, E2 k4 N" Q" O8 ~1 P模块中的功能无法登录
8 Z% l+ t! J+ x- O3 W7 [7 m' n/ e3 [* a0 M, S0 O" ~# B7 @+ S
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
2 g! Y1 _# {% n) f: Fuser ID or the password is invalid. v( R, o, F d2 `6 E* O! W/ e
# B- x. f0 L% U3 c$ I; \方法 # Q' h& [( D" l0 ^
修改 populatefsc 脚本,增加登录信息 $ A ^1 b+ t5 ^6 t7 O% ^ B2 d
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 ( A9 s5 v$ [% b' ~; o. p
set TC_DBA_USER=infodba
- c/ c6 X* Q# S
4 o% B$ n3 q/ L在 populatefsc.pl 中 : { J0 s. q- r* v# M7 E- n
; q; J3 y3 x9 w% w
在 runPLMXMLExport 子程序下增加红色标记的代码
" a' w% V# s6 L7 k& B/ G& R. P9 c: {( G( g
# This will be the full path to the executable. ) K: D+ Z; ^& \( C1 i! K
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; & F' d9 E; s, C# G# L
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; 5 \" P5 C" Y: |9 j; S# @
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
2 ~" q8 E C: ]# Make sure we can find what we are executing.
, n# g6 v% z& y+ d- sdie "The ${exe_name} executable was not found at the following location: + g) q) ?1 B" p0 i5 O. E& I: \
${exe_path}\n" unless -x ${exe_path}; R1 V# _- Q0 c9 ^" W
" m8 v4 y0 i9 x! O, ^" b Y) f
# Start building the command line.
+ X, T7 L- i9 E, S* T7 W" J8 Emy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); . K9 j: ]1 n' X3 B: s
+ c! v- e! d& P w7 E* e, E0 k. K- w# Take care of possible empty spaces in the argument values O& ~ z2 p$ `1 R
my $outputFileStr = $hashRef->{'output_file'}; # F7 S: }* w4 x
$outputFileStr = handleEmptySpaceInPath($outputFileStr); # ~1 K2 T' { [4 n5 h+ D2 j/ V
my $scoUid = $hashRef->{'uid'}; ( O, r5 ^! G9 V* v
$scoUid = handleEmptySpaceInPath($scoUid); 2 W1 d( e8 Y7 d1 G* t( t8 Q
& B& i( h$ S- @, b5 G" Y
# Add the extra options.
. m7 y4 H" g/ F8 G7 KaddOption(\@args, '-xml_file=', $outputFileStr, 1);
) u: H7 I! @1 V. q' j' faddOption(\@args, '-uid=', $scoUid, 1); 1 h( c" `: D# A& T& |% r1 L0 @
addOption(\@args, '-u=', $tcdbauser, 1); , B0 `4 y O q2 B, ^% A
addOption(\@args, '-pf=', $pwdfile, 1); % z7 P! s( S4 {3 L
) K# B7 V4 z4 b1 x J& X+ ^' }
在 runLoadFscCache 子程序下增加红色标记的代码
& k+ N/ F D% S- r1 K- w7 C* {# z+ ~6 _" [
# This will be the full path to the executable.
1 j v! ]' P( [my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; - i$ f: I: |0 Y/ m
) ]1 k' y ?5 v, U0 c
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; - ]5 p; @7 s/ {: Z ^% J3 d
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
p- y2 k3 g" ]4 ^/ }) S# Make sure we can find what we are executing. * a& W# e; \$ O2 ^/ U5 t
die "The ${exe_name} executable was not found at the following location: % e7 j7 _$ V, U, ^9 g5 a* [
${exe_path}\n" unless -x ${exe_path}; ) j4 t4 I' D7 E0 w( I* v8 U, m
$ S! u: ?' H4 \2 l+ H# Figure out output information from command line input
9 d1 C/ H5 k9 o* E3 u! t) Rmy $outputFileStr = $hashRef->{'output_file'}; 5 V3 s, B# X; N
my $fscUri = $hashRef->{'targets'};
) P# G4 [; d% O0 F/ u( R1 V7 A7 N& d, D; O! F. k7 p! h2 T9 I
# Check possible empty space in the string
6 c% J9 |& ]; @% ]5 F( S$outputFileStr= handleEmptySpaceInPath($outputFileStr); . z2 y% B- C V! ?9 j7 g8 _" h7 H
$fscUri = handleEmptySpaceInPath($fscUri);
1 E/ m8 z6 X$ w5 J7 _5 P/ I8 G1 S0 Z0 w7 d0 K+ e! ^) H: ]
# Add the extra options.
8 f# f% q# }. A5 Emy @args= ( $exe_path, '-f=load' );
, \# W& T$ Q2 ?- k; Z/ i4 Q) uaddOption(\@args, '-plmxml=', $outputFileStr, 1);
3 ~) H7 |9 A6 g E- C& ?3 O6 GaddOption(\@args, '-fsctargets=', $fscUri, 1); ! ~* u/ n. r; A- X9 k
addOption(\@args, '-u=', $tcdbauser, 1); ) _: s: c. A/ q* D2 E+ M
addOption(\@args, '-pf=', $pwdfile, 1); 6 N2 _- v" U3 C. S, k- y. N4 a$ Q
$ q. P+ j2 p; x2 e6 r! Y4 `" t8 Z8 D3 F
7 \5 R# W7 O' f3 b |
|