|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
. G: S* R* T$ B h( r0 S171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 ( R: T) T- }( |! a
1 u; y0 u' v8 N1 _4 T
问题
1 v9 w: W5 J: d* E默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
. x; h4 K4 L( q4 n; V- D模块中的功能无法登录 9 M! x8 ^/ w1 B- }
. p) f6 g) O9 }( ] h9 i" X1 zERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
7 E# b1 @ g2 E: z: M( Juser ID or the password is invalid.
0 G0 c; n9 k+ p& f% S5 I2 m Q/ U- ~! n+ K0 x, z
方法 1 x$ r+ @+ T9 R( N
修改 populatefsc 脚本,增加登录信息 3 b9 e% \' c- R3 t
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
: L0 M. V3 I+ t( O: wset TC_DBA_USER=infodba
. o0 f6 o1 x' S' X' M! `) y
# L3 k, ]' a& [4 I在 populatefsc.pl 中 :
& Z' ]- l) k8 s) g. W
! l4 V3 @2 {" }/ F& `6 M) a, P在 runPLMXMLExport 子程序下增加红色标记的代码
+ z2 A- e% j& e' _ O3 {% W$ P
' e- t, l6 H' l5 W# This will be the full path to the executable. 7 G+ F1 |' {6 H! i" J" N% e
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; / x; h+ z4 d2 ^2 u2 v8 U B+ S
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
: X. N, K6 [3 y) i5 Omy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ; g+ C: c! D4 e9 c* E
# Make sure we can find what we are executing. - \ j* D6 i( @. P* O. r2 z) `
die "The ${exe_name} executable was not found at the following location:
7 I& h5 h. t! J3 G6 Q8 K* c; `${exe_path}\n" unless -x ${exe_path}; - K7 I8 Z" o9 ^4 G$ A$ s
$ q7 I ?! |! ^: L# Start building the command line. 3 z# B- y M r1 N0 a2 b
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
' G. d7 T! S2 k+ W4 A9 m( R
6 W% k" @9 b8 f5 h) C+ k; M* U+ c# Take care of possible empty spaces in the argument values
0 ^0 @# L9 b6 y7 @1 c' ^& k- v/ \my $outputFileStr = $hashRef->{'output_file'}; 4 t6 L+ d+ S5 j) s* m* N4 f2 [2 `
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
0 ]) z7 B* g% l; S* Tmy $scoUid = $hashRef->{'uid'}; ( q. G7 @, o% U- o+ V
$scoUid = handleEmptySpaceInPath($scoUid); 2 |! q$ v4 h) V9 }
8 d4 L$ Q" r1 E2 g
# Add the extra options. 7 R( ^/ }' Z' J+ w, j- H0 g3 Q2 H
addOption(\@args, '-xml_file=', $outputFileStr, 1); + ^6 f6 O' \" U# c7 b- O
addOption(\@args, '-uid=', $scoUid, 1);
& `$ V& ~- u/ s! g: _. o' n; |addOption(\@args, '-u=', $tcdbauser, 1); . e) D; [, s$ x- }" S& c
addOption(\@args, '-pf=', $pwdfile, 1); 9 a6 a4 j6 _" O0 ^
; F7 Q( v; {: K/ i5 A* a# x3 ~8 ~在 runLoadFscCache 子程序下增加红色标记的代码 ! s. `( Z6 o5 {8 _2 M$ @
: F- [8 B) |" Z" o# This will be the full path to the executable. 8 w" G5 C6 R9 @. ]& U
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
3 x, N( E( w8 m5 N* H0 Q' D
' K# L& O0 m0 Q4 gmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; ! @1 N8 s8 a$ {& D& `4 }
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
/ U" Q( v9 s( E, P# Make sure we can find what we are executing.
9 R- Z! F# {' V: x9 J. @, fdie "The ${exe_name} executable was not found at the following location:
R E/ ~" ~* V5 V${exe_path}\n" unless -x ${exe_path}; ) P$ |5 D) _, [! h5 n' I) B* ]
/ z- n4 j/ F- w5 ~# Figure out output information from command line input / l" n9 h& @/ m& g4 A, j
my $outputFileStr = $hashRef->{'output_file'};
& T7 F3 P7 {2 K! G4 |) j9 ?$ ^my $fscUri = $hashRef->{'targets'};
c% E4 n( Z0 D$ N7 @
: M$ H# C# [4 P. R9 C8 g( @# Check possible empty space in the string 3 z: x$ R( K) V$ Q$ l
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 5 z. E& q, y! s4 j2 t& }
$fscUri = handleEmptySpaceInPath($fscUri); 2 h7 T' C5 g2 X+ z+ E
3 L9 \/ [' S( S2 r2 P8 Y9 U D1 a
# Add the extra options. % D1 k% e, K5 v( n0 C. W
my @args= ( $exe_path, '-f=load' );
& Q" S, w! [7 v9 j, _/ g! paddOption(\@args, '-plmxml=', $outputFileStr, 1);
" Q; x. s6 `- y" V' UaddOption(\@args, '-fsctargets=', $fscUri, 1); 6 L$ r! {" F. A- G# L* N. C
addOption(\@args, '-u=', $tcdbauser, 1); * Z b( T C, z! o7 L
addOption(\@args, '-pf=', $pwdfile, 1); ; ]7 W! [8 \7 G9 k# @' I
5 R4 U+ W* a8 l6 B l; ?9 j# g7 q7 W/ X6 p! H" ^
7 _( U4 `( E, A( J. Y; Y |
|