|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
×
7 K( @. m) T Z7 d2 K171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
( B$ D0 S4 I1 Y
+ R9 U" P* p i: d6 v( V, s# X问题 2 w( \% G4 h$ W3 f
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
, J/ l q- \6 q% B! w! m4 O模块中的功能无法登录 5 M3 b. ~% b! t; Q
. G J. F5 x! bERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the , h% W- G# @# [( m& S/ R( e( y
user ID or the password is invalid. / N/ Z" h8 V$ g
# z3 ^) O$ n! t, S- {
方法 ; D+ q3 l9 v" A' a3 y$ u/ R0 I9 `4 A
修改 populatefsc 脚本,增加登录信息 / l$ P( C, H5 k. o; x
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 9 \# U2 }5 Z) }; U. y; M2 J
set TC_DBA_USER=infodba
3 v9 J' G: Z3 ]3 x) Z7 h: y- _/ p' l
5 _9 C; p- `6 `. Q% t在 populatefsc.pl 中 :
+ R) V+ }8 b7 N# }# Y, w( f% M0 P, ~$ p2 X. Y1 s
在 runPLMXMLExport 子程序下增加红色标记的代码 $ {( M$ O+ j4 D2 g# c2 ?1 L
) K8 y6 g. S: G& v& N6 g# This will be the full path to the executable. 4 I1 ]5 t- i& h- ^7 B" k
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ) R D+ d8 R% F8 t8 j6 w" i
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
7 t" i6 b# R) ?0 R$ D( lmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
. f8 X- F/ h& ]$ l# Make sure we can find what we are executing.
$ S2 S. g+ z5 _8 Ndie "The ${exe_name} executable was not found at the following location: 0 l# t7 v Z; }) C- w
${exe_path}\n" unless -x ${exe_path}; , `0 h9 I$ a. b# Y5 r: V
& y4 _% b) j6 l3 h( e2 p& q9 L: t# Start building the command line.
/ f! y( e, r5 G. o+ X; q v! L4 rmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
I/ Q% u! _6 D: S3 y5 m, V
2 E: \; N$ d# W# Take care of possible empty spaces in the argument values ( q$ Y3 q: y7 L4 D6 R
my $outputFileStr = $hashRef->{'output_file'}; 3 c9 W: l* S. S' S$ l$ D
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
8 {1 V) Y1 P8 Q; E, [3 D7 A; tmy $scoUid = $hashRef->{'uid'};
. H$ |( x5 V0 |) U4 Q' w$scoUid = handleEmptySpaceInPath($scoUid);
0 S9 D o* O7 @5 W' n; E; r7 } t) L( I8 w. p6 b
# Add the extra options. % `: Z; Y1 U/ p8 [
addOption(\@args, '-xml_file=', $outputFileStr, 1); ! u6 s2 Z6 _( r- B4 A& s
addOption(\@args, '-uid=', $scoUid, 1); ; J r0 \. `+ [5 c
addOption(\@args, '-u=', $tcdbauser, 1); ; T7 p: p8 R% X! o6 M3 K0 W2 v
addOption(\@args, '-pf=', $pwdfile, 1); ' ~6 V% r- D& R A, j# \
) k2 Z6 _- r" | i# f在 runLoadFscCache 子程序下增加红色标记的代码
3 p# ^0 i/ A; W3 @7 C9 W$ {9 ~& S- n7 R; m, I$ C! y
# This will be the full path to the executable.
8 y" h+ F% ]2 l+ N$ I0 ~3 C( u8 ]my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 6 ^$ c9 ]3 ` D
# k* \4 P, Y1 T% Z8 }% Q; ?my $tcdbauser= "$ENV{'TC_DBA_USER'}";
) I, k N2 j3 P2 a& l7 I0 R; Omy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 1 Q, \. F9 L/ }# n2 j8 h, J) g
# Make sure we can find what we are executing.
n; a' n% x& F/ h$ Ndie "The ${exe_name} executable was not found at the following location: 3 x5 L. o7 r" D7 O4 m& W4 e/ J
${exe_path}\n" unless -x ${exe_path};
$ N/ p# D& M) e, s! H! p! j4 c: X) u: a& g" J3 Q# D
# Figure out output information from command line input
* ]: [/ X( h8 ^3 V' Mmy $outputFileStr = $hashRef->{'output_file'};
0 }" f. |- }: v Q3 B: O3 Lmy $fscUri = $hashRef->{'targets'};
) W5 G, }1 C( _* P0 Z- G6 y3 k6 w
/ r! ?# s' i( i/ H3 c+ C# Check possible empty space in the string
% m6 g( {+ z* X" ?, _; \* H# V+ W$outputFileStr= handleEmptySpaceInPath($outputFileStr); # W7 s+ L% F9 \7 W5 y
$fscUri = handleEmptySpaceInPath($fscUri); 4 q% P- V J4 d$ z+ \7 O
9 v! V7 B! q' N) @: q) ~
# Add the extra options.
8 W6 O# g. u rmy @args= ( $exe_path, '-f=load' ); # q# @8 I$ _- k' J# ~
addOption(\@args, '-plmxml=', $outputFileStr, 1);
+ H$ ]9 X& N) S7 laddOption(\@args, '-fsctargets=', $fscUri, 1);
& u! M$ B* y M# |addOption(\@args, '-u=', $tcdbauser, 1);
5 U& Y- { L5 u m+ KaddOption(\@args, '-pf=', $pwdfile, 1);
7 k/ C4 b- n" x' e$ Y: m6 L0 n u- c% s* B# Q
" w7 K W' e4 q
6 N2 ?: F$ n6 e |
|