|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
; j: |5 z' x" _ J% c171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
/ {4 s' {* \% @4 d# v4 h- Q7 I& R& Z1 d9 Y& f$ ]1 Y! f. ]" @
问题
- y2 x) L0 H- r4 ]. v! O$ _- O$ j默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
# M: e& C, T9 S# {模块中的功能无法登录
H) F, V% ]. a% K1 x5 x9 N2 F
4 q3 C4 c5 I$ |, C/ C, \ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
2 ^' \* T; g- A" e! s& Guser ID or the password is invalid. 4 J/ p. v$ @( M, y2 E; V- e, L
' Q' M& T6 A! \$ \; Z7 O- Q$ C方法 & R0 j6 ~( m5 ^# J+ V6 q
修改 populatefsc 脚本,增加登录信息 8 {) q$ x( N' ]9 e. ~: |- M
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 . `: v2 u6 s ] z
set TC_DBA_USER=infodba 9 j# c- n( Y0 P$ n' z
! l+ X8 w; \* Y4 P* w在 populatefsc.pl 中 : 5 O) y# v1 i6 ?- ]9 O1 @0 j
: H0 k n U6 y8 Y; U, r
在 runPLMXMLExport 子程序下增加红色标记的代码 ; ?1 Q$ Z: ?, r, t; g! C' T* N
0 P6 f* K9 n$ V: I6 d, ]0 P$ C( r1 q; p
# This will be the full path to the executable. , M* [( M. \- J0 c# j1 P: W/ y8 A
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 4 D4 {8 h( g/ I. B
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ' G$ c9 W5 T5 b Z6 q5 o
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
* h6 E" I; j8 U! q7 n0 G! |: o# Make sure we can find what we are executing. ; ]( C# K8 K( Z7 x
die "The ${exe_name} executable was not found at the following location: " S5 D4 p+ q4 B& F: u1 E
${exe_path}\n" unless -x ${exe_path};
$ i. [4 |4 |' {( z3 R# s7 l% i, y8 i. g6 S% o5 R l
# Start building the command line. 5 b3 S' u" {7 ^, D W
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
A4 a: }. w1 a+ x) [2 s6 c+ q, }$ _& E" J) r% c7 O1 a& g
# Take care of possible empty spaces in the argument values
2 z f9 p# ~- K/ u. a, Imy $outputFileStr = $hashRef->{'output_file'}; 2 d2 |3 y, A7 ]1 N7 m
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
+ j) n# n+ P; z% R9 S5 x5 T, gmy $scoUid = $hashRef->{'uid'};
# B0 t: ~" r, w! O8 k$scoUid = handleEmptySpaceInPath($scoUid); . z# N. x% R& {( ~5 {' N0 U
; P" ~ @$ A& Q* O( W# Add the extra options. + X) `" u" B$ l" C
addOption(\@args, '-xml_file=', $outputFileStr, 1); 4 B% u, r/ c0 @. K: H
addOption(\@args, '-uid=', $scoUid, 1); ; X8 o" E* R F3 u: [/ u
addOption(\@args, '-u=', $tcdbauser, 1); ) q9 s% s8 M/ ]* f, O% m$ w
addOption(\@args, '-pf=', $pwdfile, 1);
* u+ k1 Y% P6 v0 Y* r: ]" ~, V7 F5 S2 d( |2 N. x
在 runLoadFscCache 子程序下增加红色标记的代码
" d+ x! x0 N5 @: \* @9 `) a4 ?; o/ D2 }) M
# This will be the full path to the executable.
$ D0 D' ]9 n% P2 w! W) _3 i! |my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 5 W0 C) |: K6 C1 }/ |
+ a5 {2 }3 t U3 Y6 Q% ]: Zmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
' W1 K! g( x& _my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; . X% o- \3 ^# f- j9 m
# Make sure we can find what we are executing.
; [% D3 D) o) p fdie "The ${exe_name} executable was not found at the following location: 7 T9 u' H& q$ V. I
${exe_path}\n" unless -x ${exe_path};
) w% d% H. Z) N
7 W% i/ h Y; Z6 W4 \8 z# O# Figure out output information from command line input 6 I* }! _4 _+ r4 \
my $outputFileStr = $hashRef->{'output_file'}; , J p7 k- }6 N' `! X' _& M
my $fscUri = $hashRef->{'targets'};
W% G) D& o" r: ]/ o0 I) p k
# Check possible empty space in the string * g+ {9 s5 s. U, \4 d0 S
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
( V; X S+ K; ~6 A2 R$fscUri = handleEmptySpaceInPath($fscUri);
% i, E; A2 `9 m
/ _# L5 J6 c+ j/ y( x- F# Add the extra options.
% V! f: ~( N: T' v" [* I( R6 Zmy @args= ( $exe_path, '-f=load' );
5 {# ~+ X5 E( h7 ^addOption(\@args, '-plmxml=', $outputFileStr, 1); % P* M. e& I1 G4 q5 ?
addOption(\@args, '-fsctargets=', $fscUri, 1); % A+ ]) c' }1 i
addOption(\@args, '-u=', $tcdbauser, 1); , v! h8 N* N1 M0 x$ B2 v4 } V
addOption(\@args, '-pf=', $pwdfile, 1); 8 @% d& w; m% P; Q' W) A M/ ?
1 A& h3 N/ \1 N8 N5 A- l4 U" U. C( G) |5 _
5 Z j/ {) {& {- C- F
|
|