|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
# J0 W7 t m+ |% y! g' ?9 F6 @
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 5 |9 g, y+ O: _, p2 p
! ~7 f' a% F* j1 e
问题
8 S6 T% o8 O J5 U) v W默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该4 Z$ m# T9 j: t$ D8 [
模块中的功能无法登录 9 A5 D# D/ G( S j
/ a9 ?& d; Y: C! n$ R, pERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
5 l# c" T' c# v6 S( q% L0 T8 Q# d7 T0 juser ID or the password is invalid.
' e4 W; [) Q; E
+ J( d( j+ q$ \' M6 b方法
$ H- x% i4 X: Y' k6 k! D) V修改 populatefsc 脚本,增加登录信息 2 \# D3 c6 E) T& w
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 ' p2 @3 @/ W6 ?. ~/ N
set TC_DBA_USER=infodba " X1 |2 B5 W5 p" w, w3 F* T
: @# \7 A% \3 i& p! j
在 populatefsc.pl 中 : 5 c; T/ A l6 Z. E- Y6 `! n1 Z5 U7 ~
1 }- X& m6 `: O4 F
在 runPLMXMLExport 子程序下增加红色标记的代码
& U7 O5 z8 F) c" B- H
6 T ~; D# b% W6 n6 x) d1 J$ \# This will be the full path to the executable. 2 v2 B5 ]/ p' L( y/ |
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
$ H, m. b% O2 Y: p, Z1 Wmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
" l/ x3 r7 s# Pmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; , P9 E. f1 b* j4 Q) X, J8 i; ~
# Make sure we can find what we are executing.
! o0 i# j' F T/ |1 o. ndie "The ${exe_name} executable was not found at the following location: % X p& |) C. m4 X6 X$ C4 l" D
${exe_path}\n" unless -x ${exe_path};
2 `% p: ^( _" d4 I! J* J: x4 h* V
# Start building the command line.
" m! D- @' Q) }9 @$ T& [, I7 c B" k Lmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
1 a$ S9 a" J9 t, D6 K5 h/ j; g4 R) V9 T7 q% P2 {
# Take care of possible empty spaces in the argument values " Q a7 O3 C$ ~! Y3 Y7 M
my $outputFileStr = $hashRef->{'output_file'}; 4 ?1 U& c$ T; ]% z# w9 v* h
$outputFileStr = handleEmptySpaceInPath($outputFileStr); 9 I" L" N/ T6 V3 X5 g
my $scoUid = $hashRef->{'uid'}; # Y/ F) g$ [3 c4 x U- s; [8 b
$scoUid = handleEmptySpaceInPath($scoUid);
" S9 ~: `7 p8 ~- B' e' t6 V+ u$ D; ] I' _1 w3 `$ a
# Add the extra options. " R3 p5 \3 B! U% Y5 E0 c" G3 p
addOption(\@args, '-xml_file=', $outputFileStr, 1); * k' }" M" H: ~1 S
addOption(\@args, '-uid=', $scoUid, 1);
' S1 V8 f. j1 n1 D+ g5 w) @7 L) AaddOption(\@args, '-u=', $tcdbauser, 1); 7 Q1 [) b- O: s: G2 D
addOption(\@args, '-pf=', $pwdfile, 1);
- G" |% M7 c1 s+ w4 R# n% q, B
?6 J. L, i# Y% h) X* m) d$ S在 runLoadFscCache 子程序下增加红色标记的代码
9 f* n! J- |0 N+ d" n* A
9 d: g" f+ _- @7 Q7 m) @# E. \# This will be the full path to the executable.
& F& A7 u' s4 P! ]my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
( _- B" p! Y0 s4 x) \/ q& R+ i4 R
- O. A w% J' Nmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; l( A5 L8 C* I {) r
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; " n" x# B6 M3 e- W8 l
# Make sure we can find what we are executing.
! i9 ?$ n. T0 @( O) } c& idie "The ${exe_name} executable was not found at the following location: 1 G, f# Q8 `- T2 p( Q. @0 m6 h7 J: e
${exe_path}\n" unless -x ${exe_path};
n$ S. c/ _- |, i7 c' D% ^9 L2 ^
# Figure out output information from command line input
8 o& G0 d: t" Dmy $outputFileStr = $hashRef->{'output_file'}; 8 t8 G& z) B) e
my $fscUri = $hashRef->{'targets'}; 2 u( a, [/ [6 ?! ~; z3 T* g. K8 A; e
' _3 X! m2 _) [5 Y0 S) J# Check possible empty space in the string
! w# R' {& l+ F c9 J$outputFileStr= handleEmptySpaceInPath($outputFileStr);
0 `$ c( B4 P0 p( }% c- |; C$fscUri = handleEmptySpaceInPath($fscUri);
* O i9 l* M$ ]& V$ q0 P% r( B& e3 h$ |& m; Z* [! s
# Add the extra options. & s8 V8 z* `6 T; K4 G- d' D: h
my @args= ( $exe_path, '-f=load' ); 0 o: k: g% F& W5 I6 B2 {9 m2 G5 M
addOption(\@args, '-plmxml=', $outputFileStr, 1);
, I) B D( ~# {addOption(\@args, '-fsctargets=', $fscUri, 1);
5 ?. K2 j+ x* H, y" \: }' h6 b) xaddOption(\@args, '-u=', $tcdbauser, 1); ' F/ d. x3 {- z
addOption(\@args, '-pf=', $pwdfile, 1);
2 e( u8 ^* d+ O K! e+ `( f7 q# e8 ?7 U6 L! j9 u/ [! N) c
l8 \6 V8 V* m4 q2 Z( A
3 `3 v U7 {' A* j7 j |
|