|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
* b; e* L3 m! c* m) T171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 - B* p; j& o/ y9 \6 E8 U* Y# @
G$ o0 g2 h* K% i( K% G
问题 : W) [0 t* r- A, ?
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
0 J( O- b# x0 z4 s模块中的功能无法登录 + R* ^( ~8 M" d! W
. c+ u8 K1 c B& O/ K$ |+ }' l3 ?- M
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the ' l! t; ^% T4 k& ^
user ID or the password is invalid. 0 n' p! ?5 r9 O. J* K. H
) Z( q0 L2 B+ ~- m方法 2 }, J# k" M. X
修改 populatefsc 脚本,增加登录信息 / A" D( M( ? q1 N5 u0 ]
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 1 v& y/ F) t) H9 F- ~: o
set TC_DBA_USER=infodba 5 T [& b: P( t. c- X3 Q
4 r1 a) ^0 @, H- p' O在 populatefsc.pl 中 :
; S' X5 X5 W1 B9 A- a
9 ^7 N- |) Z( z9 M在 runPLMXMLExport 子程序下增加红色标记的代码 " @- t/ i! r7 | ?6 H9 J$ J( b k" Y
3 z$ j" w7 {9 E7 w# This will be the full path to the executable.
8 x9 N1 |, o8 gmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
' n0 ^, x8 b" f/ mmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
8 D4 a6 v( n) [ y* ymy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 1 T+ c) X: H7 `* _1 O
# Make sure we can find what we are executing. / B) t) ^9 J$ U1 ^1 m7 c% I
die "The ${exe_name} executable was not found at the following location: $ B0 b5 b% h" k) y8 Y; {
${exe_path}\n" unless -x ${exe_path};
) s: Z( ?" G4 M: E: ~, ?
* J' g: N; D. m! }8 J/ K5 Z# Start building the command line. / C- l6 W5 n8 a( `
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
3 O+ p8 w! A3 O! f% t1 |7 a h& [; q3 Z3 D; q- j0 }4 D2 I6 t
# Take care of possible empty spaces in the argument values
6 p( G1 V3 j1 Q( s7 pmy $outputFileStr = $hashRef->{'output_file'}; 3 V2 O* R. p6 @
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
3 \% i H+ P4 A+ M3 Kmy $scoUid = $hashRef->{'uid'}; # p# M8 P8 h% \3 \2 z5 e T
$scoUid = handleEmptySpaceInPath($scoUid);
' W, k* q! A! u& d% X4 r. ^$ m2 `1 |$ w+ @0 Z
# Add the extra options.
7 }' i+ o9 R& r; T% N0 R* U5 aaddOption(\@args, '-xml_file=', $outputFileStr, 1);
7 D4 s: P" E0 X0 [addOption(\@args, '-uid=', $scoUid, 1); ) F. S3 O# X7 n
addOption(\@args, '-u=', $tcdbauser, 1); : _8 A- [. s) L5 H
addOption(\@args, '-pf=', $pwdfile, 1); ) q+ z& b% `4 B% U/ A) p
, k; V5 X6 p$ R6 h
在 runLoadFscCache 子程序下增加红色标记的代码
@: Q; Q; ~5 ]& P$ C6 t0 a) A/ \2 n
# This will be the full path to the executable.
) v( A: K1 D, L3 ymy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 5 }- _- u5 v) V, n: h4 D
% M p$ O) C! D, p- f! i+ Cmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; + o# O; {; r& B4 l* L" L
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 4 W+ V! n7 p& ~* |- `3 P2 ^' O) l
# Make sure we can find what we are executing.
8 a4 y& Q5 F- ?8 p; P5 t4 f7 Vdie "The ${exe_name} executable was not found at the following location: + ~0 l9 ^3 n8 l2 o) h3 }# C8 o4 ?- d
${exe_path}\n" unless -x ${exe_path};
1 }/ m; f- h0 P8 a- J2 n( e; H8 R. h6 P
1 N+ ?' ]1 C! {# [- D$ M# Figure out output information from command line input
+ F/ Q9 ]3 o/ X2 y3 Omy $outputFileStr = $hashRef->{'output_file'};
8 P5 P; D7 w e: \) vmy $fscUri = $hashRef->{'targets'}; ) U0 p" W) o8 k% N) L3 Z8 g4 R
4 F1 r6 g( E) E; N% q* q9 Q# Check possible empty space in the string
1 o: P6 ?6 W3 R, l+ {6 [$outputFileStr= handleEmptySpaceInPath($outputFileStr);
5 C# L% X% |3 {$fscUri = handleEmptySpaceInPath($fscUri); 6 j s; v6 J' j
% n/ R) h+ J. B* c$ Q! O# Add the extra options. ) S# w- b, h9 F/ S5 K
my @args= ( $exe_path, '-f=load' ); J; a s. y" S; H) S" J3 b
addOption(\@args, '-plmxml=', $outputFileStr, 1); 4 T$ e$ h0 _. S: x- ]8 ~
addOption(\@args, '-fsctargets=', $fscUri, 1); ' U$ S' F' o$ d* z# c
addOption(\@args, '-u=', $tcdbauser, 1); , r( |6 ^2 t% n: Y9 y. q
addOption(\@args, '-pf=', $pwdfile, 1);
# Q3 W0 P Z' j( D5 M
8 j+ u, o( [: T5 D3 L( b# m4 h" q2 W4 L" C8 \5 Y# p) k
! F* L; H* E( t$ a3 [( U
|
|