|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
% ]8 p' `* e( u5 e& ?' h' z% Z171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
0 k' b' o( C8 v- E* u) p- L
* w* X3 V8 X2 F% U, [: S问题
0 n$ B+ W; f5 X% h* U: D1 U! V7 s) R默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该, _4 d# c# j# x
模块中的功能无法登录 4 U& u: L# r1 o& \: g
8 e% [) ]- U8 q* s8 u/ BERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the $ _* ]6 |# `9 q% u! ]7 C
user ID or the password is invalid.
; H& B) y, v) k; Q- y) C/ P; a& f1 M1 e
方法
( Y3 ?: b: T5 f* l9 X9 V修改 populatefsc 脚本,增加登录信息
( A3 h1 }9 J& t$ r9 t# m* ? R* |在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 : o1 Y& L" S4 ?+ J
set TC_DBA_USER=infodba S& {. ]* E4 n
: s4 A! F9 n3 A$ j' W5 q在 populatefsc.pl 中 :
8 y$ r; l! O( g% l. o1 q
$ x8 b: c4 _1 F在 runPLMXMLExport 子程序下增加红色标记的代码 ) P0 X; b$ {; @6 a9 J4 N* d. D- H
/ _3 n, |: z6 ~3 I! Q J+ F# This will be the full path to the executable.
$ q& `% c7 l7 \- pmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
' d& k8 z$ A4 i" W9 tmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
1 U! ~: L- ?- s6 O; S8 c% Nmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
g$ R; c) K/ i. R5 U/ q# Make sure we can find what we are executing. + v: C, b% R& q
die "The ${exe_name} executable was not found at the following location:
+ J0 n1 e+ g% N0 c* N# R${exe_path}\n" unless -x ${exe_path};
/ U' \) Z O5 N/ u/ x
8 g) V* N( v& |7 c: P4 X0 h4 O# Start building the command line. - m0 G! e# A8 l. Y+ W7 Z4 I; ^
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
; _0 W5 P: g/ N- F& l- S; l, M6 R) e1 k5 G
# Take care of possible empty spaces in the argument values
( I! p1 l" d4 ]2 ?2 bmy $outputFileStr = $hashRef->{'output_file'};
' D" j! D) U+ V Y" T5 D3 [$outputFileStr = handleEmptySpaceInPath($outputFileStr);
$ W) ?3 r5 E rmy $scoUid = $hashRef->{'uid'};
5 i" K, C3 u% x/ O" E; G( j$scoUid = handleEmptySpaceInPath($scoUid);
% L0 F) ^+ V- H' N2 O. T+ Y% `0 C! R( b
# Add the extra options.
9 f! ~2 F: z' Y9 ^ |addOption(\@args, '-xml_file=', $outputFileStr, 1);
' i7 f3 i! B: e# r5 k3 _addOption(\@args, '-uid=', $scoUid, 1); # J' G' s0 |! j7 \' ]' _
addOption(\@args, '-u=', $tcdbauser, 1); 6 X" |% G" G( N3 ]# k& W9 ?9 C* D
addOption(\@args, '-pf=', $pwdfile, 1); % l) ~: I7 U) }" u6 b
' J. K2 }* {$ V! m
在 runLoadFscCache 子程序下增加红色标记的代码 6 _9 Y! E& r4 s" K, u
# E, q% d+ \) K. M# This will be the full path to the executable.
/ ], J1 h9 y/ c% G3 ?6 m" H2 Nmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
" K' q% R+ W" z( B) S' Y1 C, N0 f, G1 }7 o
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; / B" r% t2 f% F# ^) A" Y* ^4 u3 V
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
0 e& U+ A! |4 v! q+ Z4 A4 T4 D( g# Make sure we can find what we are executing.
+ K5 a" `* i' v, D P& X3 Idie "The ${exe_name} executable was not found at the following location: . i. n# z) j8 k, N
${exe_path}\n" unless -x ${exe_path};
" w! a5 z9 V5 @9 E
+ d$ n- P# o1 \# Figure out output information from command line input
7 b1 `& N7 j6 Rmy $outputFileStr = $hashRef->{'output_file'};
- n5 Q* N: a Amy $fscUri = $hashRef->{'targets'};
/ V0 j0 B Z+ N( }3 N- L- l1 M; O1 J G( N# m
# Check possible empty space in the string ; u; Z: m) T! f
$outputFileStr= handleEmptySpaceInPath($outputFileStr); - Y1 Q7 X5 Z% c* I* M
$fscUri = handleEmptySpaceInPath($fscUri);
- p2 W0 d, }% }% B" F+ X$ C4 P4 Q+ @7 \/ ?2 {' e# T: j
# Add the extra options. / R& d x6 a, C9 `, w+ a
my @args= ( $exe_path, '-f=load' );
. v6 f: `& h5 kaddOption(\@args, '-plmxml=', $outputFileStr, 1);
s- M" {' S* D1 q, U) G2 Z* baddOption(\@args, '-fsctargets=', $fscUri, 1);
5 q) w1 e M+ S% x5 y- _7 Z5 _addOption(\@args, '-u=', $tcdbauser, 1);
7 v2 R* C# x' y1 A+ L6 GaddOption(\@args, '-pf=', $pwdfile, 1); 8 m& m2 W3 p% T7 _0 ~. n. `6 G( n2 v+ Q
' ~! N) _: w0 p/ ?' t; O6 y& H, F+ v% O8 f% g- M: E
0 f/ K8 I1 Q$ r
|
|