|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
- K' D6 h; I1 n4 E2 e* g2 F, ?
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 1 G6 m. r2 X' R v1 y$ f
c2 ?$ }/ m0 c& b* q
问题
! R7 B, G8 u0 a- F3 g5 k默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
$ F e1 O/ p" w. F6 P! o模块中的功能无法登录 & @, G: Z) `4 J$ C6 z
& f7 F K4 i% c+ f' O ~7 jERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
& i( f* w7 O6 j- ^( a$ wuser ID or the password is invalid.
! j4 D7 b p6 h4 A* \. C. ?: h6 i& Q% M9 G
方法
/ A Z- j1 ?+ ? n5 V修改 populatefsc 脚本,增加登录信息
; V" E6 w$ w# I在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
1 |+ f2 X" W3 ]3 }set TC_DBA_USER=infodba
8 h$ E% V2 W0 E* ~+ e" K
5 v, u. |- p& d3 o$ \在 populatefsc.pl 中 :
3 I9 D( c; @. z$ i9 s9 Y, G
0 R# _9 K6 k+ E3 @$ u2 a3 u在 runPLMXMLExport 子程序下增加红色标记的代码
9 v) M, g4 ]9 d- m6 C; f: d; [& g
% |( N+ l# W! z9 I4 \# This will be the full path to the executable.
2 w; a' Q7 M4 b4 ?5 P* Wmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
9 O7 p% Z: g ^0 h0 K2 wmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; ; y. K' @: n+ j3 Q A4 }
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; " n( r& F B' ?9 E/ ?& x
# Make sure we can find what we are executing.
+ R2 c/ |' I6 \9 {! \die "The ${exe_name} executable was not found at the following location: 9 X0 e+ q1 y8 B
${exe_path}\n" unless -x ${exe_path};
2 B1 n, {" A+ K. H# D) L0 c0 L0 C9 P( b+ y
# Start building the command line. . g- J& z. s" K3 o! D4 m% V
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
+ j: U& T9 z ?* U/ f% K
: s8 s+ y/ A4 ?' q$ B# Take care of possible empty spaces in the argument values + n6 D, f T* X3 o# n
my $outputFileStr = $hashRef->{'output_file'};
! F. ^2 }2 B% I+ ]. R$outputFileStr = handleEmptySpaceInPath($outputFileStr); , A, X# X) d2 c" t8 @
my $scoUid = $hashRef->{'uid'}; 3 b; ?7 j* k4 N/ z% A' p$ z+ B
$scoUid = handleEmptySpaceInPath($scoUid); 5 l( r( m4 Z/ V- P5 z3 S& ?
3 z2 s0 m' L- @0 T& d0 |. \
# Add the extra options. 3 o# m+ Q* c- ^1 P7 L
addOption(\@args, '-xml_file=', $outputFileStr, 1); ) ~( r/ g# B9 M9 I% X
addOption(\@args, '-uid=', $scoUid, 1);
% d w2 Q9 r' waddOption(\@args, '-u=', $tcdbauser, 1);
& y6 j t7 p" l* y7 _/ SaddOption(\@args, '-pf=', $pwdfile, 1); : P t0 d3 n7 J" J, X4 m0 y6 L
. ]+ H( k4 R, }6 N& q8 c+ ?
在 runLoadFscCache 子程序下增加红色标记的代码 ! A# \! T. ~2 F9 f c7 w: l3 R) V% f
8 B; o W/ x0 Z4 {* C# This will be the full path to the executable. " j. `. R( f# |- M' M
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
0 {4 Z- J8 v& h4 }& |. ]+ r ^# {$ D- y
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
6 O0 Z+ w7 D1 dmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; " j; {9 B9 s4 H5 X. a
# Make sure we can find what we are executing.
! W7 b! B. _0 @3 Wdie "The ${exe_name} executable was not found at the following location: % T( G9 h/ }& N! v+ M
${exe_path}\n" unless -x ${exe_path};
2 ?* g# e/ T) p) Z
1 F* x, t, t1 z* X2 X9 S# Figure out output information from command line input
6 E# r0 \3 P; X. ]my $outputFileStr = $hashRef->{'output_file'}; ; t; R/ t1 c9 G/ u }- M
my $fscUri = $hashRef->{'targets'};
9 B3 e: A# _( K& r, X5 {, G/ u2 _' R& `4 E- b- A( j8 H% w
# Check possible empty space in the string
4 c. N& o, o3 x, n; F/ |7 ]$outputFileStr= handleEmptySpaceInPath($outputFileStr);
: O7 l( N! v) C9 ~4 {! M; w1 o% G$fscUri = handleEmptySpaceInPath($fscUri); 6 o' E, [2 k3 i0 c( r% R
$ @+ o4 E# ^3 g, s" C+ Y7 n8 c
# Add the extra options.
/ x9 w% Z% ?- emy @args= ( $exe_path, '-f=load' ); : \% ]. r$ l7 |+ t2 F
addOption(\@args, '-plmxml=', $outputFileStr, 1);
3 p3 Q9 Y: Q; r4 U* ^addOption(\@args, '-fsctargets=', $fscUri, 1);
2 y4 D3 E, e+ |+ R9 LaddOption(\@args, '-u=', $tcdbauser, 1);
* S8 X9 I0 _4 l" y3 ?addOption(\@args, '-pf=', $pwdfile, 1); 1 W5 w& r$ [9 o) z# P
% `& v: O* s2 |* L7 S) g' B( `% G. E7 r! n! {
5 O9 ?) u2 }, W2 \# g5 [+ V
|
|