|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
; b5 I$ u0 A# r171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 . f& [8 |' y ^7 h
. n' `# z' M/ L; b$ r+ @
问题 ; @/ x3 y2 C% H
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
+ K8 V: g) a/ s& @模块中的功能无法登录
! h) d( ^' U& x: Y/ s s/ u9 Z% W/ x$ J; S3 y
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the / x; @- l4 o7 y2 D4 C- ~
user ID or the password is invalid.
2 c% b9 M. U; Y$ O
. E3 s: Y, x5 W4 Q. O/ C# ~方法 * @/ M, s" \4 x2 W3 ]1 d, R
修改 populatefsc 脚本,增加登录信息
- ^# z6 r2 ^" S6 {, ^2 d: m/ _8 Q在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 6 T) a, I b8 r+ R* v. H
set TC_DBA_USER=infodba
8 G, H/ _* t& ~+ Y2 L4 D; ~$ v; {' k9 F, o$ O% _3 `
在 populatefsc.pl 中 :
Z% c, e5 c9 \. P, |9 l! [' {, u( N @. i% Z
在 runPLMXMLExport 子程序下增加红色标记的代码 0 ?- U) ~2 |2 ]
$ `+ u3 M0 O7 N# This will be the full path to the executable.
9 a, {+ g0 A* m+ ^( Cmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; - p4 V4 P7 _/ Q& ?9 |, B) P( B
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
+ U" O6 r4 X" T# Lmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
% A7 P! _, j; f; G+ Y' s5 J# Make sure we can find what we are executing. 4 P/ w& J; E' T; N% t# N
die "The ${exe_name} executable was not found at the following location:
- Q: T& m( g+ A9 E1 t& n+ M% S( O${exe_path}\n" unless -x ${exe_path}; ' b' y+ v4 k3 o6 ^- R
N* h% M/ v6 V# Start building the command line.
6 `' J; x- r0 \) K Cmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
5 D$ p0 j4 g: j6 C/ ~+ N6 W! P
, v3 ?$ Y0 s+ X. I# f, D9 q# Take care of possible empty spaces in the argument values
$ P% w4 p. ?3 H! @2 V" _0 Pmy $outputFileStr = $hashRef->{'output_file'};
. H1 ]( t3 Q) [$outputFileStr = handleEmptySpaceInPath($outputFileStr);
. ~ ^, ~& K" S& F9 U; vmy $scoUid = $hashRef->{'uid'}; 8 ?- ^/ y* s! X) O9 F. b
$scoUid = handleEmptySpaceInPath($scoUid);
' B9 {" y) j# o6 v: ?7 @7 o, v; h; ^! T& }
# Add the extra options.
+ n/ R& y# N. s" t7 Q; jaddOption(\@args, '-xml_file=', $outputFileStr, 1);
3 l0 U) Z. c# l4 M! {1 t0 g* PaddOption(\@args, '-uid=', $scoUid, 1); ! o: e. W6 j' S* k2 W
addOption(\@args, '-u=', $tcdbauser, 1); : M+ p/ g/ N0 u) F2 F
addOption(\@args, '-pf=', $pwdfile, 1); % p- ~0 N- l" U- T0 B
: }* S1 ~$ v a% A* H在 runLoadFscCache 子程序下增加红色标记的代码 % T( v ^5 M( B* e* I2 p+ G
5 R! i9 s& ^. Y- w# This will be the full path to the executable. 0 ?) i0 \# ^; G! C6 m4 j& L
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
. E8 e. a6 {$ y
9 q7 X1 o0 S/ X. R& D( ~my $tcdbauser= "$ENV{'TC_DBA_USER'}";
7 g( s$ j9 _; z# w0 r* s' a* l4 d1 ?my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
4 _ N: C1 ^, K& p, p& B# Make sure we can find what we are executing. $ N6 w. F: L: ?( z# T4 m! x
die "The ${exe_name} executable was not found at the following location: 3 C2 e! }" ]. U8 T+ ^5 o& r
${exe_path}\n" unless -x ${exe_path}; ! _( a0 i9 L$ X0 k0 r
. C* y* O( B3 f' a% v/ G
# Figure out output information from command line input ) Q' P* C, }. S% D+ M* J+ G# S
my $outputFileStr = $hashRef->{'output_file'}; ' E% z; r+ M) y5 e4 \# Y2 V s
my $fscUri = $hashRef->{'targets'};
9 Z1 j5 O3 V3 O" B) r4 f
; r- u E) x' e1 I( b5 y; P) s' i- E# Check possible empty space in the string $ R9 c, L$ r" w
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
3 m) s3 a2 j& `9 N0 g8 J. i$fscUri = handleEmptySpaceInPath($fscUri); # [$ q5 Q7 n) V& {8 e4 g4 X( [
! ~) }0 w( E' x8 R# Add the extra options.
" o6 S' n7 B: w) Z$ D" p N/ amy @args= ( $exe_path, '-f=load' );
' k" s4 V# x( E. OaddOption(\@args, '-plmxml=', $outputFileStr, 1); 7 a1 `/ V' ?* F- l1 C, {
addOption(\@args, '-fsctargets=', $fscUri, 1); & |& B4 u* z; k
addOption(\@args, '-u=', $tcdbauser, 1);
( {: u$ A7 V# D7 Q. O$ `' ~2 LaddOption(\@args, '-pf=', $pwdfile, 1);
( [- A* @2 y4 t0 _ x
, v+ B& {1 {' s
3 |. _+ G& ]$ B3 z$ z7 B" z: w6 {5 g. e, U+ t/ B
|
|