|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
( V4 w1 ~6 [$ m1 f$ x: |% l171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 " ^0 U* V0 E k9 e* ?( V0 T* {
& V! B* b3 I" Q* P9 H
问题
6 I0 B- v. k4 D1 J w. K+ k! ^默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该+ r# |" { i/ c* u- `! w3 S
模块中的功能无法登录 * e% A9 @ K' u* t( x( d- ?6 d
0 X4 f# x" C) _* g
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the ) u+ g' Z) u0 j6 r6 i- j% ?: i; L/ y
user ID or the password is invalid. # U: L/ w" d4 y+ V
! v6 r' u0 ?, X方法 1 Z/ o- g! e) |; [( r
修改 populatefsc 脚本,增加登录信息 2 | c9 I$ F) z
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 ( `# r9 g7 a; j p/ p/ r
set TC_DBA_USER=infodba
/ I+ I! G, j- t' V7 x. u# L$ A# t4 J. l( A2 ?
在 populatefsc.pl 中 : $ C6 Y) X0 ~( g [( \/ [% k7 F/ _% l
* Q% f, a: \; Q1 c5 G/ n" a9 T在 runPLMXMLExport 子程序下增加红色标记的代码
- u* a- _# t; W3 P- _9 A% l- L( w7 D; ^' F; o' E T
# This will be the full path to the executable.
# L: B1 ]* l I) n. Gmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; / q2 p+ [' g* N
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
~5 N. k9 r; A, xmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
3 s+ A" W+ o+ ]( O! H# Make sure we can find what we are executing.
) l7 L& d: h/ u9 L, N3 a+ jdie "The ${exe_name} executable was not found at the following location:
- p3 E3 h$ J( ?! P% P${exe_path}\n" unless -x ${exe_path};
! k, x$ w" F. V B0 D, x4 U* s; Y* q$ c* M1 g9 {- P
# Start building the command line. ; Z0 Z- V) Q# w J! m. `2 X
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); $ x) Q6 h1 Q4 P( q8 ~
/ w0 u0 O& Y r3 q, R# Take care of possible empty spaces in the argument values
* U( w* N6 p' kmy $outputFileStr = $hashRef->{'output_file'};
, V1 d+ S h; Z0 E0 z# @$outputFileStr = handleEmptySpaceInPath($outputFileStr); 5 J3 p/ E2 b" D
my $scoUid = $hashRef->{'uid'};
, o9 l6 R0 u% H$ O: e- Y$scoUid = handleEmptySpaceInPath($scoUid);
: o9 @7 A* f) b$ `# }3 p$ \8 S4 j; i: t, h0 L/ V; t
# Add the extra options. . L$ g5 W: H4 Y: x
addOption(\@args, '-xml_file=', $outputFileStr, 1);
1 R1 r9 J [: ^addOption(\@args, '-uid=', $scoUid, 1); Y2 v( Z8 T1 j: D3 x
addOption(\@args, '-u=', $tcdbauser, 1);
. w! R# N" r$ O+ P- Y1 I; ]6 I) \addOption(\@args, '-pf=', $pwdfile, 1);
: j$ M8 b' v ]6 s; k6 C( G9 j' d
6 x1 j7 A/ V+ \6 i9 E1 ?在 runLoadFscCache 子程序下增加红色标记的代码 # s* q, p) N& z% {) [9 R
1 n$ i9 i0 x1 O- K! k: ?6 x- l
# This will be the full path to the executable.
" C& M) C4 m3 v& J4 I) Mmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; - b! Z8 g8 b/ r0 k/ |
; X0 \7 s# Z }* I
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
8 {! D( r, Q) I# ~6 s* f# tmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; $ `; c! g2 v. w9 y. K; ]
# Make sure we can find what we are executing. , y4 z( l+ H) b' B( A: s) w
die "The ${exe_name} executable was not found at the following location: : U2 B7 Q# M/ W
${exe_path}\n" unless -x ${exe_path};
# y4 t f Z8 E( `7 T% p" q+ ^0 i% e; c/ J- c. ?3 I3 ?- t
# Figure out output information from command line input
6 t) O7 F% W/ f/ A4 p! ?4 A( i$ dmy $outputFileStr = $hashRef->{'output_file'};
; h8 L; L' J8 e% U7 n/ Fmy $fscUri = $hashRef->{'targets'};
% J4 B% h( o3 O( }5 a, l2 w& z3 X7 F1 u4 G: r7 f. H
# Check possible empty space in the string $ Z7 V) J; y, W
$outputFileStr= handleEmptySpaceInPath($outputFileStr); " y1 x/ G- C- \4 M: }$ I/ F
$fscUri = handleEmptySpaceInPath($fscUri); ; W& ^# M( p# p/ |
4 X1 I) s" W6 m; {
# Add the extra options. + M/ B; C) m% N# `; T1 T/ e) ^- P
my @args= ( $exe_path, '-f=load' );
( ~* e j' q, N( iaddOption(\@args, '-plmxml=', $outputFileStr, 1); 0 S- t; \- j' ?# H; Z
addOption(\@args, '-fsctargets=', $fscUri, 1);
. O' l+ I' @' XaddOption(\@args, '-u=', $tcdbauser, 1);
7 C6 V$ W. u4 e j0 naddOption(\@args, '-pf=', $pwdfile, 1); , x6 f/ g- F; j( k2 x$ Z, G0 c9 V
6 h2 }/ y) F2 L9 ]9 m
3 S' q% _, P. z+ B& ~; |* J* W" v
: e- A6 g* Q0 X; y+ {+ x& c- A5 W
|
|