|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
( H* o* v. A5 F+ p# F1 m+ K/ c1 ~9 D171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 % }& }/ X( X/ o) T
; r& C* R' { o
问题 + Y& c- n3 ~! @+ m( z3 ]+ P
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
2 ^+ U+ W) ]2 C" q模块中的功能无法登录 0 r# |4 S$ k/ N) x, J( A
% _2 `( {& q$ W" X- fERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the ! `9 _# B* x0 \* y- A
user ID or the password is invalid. $ B* G* l0 ~9 L
6 E- C6 }$ l7 M5 b8 h* N
方法 9 S. S6 F. H$ P. [0 f& x$ L, _( v
修改 populatefsc 脚本,增加登录信息 ! H& R+ q/ x/ S0 e% h8 J* c
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 " P: `5 ~, F$ g" p9 D6 v
set TC_DBA_USER=infodba % [$ W: `2 {9 P+ h% f7 c9 C0 g
2 i' y1 Y6 Q/ |
在 populatefsc.pl 中 : " K8 b0 I: _0 U' f
5 b$ D. c. t; }
在 runPLMXMLExport 子程序下增加红色标记的代码 + H6 N4 T8 }$ {, @6 m: d! n
" K, w1 U: W/ I/ L. i7 W8 x5 D
# This will be the full path to the executable.
: P" y6 v- u2 l7 Tmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
: t9 t& q, N# h6 O# ^my $tcdbauser= "$ENV{'TC_DBA_USER'}";
1 p- Z! z9 u& Q# w% E. y' @my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
- \! D& [! N+ |! C# Make sure we can find what we are executing. 8 a" [, A; E q6 y6 i( `
die "The ${exe_name} executable was not found at the following location: 1 S7 W4 a. w9 S3 \/ E
${exe_path}\n" unless -x ${exe_path}; % T5 s/ Z5 L/ H9 m
: R+ p0 b& m* d( B8 J
# Start building the command line.
s, [% H+ Q8 E; H; b+ O9 zmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 8 O) q C$ N0 [& O* l
! N8 g& _) X6 o! l1 V* V7 _
# Take care of possible empty spaces in the argument values
6 ^+ {' g+ P l: ~. Q9 F" Lmy $outputFileStr = $hashRef->{'output_file'};
2 T# z3 O ~( R4 U. d! {( K$outputFileStr = handleEmptySpaceInPath($outputFileStr);
b, G+ U& l5 V& {" X7 n$ }my $scoUid = $hashRef->{'uid'};
6 R D( |) J( _$ p+ x, o+ i2 S$scoUid = handleEmptySpaceInPath($scoUid);
- o/ @ i$ `1 ]5 _. V1 C; ~5 d/ \& D
* J. G6 X" N8 z# Add the extra options. ( |, }: z. W- f2 q @
addOption(\@args, '-xml_file=', $outputFileStr, 1); 2 r, W0 ]- P5 ]
addOption(\@args, '-uid=', $scoUid, 1); 9 E- H2 B2 H" o d) F- b% |
addOption(\@args, '-u=', $tcdbauser, 1);
, J4 `& k# f: ?addOption(\@args, '-pf=', $pwdfile, 1);
& B4 }2 t, R( U* x! M
+ \0 f4 p4 j* G* F在 runLoadFscCache 子程序下增加红色标记的代码 ' |1 b$ ~0 U& F
* n6 Y3 T9 H8 I4 l# This will be the full path to the executable. : r$ n2 `$ G. j. P
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ' b) V, z9 m* j
- y6 C- [0 k8 E% \( Hmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; ! S) R0 v( N9 F+ ?) i0 d3 k8 ?
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
/ d0 p5 `# R( B+ ^# Make sure we can find what we are executing. ) X$ R/ s5 N1 i) }6 ?7 r2 ?
die "The ${exe_name} executable was not found at the following location: 9 _- m) G; r. H# o8 D
${exe_path}\n" unless -x ${exe_path}; $ ?& t( d6 ? D/ Z1 j
7 @2 T0 s" E! i# Figure out output information from command line input 1 ]8 n5 i. u$ p* g% S# ~* M7 H, B
my $outputFileStr = $hashRef->{'output_file'}; ! l2 ?: b/ G6 V; S& b7 I9 X: |1 w6 k- R
my $fscUri = $hashRef->{'targets'}; , ?, }1 h/ s, Q1 }+ I* `
) d( B1 a4 r( ]9 A9 @! I# Check possible empty space in the string 5 B# V4 Z, w6 E" W8 c" T! _
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
2 K/ F2 M7 p% Y8 M* D$fscUri = handleEmptySpaceInPath($fscUri); 6 v O8 q1 r- O5 W6 h
/ }# R' E' `! f+ N2 _( w# Add the extra options.
- g |9 a: G! M7 i* V. Umy @args= ( $exe_path, '-f=load' ); 3 E4 q s3 |* r5 j7 s+ Y
addOption(\@args, '-plmxml=', $outputFileStr, 1); # v2 o& B' a6 E
addOption(\@args, '-fsctargets=', $fscUri, 1); # @+ p6 Q7 d8 {6 o; {, w& G
addOption(\@args, '-u=', $tcdbauser, 1); 1 n; R9 e# ~4 {$ g ^8 k
addOption(\@args, '-pf=', $pwdfile, 1);
7 p2 l* s; a+ f9 x5 A% T) @2 t6 A: t/ Q
- l- F. ]8 D2 V+ {+ F' w1 V
/ g* J1 I, c+ o6 f5 D5 B |
|