|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
8 U0 n( e1 w# N* P
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 @1 z% R" J2 F t, Y
7 g6 `: G7 [' _ [0 s- i
问题 ( s6 N2 { q, p- Q
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
* ^* Y. o4 K t9 {: d3 S% Q模块中的功能无法登录
1 P- Q, {, W: ?* I3 d
( L0 z3 @; l: [ i7 @+ n" e" J6 ^ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
! Y! s. z( c( Xuser ID or the password is invalid.
5 T5 G( e$ p% e/ \ |$ F+ m( g+ `. b) V+ m9 L; L
方法
- C$ h5 h) Y5 Y3 c- w6 z& K修改 populatefsc 脚本,增加登录信息
: w* S9 C% g& W0 O* H1 @* r在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 - `& O* j# s! W
set TC_DBA_USER=infodba
& A) o; c0 \' T+ ^. N+ z3 n1 D1 C1 i6 U6 g7 w; L9 W
在 populatefsc.pl 中 :
6 B4 P/ V0 x& g" x% d
, c' X' N8 m; `; I9 y: z5 P* P" n& r5 f在 runPLMXMLExport 子程序下增加红色标记的代码
L1 b7 Q7 D/ t7 n2 Y6 @9 P* P. D: ^4 R! n4 B/ A9 N3 r4 n6 S7 f
# This will be the full path to the executable. + l% A" k2 f7 F% i8 g
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
* h5 V, i0 {' Z! u3 _( c. N$ Vmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; 4 d0 \$ O9 x3 \8 _+ `2 K9 A# H
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
1 r8 b! n e$ R# H% B* M# Make sure we can find what we are executing.
5 T4 }$ W k& R9 l# X( L( Q5 Odie "The ${exe_name} executable was not found at the following location: % O _! J9 Z) A$ V+ n* Z; R
${exe_path}\n" unless -x ${exe_path}; ) S; I9 ~; f% t7 b6 J/ m8 Q8 c4 y
/ I0 V% _, w1 d
# Start building the command line.
0 ]* t% V* j* W6 T" xmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
, @+ h/ |/ f Y) l9 z
% x1 m6 Q }8 Y8 R# Take care of possible empty spaces in the argument values 6 @3 { ^( h, ~
my $outputFileStr = $hashRef->{'output_file'}; # U8 R; x6 E; a% u( U1 E5 e; g
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
( n- _5 [# I! s& S2 P3 G: g, amy $scoUid = $hashRef->{'uid'}; # w' {0 I" t9 o+ r& `8 r/ O
$scoUid = handleEmptySpaceInPath($scoUid);
# c" m$ e3 k2 k9 L1 b, Q! a0 A, b. C V7 \5 A% @) }( \: r
# Add the extra options.
' A8 L" I9 R' |$ Q2 z! saddOption(\@args, '-xml_file=', $outputFileStr, 1);
+ w6 W6 Y3 T( Q+ b' laddOption(\@args, '-uid=', $scoUid, 1);
D7 w" J1 m: N( vaddOption(\@args, '-u=', $tcdbauser, 1);
* e& q2 B' t, b! ?- ]addOption(\@args, '-pf=', $pwdfile, 1);
0 y2 @4 w" N6 S9 H
& F* h1 ~ ]* W9 {在 runLoadFscCache 子程序下增加红色标记的代码 $ S; |* D0 M& J( L0 p& m" I
; C7 | n# s' q k& Q |1 z( u+ g9 ]# This will be the full path to the executable.
3 [; o4 c9 h! Q; W8 r( L( m# Z6 Bmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
, K5 m n |8 `# O6 E3 ~/ b$ z- k
: L% B" D: `# F: \my $tcdbauser= "$ENV{'TC_DBA_USER'}";
$ j+ v9 l4 m) ^, Z4 l- imy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 0 t: [1 b3 }5 v1 M( N! U
# Make sure we can find what we are executing.
' c& o& S1 P! \die "The ${exe_name} executable was not found at the following location:
4 g+ Z# f$ k- F${exe_path}\n" unless -x ${exe_path}; % q' L c- {, J4 S6 E
$ U, e0 o- n) k+ i: O7 Z' m
# Figure out output information from command line input
& s' D' P* ^* ^my $outputFileStr = $hashRef->{'output_file'}; 9 s( ?3 z( m# Y
my $fscUri = $hashRef->{'targets'}; - ~6 X4 E1 J$ f; r+ W3 c( P
: j1 O2 \/ { n& v* H5 ?( r# Check possible empty space in the string - Z! I3 }1 W5 _! I, g- H3 r
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
" U8 W* T% A1 m4 ~6 ~ ~" ]$fscUri = handleEmptySpaceInPath($fscUri); 2 d, F$ f4 S. r3 j. c
9 H* J7 m1 x- ]3 A; B" a! E B# Add the extra options.
& r. S& x$ @8 Z9 n6 i- L4 ?: k8 rmy @args= ( $exe_path, '-f=load' );
; [" \8 `4 S& t; f% S! vaddOption(\@args, '-plmxml=', $outputFileStr, 1);
2 ?1 B4 ~, }- ?% b; ?6 [3 waddOption(\@args, '-fsctargets=', $fscUri, 1);
) n# W& I: k# r' baddOption(\@args, '-u=', $tcdbauser, 1);
: X8 g+ L: ~+ o8 F& k$ k, saddOption(\@args, '-pf=', $pwdfile, 1);
+ Y" q D- F2 L& L" _% G3 n ~) z6 d9 i: ^9 b; K
$ u/ s/ |3 l5 U3 z# X! h
9 Q: [4 Q% R/ g/ m% ^! c- {: ?! h
|
|