|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
. W0 b9 s* r/ z- v
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 ! e9 }& Y V# x2 Q2 t X: R8 _# y
+ ` L9 a7 u/ n( T" {2 K问题 1 d- ~0 ]9 j" ~0 u3 H
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
' ]; o' c, [" ?! f1 c" ?/ t模块中的功能无法登录
3 g, m9 O g: M4 C% f" @$ u$ [ H1 N$ p* ?
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
5 L' ]6 m1 c5 _+ Duser ID or the password is invalid. ! m5 U4 u& K; Q; v
" F9 F* _6 Z" u# u4 R: m. C# e1 H
方法
& h" e" F/ ^ e修改 populatefsc 脚本,增加登录信息 7 T4 q" o7 _3 N, ~
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 : N/ e+ A6 y; \. V, H# [
set TC_DBA_USER=infodba
5 o W0 `4 J# t5 x: Y8 a, B4 _1 @& Q" d' g2 S4 \4 N
在 populatefsc.pl 中 :
5 N) l4 p/ N' L
6 M, D5 D' C2 c, D在 runPLMXMLExport 子程序下增加红色标记的代码 ; n9 X# X& @8 m7 ]6 Z4 A4 _
5 q5 z3 T) e6 e, G: t2 H. L6 z
# This will be the full path to the executable. * W3 c4 A. O! o/ g2 \& ]+ v0 T
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
5 ` O* [! Y$ x; C1 W) {: @0 e8 {8 smy $tcdbauser= "$ENV{'TC_DBA_USER'}"; , e" H" I' f* b- {- k# K" p! {; c
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
' B7 k* y% I) _% }! q$ R! e# Make sure we can find what we are executing.
+ M% `! l& Q1 V: h$ _die "The ${exe_name} executable was not found at the following location:
' B: W _+ _, B% K. u* q${exe_path}\n" unless -x ${exe_path};
0 z; ?, F9 j3 S+ ~5 R2 a3 D* F
# Start building the command line.
/ J q6 c+ h$ |$ s% Y: E( ymy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); - [; c% p) Y, @7 L* {# U
: ^1 i; ^- Z/ T1 \( U& L7 ^# Take care of possible empty spaces in the argument values
' [* U% \( {* A, T% p) ymy $outputFileStr = $hashRef->{'output_file'};
- U+ F7 W/ j# q- L$outputFileStr = handleEmptySpaceInPath($outputFileStr);
) r" i2 r7 g7 amy $scoUid = $hashRef->{'uid'}; 8 z% f6 p y" Y4 `/ r
$scoUid = handleEmptySpaceInPath($scoUid);
# y; m9 o. M5 L, g/ G. ]" @2 s2 C; o) F Z$ }$ X4 ?
# Add the extra options.
4 W) X% j$ d7 W( C* r' V* y' S; ^addOption(\@args, '-xml_file=', $outputFileStr, 1);
! _* l* J2 w$ p# f7 O, \, X8 yaddOption(\@args, '-uid=', $scoUid, 1);
( j0 H3 q9 c2 h- `addOption(\@args, '-u=', $tcdbauser, 1);
( q% g. A- A4 C2 G+ ^* laddOption(\@args, '-pf=', $pwdfile, 1);
7 l( p8 \" y3 Q2 s( c, B
6 A; l4 }4 H; c. Q, D在 runLoadFscCache 子程序下增加红色标记的代码 . g7 z6 @" x }9 [0 S4 d
# d: y( u' z$ Y2 R3 ~- N1 ^# This will be the full path to the executable. / f3 ?# \9 y0 h1 _; N
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 7 b& O, N; ^; W" v
) X8 Y; y% t9 W3 R( V; x6 e& ?my $tcdbauser= "$ENV{'TC_DBA_USER'}";
# K. t) l `% g$ b( r% o2 U6 Cmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
2 g7 D- }6 p. I) \; P- c# Make sure we can find what we are executing.
, Y0 A& n: u! t3 L8 K. Q/ Edie "The ${exe_name} executable was not found at the following location:
4 L3 d' w0 k4 k; C) B# R${exe_path}\n" unless -x ${exe_path};
- E; u e3 c" n+ S3 e, m5 v, z2 [4 _: b6 u
# Figure out output information from command line input 9 E0 S+ W& O M: K9 }* C+ Y2 b
my $outputFileStr = $hashRef->{'output_file'}; . P& @: E8 D/ W; ?9 ~
my $fscUri = $hashRef->{'targets'}; ) k3 t. g# `1 x3 D: e% W& U
. p2 F0 @# t J- E4 }; n3 e* |' A# Check possible empty space in the string 9 x9 z, t/ q0 M# Y
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
5 y) y! v9 t/ p4 g& ]$fscUri = handleEmptySpaceInPath($fscUri);
! D; X8 g# X6 ~, u3 k% S* N/ o
5 P& v$ s* n" `) O: \# Add the extra options.
7 m; ?$ Z; l2 _/ S* {6 Lmy @args= ( $exe_path, '-f=load' );
. |# z6 z$ N& x# L" O. X; c; naddOption(\@args, '-plmxml=', $outputFileStr, 1);
7 H& Y5 {2 E% T- [: DaddOption(\@args, '-fsctargets=', $fscUri, 1); 1 f4 a( q2 K3 m9 H( E2 t5 \: k; j( g f
addOption(\@args, '-u=', $tcdbauser, 1); - N( ?* N, `; W; ~
addOption(\@args, '-pf=', $pwdfile, 1);
. I9 |' a1 }- f) i* K2 ? j
7 _; O% M) f, @" H" K) l6 Q! x
a* {/ b6 r9 v+ a: b/ {3 q1 n8 p6 f. |9 k0 B+ y6 H) }
|
|