|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
% p2 u& Z, Q4 z7 a
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
4 k: |, b9 ?; y j
3 @, W8 p' t, o' Q& d1 _- [问题 ( u7 Q: Z" V; z
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该" ]3 Q/ O9 u l; Z/ V+ z) G
模块中的功能无法登录 $ ?, U1 F5 n# F, F, @% L) H
+ [0 X1 e+ z3 Y6 q' ?- P+ V0 O
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 7 L% s: f" |' u: {/ y8 A
user ID or the password is invalid.
1 l' M* M* M+ r6 E
" g$ m. s0 m0 ~& b方法
" q! y8 g, U# Q( P# e$ N0 R修改 populatefsc 脚本,增加登录信息
; u; j' e+ K* ?" f2 f' J$ L, B在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 . R1 F. l; q: L% w9 c) ]; r, M1 a9 }
set TC_DBA_USER=infodba
: z3 ?* v9 @4 n' E3 d) M4 G/ a5 y
在 populatefsc.pl 中 :
9 ]$ r) D6 e2 A+ j6 Q5 e! t* Q9 U1 W
/ [" ?$ c! ]6 ?/ ]0 N. P在 runPLMXMLExport 子程序下增加红色标记的代码 ; Y! J9 t' \! F- H) r; w: J
3 B3 d; s7 E$ W0 u8 ?- s
# This will be the full path to the executable. 2 T- d; g) u% T, ^. u
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
$ m+ ^. `3 x4 vmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; # s9 ]9 } a; _+ F- V4 x; T
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; . k: r; w$ d: O
# Make sure we can find what we are executing.
3 o% J( Z, y* A4 `7 f8 ^. idie "The ${exe_name} executable was not found at the following location:
( ?3 ^5 O: z/ I5 O/ S* z${exe_path}\n" unless -x ${exe_path};
% V0 x7 Q& H+ S7 r) G/ \7 n% o$ ~$ n0 Z+ y
# Start building the command line.
0 p7 C# k5 o b% ~& ]; Pmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
8 R* Q- w7 `3 a9 |4 n/ Y x
5 D j6 c" c9 b' b8 `0 Q9 A# Take care of possible empty spaces in the argument values 8 c8 w1 u, H: l
my $outputFileStr = $hashRef->{'output_file'}; ) S( L& f' \1 r& o" R) Z6 v; h
$outputFileStr = handleEmptySpaceInPath($outputFileStr); # }- q& V9 p, d
my $scoUid = $hashRef->{'uid'};
9 ]5 S% s( L4 V: @- d5 l$scoUid = handleEmptySpaceInPath($scoUid);
: |5 S# N s; E' x6 A1 s. B1 i& K% ?& ^% @6 o/ ^" l: W( r
# Add the extra options.
& k$ ?) a4 W8 o1 uaddOption(\@args, '-xml_file=', $outputFileStr, 1);
7 p9 i. o8 @+ S" |" MaddOption(\@args, '-uid=', $scoUid, 1); 8 s' y3 H1 p$ i
addOption(\@args, '-u=', $tcdbauser, 1);
8 s9 H6 A( e6 d4 S+ ?: BaddOption(\@args, '-pf=', $pwdfile, 1); # B( a. w A" j+ Z
8 r: K, [6 V* w- m5 m% Y在 runLoadFscCache 子程序下增加红色标记的代码
( P) o1 i: o: ~2 N/ B D9 c$ e5 |) y0 E/ E3 }- b- x- L- D
# This will be the full path to the executable. 6 r8 S' D* E2 ~" n E
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
$ a, W9 z2 P* T+ \1 T6 K5 [1 T* p" {- G( g
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ' g5 ]9 b! s* u5 ~
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
( @) V, ^ e. F4 Y# Make sure we can find what we are executing.
: m' K% U' u! j- Ndie "The ${exe_name} executable was not found at the following location: ! X8 L3 V5 l! {3 E# Z3 I3 S4 [/ N$ M. K
${exe_path}\n" unless -x ${exe_path}; " t8 q' F" }. l5 n! k
% ]: A; x% U0 R% C' q# Figure out output information from command line input " E7 g7 y; \9 v
my $outputFileStr = $hashRef->{'output_file'}; $ ?* Q* ]( c$ i0 ]7 C: M# ^
my $fscUri = $hashRef->{'targets'}; % U8 a1 [1 c* J& E
. N+ `; V3 w# ^) s; X$ {) s
# Check possible empty space in the string
0 d0 m2 l9 l9 Z7 D1 E! t/ R$outputFileStr= handleEmptySpaceInPath($outputFileStr); 9 }& X1 O3 d. M5 w
$fscUri = handleEmptySpaceInPath($fscUri); - c- k% R) B# n+ P
, z3 j- j4 m/ ^2 ~ J w+ h# Add the extra options.
8 _1 ~% J8 b. l* k l6 Z7 b9 dmy @args= ( $exe_path, '-f=load' ); 9 n4 K5 y8 J1 l* f2 E
addOption(\@args, '-plmxml=', $outputFileStr, 1);
1 x# l2 V# t# @: `9 M( W7 i/ i" saddOption(\@args, '-fsctargets=', $fscUri, 1);
X) e. M+ d7 W( b& ?$ IaddOption(\@args, '-u=', $tcdbauser, 1);
9 ]8 A3 T1 l& Y: _: Q9 _addOption(\@args, '-pf=', $pwdfile, 1); # ?, X; O2 w- B) x2 j
* D7 `6 O, ~' A+ L' R% z& i
' S }, T( T! X2 A, J% R( C. c
8 V s, i6 N Y: t h% V |
|