|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
2 z& Y5 ~! n6 D7 \# y0 M171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
% E% Z, X! Q2 E1 k. n0 S( ]- U
/ i! E+ }8 H. I+ S7 k问题
+ u" U/ W4 `5 _7 f0 c; @默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
|+ N2 V3 B( q& |3 T4 F模块中的功能无法登录 3 t. D/ L* S' O/ B, N
* {) Q. p4 k( b( r+ x: i6 {ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the & m* \9 [ M# p A4 N
user ID or the password is invalid.
0 `7 j; x6 d" _& E7 a- L! C) {, M1 a4 I$ P
方法 ! w; T* |% w. s9 `! V' X& @! P
修改 populatefsc 脚本,增加登录信息 . c9 R& L3 A+ ~
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
4 A v% b6 R- r K) fset TC_DBA_USER=infodba 7 s2 H+ `, L X; X! I! X
7 G) h( s, s% r+ J
在 populatefsc.pl 中 : $ K; @7 J- s0 z7 }/ j& j
: f" Y. y b# C/ ]3 _4 F在 runPLMXMLExport 子程序下增加红色标记的代码 ) T' R& ^, o. F
- b+ p( P! I% `
# This will be the full path to the executable. ! I: G) i$ s% [" v: h
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; T% N) {7 O/ }, L" E: N4 w/ \
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ; Q$ R B" |6 P: ^3 N( N/ g- \
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 7 t k3 b0 T3 W+ M
# Make sure we can find what we are executing. 3 b ~0 }5 r% v
die "The ${exe_name} executable was not found at the following location: 7 o0 @+ |5 g/ J; y' P! [* O& b
${exe_path}\n" unless -x ${exe_path}; $ }) u P4 \8 q( _+ I: W; {
+ S+ H$ |* s+ _# d# Start building the command line. 8 N5 d$ T# b$ I0 M* J+ ~" m5 x
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); & C: Q4 }* L1 A v9 V- P
p% z0 I3 ]: V; o
# Take care of possible empty spaces in the argument values
9 G7 v% Z8 d6 N/ g1 |my $outputFileStr = $hashRef->{'output_file'};
' J0 f$ l; `3 g9 [8 c$outputFileStr = handleEmptySpaceInPath($outputFileStr);
# U9 P( c; O3 E' ~, e! ~- Z N% v6 Ymy $scoUid = $hashRef->{'uid'};
; j* ^; B1 {! {8 t: h' W0 K$scoUid = handleEmptySpaceInPath($scoUid); 7 [1 @5 M; R& Q' n
; G& y9 H# [# `7 G
# Add the extra options.
' }; {. ?: `6 C0 v2 e0 z7 OaddOption(\@args, '-xml_file=', $outputFileStr, 1);
7 i) b% m( ~9 q! P' L S1 NaddOption(\@args, '-uid=', $scoUid, 1); 5 c3 o% _& V' l9 j$ c+ j
addOption(\@args, '-u=', $tcdbauser, 1);
8 S( O r; O, `# a2 c2 Q6 D4 VaddOption(\@args, '-pf=', $pwdfile, 1); 3 y( d, F2 V! i( X1 N' `: o
- Y& v0 |/ B# } h p4 l/ _# g1 {* w在 runLoadFscCache 子程序下增加红色标记的代码
6 q' ?. b S9 @# T
% I- g( Z' a. [7 j8 M0 h6 Y# This will be the full path to the executable. {9 m% c/ X6 l, S. H
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ) r. x7 m& Y" a" O
: ^% o8 d/ w! q0 C$ B& c& Smy $tcdbauser= "$ENV{'TC_DBA_USER'}"; & C/ a9 r$ ^7 X/ Q Q9 O
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ( A ^2 K; R( c8 V3 z8 w* `
# Make sure we can find what we are executing. ' u, ?) V9 s( W! [) @0 h
die "The ${exe_name} executable was not found at the following location:
, Q# \+ r( l: U/ ~; G$ H6 u${exe_path}\n" unless -x ${exe_path};
0 {& s! L; _, h0 H! f0 ?! ~
/ ~3 D' F* ? ]% h1 Q: r6 y7 I# Figure out output information from command line input - ~# \/ G" `4 Q5 @. `
my $outputFileStr = $hashRef->{'output_file'}; 8 n: f1 n3 \* Y0 d K1 G" Q
my $fscUri = $hashRef->{'targets'};
6 ]/ O" { K, P& N+ Q0 p# y" E
; I4 {. J# C2 W% S7 A: ]# Check possible empty space in the string
1 Y- T3 n5 \ w, T+ K/ v$ E1 c$outputFileStr= handleEmptySpaceInPath($outputFileStr); ' `: g- P* s( ~* f c# j0 I8 Z
$fscUri = handleEmptySpaceInPath($fscUri); ) e$ J( v' U9 F; c, A: _
- `; C5 A* Z) I$ m
# Add the extra options.
: v3 v* S4 L% F8 G9 ?my @args= ( $exe_path, '-f=load' ); . y& R0 D. ^6 k( N7 s
addOption(\@args, '-plmxml=', $outputFileStr, 1); % N2 q( e( K) i; X; `4 i! N0 `. Z
addOption(\@args, '-fsctargets=', $fscUri, 1);
3 Q1 t7 C3 S! e4 t/ L/ [addOption(\@args, '-u=', $tcdbauser, 1);
& L, |) d7 S- H( k4 O/ v b' naddOption(\@args, '-pf=', $pwdfile, 1);
$ C- L+ U2 Y4 R4 N# z8 \$ o9 X8 z! Z8 q; _3 v
. F) {3 C+ |! B0 ?# K- j4 n
) F1 p, t/ I5 |1 H6 D# V( ~: C
|
|