|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
- d$ G# G# t; Q
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 * A7 s9 j, u% K1 S0 o
. ]# R! f) V6 w" ~( y" N. f+ v问题 : C8 Q2 }& v7 p9 q5 \
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该5 K/ Z" C$ Y% H, e U0 E
模块中的功能无法登录 + b5 U: j9 C: y+ K7 P7 V) ?
* d; Y- ^, r( | S) x" W+ K; A2 {+ q+ W
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
/ a+ r# _& w0 `) h) w! e8 duser ID or the password is invalid.
w9 C5 E/ e- ?* a, l4 q* e+ O$ y
方法
3 X- S* p9 D8 P2 d; _修改 populatefsc 脚本,增加登录信息
0 T- \( [; h% p- b8 d) C在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 : S; ^) v$ P# k
set TC_DBA_USER=infodba 8 b- @% q2 Y( A8 R& f) F W
6 P# e' [ h- T0 t2 p) Z% E/ V# N在 populatefsc.pl 中 : 4 f% Y3 ~4 h+ m
0 }; Y; f. y( b8 k
在 runPLMXMLExport 子程序下增加红色标记的代码 ' j/ W6 J7 z0 F7 e4 `/ o F
: d7 |, A2 z6 v& ~" o# This will be the full path to the executable.
6 ~2 g, m, f) S3 ^my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ]" X% }3 e H3 X
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; " E% h+ p7 S* O, |+ g2 X) Y& Q
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; & ]3 F$ j3 C/ a( A( M) t5 ?
# Make sure we can find what we are executing. ; c- j; M$ n+ f1 Q3 O
die "The ${exe_name} executable was not found at the following location: : G# M. [' `' D# B
${exe_path}\n" unless -x ${exe_path};
5 y& z- o& \. X) |" R+ X: G# L* z0 R: m
# Start building the command line. + v! C* ~/ G* k+ ~
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 3 v5 d! }. J5 B- x
" {2 {' b& ~' u. I9 ]2 x
# Take care of possible empty spaces in the argument values * Z( e( o+ H3 T7 ^) l
my $outputFileStr = $hashRef->{'output_file'};
! o/ t7 K7 \. h) E% f9 g$outputFileStr = handleEmptySpaceInPath($outputFileStr); 7 ^4 a) I a$ m' J: @" Q5 @
my $scoUid = $hashRef->{'uid'};
, q6 A8 @/ V4 y+ q& Y$scoUid = handleEmptySpaceInPath($scoUid);
) ^& B' I% J# H$ n) ~9 @! e
5 K1 r! c5 z# ]- n& L. c( k3 O# Add the extra options. 2 } U" Y$ h7 \7 g
addOption(\@args, '-xml_file=', $outputFileStr, 1); ! }4 z& B1 ^+ a5 l
addOption(\@args, '-uid=', $scoUid, 1);
# \3 K6 `2 h, X, u V& m/ paddOption(\@args, '-u=', $tcdbauser, 1); 7 Z( i5 ?) K0 u/ O
addOption(\@args, '-pf=', $pwdfile, 1);
1 a, J5 Z7 f% M( _/ e2 `; n6 w6 N9 w' ?8 ^0 Z
在 runLoadFscCache 子程序下增加红色标记的代码 - _0 z1 H2 Z' t4 K
0 E% k1 n, C1 b2 d
# This will be the full path to the executable. 2 {5 W$ ]4 A" H5 F
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
$ Y) Y) Y5 e- F( W' Q. i- t# R
" y" z+ r* D; P4 v/ u- Tmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
0 R6 F5 h& u# S1 z, d1 dmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; - H# g$ Y: p8 ~2 q& Y
# Make sure we can find what we are executing. . ~$ u# @$ G" Y
die "The ${exe_name} executable was not found at the following location:
% T7 g! j6 b5 t& ~! K6 x2 C8 [${exe_path}\n" unless -x ${exe_path};
) ^9 W) d8 g- @5 L u. y. ^
+ \2 |8 F* }+ @ ~& h, s y# Figure out output information from command line input 9 ~/ h9 j- `6 g, {. E
my $outputFileStr = $hashRef->{'output_file'}; 3 ~. N5 T# k! p
my $fscUri = $hashRef->{'targets'};
# Z7 K5 p/ M5 c8 w9 i+ u: C
2 M7 ~: H: o& J2 Z" ?5 U% z( p# Check possible empty space in the string
! B5 U ]/ {) U. g Q$outputFileStr= handleEmptySpaceInPath($outputFileStr); / g) v/ n! z) U9 O( ]1 K
$fscUri = handleEmptySpaceInPath($fscUri); ( H7 X: {$ G }
8 m5 q* x. [1 o; ]% k5 s9 I$ ~8 n
# Add the extra options. ) [8 ~4 N( _* F6 z: p( b" v/ c: s
my @args= ( $exe_path, '-f=load' ); ; |5 m% c3 R* |9 ?6 N: _# s" W
addOption(\@args, '-plmxml=', $outputFileStr, 1);
$ p5 ]7 Q: p7 U/ C' ~ E/ OaddOption(\@args, '-fsctargets=', $fscUri, 1);
2 f+ H+ v; F8 j5 l7 k" [1 c GaddOption(\@args, '-u=', $tcdbauser, 1);
3 R9 `0 u' e* v! maddOption(\@args, '-pf=', $pwdfile, 1); 1 x8 `. L3 X' N, e
0 K$ b, I* L# q" Y% O3 K
+ K5 s' f2 F4 M3 z: w8 j( z
, x. F( p5 _1 W @- k |
|