|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
9 H9 z* Q `9 e) w" Z171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
' a6 d z+ }; v
: u0 b2 M8 G! c4 w问题 6 I& ?" Z8 B/ S1 x3 v' ]
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
+ l/ w3 _) k8 x3 h: u模块中的功能无法登录
* ?- C6 b2 ~) I; L0 o; W
. e5 x* k( Q- i8 j% W! LERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 1 U5 N K! ` Z* Q% E: s
user ID or the password is invalid.
# R# p% c, Q& V$ Q" k8 N: U% s1 T& L7 t, \
方法
. y' g$ z$ o& ]! W2 H- f3 n修改 populatefsc 脚本,增加登录信息 9 {8 o6 L5 Q! _/ x, i) [0 R0 i" G
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 & e" T; ?! V ?3 Q P& j' g
set TC_DBA_USER=infodba 1 i9 ^& l7 Q; e W
- K, S8 `2 e4 z$ A9 i: |在 populatefsc.pl 中 : . I# X. J, R, ^6 X+ @, W
8 ^5 c. ~: N- ]& d; n( W在 runPLMXMLExport 子程序下增加红色标记的代码 6 d" ^% F" G1 s- f* d
8 u4 L+ f: c6 J, M
# This will be the full path to the executable.
! i6 h4 u% V% P% Zmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ' q' @5 _: K5 {+ e* _' n- j
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; % c2 Q; |% ]( W% [/ T1 e
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; / N4 _- ~; H5 q' l) C" D
# Make sure we can find what we are executing.
; l+ L c, w3 p" h# \die "The ${exe_name} executable was not found at the following location: 0 k- G9 S+ F3 [. P9 _
${exe_path}\n" unless -x ${exe_path}; ' `) K, x& h% [5 ?. G: c
8 n' Z2 T0 Y5 T+ R
# Start building the command line. & ?7 c' U; {' w4 j7 C! o0 \/ |
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); . s% Y8 I2 |1 _/ l2 k6 Y2 Z
0 a; ]7 L: u" a9 S; M+ e
# Take care of possible empty spaces in the argument values
0 e5 a- ~$ v# a/ _( I0 cmy $outputFileStr = $hashRef->{'output_file'};
" q G" p3 F- I$outputFileStr = handleEmptySpaceInPath($outputFileStr); 0 G7 b# t8 e: ?! N" `! C( A k" D
my $scoUid = $hashRef->{'uid'}; . z G2 x+ b+ |* {+ ^
$scoUid = handleEmptySpaceInPath($scoUid); ( ~* K) \+ h# U0 L6 k, x- `+ M
, J9 Q x1 H, a+ {4 |
# Add the extra options.
. s* n4 C6 T) _9 [0 @, yaddOption(\@args, '-xml_file=', $outputFileStr, 1); 6 J$ ^( v7 l# n' k+ \
addOption(\@args, '-uid=', $scoUid, 1); + |* f+ ~! z, f- F
addOption(\@args, '-u=', $tcdbauser, 1); 8 v! x$ h5 O& g# q
addOption(\@args, '-pf=', $pwdfile, 1);
! r+ [! S' W$ a1 Y+ P* |( }* o+ W5 m ~# ^0 ~- ^: B! v# r: k
在 runLoadFscCache 子程序下增加红色标记的代码
! L9 C# A+ q* v+ q# _/ C- V
$ d8 k$ I o! Y" l# This will be the full path to the executable.
! [% }* d! d+ Zmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
% W$ \" K9 J- F, x4 `
8 I0 W8 M. m7 D3 ^my $tcdbauser= "$ENV{'TC_DBA_USER'}";
+ w; g3 c7 y+ }/ Hmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; + v. X1 e, _' ?' P. b
# Make sure we can find what we are executing.
) m1 k1 F3 R9 \( i v3 \) g* E, E, adie "The ${exe_name} executable was not found at the following location:
1 e( K/ O; W. L5 v- _${exe_path}\n" unless -x ${exe_path}; ( N8 H1 {) V5 G# d/ o/ g
1 f: f! h' X) K+ q" P C' @- B# Figure out output information from command line input $ q! g" g; b& F# _
my $outputFileStr = $hashRef->{'output_file'}; ! \1 O9 m4 L1 O" ^5 S
my $fscUri = $hashRef->{'targets'}; . ]9 g8 v9 d" R6 ~0 c6 V5 S
+ ^$ u8 l1 O) C$ S! j/ |# Check possible empty space in the string 1 o" I* R4 u& X. }# m
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
" o g6 c* q% d; z, {) ]6 ~6 z" V" p$fscUri = handleEmptySpaceInPath($fscUri); : ~( _& L" b$ J! G, j0 a& I* i4 f( U
1 N! K+ H' o1 \4 {# Add the extra options.
+ ~+ w" @1 g. |$ hmy @args= ( $exe_path, '-f=load' ); + y% e! {6 k( N
addOption(\@args, '-plmxml=', $outputFileStr, 1); 1 L) e/ [+ ?/ g2 K3 v
addOption(\@args, '-fsctargets=', $fscUri, 1); 1 a6 V7 h7 t! d3 w, u
addOption(\@args, '-u=', $tcdbauser, 1); 7 d* M' L! j% |% S% a
addOption(\@args, '-pf=', $pwdfile, 1);
2 J9 M0 T/ Q! d5 `: |, W. o. }, r2 W) I
# k7 g2 n- d, s1 Y9 d* {. J9 ~* M" ~' r% _4 c7 ?' A4 Q
|
|