|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
" h' y0 n6 Y1 u1 j+ P171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
; j0 X$ e4 b) S; f d: S
/ `# _ @: h! r& a问题 # [. @* r4 |6 ?1 Q# S
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该; G( F D! S, Z
模块中的功能无法登录 / B% v/ a+ R/ a& ^
}1 H' M" y; j) W K7 j1 ] Z
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the / _/ M/ Q' z7 s8 f2 L1 L3 h! A+ `
user ID or the password is invalid. 9 g. y# F o* H9 S
+ G: ~( Q6 q, B+ b/ F1 s0 f
方法 ; S8 R3 t5 V6 G& R2 U! ?
修改 populatefsc 脚本,增加登录信息
% H/ o* R* a. U6 f8 S* u: q在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
) q2 T) ~6 }0 ~% M2 Uset TC_DBA_USER=infodba $ ^ u! U% a6 s8 W& ^; u. u6 b( `
" S/ A7 U' T8 q0 `$ x6 D
在 populatefsc.pl 中 : * h. U6 {- t3 i$ {$ ]
* H& b9 g0 D0 g+ H4 t! `7 o在 runPLMXMLExport 子程序下增加红色标记的代码 . Z/ ] T6 h6 c- F6 e
7 w( \3 J6 k7 n u4 @ U( @
# This will be the full path to the executable. & l2 W6 h1 O1 I6 v
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
" N4 X# B, c8 a/ i& Imy $tcdbauser= "$ENV{'TC_DBA_USER'}"; 7 B! i; u8 |. Z7 ]# u
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ) a& K0 S# z" y3 }6 o
# Make sure we can find what we are executing. # x' R* A2 v5 W0 d6 {
die "The ${exe_name} executable was not found at the following location: 6 M) R/ [5 K6 U7 L* X/ P$ P- Q: A
${exe_path}\n" unless -x ${exe_path};
! ]6 k" z) D; `# m! c9 P" g* E2 F. f$ F
# Start building the command line. 7 c3 N; w7 X8 p5 D; M5 ?# l; i4 y" m5 R
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
3 U. q/ k# k1 m& f
2 L$ d! ~# t6 R m1 x- X9 W# Take care of possible empty spaces in the argument values 8 S( J2 A: ]( q2 @* }" R
my $outputFileStr = $hashRef->{'output_file'};
V# q" D( B. P2 a$outputFileStr = handleEmptySpaceInPath($outputFileStr); 3 Q1 N$ F S3 G& H% i P+ v' H
my $scoUid = $hashRef->{'uid'};
) j& E. O9 E& [1 G$scoUid = handleEmptySpaceInPath($scoUid); ! c* N0 p( v0 Y% F/ m4 h5 H5 t [
7 R& f* d7 `+ @
# Add the extra options.
8 z" J5 i- ? z9 iaddOption(\@args, '-xml_file=', $outputFileStr, 1); 8 @* u4 X% z0 f' o4 C! t
addOption(\@args, '-uid=', $scoUid, 1); 7 k2 s. {' |' g: I ], T
addOption(\@args, '-u=', $tcdbauser, 1); - b8 f3 v9 I( D( B9 G
addOption(\@args, '-pf=', $pwdfile, 1); 1 r& J1 e* } x: x+ @
% e% [8 ~. h4 q2 {+ m/ c0 ?在 runLoadFscCache 子程序下增加红色标记的代码 4 f3 }& T @( O" |# s# n# \& h" B- G
1 H' `9 ] i: \) [/ e( K: k
# This will be the full path to the executable.
6 t7 i o: R; b" Ymy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
o! O1 j$ n7 }5 y* R- n* P# s' `; ?; V0 Q( R! x7 w
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
! I- N# A: W- a+ i# pmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 6 S ~. x$ i$ u7 j, C+ @) \) G
# Make sure we can find what we are executing. ( m0 G$ G! y+ W1 l' Q/ r2 j/ [! p
die "The ${exe_name} executable was not found at the following location: 9 a- l# @' q" M
${exe_path}\n" unless -x ${exe_path}; . G2 C, |) T: P! C5 |8 I/ ?. F
p: m* l7 q& _# Figure out output information from command line input
: v; J# J0 l& a( ?4 \, O0 ?my $outputFileStr = $hashRef->{'output_file'}; ) t) R! |( v) N* A- L |- W7 I
my $fscUri = $hashRef->{'targets'}; 0 M7 j% O% |1 C
8 {/ s3 k* g g$ N, z' O
# Check possible empty space in the string / G7 {: N- N8 v2 K6 r
$outputFileStr= handleEmptySpaceInPath($outputFileStr); $ ]# d& g7 C0 d) {8 n! t
$fscUri = handleEmptySpaceInPath($fscUri);
$ P/ Z. A& ~. j7 x" K4 c
% N: @% ]( }& |7 K6 l+ u6 n# Add the extra options.
; |0 x6 x- a0 t1 Z+ E6 F" Y' Tmy @args= ( $exe_path, '-f=load' ); ; D( A" z) G; K {
addOption(\@args, '-plmxml=', $outputFileStr, 1);
1 j D% [: n6 D+ n+ l6 F0 RaddOption(\@args, '-fsctargets=', $fscUri, 1); * Q+ G! t% Q( G! a
addOption(\@args, '-u=', $tcdbauser, 1); 6 ?9 m* q; T! _5 v; k H; P
addOption(\@args, '-pf=', $pwdfile, 1);
) J z) X# i( B1 P4 r b6 T4 v6 e7 N) j$ X4 Q+ Q+ K
: p1 B) ~' R; N/ u. J8 j9 ?' }
. D. a; S3 H1 X8 [; \% Q9 _: W! A |
|