|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
& H Y. Q8 c7 m3 J9 M5 n171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 ! q, u1 i3 q( k+ c/ ~" I/ S- w9 L
) \) t: ~- N. A+ n/ b问题
; R7 J2 ?6 u8 V0 k5 B& E% ^) D默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
- I9 q$ \+ p, E" q Z模块中的功能无法登录 , R/ K: C- \3 D. H$ R$ q
" t. U- s9 S: \( {* ZERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 0 g1 L& U% t# `$ d: ^+ m9 j
user ID or the password is invalid. / E3 v4 v& l6 i3 s1 ?/ b* @, m
2 b" w! ~$ @/ Q* L) V \% f方法 1 ?- l+ |5 c4 z% K' `' f8 V- s
修改 populatefsc 脚本,增加登录信息 * ~$ `- [+ e& W% o
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 ( Z6 T3 `; f0 Q6 {; o0 y
set TC_DBA_USER=infodba
q7 h9 k. q1 F5 \
+ r& @0 j/ \0 N在 populatefsc.pl 中 : * I" ` i& M% P7 k& D
" ?- I- i( ^7 W* P- H2 L$ G
在 runPLMXMLExport 子程序下增加红色标记的代码 : D( F' G# R* ]3 `3 H! j* e
) v; `; k" j! B
# This will be the full path to the executable. 1 y1 O3 D0 ~; T' C4 c% e; {
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
" e2 \0 v4 [9 W# i( Ymy $tcdbauser= "$ENV{'TC_DBA_USER'}";
5 O$ q d, X; i3 B$ Dmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
6 ?1 K% G6 A& }6 e# Make sure we can find what we are executing.
6 E0 ^' |$ N) h# C9 N& \die "The ${exe_name} executable was not found at the following location: + L) d% b; \+ r+ k: W& | h- R/ r
${exe_path}\n" unless -x ${exe_path}; " J* v2 Z1 u; I, q. l
) u8 _% ]) V* `0 K) w; m8 r# Start building the command line. 1 f! V9 y+ D! g% D2 }
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
# q0 [* }8 Q3 b$ b* `$ d
+ B# j% D. T# P9 n- i4 V9 s* ^# Take care of possible empty spaces in the argument values
5 M$ c5 W7 r( R: l% M) D; V3 Z( Gmy $outputFileStr = $hashRef->{'output_file'};
1 T+ X* W7 H9 ^ |" w$outputFileStr = handleEmptySpaceInPath($outputFileStr);
0 l6 c% C- H2 s, Rmy $scoUid = $hashRef->{'uid'}; * u3 @! F+ o7 `, |
$scoUid = handleEmptySpaceInPath($scoUid);
1 l, Z' _" o- L. J# c8 ^0 n$ p; t7 v, r f5 n; ^+ r2 W
# Add the extra options.
$ Y, b( R4 N& `4 p' x F. gaddOption(\@args, '-xml_file=', $outputFileStr, 1); 3 x2 ~ Q H, a3 M
addOption(\@args, '-uid=', $scoUid, 1); 6 F) ?& h* g& b! S
addOption(\@args, '-u=', $tcdbauser, 1);
& w( Q, B; `( L% E2 PaddOption(\@args, '-pf=', $pwdfile, 1); 8 z$ Z2 D( h# O" @" G) y5 C% P: t& `
4 A1 {6 [& }% R& P2 g5 W0 q
在 runLoadFscCache 子程序下增加红色标记的代码
, m% f5 z9 Z7 I P. t( @: { E: J
+ M9 ~0 o3 a% O. c& h! }8 c* N# This will be the full path to the executable.
% B6 }6 O9 h7 F% p) I* Q$ ymy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
! C" k4 v1 X2 v9 ~6 A) ~/ g- a; ~1 F4 b, Y% u" G* J% M# u
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; + h' s* F2 c, N/ O* Q) v
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 3 Y7 Q% Z- P+ s; Y7 E
# Make sure we can find what we are executing.
" i6 j0 M7 T# [1 e& b) D odie "The ${exe_name} executable was not found at the following location:
' {$ Y1 G! U0 a5 g; s" l${exe_path}\n" unless -x ${exe_path}; / ~. ]" M" j. d6 o% {: q
2 v0 j8 ?# ^) p5 B5 j, P5 n
# Figure out output information from command line input
" ?$ i5 d; f2 e8 B; i1 vmy $outputFileStr = $hashRef->{'output_file'}; ( K, D( D# U' I) E6 h: y T/ n5 G
my $fscUri = $hashRef->{'targets'};
# }7 B9 c1 J' Y: ~( t o! P3 W, p
# Check possible empty space in the string 2 N) Y: F! J" x2 u4 J, ~
$outputFileStr= handleEmptySpaceInPath($outputFileStr); & A3 L/ g; V# Q, T5 i9 }: {6 `$ _
$fscUri = handleEmptySpaceInPath($fscUri); & {5 U* {3 j1 q4 W% M7 O$ i
! m" x/ [; L, i3 }& `
# Add the extra options. 6 g2 C0 V3 t' X8 p7 P
my @args= ( $exe_path, '-f=load' );
9 a7 q' Y" O4 k0 e8 I+ v& VaddOption(\@args, '-plmxml=', $outputFileStr, 1); 0 T6 {8 H" m2 \( i* V3 C# j2 X
addOption(\@args, '-fsctargets=', $fscUri, 1); . s* `1 |% j) H; s! p- w9 h' ^
addOption(\@args, '-u=', $tcdbauser, 1); / `5 [3 }( ^8 @" T2 }. x
addOption(\@args, '-pf=', $pwdfile, 1);
* ?7 m; {: K9 U5 M- [% \ h1 |) C- i, R4 j% W- Z, E/ B
. O. X) O2 f& ^/ I- H9 T
( O" F% }# ]8 n1 A i8 R' ~& X7 a5 B
|
|