|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
( v7 N0 |0 B7 p& ?/ E
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 1 ~ s7 R, W% {* x% G
" [& Y) d$ u% ]4 i+ f5 W, p
问题 9 ^) S0 k/ q8 W
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
, v7 d/ M( V3 A8 L* w' d' C+ b模块中的功能无法登录 N# j9 |9 m- G5 e6 H4 ~
$ ]$ w' B3 I- R
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
' ^3 K; s# P* S% cuser ID or the password is invalid. $ _/ V a( B. C, _( x+ I8 ^* y) ~8 X
3 S* V& h% A5 s7 _
方法
6 Y! O: {' C' C e$ i6 B修改 populatefsc 脚本,增加登录信息 ; F- K9 ? v6 j \: s! `( p
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
. s: F0 I8 {2 K1 \5 Oset TC_DBA_USER=infodba 2 A: N) L* M1 v6 j! b
& i* f X# P1 Q4 ?6 w. v& G# A# ~* H
在 populatefsc.pl 中 :
) B c O$ U; S; n/ x
! w" S) t# k7 l$ q' r, w在 runPLMXMLExport 子程序下增加红色标记的代码 $ e; u( i( G0 s/ S1 ?7 f; a
( v f9 g' `1 X3 V# This will be the full path to the executable. ' D N5 q" R3 { M
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
) l! D* L. X2 _0 @" Qmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
" o& l. {" a1 y l' ]my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ) N1 v- z3 h+ C0 f+ x2 t* `6 A
# Make sure we can find what we are executing.
) r. n1 D- P% R1 o- b- cdie "The ${exe_name} executable was not found at the following location:
7 t4 d( Z' N6 f! J${exe_path}\n" unless -x ${exe_path}; . r2 i3 a( n0 I4 J, N2 J; a" D
5 p+ B+ l1 T' @9 M# Q* R# Start building the command line. 2 {3 ]- L, e: J/ x# d4 F2 f: |
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
6 l) U4 m- Q1 R9 H4 s1 _
# u: S( Q; o# ^# Take care of possible empty spaces in the argument values * [( d7 f$ M/ x9 L* o; U+ b, `
my $outputFileStr = $hashRef->{'output_file'};
" K- Y; f8 q/ E* H" @$outputFileStr = handleEmptySpaceInPath($outputFileStr);
6 }. L+ P N. ~1 B5 ^+ y8 Qmy $scoUid = $hashRef->{'uid'}; 6 M$ @+ z' a! O4 @% `4 \
$scoUid = handleEmptySpaceInPath($scoUid); " j1 ~3 H$ I$ r1 V2 n5 l; K
/ j- B) t' j7 C0 S2 ]# Add the extra options. + C# v% y3 {$ b" R. @6 H% o$ |: W5 C
addOption(\@args, '-xml_file=', $outputFileStr, 1);
6 u2 R7 S& ]/ l# k$ |addOption(\@args, '-uid=', $scoUid, 1);
; J4 V4 D& v0 T/ q5 P7 waddOption(\@args, '-u=', $tcdbauser, 1); 7 ?7 G% Z, x( {2 |* u
addOption(\@args, '-pf=', $pwdfile, 1); % H$ M0 p8 S. K6 {9 e) C/ I7 E3 j
) g. \1 S$ X3 ?2 R6 C5 J
在 runLoadFscCache 子程序下增加红色标记的代码 5 k# f" Z: \6 n5 \" J) d3 x% j
! V L0 q4 d* E1 o# g& `. Z# This will be the full path to the executable.
7 a/ B+ X b+ r: A( _# S$ Q! [my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
6 K B9 a+ m( L4 K) n; c1 ]
+ D6 o7 L3 Y) [1 c# Hmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; - {1 g% W7 s4 e2 h1 u
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
8 H6 Y4 T3 q" K/ ^& v0 H! s% l# Make sure we can find what we are executing. 3 V1 f# Z! ]& u9 u8 }
die "The ${exe_name} executable was not found at the following location:
( R& Q9 _ E* d' D l' c${exe_path}\n" unless -x ${exe_path};
y; x1 k3 I3 p: r* ~4 L4 r( f0 S/ j! r- |# h
# Figure out output information from command line input
, p5 J9 L! M$ {! x) N, Y" d. @my $outputFileStr = $hashRef->{'output_file'}; " G, d# k4 J1 k' ~
my $fscUri = $hashRef->{'targets'};
2 g; P: z& U( r" r8 F
4 J1 M3 Y5 A# U+ o/ [8 E# Check possible empty space in the string
( u- U4 X- K" T0 ?9 Z: m$outputFileStr= handleEmptySpaceInPath($outputFileStr);
8 Y2 C! `$ ~( r% \$ F7 ?: A6 l$fscUri = handleEmptySpaceInPath($fscUri);
7 i9 z( }& J7 @4 i% F3 P9 F! j( m# V; g4 o/ ]
# Add the extra options.
5 ?# t, |" ? H$ r$ cmy @args= ( $exe_path, '-f=load' );
" W" d' W; t/ c6 v, o/ qaddOption(\@args, '-plmxml=', $outputFileStr, 1);
! y0 N6 M f* Q: saddOption(\@args, '-fsctargets=', $fscUri, 1);
# f; q$ Z/ e( B$ w$ w0 U% BaddOption(\@args, '-u=', $tcdbauser, 1); ( @; ^" w6 k X* D3 b+ i
addOption(\@args, '-pf=', $pwdfile, 1); 5 V( A3 M- E' `; H! N: B
8 U9 S- ]3 a6 A+ Y/ K
# f+ |: |" ~, R. g
; p* ^+ S: u6 X' a! i |
|