|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
1 T6 S7 X4 `8 M
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 ' m7 l5 ]) R/ T$ j7 j8 q
6 X( c/ |5 y# s x8 Z1 A* h/ v问题 " h; {6 c" q2 m& e( K# I/ U0 C
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该, a, q f' L/ o* {
模块中的功能无法登录
& u3 D q7 Z- r g% T6 S
- ~" m5 j+ |# I7 k( w" [8 gERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
/ t4 U+ ]$ u+ ^7 w" {$ Yuser ID or the password is invalid.
9 ~8 m* a [! Q( W1 Y* \$ I' S
g' _, w4 B8 q0 Z0 q7 i" E5 @方法 1 ^. b4 }8 V' K/ @% Z
修改 populatefsc 脚本,增加登录信息 % x% J m0 }# m' {/ u$ ]
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
& ^2 q" \, u3 d3 P) Eset TC_DBA_USER=infodba ' P5 `* u5 o4 _1 T/ x. D% W: y
* U! |6 i; K9 {
在 populatefsc.pl 中 :
$ q7 Z0 j' R) f0 d1 Z* i/ u& }% [% D% ~8 F7 \4 D
在 runPLMXMLExport 子程序下增加红色标记的代码 9 C3 g9 H# h" ], h0 ^0 p" ^$ f
2 }. a/ ]; F: Z; p# This will be the full path to the executable. * u: O) r$ N+ k: B- j: v
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
2 o: y& k& ~. F. i& q. [my $tcdbauser= "$ENV{'TC_DBA_USER'}"; 8 @: L- r0 S7 E! K3 q! p, I
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
1 I2 J# v6 @/ F2 U# t1 i# Make sure we can find what we are executing. - B6 u/ f: }6 v
die "The ${exe_name} executable was not found at the following location: 3 ~8 A. Q/ _6 ~9 Y
${exe_path}\n" unless -x ${exe_path};
?; V* I" y% A. f k- B! L' A6 D4 A5 h/ z. C$ e0 ~- c5 b# Z6 i- L
# Start building the command line.
/ n9 i% k5 Y8 x6 Zmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); , c/ o, Q: e$ m d: p
/ [1 i: a' |; q ~
# Take care of possible empty spaces in the argument values
$ B" t. h4 G1 L( J) K3 l: jmy $outputFileStr = $hashRef->{'output_file'};
# {! ~, y q1 k1 t& t$outputFileStr = handleEmptySpaceInPath($outputFileStr);
* j: k6 X5 N7 R% F8 N+ cmy $scoUid = $hashRef->{'uid'}; ! f M: A9 j4 `9 O" x" h
$scoUid = handleEmptySpaceInPath($scoUid); 9 [( F+ F; l+ c1 m' `
$ m( r, F& _( z8 y3 h- I, |- [
# Add the extra options. 3 F4 P% h9 ?$ s$ j, K
addOption(\@args, '-xml_file=', $outputFileStr, 1);
+ p$ k# I) Q$ ] m+ h. H! ]* JaddOption(\@args, '-uid=', $scoUid, 1);
4 }) n* o! m2 P" x8 F5 ?% Y! `7 s$ vaddOption(\@args, '-u=', $tcdbauser, 1);
T" R4 H& x+ |! H% ]3 EaddOption(\@args, '-pf=', $pwdfile, 1); ' Y* a+ O V1 J$ M. ~9 r# w1 X
0 G) v7 n# }/ v$ G) n在 runLoadFscCache 子程序下增加红色标记的代码
! l, _, E0 M" S, E* @" X
" ]$ U# l `/ a+ u# J2 w! v. u# This will be the full path to the executable.
* Q4 L# N3 R2 e3 }1 _my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 8 ]/ e% T+ q& G+ X& T
" L4 V7 y. Z; k* L3 imy $tcdbauser= "$ENV{'TC_DBA_USER'}";
4 X: a9 B; T& @3 V4 Ymy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; $ V; A7 Z; ~; s! s
# Make sure we can find what we are executing. 8 Q5 }' x9 a6 G+ c5 P
die "The ${exe_name} executable was not found at the following location:
7 X9 i5 H$ K9 R8 K: t" O: M2 F/ [; U${exe_path}\n" unless -x ${exe_path};
. w* ~, ~+ N- |: a+ F9 o D3 v5 w/ B' G: r2 g# L
# Figure out output information from command line input 6 Y ]- M6 Q, d% |; Y* l6 u* P
my $outputFileStr = $hashRef->{'output_file'};
% V1 J. z& `7 R% X( \# ~my $fscUri = $hashRef->{'targets'};
9 d) E+ d: w# d' P3 a& ~# p$ X; H6 h7 Y5 G. _
# Check possible empty space in the string % ]8 O5 Z: a" R7 {0 ^; g
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
7 G" m+ u! j( [$fscUri = handleEmptySpaceInPath($fscUri); ) p0 v) {& Q) ]/ x, `
+ w% C( c* L/ @1 g2 X# Add the extra options.
- ~) n0 y2 C0 H# ^% dmy @args= ( $exe_path, '-f=load' );
9 q1 C2 s! J; |3 h5 p' a& FaddOption(\@args, '-plmxml=', $outputFileStr, 1);
- {6 r) V* Y3 FaddOption(\@args, '-fsctargets=', $fscUri, 1);
: |+ u4 }8 a N. p+ o- saddOption(\@args, '-u=', $tcdbauser, 1); 9 C9 ^1 U% v2 U$ V T) ^8 \
addOption(\@args, '-pf=', $pwdfile, 1); 7 d2 P0 r# ]+ ?: O- i0 d
h( G4 {5 X( j% g( |+ ]6 g
3 S4 ~; o2 W& O1 g0 }
* B. ^. S( D/ @3 x& M
|
|