|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
# g( X& N5 {, @" [ l0 s
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
! `' u* g) a* ^$ i$ @2 M) V
# N( X; R$ g5 l$ w+ ]! J问题 1 q4 ~* m1 f% F N, n
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
/ e: D% z8 P( H模块中的功能无法登录
% {/ ~! Q; S( y
5 T. n6 L F: E; r) h3 Y; ?. NERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the ! I9 c1 }( H. \! E
user ID or the password is invalid. 1 q4 Z8 |* T. d4 k5 R
" L4 i. d# Y M6 j7 o方法
- d; I9 ]5 j# X4 R( E- d修改 populatefsc 脚本,增加登录信息
4 r! t( j" `9 q1 K& m, L在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 / J# G. `# H: t! t( C) |
set TC_DBA_USER=infodba 5 q; i0 t% r4 |5 d
6 ^$ y( \6 D! f2 _4 M
在 populatefsc.pl 中 :
/ e/ Y$ V' s) N) s3 M7 y5 E
% C8 b$ [& [0 q* F# O' k! u/ [! i在 runPLMXMLExport 子程序下增加红色标记的代码
; Q5 u B2 V {0 G
* l. o; V* v6 F { p# This will be the full path to the executable. 0 l; w0 Y8 E( M* B- z @
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; / V# c5 f5 L6 r+ @- j
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; & v1 Q) a5 S$ K
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; / J, S' Y6 B: {# D, |! D
# Make sure we can find what we are executing. ; n/ S* G' E. `" H3 Z& s# z3 Q
die "The ${exe_name} executable was not found at the following location: + o+ m% N7 i4 g7 ?- o4 n, ~
${exe_path}\n" unless -x ${exe_path};
5 D! A" h6 J4 M6 w; O4 V3 }# c4 Q" y, I
# Start building the command line.
7 G! l3 \; p" Q! R3 W% F" S8 amy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
2 B) ~% G/ }- |8 p. o8 u. W- i
" X- _, f" [- ?' R3 \% y: I5 z4 `# Take care of possible empty spaces in the argument values
7 K4 b$ J; m1 S, @4 n. u; Qmy $outputFileStr = $hashRef->{'output_file'};
1 E" o3 v5 c4 e4 L! k$outputFileStr = handleEmptySpaceInPath($outputFileStr);
% q/ g" s# _7 F% `my $scoUid = $hashRef->{'uid'};
& R1 R5 I* Y0 C) y# H; w9 H2 Q. A$scoUid = handleEmptySpaceInPath($scoUid);
% t$ [4 f5 R% Q! X/ B/ q# I# S7 n
# n P0 j/ I- S: {* o# Add the extra options.
! I3 R5 e+ ] n% w- |; q! n# e" gaddOption(\@args, '-xml_file=', $outputFileStr, 1);
/ P( n( L# [; @0 g. Z; _" VaddOption(\@args, '-uid=', $scoUid, 1);
3 A2 M+ [: Y; u. y `) H2 M% R$ a6 `: @addOption(\@args, '-u=', $tcdbauser, 1); 6 p! N5 p8 t- |, k9 d
addOption(\@args, '-pf=', $pwdfile, 1);
6 q$ r c2 C' a! W- E/ b$ D; U5 s! ]7 ]: j8 q1 |2 L, [
在 runLoadFscCache 子程序下增加红色标记的代码
+ V0 _) N W7 n2 t: J" c [$ j% h6 D
% }0 l, a1 I3 F& H# This will be the full path to the executable. . F& ~! a" j; _4 F" e9 E S
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
+ y' U$ Z( d) |# K* E" S- A' d& t/ ]5 S/ f& N# T8 s8 C
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; - \ X$ I) D% x q
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
- z) T& B9 p1 @( b9 S# Make sure we can find what we are executing. 1 a' _9 K! Q0 T ]. P2 W1 O
die "The ${exe_name} executable was not found at the following location:
( E! A2 m! R4 ~8 R" E${exe_path}\n" unless -x ${exe_path};
6 n3 r R' q; C3 e' d4 H6 d: t4 o, Z) w5 z# X9 m6 D1 ^8 b8 z- i( E# V
# Figure out output information from command line input ) z$ O' |0 \; c. [: ? C
my $outputFileStr = $hashRef->{'output_file'};
( F8 y# G3 T7 n$ D# tmy $fscUri = $hashRef->{'targets'}; P% |8 b6 b5 ~1 E/ G
+ t1 z$ A# Y- l* R. u8 o# F
# Check possible empty space in the string
) Y. \! |8 \5 U r3 ~2 e" \' E S$outputFileStr= handleEmptySpaceInPath($outputFileStr); : D- X. x* M! A' Y: h7 O$ a
$fscUri = handleEmptySpaceInPath($fscUri); 8 z6 x& s6 H2 Q2 [
/ C1 Q9 X. h, T$ E8 S# Add the extra options.
& o/ z. r5 D5 s! S9 rmy @args= ( $exe_path, '-f=load' );
0 G B2 b; I$ C! ~ paddOption(\@args, '-plmxml=', $outputFileStr, 1);
c( n6 Y. ?5 W. ^2 m; v& [addOption(\@args, '-fsctargets=', $fscUri, 1); ( |8 s$ x, k$ |: t# W& I' n/ h1 y5 I9 s
addOption(\@args, '-u=', $tcdbauser, 1);
; ^! K+ k1 H/ GaddOption(\@args, '-pf=', $pwdfile, 1); 0 H. w# d/ `6 d9 u
9 R8 i `* ~7 ?. ]6 t7 g
- G) @: [+ N' c
7 j; |( w7 p! Q$ ` |
|