|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
7 C2 Q1 v4 w& z9 x. H* Z' y: x% U
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 " Q" \4 U$ B5 j- P% _. O
( N! C4 d( h% ^0 a0 s
问题
& X( ?; L( Q3 y" D/ N9 O! x# ~1 m默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
% b' I& l" Y/ n j9 v' e* p模块中的功能无法登录
. B) `& H- }/ J7 `. d Z
/ W. X. G" N2 {% j7 ~( B' fERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the ! u( J- e; i$ J
user ID or the password is invalid.
# |) q3 x2 j4 j% P
- l! i" q/ u3 c方法 8 b6 a! `3 ]7 ]6 i& t# m4 J
修改 populatefsc 脚本,增加登录信息
! K, G. i6 \# \% D在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
5 j: V `; A j" {$ G9 v% u% wset TC_DBA_USER=infodba - M: z+ B |8 T/ W4 W# g
* M: h# c8 I' K* J在 populatefsc.pl 中 : - ?' I; K8 \0 p7 c
8 o9 f& Z$ H) A& U' Y- {" ?在 runPLMXMLExport 子程序下增加红色标记的代码 $ S- _" L8 C D- }" C
3 z6 L, P* g6 E8 W: I: C
# This will be the full path to the executable. ! v" d9 }' m2 O4 `: u3 D" i
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 4 I9 \- E7 ]/ e" }/ O) w
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
. M7 c' F3 Y1 f8 @ g/ ~; M5 \my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
4 }( Y' x4 e7 l) K8 f6 v7 A7 l# Make sure we can find what we are executing. . [5 f5 z4 M4 _% t4 Q
die "The ${exe_name} executable was not found at the following location: 3 [5 A3 W0 V. v5 A2 D+ s
${exe_path}\n" unless -x ${exe_path}; - ]: h: v$ J5 A& b% h
0 e' D# L, M3 ^ w0 e' V# Start building the command line. ' }* d b) J( g+ j( i7 ^, f
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
( \2 t3 G/ `8 F8 B: F
# G. u' F6 R: x( M, f+ `% p# Take care of possible empty spaces in the argument values
8 e0 i; d" t" _; C5 hmy $outputFileStr = $hashRef->{'output_file'};
( d/ C, q. y6 C3 n" s$ ~: G; A9 E' e% H$outputFileStr = handleEmptySpaceInPath($outputFileStr); ; Z$ R H! O& K. \: C7 w
my $scoUid = $hashRef->{'uid'};
. w) g7 Q0 t$ O& V2 R$scoUid = handleEmptySpaceInPath($scoUid); - p# S. \" i' R; i
+ |/ _, ?* q0 |& v0 |9 N# }4 s
# Add the extra options.
% R) Y5 @% G7 M6 y) n/ Y1 taddOption(\@args, '-xml_file=', $outputFileStr, 1);
$ n% B; @( ?$ K" q5 O% NaddOption(\@args, '-uid=', $scoUid, 1); ' R$ L6 r1 E n V8 O
addOption(\@args, '-u=', $tcdbauser, 1); 2 o. H o! Q* h, M' O, l
addOption(\@args, '-pf=', $pwdfile, 1); + Z; i6 j r0 \( ~+ {% J2 O5 f
- [# m# f& d( {# b0 a& _
在 runLoadFscCache 子程序下增加红色标记的代码 ! a. p& {, P0 l2 d4 }
3 q3 e5 b6 c2 c# u# This will be the full path to the executable.
' | i0 y6 m! p7 _. {' I5 K+ H% kmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 5 ^. [7 @! ]# R( Y
. `9 t( U8 o0 R' K' b( d5 a9 S
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
, g# l6 c6 B* i k* ymy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; $ R9 W1 y6 k- j" e" i
# Make sure we can find what we are executing. . p5 e1 C; ?( f
die "The ${exe_name} executable was not found at the following location: 5 E- d+ q+ a/ ^* p, b
${exe_path}\n" unless -x ${exe_path}; ; C& o9 M0 _# T
& f( M* W- B9 u( L# a2 e+ ]# Figure out output information from command line input 9 `6 a% K; ~, O5 k
my $outputFileStr = $hashRef->{'output_file'}; / k3 x4 [) d8 J' ^2 N
my $fscUri = $hashRef->{'targets'}; 5 k$ R" t+ U* q& d2 `& ?* I
7 n% \ y& |2 v" `/ Q, @$ h& F' @* m
# Check possible empty space in the string 4 P# W1 T7 U, O9 l- }
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 8 Y1 H* V8 X m* ]& S3 n2 M& e3 E
$fscUri = handleEmptySpaceInPath($fscUri); % ^8 j* e1 g Y7 t( B
, O9 p1 U7 W3 Y, \9 D5 T" K- Y7 l# Add the extra options. : @5 a' z" B7 m1 \! N* g
my @args= ( $exe_path, '-f=load' );
$ m# B- k/ q: Z( @7 \addOption(\@args, '-plmxml=', $outputFileStr, 1); ; s0 z( X+ w, b' Z' c
addOption(\@args, '-fsctargets=', $fscUri, 1);
3 g7 g+ R" L! ~7 haddOption(\@args, '-u=', $tcdbauser, 1);
1 i* O. \# ~: {5 HaddOption(\@args, '-pf=', $pwdfile, 1); + C6 u5 g4 t! H. b! Y" v
4 |0 X; |) u" @/ }" l+ ?( @" G, d# N y
$ }$ r8 P+ B* N5 N |
|