|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
5 @+ f3 S f: b# W1 b4 Z0 f9 [# [
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
) b+ v1 A c5 g: z2 ^* s$ `- k1 |+ @& \5 I& u( M
问题
6 I; t" A' T& u; I3 n默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该( q$ U; Z) F( ~( r+ m$ g) w
模块中的功能无法登录
. K# U- N4 b% ]
1 v. x5 V" W9 G2 u0 O4 T1 bERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
% X- ^& C6 p* O7 juser ID or the password is invalid. 5 G/ C4 k, K# w+ m6 c
# M. a8 R0 b3 {) G( E4 ^7 ?方法 " Y9 ?5 H4 M5 W* t0 l7 K$ D
修改 populatefsc 脚本,增加登录信息
- B! h* X, O7 q3 M' ]7 y. i/ d# |在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 X. V) d1 H- |5 O
set TC_DBA_USER=infodba 5 r1 W2 W- G* \' w: h
3 ^- X u4 X% X- H$ U% P在 populatefsc.pl 中 :
% X+ B- N) Z3 J' t) @. C
* }1 \. g( ^( J在 runPLMXMLExport 子程序下增加红色标记的代码
& j- n" Z9 B7 z6 o5 U, w0 X" y: E
6 P" L: K8 U/ C* i5 E3 v2 B/ t* L# This will be the full path to the executable. $ N9 u1 h+ Z3 N
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
3 ~6 J% ?+ d- S1 ]/ A9 E1 v: p, X) c! Omy $tcdbauser= "$ENV{'TC_DBA_USER'}";
: G$ ~! K6 s" xmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
. U8 T5 J$ I8 f( t! d+ ]# Make sure we can find what we are executing. : c" |& N1 \/ [: e( E
die "The ${exe_name} executable was not found at the following location:
/ S- c1 b& Q0 H( G: {${exe_path}\n" unless -x ${exe_path};
! b+ S( f# I: S9 A3 n3 n* i& w+ V1 P" E) n+ U% O$ t
# Start building the command line.
! q5 k9 }& K7 H6 Z' o6 gmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
7 J) g4 j/ I) B6 W& w: p) o, I n3 j
# Take care of possible empty spaces in the argument values 3 H4 Y4 K# B* |2 P5 d
my $outputFileStr = $hashRef->{'output_file'}; $ P5 b' Q# D \. J
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
: M% j! a+ v& E# M1 A+ kmy $scoUid = $hashRef->{'uid'};
1 X: k; l% M. w9 {7 o$scoUid = handleEmptySpaceInPath($scoUid);
' L" @2 }$ q& K0 h6 u
/ ~% N6 Z8 @7 g; i# Add the extra options.
7 U3 d/ H, n2 O7 S6 K. w$ R/ a# AaddOption(\@args, '-xml_file=', $outputFileStr, 1); 9 l/ B: m* [4 _$ M# [ |- l' }
addOption(\@args, '-uid=', $scoUid, 1); 0 Y3 t* p6 g7 I) K/ _$ J
addOption(\@args, '-u=', $tcdbauser, 1); $ L' w- l8 ^ U- t: M4 E2 G
addOption(\@args, '-pf=', $pwdfile, 1); " F! M+ C4 a5 j. F7 |
+ Y& S- c. @2 A
在 runLoadFscCache 子程序下增加红色标记的代码 ( N8 `8 b8 k+ g; G% u
- e+ y& o& p# m+ b+ w# This will be the full path to the executable. 1 s( X4 w" L# w7 ^2 s
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
- _8 D7 q; N/ C% o; g6 Q+ E5 X- U9 U, n
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ) V* n$ B( Z% h* n( N
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
* u: p6 N& x0 ?" r6 b6 j7 O# Make sure we can find what we are executing.
& S8 l, q( w& @0 o- n+ n& }die "The ${exe_name} executable was not found at the following location: 1 A) m7 v7 _, f' V
${exe_path}\n" unless -x ${exe_path}; 8 w2 f! H1 p2 s) v) f
; Z- |; ^* o& H+ k. T
# Figure out output information from command line input
4 Y: \* h1 u; u2 Y/ Xmy $outputFileStr = $hashRef->{'output_file'}; % y- D3 ?% t: I2 \& w
my $fscUri = $hashRef->{'targets'};
1 U, Z, l/ X& n5 C+ u x2 r' q" {% C
# Check possible empty space in the string
% j" {+ [, T! u: E% a5 q$outputFileStr= handleEmptySpaceInPath($outputFileStr); " ^/ ~" S# J! m
$fscUri = handleEmptySpaceInPath($fscUri); ) e! i! J- \ ?0 M0 ^
3 m4 |. G$ _! B. l4 l. t; E2 L' @
# Add the extra options.
8 c8 }6 m$ o; c- tmy @args= ( $exe_path, '-f=load' );
, l2 I' U2 j5 G; s+ b; e% ^addOption(\@args, '-plmxml=', $outputFileStr, 1); . f' t+ ]: Z* a5 o
addOption(\@args, '-fsctargets=', $fscUri, 1); 4 }+ P2 _9 H' ^0 P$ a( f8 O' l
addOption(\@args, '-u=', $tcdbauser, 1); ! b, P" ?8 X: k, l$ T
addOption(\@args, '-pf=', $pwdfile, 1);
! s. c( l9 X$ D- K& t
6 ], ?8 C: Q T. k1 V
& g% T$ X" ^' k$ S7 J; ~
% ~( |( V7 s' m" i g* B/ l |
|