|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
" a U' @ R4 u) ]
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 6 G7 Z* H- @2 l8 p0 M1 Y
6 |: V/ T- [+ Z* h {) P/ P
问题
8 \& B- f, D4 g' Q8 {默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
R- {: w) ^) l模块中的功能无法登录 + W+ S: D! t2 d; I+ h( h/ i$ M
1 a+ ?5 T2 f E8 u
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the & a$ _: H7 H) D+ l- i
user ID or the password is invalid.
1 Q% C' a |$ e) H" @9 @1 F5 k1 T0 v T& a4 i6 e
方法 / {8 x0 W+ _' ]# b- a! W
修改 populatefsc 脚本,增加登录信息 $ ~& }( |9 R7 M8 U2 O
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 * O L9 E9 o) m) U4 G8 z8 T
set TC_DBA_USER=infodba
5 Y8 Y! B5 F- }' t: a/ v4 n) ~% S/ d2 g0 S" J7 {
在 populatefsc.pl 中 : 0 ]7 i/ [( v- B& t' G0 Y
- T1 }' P/ l5 f! J1 S在 runPLMXMLExport 子程序下增加红色标记的代码 ' [) @5 M) z! ]+ A$ k/ U7 D' w
2 q0 ? s& @- R `" |# This will be the full path to the executable.
, @" H% W* C. W6 S/ D$ |my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
5 o" h f/ b& T* m) Jmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; , l' |5 L" w, ^. |0 y+ Z' f. q& K2 o
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ( F. n' a+ y5 j! p' f
# Make sure we can find what we are executing. / K9 _; v, d- x+ k! w! n' m) I
die "The ${exe_name} executable was not found at the following location: * C! x9 U. N4 ]! b; r
${exe_path}\n" unless -x ${exe_path};
+ P" U! H% ^) v% B1 d( n3 q- g# j. k& |& d c- ~7 t6 _% e
# Start building the command line. # i" K3 `" w4 S4 U9 e$ d
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
) T/ b- e* p( }- e6 M5 ^
6 ?: x8 i1 \9 k5 y; \" G. y# Take care of possible empty spaces in the argument values " N) f E7 U, t
my $outputFileStr = $hashRef->{'output_file'};
. r& L" P/ ?# i$outputFileStr = handleEmptySpaceInPath($outputFileStr); + H1 `2 R8 T+ j, a7 T c, I- c
my $scoUid = $hashRef->{'uid'};
; u& Z( L6 o7 [- o* {; o$scoUid = handleEmptySpaceInPath($scoUid); ! u% G) h5 u, H- P' ?! N! }6 D' ?
. G7 Q& w+ u6 h4 K& R# Add the extra options. 5 Y5 k/ c1 p W& L
addOption(\@args, '-xml_file=', $outputFileStr, 1); - E2 a8 E/ B; O; L
addOption(\@args, '-uid=', $scoUid, 1);
- P) ^; |4 y# e# O8 p4 B( LaddOption(\@args, '-u=', $tcdbauser, 1); 5 d' l5 P( r9 u! f
addOption(\@args, '-pf=', $pwdfile, 1);
9 y/ z, x5 c7 O* H J+ U
; {* A7 P4 U& r; w1 q在 runLoadFscCache 子程序下增加红色标记的代码
& |1 i9 A: @( L" z1 r; M) a( F, Z: e+ p- S) O$ B; Y
# This will be the full path to the executable. 9 E/ N$ P9 c, H5 `) ]6 k
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
" X2 Z3 `7 b! K8 X& s$ F
( P2 E/ p: k2 k1 G. U9 umy $tcdbauser= "$ENV{'TC_DBA_USER'}";
( [1 r' l0 ~) Rmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 8 Q/ e9 u8 H N1 U& B5 k9 D
# Make sure we can find what we are executing.
' V; t: T( y+ tdie "The ${exe_name} executable was not found at the following location: # [4 U' c& E% s
${exe_path}\n" unless -x ${exe_path}; 4 F( N7 Y7 }) g- d5 h5 I( z
7 z/ W; `* f ?* }# Figure out output information from command line input
' T5 u9 `% w: I' I) I0 b% J, imy $outputFileStr = $hashRef->{'output_file'}; 4 u8 p$ @0 M0 s+ _+ W, S
my $fscUri = $hashRef->{'targets'};
& y) c- N. o0 G& t& m
; c6 a# A, j; ~- n8 Z# Check possible empty space in the string 4 a, q" N! ^+ n& l7 G% F4 h: ?# X# }
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 7 U; }! |' r! ^0 v5 ?
$fscUri = handleEmptySpaceInPath($fscUri); * y$ z4 V& Y9 ]3 O. X' ?
2 f* j$ v/ [1 c: w6 K4 u) M0 c# R& i3 G& S6 a
# Add the extra options.
4 n4 ?: x4 q6 o; A, u) H5 p% wmy @args= ( $exe_path, '-f=load' );
0 ?* U! Q# [" faddOption(\@args, '-plmxml=', $outputFileStr, 1); " y9 O5 `% A% L% u3 z
addOption(\@args, '-fsctargets=', $fscUri, 1); , b$ d" L& ?1 G) k6 D. b
addOption(\@args, '-u=', $tcdbauser, 1);
5 W A$ g- O0 W) D, ^# ]; P; |8 q! F+ ~addOption(\@args, '-pf=', $pwdfile, 1);
- g f$ i- M" c# M' Z' O t# o3 x! |
Z" S2 X% G) ^9 _ |' t4 _ S
) y/ G8 L3 U/ F
|
|