|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
( k" F' y; b3 O, R* o171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 % h: T* W9 c0 I9 G& w7 D
& I5 K& A, G0 a' c! I" r u B
问题 ' T8 \6 J8 l; j9 Z v+ ^
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
2 i0 E; |! n" C6 c7 _ A模块中的功能无法登录 t7 g0 Y' |& \7 A( X/ a
. j# \) ]# ~- [0 R9 r; ?% T
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
1 V! d3 f: J" |9 cuser ID or the password is invalid. - S5 X- s9 K& Y3 [+ x# W1 |. Z
( Q4 H3 J' x; ]) @
方法 + J% f$ ^1 q; D- t0 L9 |5 `
修改 populatefsc 脚本,增加登录信息 1 ]1 A+ @4 T2 l! L
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
" u9 F* T% V7 k2 Qset TC_DBA_USER=infodba F% n6 x0 @: D
8 @ o( W/ T1 F8 P7 e; V( L4 ~
在 populatefsc.pl 中 : R0 [/ J& O) x
/ u1 X% l/ k4 N, k5 m
在 runPLMXMLExport 子程序下增加红色标记的代码 " V* Q% W0 Y6 B! ]
% i7 |+ p B+ Z/ Z" ~# This will be the full path to the executable. 2 h, i9 _4 ^! u* x3 q" Z S( `
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
) E2 h2 j- Q) b+ }* S$ y2 H1 xmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
" T# r: z D) m6 Qmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 6 m& I" P H; X/ j g; T
# Make sure we can find what we are executing. , X) w$ H: R- Z+ e0 O) q
die "The ${exe_name} executable was not found at the following location:
. _/ L9 H' y1 U' N, G) H p- u${exe_path}\n" unless -x ${exe_path};
! w# ^4 u8 F* L# G. ?5 Y. P. N; _( m0 K* D5 j
# Start building the command line.
" s' h5 G# P1 l8 I' n5 Jmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); " J6 E2 q- X$ {3 l
4 [/ H5 `+ f+ A# I# Take care of possible empty spaces in the argument values
- D4 h, `& j' smy $outputFileStr = $hashRef->{'output_file'}; E/ e) W9 M( f5 z
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
: @! `: B/ _( c o6 T* ~, X' Zmy $scoUid = $hashRef->{'uid'}; # Z+ z8 D- m6 \. `
$scoUid = handleEmptySpaceInPath($scoUid); 0 `6 d3 s1 I& ~, S4 C8 B# Z5 ?
3 h5 |, \" X& T1 b E$ V$ p
# Add the extra options.
+ W1 J% [: g. ]! a, O# a) uaddOption(\@args, '-xml_file=', $outputFileStr, 1); 0 s1 i, v+ l% G3 j5 A2 ^. Q0 y" }+ U
addOption(\@args, '-uid=', $scoUid, 1); / |/ z9 s* r* i' f% j* e3 d) `
addOption(\@args, '-u=', $tcdbauser, 1);
3 T9 a7 S; n: |' H; xaddOption(\@args, '-pf=', $pwdfile, 1);
0 ?( P! S' z/ O$ _; F6 a
+ F5 S9 ]( S3 d, `" ]9 S在 runLoadFscCache 子程序下增加红色标记的代码 1 |. K1 y! V2 G7 Q8 r/ h7 w0 }
% Y3 Y5 _- p2 |) _+ S, O* C# This will be the full path to the executable. $ w' f& w1 v1 {4 O, B8 {
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
. M4 ?* s3 D- I+ x" @: S0 b! i+ ~+ \8 B* Q- x3 {
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
! c5 }8 y7 v" r' ^. ]: H; z9 Amy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
2 P: ?+ M) P _* T# Make sure we can find what we are executing. 2 c3 u& F" }, \4 d
die "The ${exe_name} executable was not found at the following location:
! W! r% ^7 f4 J/ [1 d2 j${exe_path}\n" unless -x ${exe_path};
' k( }( O: N! c! S$ n4 ~2 K3 b) }
# Figure out output information from command line input 3 y) ^1 I7 C' A8 d) y
my $outputFileStr = $hashRef->{'output_file'};
# n& Q% u& V' w8 F1 k7 \my $fscUri = $hashRef->{'targets'}; 7 ~3 h( ]4 O, U7 }) N; d
, g9 g/ ]4 ^2 y" W5 _& Y/ B# Check possible empty space in the string
: c) j1 b6 y0 T/ k) o) K5 ?$outputFileStr= handleEmptySpaceInPath($outputFileStr); ' ]* P% ?' E% Q4 p
$fscUri = handleEmptySpaceInPath($fscUri);
# u/ e6 `8 m6 |/ S# f7 u# o
% L1 k* X; {' q) I# f& `# Add the extra options.
, F- u$ S( R& d9 V2 hmy @args= ( $exe_path, '-f=load' );
* |9 H1 K0 K* ^; r4 laddOption(\@args, '-plmxml=', $outputFileStr, 1);
& G: U% S+ K5 v8 _ [. MaddOption(\@args, '-fsctargets=', $fscUri, 1);
: @: d" l, l8 ~( V8 U/ q, faddOption(\@args, '-u=', $tcdbauser, 1); 9 _6 d3 U( V! C$ `$ P
addOption(\@args, '-pf=', $pwdfile, 1); N" Y' l" L4 A; s1 m) c
% e% T8 {+ X2 c/ }& V5 k3 S, ]
1 B6 B ]* k+ r& c6 R* ~
. n4 _7 e% k1 j2 c+ k4 k5 G: I |
|