|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
3 d1 a8 Y0 {! M9 A, z171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 + S* i' I1 m P" o9 i z: i R/ y4 N
# I3 p! u2 P# _3 E4 @ \" e
问题
" d6 J3 j0 X! k f5 k默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该0 x2 J' a" G) r- b, {* W! b7 N7 p
模块中的功能无法登录
. O; k5 M* t! z$ c: m }
1 l# e/ W9 N+ c6 ]0 N7 hERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
3 @7 z+ O6 u0 t2 ^user ID or the password is invalid. # ^0 l7 L6 [/ u& w6 f
" S0 l$ l. K: p4 ?
方法
_' [$ I1 }& o" ?4 J+ I6 @ f修改 populatefsc 脚本,增加登录信息
0 R8 v2 a* W- ^3 }' ?" P/ v在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
4 g6 Q+ _" Y& O- y/ [* u7 [set TC_DBA_USER=infodba 0 k1 L+ a t+ O C' c( J
; m/ }- e Q9 y. ~0 F" J在 populatefsc.pl 中 :
0 B' t7 X+ k1 l3 K$ b9 r5 `+ V; S8 e- g0 `. H% f
在 runPLMXMLExport 子程序下增加红色标记的代码
! L" b6 K, W; h3 H' z: [, \/ a W: o- i. [. p k
# This will be the full path to the executable. 6 m, j9 M& V$ [/ t. E
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
& x8 X+ e$ p" [" Z$ w9 hmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
7 D$ h( z/ M& V! b/ g4 H8 F0 Rmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
' T9 F& k- y: x) b6 N* K# a# Make sure we can find what we are executing.
+ I" ^8 M, n+ {- ?die "The ${exe_name} executable was not found at the following location:
$ T6 q2 p* W* B${exe_path}\n" unless -x ${exe_path};
0 B& \2 Q! q9 z/ y% @/ U+ A/ [- `) m. G% J H& z
# Start building the command line.
5 T7 i( t, b6 R0 \1 v$ U ?4 k, v" Ymy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 8 ~; @8 Q, f4 v) j, b
6 R' `: J' Y8 r) r
# Take care of possible empty spaces in the argument values
7 ]5 I, T" p0 G- R9 smy $outputFileStr = $hashRef->{'output_file'}; % f8 I( H3 i* \4 ~' k% _
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
8 E& m* S1 M+ T4 B+ G/ Q( }' `my $scoUid = $hashRef->{'uid'}; ( K$ e# @+ [ K/ Z& ~0 i) h' n+ t# z
$scoUid = handleEmptySpaceInPath($scoUid);
+ R# O* ]4 } k3 Y0 U9 \: J2 M! r
" r; ^3 l6 P3 U8 F P; n, R# Add the extra options. , y, f. _; S1 @( {
addOption(\@args, '-xml_file=', $outputFileStr, 1); 7 ]# p( D# ^0 O$ j6 L/ O9 x- U
addOption(\@args, '-uid=', $scoUid, 1); " _" y. x* }4 t: f
addOption(\@args, '-u=', $tcdbauser, 1);
# H$ b [6 T! S Y5 kaddOption(\@args, '-pf=', $pwdfile, 1); 9 q& A- i6 G; x0 O. {/ m
7 j- n- B2 W% v: `在 runLoadFscCache 子程序下增加红色标记的代码
$ h9 d% t3 ~( a' r. U" ^" ?* i6 q [1 y: [, u( i2 N
# This will be the full path to the executable. 2 {' R" ~+ X3 a0 E
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 1 n" j5 Q1 e6 X: K+ C o6 b8 B
( J1 r( `, K d. ~; S+ lmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; ( W/ U$ M) z' H- O0 F2 K
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
7 w, ]4 ]) J' y9 T- L# Make sure we can find what we are executing. - E3 D- W+ ^ N; y$ D5 O
die "The ${exe_name} executable was not found at the following location:
: b) p, B8 j2 C$ {5 T5 k1 K8 C7 @& m! b${exe_path}\n" unless -x ${exe_path};
" G' y6 k' v- S0 p( O/ Z) N4 p$ I3 X: H; q: t" ?+ l
# Figure out output information from command line input 0 U' r7 M. b; ]2 ^1 A- b# d
my $outputFileStr = $hashRef->{'output_file'};
8 B6 `' s7 B7 L! K5 C7 O" b! V3 h+ Xmy $fscUri = $hashRef->{'targets'};
7 [+ d; ]+ E w9 n- P
7 o0 R" j' a, Q r* s7 t! Q# Check possible empty space in the string
: \3 b" S6 u0 h' a s1 C, a9 M' Q$outputFileStr= handleEmptySpaceInPath($outputFileStr); 5 y2 P% H9 u/ b% j3 ~ E' F1 b" J9 A
$fscUri = handleEmptySpaceInPath($fscUri);
3 C; S( o; e' [- C4 i* ~) Q2 O: I& A7 w T4 _7 i/ A) p
# Add the extra options. ! ^% n5 {4 D7 _
my @args= ( $exe_path, '-f=load' ); 4 {( \* n% H% {3 b. O- w( o
addOption(\@args, '-plmxml=', $outputFileStr, 1); % n5 h0 w9 H3 d. h* _- l
addOption(\@args, '-fsctargets=', $fscUri, 1); " t" K7 k- ~( p
addOption(\@args, '-u=', $tcdbauser, 1);
A7 A' {1 e. l1 {4 `* H4 o3 R0 T$ M5 naddOption(\@args, '-pf=', $pwdfile, 1);
1 N* |- O8 Y7 v) r$ B ]+ y g1 D& ?2 r' Q
0 }0 r* ^0 p6 i3 s; @; W C; [) s3 j# ]; A5 l& [
|
|