|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
- S: ^0 D% i8 N3 X, C# E3 t
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 4 ?6 e: _9 x: v
0 ^, w0 w% Q/ B
问题
$ j% b' k! o! y; A4 T8 I6 t默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该- a9 @# T8 Z, w' B0 m, c4 [* ?! i0 W5 v
模块中的功能无法登录 $ E' S# J! N7 b
+ ~8 e! D y9 c6 u
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the ' }& n( [+ f1 T5 Y
user ID or the password is invalid. 1 ~1 m1 j4 L! _+ y
2 L% K, K$ b* m7 x/ K5 Q }- R' T
方法 ) [' I5 h6 P# y. `+ D# H
修改 populatefsc 脚本,增加登录信息
/ [- R- g* O2 F* [$ b在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 * N% [ G0 r. S# Q
set TC_DBA_USER=infodba & J+ k7 K& u. ?( a& D
) g. B2 W8 Y- [' m1 x
在 populatefsc.pl 中 : 4 ~$ R: I' v$ i) g3 c2 \7 B
8 b; a3 J5 |$ N& c
在 runPLMXMLExport 子程序下增加红色标记的代码
K I$ a( q. N9 c; X4 x$ O. ?9 F, q. }6 ~" z9 f% x
# This will be the full path to the executable. $ o2 ]+ M" x2 O# X3 W( e2 R
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; ; Z, w( z) x4 j. H
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
* G% j3 x$ s9 Y4 Dmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
( n7 b* E, f. y( X8 m! }5 `# Make sure we can find what we are executing. , b' D) U) H- {/ N, B7 d
die "The ${exe_name} executable was not found at the following location:
& c6 z4 g: N2 Z/ \5 p+ p${exe_path}\n" unless -x ${exe_path}; 3 M1 A6 R2 m$ l1 N, D
* x; o% ~# p# `9 s$ w3 r4 {# Start building the command line. ; t. T ]+ i& |+ N1 D$ B N
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 6 U! G9 K6 D6 c# @+ W7 B% V" F4 E' Z
& ]% a3 Z" Z* v2 K
# Take care of possible empty spaces in the argument values * t9 p1 F/ E% x, l2 p9 X2 C
my $outputFileStr = $hashRef->{'output_file'};
0 I" `, d1 y. v4 Z8 W, g3 T$outputFileStr = handleEmptySpaceInPath($outputFileStr);
9 L$ m& T, t5 W5 Kmy $scoUid = $hashRef->{'uid'};
1 D$ O$ W+ ], p5 p2 e# |$scoUid = handleEmptySpaceInPath($scoUid); ' U1 i* y# H. a
7 x& w8 |# y9 i7 _9 K& C6 M. Z# Add the extra options.
: m0 T7 E6 R. L1 LaddOption(\@args, '-xml_file=', $outputFileStr, 1);
" ~2 N8 @$ l% a+ waddOption(\@args, '-uid=', $scoUid, 1);
t! s- _" }/ V7 M3 `6 X) WaddOption(\@args, '-u=', $tcdbauser, 1); 3 r7 F9 K3 T: b& a( N
addOption(\@args, '-pf=', $pwdfile, 1); $ C( p" A1 F4 l' v" @
3 i( B) e! m" o: L& S9 M) B在 runLoadFscCache 子程序下增加红色标记的代码 , M$ P( M& p- Y
0 g# L+ |# I) Y0 q0 R- @! L( j
# This will be the full path to the executable. 0 }( L* V! y; k7 J$ {! h
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 4 [1 n) k+ z3 M% J
' N! Y4 E5 ?( L' a# d$ Wmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; $ B) D5 n2 {; r1 T+ |6 |
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; $ z0 D$ ~) b+ ~) O [0 I
# Make sure we can find what we are executing. : k- d4 z9 z# |. v+ W3 J0 Z! b0 q
die "The ${exe_name} executable was not found at the following location: 8 {" U; D: V6 V* o
${exe_path}\n" unless -x ${exe_path}; - X2 B; l, G/ G# j' @5 `
8 A$ p7 Z2 x/ V% e" A' n# \# Figure out output information from command line input ' }+ w9 ` o2 h) ^2 _
my $outputFileStr = $hashRef->{'output_file'};
( o" x) l( |/ t, T2 m# E# E6 ~my $fscUri = $hashRef->{'targets'};
3 f2 E% [( E3 D7 C* j
# H* h1 a' S; ^) R# Check possible empty space in the string
* w. G' q* r0 n+ G; S5 k P$outputFileStr= handleEmptySpaceInPath($outputFileStr);
& c3 N! h7 u/ U" A# R$fscUri = handleEmptySpaceInPath($fscUri); / ^7 R, s" ^+ D; [( I; B3 C; O$ A
# A1 j+ B9 Q( B$ O% b# Add the extra options. $ c i4 r6 N: F6 j/ Q9 M; g2 P
my @args= ( $exe_path, '-f=load' ); & O [' T# J" O
addOption(\@args, '-plmxml=', $outputFileStr, 1);
U6 c; z' W& XaddOption(\@args, '-fsctargets=', $fscUri, 1);
5 y! D$ ^6 t# h2 I8 D3 ] EaddOption(\@args, '-u=', $tcdbauser, 1);
/ D- A- o& u4 haddOption(\@args, '-pf=', $pwdfile, 1); ) A: `( L7 X( l2 f# C% L
4 ]. B, `2 k7 x) {
+ ]9 S; ^3 y1 Q7 y/ I$ ?" n7 W8 `
* R" Z/ Q' c' ?6 {9 D2 } |
|