|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
& B% ?1 N/ Z/ ^5 S; H( c+ P4 S4 {171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
# r7 |3 u: x% n- f$ j+ F+ U, z$ Q3 h, L; q5 x2 H' r! w
问题 5 K. H/ \; H5 g4 F; Z# W# B# q% {
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
" e9 A n+ p6 \8 d6 r1 E模块中的功能无法登录 5 A; T3 s9 {, x! D: ~
" A. y. Y9 P+ w2 G& u# R2 `7 r
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
1 p2 J* g- e H( ?( X+ uuser ID or the password is invalid.
5 f* I$ i- T0 w/ `# M
3 X1 l" N- p5 r0 _7 w4 \# k9 h方法
p6 T4 `. {6 @7 C8 [: q) N修改 populatefsc 脚本,增加登录信息
; ?# L) `* X2 G3 s! z在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
1 u$ L9 ?' r* S8 S6 \4 iset TC_DBA_USER=infodba
3 {( Q$ p( Z( A4 ?5 {7 e9 v; E' t$ ~2 |3 y/ d
在 populatefsc.pl 中 :
! ~) I0 U. o" S1 n% r t+ Q' s x
, j2 {! a: y0 d% K! b J( A" \在 runPLMXMLExport 子程序下增加红色标记的代码
. [( m Z9 E# r( S
- |+ D' f- ~8 ]7 `: m' O9 s# This will be the full path to the executable.
6 ]: `7 B/ }7 ] G! Imy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; , f/ w6 V$ j2 f. j0 _+ U2 c4 ~' _
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ( v$ t5 `: ]& n. v1 m V, I/ N
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
$ W9 x: z, l5 {+ h9 r# Make sure we can find what we are executing.
4 Z; J, u& {3 l9 v0 h+ P9 Xdie "The ${exe_name} executable was not found at the following location: 1 r' [ M0 f" w. }8 C d; _
${exe_path}\n" unless -x ${exe_path}; - B) W, X, Q, U8 f
) U" x& k$ S" K$ y u6 s
# Start building the command line. , S. G% H% U, s( J" F# [2 o
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); * q( c# J1 i$ g1 d1 H' |
/ b# r' y; ^/ b! ^# Take care of possible empty spaces in the argument values
$ D* f! ~1 M6 d1 h1 kmy $outputFileStr = $hashRef->{'output_file'};
6 d0 B+ M! W7 h2 \' D6 B) r: `3 u$outputFileStr = handleEmptySpaceInPath($outputFileStr);
9 p' u1 J/ T1 z7 G$ L) I; g* hmy $scoUid = $hashRef->{'uid'}; 8 ^3 I# i4 @* E; n9 O
$scoUid = handleEmptySpaceInPath($scoUid); ! d Z( z& V9 I. D
. d) {& s& L! G5 h' h4 s# Add the extra options.
& v& f$ v# B' P$ taddOption(\@args, '-xml_file=', $outputFileStr, 1);
; p+ r' P) ~1 p! Z4 EaddOption(\@args, '-uid=', $scoUid, 1); $ @; J# C; w7 q6 h
addOption(\@args, '-u=', $tcdbauser, 1); $ N) N6 M& l9 O
addOption(\@args, '-pf=', $pwdfile, 1);
7 m; ] P* J+ ]: E
- q3 q4 n6 Z9 L4 K L4 P. f在 runLoadFscCache 子程序下增加红色标记的代码 4 b) d1 ]1 U s& k2 y) g
4 k t$ @0 ]. `. X
# This will be the full path to the executable. % Q" U$ F4 f+ i, P* U' O
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
0 S0 S6 |2 J: v. B7 t
1 `- D2 C2 b7 O2 N" ^my $tcdbauser= "$ENV{'TC_DBA_USER'}"; 3 ?% T; ]/ |. }% q- \
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
: \" g0 L% @& f& d0 z6 r7 T# Make sure we can find what we are executing. F T; ^2 `/ k* V$ i
die "The ${exe_name} executable was not found at the following location: " `' F Q) m* X% _) d7 i" f5 t5 a2 S
${exe_path}\n" unless -x ${exe_path};
6 d9 a5 U `. t1 r: C# {0 N1 _) m2 Y' e) f; k
# Figure out output information from command line input $ ~# [: k6 i; Q& C' n4 H! q2 w
my $outputFileStr = $hashRef->{'output_file'};
& v0 w2 o) h$ Q2 [5 [9 ^, [my $fscUri = $hashRef->{'targets'}; 6 c0 P5 {* x) F
8 R2 A7 k; t; y& h$ e" B. q# Check possible empty space in the string # l# Z4 L" M# J k7 k0 P9 m
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 4 J; `, R8 J! c$ q* | d
$fscUri = handleEmptySpaceInPath($fscUri);
8 _* R+ k, C% R: h6 W& t# W8 G5 ]2 Q
# Add the extra options. 5 D0 Q2 B* G5 E: Q! x. N
my @args= ( $exe_path, '-f=load' ); b8 x# f6 ?% o! Z
addOption(\@args, '-plmxml=', $outputFileStr, 1);
. |* Z& C) a. d) o6 g3 p! jaddOption(\@args, '-fsctargets=', $fscUri, 1); ! a K. b& a8 f0 A F( p
addOption(\@args, '-u=', $tcdbauser, 1);
: W; N% z% J; yaddOption(\@args, '-pf=', $pwdfile, 1); . m+ C0 G! Z- K' m! p1 Z- J
# ? Y2 s- d% ~; i
6 h$ g9 M, G$ {. w
7 i3 W6 {3 q$ f- C5 U |
|