|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
8 M$ t$ A1 e: w171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
6 U; K' Q Y4 u* O, i: o3 Y1 l1 G0 H; [' _8 q! G* N( G
问题
- J. d: d5 Q* D+ M9 B0 D, s7 |默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该# n+ s* |+ ]3 b' a+ N1 F
模块中的功能无法登录 7 M9 @2 ~/ I' d6 \
2 H- k% x" v) AERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the * O( U n4 ]2 M
user ID or the password is invalid. ! U0 }* Z. b' @3 g
$ D( H1 R. e1 J5 m% S4 t
方法 - j" ?& x. f, {9 P0 t
修改 populatefsc 脚本,增加登录信息 , t- S% E/ h6 k) h
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
' V* S3 B+ }0 n0 u8 Q2 aset TC_DBA_USER=infodba
7 S% H% k1 r4 A
5 b) p1 p' l! b: F# ?! v/ _在 populatefsc.pl 中 : % s. J- x/ Y3 Y C7 w
6 _' {; W7 x+ C; s0 L在 runPLMXMLExport 子程序下增加红色标记的代码 ; }+ j& a% G& W' @* h, Y
- Q8 z a# {$ f) S( n' A
# This will be the full path to the executable.
( F2 G; I; o% w- l- f- B/ Bmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 1 ~/ n/ A6 B2 E
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
( t* b. c, z' X% @7 ^6 q; _; kmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 6 o6 O1 |- n1 l' f
# Make sure we can find what we are executing. : k& b2 X% P& P! P+ d
die "The ${exe_name} executable was not found at the following location:
0 w4 @- B j1 ]8 |/ m; ?${exe_path}\n" unless -x ${exe_path}; % m# x) a- A3 w* n* }0 N
# |) R4 L, x; ?; p0 }1 \' q# Start building the command line. 2 h0 |% K j% e
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); $ J. B: h) [% X# e
/ L2 R7 v8 m/ ?7 J
# Take care of possible empty spaces in the argument values & J# s+ \4 N3 i# V K8 q+ B) P
my $outputFileStr = $hashRef->{'output_file'};
, M( d5 o3 K7 l" ^$outputFileStr = handleEmptySpaceInPath($outputFileStr);
3 p: H7 f$ s: H. K2 z Qmy $scoUid = $hashRef->{'uid'}; : ^/ [8 s( i4 D
$scoUid = handleEmptySpaceInPath($scoUid);
0 p6 Q3 `8 G ~5 L1 j& ?# R4 K" I% W) j
# Add the extra options.
. ]/ K2 u" O; b4 M; k( r6 B' A- E* vaddOption(\@args, '-xml_file=', $outputFileStr, 1);
2 t; F9 X$ W7 \2 {addOption(\@args, '-uid=', $scoUid, 1); 6 O) t k+ r; j$ i1 `5 G% u
addOption(\@args, '-u=', $tcdbauser, 1);
% m7 f( _2 M; B/ ]addOption(\@args, '-pf=', $pwdfile, 1);
1 C# e; O/ {6 N5 s. Z+ X7 w( u' \4 y, u2 A2 S2 b% `
在 runLoadFscCache 子程序下增加红色标记的代码 ( [ l9 @( ~! T& K X: q2 m
3 p/ o8 v- `4 O7 }/ J- \, d$ M
# This will be the full path to the executable.
- x; j1 }! I* ?& O4 ~! ymy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; % t- D3 R& Q8 ~, a% ?! p; j
* D( X( q$ {9 R I
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
; v2 m' C# ~' j$ P3 v! Bmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; * l1 G1 e% y3 G6 x/ G
# Make sure we can find what we are executing. 3 K) a9 E1 Z) p; F9 b* E; {
die "The ${exe_name} executable was not found at the following location: . Q7 g- T* Q- U
${exe_path}\n" unless -x ${exe_path}; $ s) R7 i0 `2 j+ `9 f$ d
, m. D7 n$ y1 a' X1 e
# Figure out output information from command line input 7 Y% E% ^: P) Q3 w/ S4 R4 g* n0 C
my $outputFileStr = $hashRef->{'output_file'};
9 N7 ]2 E3 t+ ~5 f. v. J3 [my $fscUri = $hashRef->{'targets'};
' U9 T0 V" q P6 H2 l/ X9 o
7 i) d; H7 \+ e% z8 W2 I: n# Check possible empty space in the string & L K! p" l) E9 Z
$outputFileStr= handleEmptySpaceInPath($outputFileStr); ; B6 w* {$ }! |8 T
$fscUri = handleEmptySpaceInPath($fscUri); 5 U: U: p+ N) ^7 l! o1 w
+ G' A( ^) D, u- Z; ]
# Add the extra options.
E- n3 d# m7 G0 M, n: Bmy @args= ( $exe_path, '-f=load' );
# O! B4 A" M* E9 AaddOption(\@args, '-plmxml=', $outputFileStr, 1); , v( F, i5 E4 w0 } h, p
addOption(\@args, '-fsctargets=', $fscUri, 1); 1 J @: S! H" X( D$ I) H
addOption(\@args, '-u=', $tcdbauser, 1);
# ?$ v9 _9 K8 B4 X: ~addOption(\@args, '-pf=', $pwdfile, 1); 7 M$ _' D& ]; j5 ?% q( x1 P
4 H0 S2 n5 b+ u$ O& j! U4 F& ]
0 F* s+ f" P, `, R' j) d+ U1 `6 |8 c' n
|
|