PLM之家PLMHome-工业软件与AI结合践行者

[TC问题解决方案] 172. Teamcenter populatefsc 中止在 TRANSLATIN状态

[复制链接]

2019-8-19 15:47:15 1835 0

admin 发表于 2019-8-19 15:47:15 |阅读模式

admin 楼主

2019-8-19 15:47:15

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x

/ [9 q+ \9 i& ]/ m% G5 a7 g171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
: c  f$ I5 v6 `2 b* D5 f2 G6 O
3 ?" E) Z' f3 s/ I; V/ k8 i问题 ; I( B: O& k, ]+ U1 p7 t" i9 Y
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该. X$ ]! ]( V* t5 {
模块中的功能无法登录 * Q- V0 Q4 i6 Z" B5 Y
- m. [$ v' x+ x9 s: j) \
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the & T3 v* v2 \  G& S5 y  S9 @- ?
user ID or the password is invalid.  
; |; G) m% `7 v& r
- g# ^& \" n; A, m6 U6 _3 ?. g, P方法
6 M2 K: j) }  k$ m! c' w. o; @- J0 j修改 populatefsc 脚本,增加登录信息 4 T' r; w- |- w4 v' O4 g
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
4 F7 g. N) M0 y/ F% |0 r* iset TC_DBA_USER=infodba 2 Z0 p7 T6 f/ p/ I! @8 I5 y

! u4 V) A2 \0 f8 V9 C在 populatefsc.pl 中 : % e2 A  b" H: q1 R9 v
1 d/ W* b8 r8 u; ?  `+ G- Q* Q0 ~/ G
在 runPLMXMLExport 子程序下增加红色标记的代码
7 v8 @$ {) D: G7 D1 p& _# n3 h; r7 c' c- d
# This will be the full path to the executable.
; ]' ]& {! e2 a* @my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 7 Y  ~0 v8 X6 F4 n# u' D& A9 F
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
$ q" ]! A! `6 emy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
7 n& J" a3 a3 a/ T' `( t! f# Make sure we can find what we are executing. , t0 X( [2 b& U$ u6 L5 X( A
die "The ${exe_name} executable was not found at the following location: ' J0 X: G: I& s0 n
${exe_path}\n" unless -x ${exe_path}; 8 J6 ]7 t/ @6 J" X9 W" |

. ?. _  z8 K/ @$ `( d# Start building the command line. 1 b& }7 i- Z7 U3 z/ H5 b
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
; r# D; l, v* l; A8 C) L5 s  h, I" w8 I+ R
# Take care of possible empty spaces in the argument values & T. ?) S& V( L4 W
my $outputFileStr = $hashRef->{'output_file'};
$ P& s8 _" W6 X& i( ^+ ?, F4 q$outputFileStr = handleEmptySpaceInPath($outputFileStr);
- i; L- B; Y/ o0 u( [, Vmy $scoUid = $hashRef->{'uid'}; 0 R5 L+ A: Q# ^! b. _7 T
$scoUid = handleEmptySpaceInPath($scoUid); 5 K% |7 ~$ g' @0 `: {

/ `9 j  g+ H/ m* P& e% n# Add the extra options. / U. y1 z/ p# P- s6 W3 e9 {
addOption(\@args, '-xml_file=', $outputFileStr, 1);
5 \# X; W7 `* |- I5 }addOption(\@args, '-uid=', $scoUid, 1);
( ]7 O+ F+ Z" j; XaddOption(\@args, '-u=', $tcdbauser, 1);     9 O% p4 c; n: W4 M' N9 d, h
addOption(\@args, '-pf=', $pwdfile, 1);
# f, L( N; M0 B5 I" v0 B
) F# n+ f. O6 M* E2 f! b在 runLoadFscCache 子程序下增加红色标记的代码
2 W) [: N4 [# d4 T- l( @! i: R' }5 x0 C- Y! [$ ]/ D
# This will be the full path to the executable.
1 ]$ m' o* z% T) E: p! l# i, Wmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
4 f* j' t2 Y7 |. {9 d
/ y" f, l6 ~) C( l+ Qmy $tcdbauser= "$ENV{'TC_DBA_USER'}";
7 }9 B' M6 J; ~1 Y; G( H4 Zmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
7 m3 }/ ^6 Z2 S+ |; f, [# Make sure we can find what we are executing. & r9 z6 p6 ^. w7 c5 B9 w9 o
die "The ${exe_name} executable was not found at the following location:
* M, X. i/ M  {+ _" c+ D$ N${exe_path}\n" unless -x ${exe_path}; 1 y. f# s6 g$ `/ H8 q
! G1 V( e  p( b' m3 q
# Figure out output information from command line input
& @9 J' }& _6 Wmy $outputFileStr = $hashRef->{'output_file'};
9 j- y7 E+ X4 C1 m: S$ ^5 L; dmy $fscUri = $hashRef->{'targets'};
+ z8 d0 G$ `8 S
" ?- B, W: H) X; N' H6 _# Check possible empty space in the string
* y) H) r) n6 |: P( q% s$outputFileStr= handleEmptySpaceInPath($outputFileStr); 3 N0 b0 V9 L: C- s
$fscUri = handleEmptySpaceInPath($fscUri);
& X# u2 A9 V; P/ F2 P4 ]9 u4 d% ^! ^: }
# Add the extra options.
3 `# N5 r" m/ Imy @args= ( $exe_path, '-f=load' ); 2 |' v' m- i7 j' F3 a
addOption(\@args, '-plmxml=', $outputFileStr, 1);
$ D$ ]6 @! N* i- aaddOption(\@args, '-fsctargets=', $fscUri, 1); ; r4 p. A  Y0 ^/ {
addOption(\@args, '-u=', $tcdbauser, 1);
" L% P) E& O; C6 g  q& z, A! k8 TaddOption(\@args, '-pf=', $pwdfile, 1); 2 D' @) G: w- ~1 u% i# p% Z% [

/ P4 C( ~, }$ Z. a  J) K( i. ~
" q! S/ B7 x- k3 d1 A, [2 r% w* w2 r/ M  L" A8 Y
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了