|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
6 x) o! c# V8 {, Z" o7 V3 H171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 ; d+ @7 F" t) g& d
+ |2 O/ ~+ X6 Y% l% s6 I: ]0 |
问题 $ o& ^* k0 o) P1 n* s2 M
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该; e1 N. S1 \4 P. D D
模块中的功能无法登录 , H0 L1 `6 D4 T: [2 H
" \% ?, {- u) E/ oERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
) n& @+ z9 Y7 m$ s9 B- ~user ID or the password is invalid. % S, w F7 h) o( ?% P
% ?1 m! f8 Q/ A5 |" w方法 $ d: d2 ]5 y- l1 H; ]0 W
修改 populatefsc 脚本,增加登录信息
* H6 T3 ]. w' m4 {, t" l在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 $ c. d/ M. \" g( b7 j4 k7 n P% n
set TC_DBA_USER=infodba
1 I b1 m: Y; J
* E9 S: _8 Y# q4 ]$ R7 b在 populatefsc.pl 中 : ! b# U- }( N2 W. z% l
W" W3 }4 f; q0 _0 C
在 runPLMXMLExport 子程序下增加红色标记的代码
: B7 ^; x3 f8 e' Y- t
: n( T8 c9 s ]" U* r# This will be the full path to the executable. + R0 S3 o* E# o
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
* T& U, g7 F3 R5 H9 Qmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; 8 S+ P+ h; b$ e; W+ n
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 7 O' f; D8 P: O& K- B! s4 N
# Make sure we can find what we are executing.
1 @, Z& k. T- |6 ?. ~ Ndie "The ${exe_name} executable was not found at the following location:
( v# ~. a0 s0 y! M${exe_path}\n" unless -x ${exe_path}; ! P' S( `3 W2 l" n# I) O F
; W; P% c! ] _" \7 a2 q
# Start building the command line.
6 Q; G( S) Q2 H/ dmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); , ~" o/ I& X- B1 Y
' w: ~ m4 a$ ]0 \/ c# Take care of possible empty spaces in the argument values
% b7 P- s+ s, M, x% D! ]& Ymy $outputFileStr = $hashRef->{'output_file'}; $ [, e* d; U/ O8 a4 i
$outputFileStr = handleEmptySpaceInPath($outputFileStr); 6 V- X i% o7 w9 {: I
my $scoUid = $hashRef->{'uid'}; [0 _8 p" {& X0 f
$scoUid = handleEmptySpaceInPath($scoUid);
; @+ U/ T& L# X! H0 I, J& s
2 R! w$ _- e; y' D* O# Add the extra options. 8 A- b+ n) G0 N- n' n4 \7 j
addOption(\@args, '-xml_file=', $outputFileStr, 1);
# _3 I7 F0 Q' HaddOption(\@args, '-uid=', $scoUid, 1); 4 z+ _3 ?' Z- [6 L6 ?( N* m6 h1 D
addOption(\@args, '-u=', $tcdbauser, 1);
2 [6 q$ `5 Z% naddOption(\@args, '-pf=', $pwdfile, 1); - f+ N) q3 l% u8 o0 @. I6 I
|: Z9 v& T% X: }( o0 l( n! _3 p; W
在 runLoadFscCache 子程序下增加红色标记的代码 " ~. [0 ]1 s( @, `) b& p n% e* c' J
% U* a* `4 l/ `- ^/ q% H; @# This will be the full path to the executable.
7 H2 ^, |3 Q# t5 F5 q) p# X* R" ]my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
8 v/ ]7 w2 [' J( u
# x5 L W! [& U4 c/ i) qmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; 5 P3 F$ A4 h$ G4 ~
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
7 C& e ~* V! F7 s# Make sure we can find what we are executing.
: p2 c8 I/ C( z# Edie "The ${exe_name} executable was not found at the following location: 8 N" u Z- k9 y6 ^3 i
${exe_path}\n" unless -x ${exe_path}; . N! G9 B1 z! q- [
9 o; E8 }/ p% e, s! q5 R# Figure out output information from command line input
6 D1 ]) h0 M' o+ t) P0 c6 amy $outputFileStr = $hashRef->{'output_file'}; - u2 v. u3 ^$ ^3 E
my $fscUri = $hashRef->{'targets'};
/ l* k! o. i1 {, L" [: g# c$ F6 h: p' t
# Check possible empty space in the string
( Q6 l# z. q# N$outputFileStr= handleEmptySpaceInPath($outputFileStr);
0 u+ A0 J a" ?% b2 o1 L$fscUri = handleEmptySpaceInPath($fscUri); . F+ ?- y$ k* `( f/ _1 Y" M) u% x
. D6 O1 m% O( [. w# t
# Add the extra options.
3 z, v( [* ~7 s0 @/ @8 X0 w$ pmy @args= ( $exe_path, '-f=load' ); ; }5 G! e* {/ A! H$ o1 t
addOption(\@args, '-plmxml=', $outputFileStr, 1); 4 H* Z* j# z7 Y G; z
addOption(\@args, '-fsctargets=', $fscUri, 1); / v) j2 E7 _2 @9 h! L
addOption(\@args, '-u=', $tcdbauser, 1); 3 ?) C5 f3 Y# g* |
addOption(\@args, '-pf=', $pwdfile, 1); 3 Q a+ F( V& T( q/ c8 m7 {9 S) }
! I( F: q& N4 s6 ~8 k# M) |
2 l5 k7 {7 b+ x/ M1 z3 H8 M5 h6 {& [6 W! k& ~* h- R/ K
|
|