|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
: W+ N8 X6 h9 J" Z8 J$ N1 T" k
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 4 a! B' B& e9 S: q7 B" w+ h8 Y
# t( u. Z6 E: j
问题 4 B/ g9 |8 d' y' c1 Z
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
; r- {8 U+ X4 k [模块中的功能无法登录
% n2 W# f: B/ S; A. i2 r, W$ Y& Z1 \ R6 j
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
! q, x3 i5 V: K$ n3 d) \0 Z- `6 Uuser ID or the password is invalid. 8 E: V( ?8 ~+ N5 M4 [! l4 U5 [
3 N, _: ~0 ]& D' O
方法
/ V7 K( o# @% D5 s1 h" l: L0 y修改 populatefsc 脚本,增加登录信息 - _) p; f) F- f# k8 g$ C1 O
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 9 N0 `9 X, A! W% p7 o8 |
set TC_DBA_USER=infodba : t s3 \8 l! R4 ^- K. G
, y# M7 h/ p# i' \在 populatefsc.pl 中 :
. ]- u- H4 }' o$ y9 E( c9 D3 N8 a3 d; }4 ~1 g" J+ ~# b4 D9 p
在 runPLMXMLExport 子程序下增加红色标记的代码 1 x ^! P4 o2 O4 O- C& _% R
. L! F4 Y, R- F- |+ d
# This will be the full path to the executable.
. m# q/ J5 U- A, L6 ^" M' @my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; " `' B1 E3 U6 e* @& d+ y9 i8 B& D
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
3 h) g* ]8 P# Y' i- I6 Fmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 4 p2 m- Q, T7 z7 m
# Make sure we can find what we are executing. ; N; G4 ?+ P; ~# ]; S
die "The ${exe_name} executable was not found at the following location: 7 h X. B4 I Q
${exe_path}\n" unless -x ${exe_path}; 5 F1 P0 |! l* d- n
7 |& K$ _1 k+ t8 K
# Start building the command line.
1 |1 L1 x+ i* a! G" J( hmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); " H4 [ W" ^2 ~' {
5 w8 A- _$ W; @/ v2 `; ?! Q
# Take care of possible empty spaces in the argument values 4 U2 |; A! n0 J7 v& d7 q% ~
my $outputFileStr = $hashRef->{'output_file'}; , h8 J e, x* T. x: U* \
$outputFileStr = handleEmptySpaceInPath($outputFileStr); 1 n$ c) H9 ]0 |& w( R' s0 h
my $scoUid = $hashRef->{'uid'};
" Z8 {$ W) R7 u0 \; P$ _$scoUid = handleEmptySpaceInPath($scoUid); ! Y7 [* S7 _' V9 _3 |- m* B
2 W( J1 s6 S6 E6 W; n3 W1 g# Add the extra options. % [- U, D, l4 a" a* H# l; c0 k4 z
addOption(\@args, '-xml_file=', $outputFileStr, 1);
% c3 \+ \: V! ^% T+ V; S$ qaddOption(\@args, '-uid=', $scoUid, 1); " j) _- @* E! K
addOption(\@args, '-u=', $tcdbauser, 1); ( S# ~6 j$ s; g
addOption(\@args, '-pf=', $pwdfile, 1); # d/ b& ]0 c) @+ ~3 L8 j+ a' G
1 x% n/ S, G& T! I/ e. k' `
在 runLoadFscCache 子程序下增加红色标记的代码
5 V$ A4 i7 R- @. x \$ R2 n) u
6 @$ k+ C7 b, ^- k# This will be the full path to the executable.
& P/ w7 K% d/ o0 q% ^7 u1 I- Z qmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
$ j6 m7 z$ s+ A8 v
8 ]5 c, ]( l% _3 o" q3 x3 I) w m: Wmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; & e6 k5 {) l! l8 R# @
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
% S/ L/ ~, N' }; C8 ~9 V# Make sure we can find what we are executing.
8 L6 n- V6 t/ k7 M. u) r) A; vdie "The ${exe_name} executable was not found at the following location: 8 Z4 ^2 Y: a3 p; d; r; n% h( _
${exe_path}\n" unless -x ${exe_path}; 9 o+ W5 z: y j% ^
2 `$ S- E4 Q( T
# Figure out output information from command line input
& d" C- |5 V7 Z! x" \1 R6 p4 Pmy $outputFileStr = $hashRef->{'output_file'}; % y' T8 a2 A0 s8 G% ?6 @4 v3 U& ^
my $fscUri = $hashRef->{'targets'}; , P) L1 `8 l# L4 U' ~
1 b3 p2 ? i+ x; T0 ^
# Check possible empty space in the string * a; M6 c# O- i. z; k3 u$ I
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
# \2 k. f* m. A$fscUri = handleEmptySpaceInPath($fscUri);
2 `8 V2 c; v' l0 Y. `( N
6 Y" B$ O% [! H# f+ p! `1 ]6 I# Add the extra options.
0 j: b5 |' Y, tmy @args= ( $exe_path, '-f=load' ); 0 X K1 G5 m: v& c, U% |
addOption(\@args, '-plmxml=', $outputFileStr, 1);
. ~ c6 |* [2 q2 N! a6 MaddOption(\@args, '-fsctargets=', $fscUri, 1);
; `* S& Q9 j% p' JaddOption(\@args, '-u=', $tcdbauser, 1);
5 ]0 I/ D' Z u+ x- qaddOption(\@args, '-pf=', $pwdfile, 1); " N$ P8 [4 |! P1 K
. {+ |8 d9 x- J2 E, y) F; g2 a
( i; u5 U5 B3 J- d, v- ?9 h% X k) ?5 t: I% v$ m$ G3 L/ v& W8 V# G
|
|