|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
: `; a' A& \; ^; c4 D4 G' F+ D171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
5 O' D* X: M6 g# ^3 [
. l$ a9 o% N: u问题
5 F5 @+ C; A2 |: }+ o默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该. K. W: ~" M* Q& s
模块中的功能无法登录 ! a5 W' c0 C4 S3 g& _
4 j0 w. ~! f1 B! A2 i5 m
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
5 Y3 n4 W5 }2 P* f i7 S/ Fuser ID or the password is invalid. 2 E. p* Z! M; M. ]8 l) B; ?
$ O& t& V- ~) L7 k方法 # Z5 I, Z0 u: H1 [* o; f i
修改 populatefsc 脚本,增加登录信息
) b6 I5 J! {+ O2 {在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 9 m) m6 N- n* ~& p7 ~
set TC_DBA_USER=infodba / f# [% K5 q& F
3 ]/ y0 ]! i- J% H: a+ K在 populatefsc.pl 中 : [ u O9 w$ g) a
?& P5 g* w0 _* h8 B9 g5 g
在 runPLMXMLExport 子程序下增加红色标记的代码 3 ~8 D7 ]# F% q( ]# h. o0 ~9 x
# i4 |. G( m9 l7 A8 b9 M
# This will be the full path to the executable.
% d8 X$ j; @3 M# smy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
$ y4 b, ], i6 X$ Lmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; . q; E9 P8 {" t
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
% ^5 l1 I j1 `( e# Make sure we can find what we are executing.
2 p5 a# G6 A9 H9 Sdie "The ${exe_name} executable was not found at the following location: + k; C' N6 e9 i8 e! ]
${exe_path}\n" unless -x ${exe_path}; 8 J) G$ V b' ^& R& R" I" E6 y
$ ~9 o0 I) Y7 R6 E
# Start building the command line.
4 ]5 ~. Z7 z' ]7 `% Smy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
! l5 v0 e! s, n. Z8 C- S7 F/ ]$ O. v8 n& B$ M- l" c- ^% [
# Take care of possible empty spaces in the argument values
2 }$ W: f0 N8 a2 D2 T2 g. z, R/ _my $outputFileStr = $hashRef->{'output_file'};
X p: s2 e: N- K$ _- q$outputFileStr = handleEmptySpaceInPath($outputFileStr); ' ~* L$ k) M9 q) l/ X( i
my $scoUid = $hashRef->{'uid'}; % T4 w; K Q/ b
$scoUid = handleEmptySpaceInPath($scoUid);
, e2 Y0 Z H& O0 ` u- d+ p7 H c0 L( Z
# Add the extra options. 4 p! G: n& W. _& N" R% b
addOption(\@args, '-xml_file=', $outputFileStr, 1);
P4 w {. @9 @: B' ?" iaddOption(\@args, '-uid=', $scoUid, 1);
$ E" }( X! f/ [3 z+ }, M. ^$ WaddOption(\@args, '-u=', $tcdbauser, 1); 4 r( c8 P' K( s: P( B
addOption(\@args, '-pf=', $pwdfile, 1);
% l2 g. r8 F/ G6 |/ n3 H3 r
+ r" }3 h( ^9 R3 @! ^7 d" A在 runLoadFscCache 子程序下增加红色标记的代码
l/ M* t8 H* J& a) @
# w9 J, h7 C1 b) ~9 i6 P# This will be the full path to the executable.
, e7 C+ O x5 |4 y# ^7 \' mmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 3 _. N8 @& X5 m( q: z+ D1 b
2 [3 I6 d9 a3 O7 g. O6 ~my $tcdbauser= "$ENV{'TC_DBA_USER'}";
# n+ B; d1 g: \ amy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
* h2 g) M V4 [+ G r# Make sure we can find what we are executing. % P5 A3 r9 b4 r" t
die "The ${exe_name} executable was not found at the following location:
1 ]: O/ l2 m5 Y9 e/ W' X! w u3 m${exe_path}\n" unless -x ${exe_path};
4 o J; m4 e0 S+ r( {3 b: J8 Q5 e$ I" C
4 R! e/ v8 R0 {" r/ f# Figure out output information from command line input 5 ]# O5 _/ j) N. A0 _7 Y/ u) [) t4 j, y
my $outputFileStr = $hashRef->{'output_file'};
- `4 Z( p% X- Q. _0 w8 Omy $fscUri = $hashRef->{'targets'};
7 l9 L7 j2 v( _1 X G+ R
: g9 |" w4 E+ C3 f0 o# Check possible empty space in the string
; p& G, J# f. S" {2 y! ~$outputFileStr= handleEmptySpaceInPath($outputFileStr); / k3 q- p2 C$ ~6 g
$fscUri = handleEmptySpaceInPath($fscUri);
# q+ B9 Z# L. r9 k: }! d, l5 _/ f6 G# _% v( C& H
# Add the extra options. 3 Q# u& C0 o/ L( w" ]
my @args= ( $exe_path, '-f=load' ); ' o$ x, O5 h. e
addOption(\@args, '-plmxml=', $outputFileStr, 1);
$ D, b! W/ ~) d" ZaddOption(\@args, '-fsctargets=', $fscUri, 1);
9 E0 H1 k; V& I, J: ]addOption(\@args, '-u=', $tcdbauser, 1);
3 a" y/ k$ d' l: YaddOption(\@args, '-pf=', $pwdfile, 1);
# g. _. _( | u; R
/ o% y0 [0 x2 ^' r9 S( {: F' m( W, o7 @& {* w$ I) r |" C l) n1 M6 ^
- }4 C# a( V l6 W
|
|