|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
; L5 {; D( @ T( L: L" {) [; f0 N171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
- {$ o' s; X4 L$ _
7 e" F* x7 S6 S j; O$ p: s/ g问题 d9 V n/ u+ t( {, c0 t9 |) ?5 z! G
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
3 L7 \( |4 A6 N, Q( l, ]0 Q. F模块中的功能无法登录
4 V4 J, }! B+ P
1 w- o2 y9 z( h& B sERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
. @& I( g- d" o5 Luser ID or the password is invalid.
, H" c* \' }+ ?" J- M6 m7 z7 H8 J) p7 Z d/ o, W& w
方法 # B$ c( w8 U& b3 L* j# Z* J
修改 populatefsc 脚本,增加登录信息
6 z) k+ |7 O: V3 X! K在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 % D( [+ }' H9 N; L7 C a$ o# o! q
set TC_DBA_USER=infodba
& P% [# ]$ W' x" B3 f( Y0 Y, R4 @1 b/ p( U) w9 ~
在 populatefsc.pl 中 : * Z* o) h4 W* P V- I
+ J; g" s; d9 E7 x在 runPLMXMLExport 子程序下增加红色标记的代码
' ^4 D" ]" J# i U0 D3 {$ H+ u# w- I2 S3 ?: [) U
# This will be the full path to the executable. . J6 K" e/ z" i5 z4 J
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
8 q9 X2 t& l3 v" M: ~& x7 Wmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; , d Y1 q2 g* p) X. x
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
: h5 Y8 A$ R7 \0 ^, ^( P# Make sure we can find what we are executing.
6 Y/ J- C! @9 V7 \4 R7 D" @die "The ${exe_name} executable was not found at the following location:
1 d; }5 ~1 E, N# m! O* E3 v${exe_path}\n" unless -x ${exe_path}; # F& M) U* f' Q; `
0 n% k' r) ~/ s. k/ o" H
# Start building the command line.
0 j0 e+ F8 Y- Jmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
; g' i8 v0 a, X x, S' q7 a, K) u Z0 I+ g/ c: E
# Take care of possible empty spaces in the argument values
: Z; i- p, k3 k$ l0 m8 P; }my $outputFileStr = $hashRef->{'output_file'};
" i: ]: m2 y: @+ ^! i; ]. d/ i$outputFileStr = handleEmptySpaceInPath($outputFileStr);
# h3 q6 ^$ w9 U: C4 M( Tmy $scoUid = $hashRef->{'uid'}; ' T4 I+ w |& z1 G4 l
$scoUid = handleEmptySpaceInPath($scoUid);
$ a+ S2 R/ L9 ~8 f6 G+ e8 q4 w- e1 f p* f" F8 R( w4 S
# Add the extra options.
[/ M) `. U; i5 {0 k$ SaddOption(\@args, '-xml_file=', $outputFileStr, 1); ; v$ j L; y$ ^8 s
addOption(\@args, '-uid=', $scoUid, 1);
$ l2 ]" n9 Q* naddOption(\@args, '-u=', $tcdbauser, 1); . V b+ b9 Q+ m7 F& | T
addOption(\@args, '-pf=', $pwdfile, 1); " {3 _* ^% F$ D- N& }! c, p
2 Q+ T, I |( I+ b3 d- N, i8 V0 h
在 runLoadFscCache 子程序下增加红色标记的代码 5 n8 @ {8 P* \+ ~0 U
. z: d/ W4 p! H( X- w# Z# This will be the full path to the executable. 2 F1 @8 O8 C, d8 Q- B, n
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 4 s3 z3 Y2 {: i, J4 `
) U1 u# [4 Z+ Rmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
/ H0 U/ H- ^) u# nmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
; F( l2 G8 ^- l/ [ l8 X# Make sure we can find what we are executing. $ t; V9 l$ o( f; O2 ]* ^7 e
die "The ${exe_name} executable was not found at the following location:
+ `. Y7 C! R" h) W. c${exe_path}\n" unless -x ${exe_path};
+ @ _ Q1 L* R! m" M. ~) Q! r6 T) M
# Figure out output information from command line input
?7 H' R: L; @0 s' g8 cmy $outputFileStr = $hashRef->{'output_file'}; ' _' y9 Z" a' Y# i$ q2 \
my $fscUri = $hashRef->{'targets'}; 3 z' y' j: e0 [% L% ?8 @
7 P, w# J0 [6 y# Check possible empty space in the string / f' R. g2 A$ `0 r5 E* X% @
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
9 Z( s& w$ m8 N$fscUri = handleEmptySpaceInPath($fscUri); + i% x7 C" }- @7 ^3 t
' T O9 A% I3 K; H' D9 B# Add the extra options.
- ]8 U* `) z% {4 E( u7 Kmy @args= ( $exe_path, '-f=load' ); : v. r: O) q2 M/ N. G
addOption(\@args, '-plmxml=', $outputFileStr, 1); % _, O- o$ }6 }. |+ w+ g' X6 \8 z# r
addOption(\@args, '-fsctargets=', $fscUri, 1);
5 R) n; _5 W3 e: I, h9 q9 DaddOption(\@args, '-u=', $tcdbauser, 1);
4 F# V, \, O4 ]* v. xaddOption(\@args, '-pf=', $pwdfile, 1);
* y0 R4 O0 s6 d
- o" y3 M m9 Z1 k
' H7 P' E' ]0 n6 \5 }3 Y) `/ P! y3 o
|
|