|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
( l9 Z- D/ ^! \1 Y+ b0 C171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
: T. i( E0 T# l$ H* G" U* y2 m( g3 _/ Y% @- m( c
问题
5 Q/ R" u, h* w' s默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
$ s9 h( O* I" \7 w- b+ C0 r" n模块中的功能无法登录
5 N2 i8 j8 @$ L% R
' O: T0 D% y8 w# @ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
+ }# @7 ?- H9 Iuser ID or the password is invalid. ; u1 p# O! K6 _; k" W# F5 u1 D
! D' q# N& s: Y. E, H方法 + O6 C# p% T |+ ]
修改 populatefsc 脚本,增加登录信息 3 x c6 K7 T! Y7 M8 y6 x8 r$ |: }
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
% n2 n6 p7 Z# J+ g7 {set TC_DBA_USER=infodba - L* r! z) J) s& v( A2 b
( w5 k7 \3 n9 \" g' v6 E2 v在 populatefsc.pl 中 : 0 l1 M* x0 _* D6 P
% x- u9 g1 r- |, T; M3 T) R) f在 runPLMXMLExport 子程序下增加红色标记的代码
9 s$ w4 d1 l) |; N+ ^( f( I6 a+ ^+ S" L; z* E: X
# This will be the full path to the executable.
# n$ X y( j6 O. J7 Tmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
4 P0 W+ l. u" \3 u- emy $tcdbauser= "$ENV{'TC_DBA_USER'}"; 3 b: R0 N2 j! s0 G3 j
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 1 T- y) T$ J5 @( T* w! s3 Y
# Make sure we can find what we are executing. 5 s+ B/ E* g+ E
die "The ${exe_name} executable was not found at the following location:
% v3 g. \- E1 o${exe_path}\n" unless -x ${exe_path};
6 N7 f8 |6 u% @% o' e1 B# K, O, R, {, C8 k
# Start building the command line. 3 a0 }3 @ k% v* L+ m/ |8 E2 |4 k
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); , O) w8 g" N _; j
$ l$ v+ e* n" j4 u/ c; ]# Take care of possible empty spaces in the argument values
8 [; t0 m0 A2 `7 [my $outputFileStr = $hashRef->{'output_file'}; 5 V4 J6 X# L/ f* \; V T
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
; @$ @! L% e" m2 pmy $scoUid = $hashRef->{'uid'};
' T+ d/ u2 r/ g$scoUid = handleEmptySpaceInPath($scoUid); : e6 U) \; W9 Z8 h
. F% a3 x* V& F W% ]0 {# Add the extra options. ; u0 X$ _1 M( J5 s) @" r+ J
addOption(\@args, '-xml_file=', $outputFileStr, 1); j9 D, F2 o, u* G6 r! f( F
addOption(\@args, '-uid=', $scoUid, 1);
1 e" X- F7 X& [% M0 p) V% ~addOption(\@args, '-u=', $tcdbauser, 1); . M- R2 l, Q+ g3 h/ W
addOption(\@args, '-pf=', $pwdfile, 1); 6 H) k W8 w9 s k# J
' j/ L0 ~4 Z+ j9 _
在 runLoadFscCache 子程序下增加红色标记的代码
* y: n* F( o6 l/ X1 X% N
6 J+ C+ Q; R& u# This will be the full path to the executable. # x" R) K$ a8 v) W0 ^$ B; d& [
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; % V" \* \( Q0 f( s( k
# `; x6 _0 r8 r9 dmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; ' ~ r+ N2 y& |" _" o8 b8 l
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; % h' S$ Q1 _- ^6 ?9 X4 X# k
# Make sure we can find what we are executing.
0 j/ G) e3 q% Z, ~$ wdie "The ${exe_name} executable was not found at the following location:
, [2 r0 |) s( W# s% ^5 ?3 A: u${exe_path}\n" unless -x ${exe_path}; p2 D* R3 _/ x" P
! G9 `' {5 _ h% f p: j O
# Figure out output information from command line input
, \4 R- i3 e0 [4 f" Bmy $outputFileStr = $hashRef->{'output_file'}; # {, S$ c" s, c/ Q% \& v0 r) G- F
my $fscUri = $hashRef->{'targets'}; * A- F2 T r; E2 }) } Y
0 v# f* ^2 D. m
# Check possible empty space in the string ! B8 `8 b+ v0 k C
$outputFileStr= handleEmptySpaceInPath($outputFileStr); # U5 [1 H/ k3 C
$fscUri = handleEmptySpaceInPath($fscUri);
; P- M# c; Y; k6 T3 P/ N. w# ^6 ]5 R, I
# Add the extra options. 0 C" W W# r0 j6 m2 `- n, n5 Z" \
my @args= ( $exe_path, '-f=load' ); : p: J: y0 T W$ T
addOption(\@args, '-plmxml=', $outputFileStr, 1); 8 a4 m& y% W: Z) M* J
addOption(\@args, '-fsctargets=', $fscUri, 1);
( j# b0 K) P9 d+ }addOption(\@args, '-u=', $tcdbauser, 1);
6 |! k# M3 F: I( A: waddOption(\@args, '-pf=', $pwdfile, 1); * d7 G, N; ^* C& E$ D( t+ V
) m. y% B+ k& |7 ~5 _& h8 z) n
1 u8 i- ^$ _! r1 B0 Z- Z; w9 \4 n+ L( d+ x G
|
|