|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Z7 Y& A. W* v0 S3 Z171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
5 B8 `6 O0 A+ f% U! v6 Z
9 U/ v/ F6 p* n( @$ [问题 4 U0 L7 W" h. M0 I" ?
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该1 g4 b8 |3 R2 }; D) g
模块中的功能无法登录 + M) `4 \- x" m7 w. w% `6 J* |
2 K3 R f C, \ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
8 u" I6 |9 d* |4 [: R% cuser ID or the password is invalid.
% H0 R9 I h- H
5 f# \/ R* r7 k: b8 j/ }方法 % B" [& Q; Z$ b- _0 \* U! p" T
修改 populatefsc 脚本,增加登录信息
9 |. y+ g) H9 p' _! O9 _在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 6 c& {/ z' P& V0 m9 E) J1 x# Q) _
set TC_DBA_USER=infodba
" v0 o* O% M9 Z2 ^; y" c8 {4 |, J" D" N ?, [
在 populatefsc.pl 中 : 5 H6 H# n$ f( g. w
) e: `: I# O% d+ D. G) I! G
在 runPLMXMLExport 子程序下增加红色标记的代码 8 A, L2 ~) A+ W- t/ n; z9 K
8 L8 J; V: k5 s! _$ O* A0 m1 t
# This will be the full path to the executable. ( H8 q" f! E k" y+ V+ i2 `" d
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
+ x7 p7 r5 c2 @. t2 t3 omy $tcdbauser= "$ENV{'TC_DBA_USER'}"; # c6 _- @! e( c
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; % d4 U1 a1 p. `5 z# ^! [$ y
# Make sure we can find what we are executing. ' K3 Y" \1 Q% x
die "The ${exe_name} executable was not found at the following location: , m. \- w6 v* ?0 |1 z S
${exe_path}\n" unless -x ${exe_path};
0 u; |. _( W- G: d! l9 u" G/ j$ i, a" P! A- J) d
# Start building the command line.
" R1 c6 e& v7 Y! ? V9 dmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
, w/ z3 V7 N2 s0 e1 t, b! z" K( _* M4 h* x, Z6 v
# Take care of possible empty spaces in the argument values
3 j7 N9 |2 p" i. Q& s' |4 `1 ]my $outputFileStr = $hashRef->{'output_file'}; 2 K. K5 V0 o$ C. p: l0 T
$outputFileStr = handleEmptySpaceInPath($outputFileStr); 7 j! U. _1 F% y' O5 H% V& U8 A
my $scoUid = $hashRef->{'uid'};
% ^7 r, h, D# J( V" t$scoUid = handleEmptySpaceInPath($scoUid); / Y* k8 I9 _! K
; D) n7 \# r# Y* k4 N% T+ `0 Z# Add the extra options.
, u9 P) Y1 d Z( z8 d L" oaddOption(\@args, '-xml_file=', $outputFileStr, 1); # o9 w2 {: @1 j$ [$ `* }
addOption(\@args, '-uid=', $scoUid, 1); % r4 e3 G5 Y8 `3 P/ E
addOption(\@args, '-u=', $tcdbauser, 1); / L. e0 {* Y, q( C3 r5 o0 I" |
addOption(\@args, '-pf=', $pwdfile, 1);
( e. c. l( D6 t% N$ l3 g' e! Z1 J
' H; g7 b. f2 V, ~" Q ]; R在 runLoadFscCache 子程序下增加红色标记的代码
- D, t5 ]' |; H M( ]' ^3 s; H4 t. i# e& y8 ^# n
# This will be the full path to the executable.
2 b& {" L9 _3 e3 d& emy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; # x) p# @: c- s7 D$ T; x$ l
! c+ T2 U, a1 M* Z( H& _/ tmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
- n) f& M9 k, Q1 T9 d0 Gmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; ( J1 W' }; X4 M9 T* L8 h9 @
# Make sure we can find what we are executing.
8 B& u8 V; [5 Y, @8 @die "The ${exe_name} executable was not found at the following location:
2 f4 W7 i" F2 V9 N${exe_path}\n" unless -x ${exe_path};
: D9 _% E& ~3 v+ x, ^) ?+ I$ r/ j& [4 A
# Figure out output information from command line input
( T, D; m6 ]' C! |& N. bmy $outputFileStr = $hashRef->{'output_file'}; 6 I. b' S" O, y' B" X" d: I+ j3 X
my $fscUri = $hashRef->{'targets'};
& K+ X, G5 E8 ^& a" V% c
: l7 M% m: i- x# Check possible empty space in the string
& ~) p3 e5 T* |! J1 o$outputFileStr= handleEmptySpaceInPath($outputFileStr);
$ i1 n" @1 f6 i& @' |% }$fscUri = handleEmptySpaceInPath($fscUri);
( G0 U# \- s% J$ P+ m1 s' k# Z
/ ^! X1 p3 {; T# Add the extra options.
5 [* h8 l6 {7 Z/ k& P1 \my @args= ( $exe_path, '-f=load' ); # [: B' R& y3 r
addOption(\@args, '-plmxml=', $outputFileStr, 1); 5 a% i5 G& Z" r( [: \$ p, k* ^( d
addOption(\@args, '-fsctargets=', $fscUri, 1); - G: A( j) c2 l
addOption(\@args, '-u=', $tcdbauser, 1); / T% k$ D# ~8 A% X# J
addOption(\@args, '-pf=', $pwdfile, 1); : D* k" n7 |8 p. o' }8 `5 h; y8 ]
5 G! T, ?0 P, Q& V% h+ ?& `
' V3 [ ^9 d2 E o7 }) d$ X; e% O" v C+ N
|
|