|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
4 V( [% ^9 t4 H% R+ _
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
1 u% [2 f1 ^+ |3 X' L1 t1 M6 O( l+ R$ ?2 P% x* A. ^. B# X
问题 $ v- S" `& g( j/ `% `4 Q
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
4 w% ?0 N6 _- o4 T3 h9 h2 p" N模块中的功能无法登录
% Y5 t; E, m9 l5 h
- d; a% q- b8 P1 U. l( K7 V( XERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
; E% X9 B7 I) N6 iuser ID or the password is invalid.
* o B! n0 u# n' N. S: i" t$ T$ |! L
方法
8 L" k, W+ d# Z3 Y9 i8 b3 T# O修改 populatefsc 脚本,增加登录信息 $ o; x( b" w8 e1 z
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 ( L# H/ @$ H/ S$ ?0 w
set TC_DBA_USER=infodba . W! q) Y$ W% G; |
+ I6 n) V* W% m m* x7 t7 Q
在 populatefsc.pl 中 : 8 L# S# ]0 B2 t ?% ?! a
" a& a2 ~0 r# `. v; d5 P
在 runPLMXMLExport 子程序下增加红色标记的代码 , ?- t, W& K/ V+ @' y
) I# V, v7 E7 e
# This will be the full path to the executable. ) O: V5 F; j, ]
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 3 \; k; ?4 B; N; K
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
5 j# A" w1 n$ `. i; Jmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 7 `8 b5 D8 I% {2 U
# Make sure we can find what we are executing. y4 q# p b* k7 N
die "The ${exe_name} executable was not found at the following location:
$ P+ i" X7 c- w* {! F; g${exe_path}\n" unless -x ${exe_path};
2 \9 ?3 s% V4 p- ^- _; Z; b9 X9 j
- U% w% G1 F% j; ^# Start building the command line.
1 D$ {3 c/ \9 X7 p! Zmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 6 V6 ]. r+ u, B: Z3 G4 X" z
# K% Q C3 H4 D) X k7 z- M9 w: Q
# Take care of possible empty spaces in the argument values
1 C; F' ~7 }* `; l- r( Q+ h. ymy $outputFileStr = $hashRef->{'output_file'};
# _ C# b+ s# e9 t* {& H$outputFileStr = handleEmptySpaceInPath($outputFileStr); + }% g" ?. ]5 {' Z" l
my $scoUid = $hashRef->{'uid'}; . J( R% ] `9 r; Y
$scoUid = handleEmptySpaceInPath($scoUid);
6 T3 b& K6 H" x+ r* `
# Q/ A3 ^# i" `% I. q- j5 I. @# Add the extra options. $ c9 `( G% s, e2 F+ Y6 E; m1 _
addOption(\@args, '-xml_file=', $outputFileStr, 1); + M9 F! ^4 _' u/ t% V+ o
addOption(\@args, '-uid=', $scoUid, 1);
8 i7 ]& o( Y2 n5 B, R5 K" v7 IaddOption(\@args, '-u=', $tcdbauser, 1);
$ w1 y0 x& s9 b9 J) taddOption(\@args, '-pf=', $pwdfile, 1); 5 c7 N: N; W* J! T" e; _" Y- i* g
! [6 Z! B4 x- i! ?( [& |# `* ]6 o在 runLoadFscCache 子程序下增加红色标记的代码 H+ z' `1 s' h! f
s& P( Q6 v9 H0 U* P2 w- K1 f' ^
# This will be the full path to the executable.
, ?: Z& T9 s9 X# Q9 jmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
, K; k6 c0 o* A. P; S; N( s$ S3 {1 ^2 q6 X
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; ' J5 j0 H$ \( s- h& P# x$ Q
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; # P7 ~& s; P2 ^1 b8 @/ ]2 n
# Make sure we can find what we are executing.
7 @5 w9 I+ u! i8 h& Zdie "The ${exe_name} executable was not found at the following location:
2 J- ?1 G2 \% A! c${exe_path}\n" unless -x ${exe_path};
& j. w; }7 _& V2 m2 I8 N6 U! z: m5 m& Y8 E+ {3 x9 n" G4 R
# Figure out output information from command line input
5 A& W! {1 ]) o9 l, c0 t& Qmy $outputFileStr = $hashRef->{'output_file'};
' A8 e' B! \; A+ \/ G% i smy $fscUri = $hashRef->{'targets'}; " O7 B. q8 h. s, e* Y" ]! P
0 H) F; [+ B( ? f" H
# Check possible empty space in the string 3 A* O8 j/ N3 V9 f. R
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 2 j: T7 o/ p! Z4 i" v1 P. @* g
$fscUri = handleEmptySpaceInPath($fscUri); 3 P8 m* G6 Z: {9 V' k
1 Q: j; H3 O& p3 k9 }) q! \. n. m, }
# Add the extra options. 0 |+ j4 O0 o% |* I5 ~ ~; K
my @args= ( $exe_path, '-f=load' ); 8 v- z$ h" {. h( A1 ?* ]4 b
addOption(\@args, '-plmxml=', $outputFileStr, 1); ( w5 i7 `: i& a$ V7 P" B
addOption(\@args, '-fsctargets=', $fscUri, 1);
7 p3 f' U I+ a- d* |. SaddOption(\@args, '-u=', $tcdbauser, 1); 2 j5 |, b+ I* H( A6 A/ S
addOption(\@args, '-pf=', $pwdfile, 1); # b% v D% `/ I. ^. N9 E4 A1 {3 B
8 B# P& H# k. \0 g
2 k5 O& T% p. ?0 R3 h) {; z
( \9 R& B" Z! z4 A1 }( \' q |
|