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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
4 B! p# H3 d1 w0 V. w' A
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 ' R+ F8 q8 Y$ Y: \( q" [

6 x: h5 x" M7 D: R5 [问题
# T" ~% D# K- e- T6 G3 U8 ]1 y默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该: a3 y& W9 L2 A, K1 Z: Y) G& p
模块中的功能无法登录 ( J3 C) Y/ c+ \/ X7 S0 @
) L- s- M- H9 y+ I! }! b
ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the / S. Y. {; @9 v
user ID or the password is invalid.  
( m: V0 @8 b5 M3 \8 G8 W. Z! O6 I0 g5 e
方法 $ |0 Z$ d, ?& y! i  h+ j
修改 populatefsc 脚本,增加登录信息
0 }! l' b3 g8 b! t6 [4 k& n在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 3 Z$ f0 ^6 s8 W# e( {# _5 K
set TC_DBA_USER=infodba 0 A+ Z& ^' T* ?4 Z8 ?, R
; n% D# G/ X9 v( T9 W
在 populatefsc.pl 中 : ' k6 h9 O8 ^1 K; T8 u  M
% B) o7 v  y& H5 f; B& B) [
在 runPLMXMLExport 子程序下增加红色标记的代码
: l+ n' e" l& m6 W% ?) t. z$ B$ ^; S0 i
# This will be the full path to the executable.
. G! C4 o8 \0 Q, U5 A& I: ]1 Nmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
% T2 F2 E' R. t* N. V2 @4 C- }my $tcdbauser= "$ENV{'TC_DBA_USER'}";     3 W7 p5 Q9 K5 {; q
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; : ?0 ]- Z) l- l7 f7 D9 k: u% [
# Make sure we can find what we are executing. * h$ s& `" e# v, P& ^# ?
die "The ${exe_name} executable was not found at the following location: , m' F: F4 }. ^
${exe_path}\n" unless -x ${exe_path}; ! T; S) x* w5 [, M6 P
6 d1 K& X# }- v6 ~6 ]1 Q6 A
# Start building the command line. 7 s) ~: V4 L! u+ r6 |- [$ p4 w3 l+ ?
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
& L3 m! U! S+ I* s( M3 \  {5 W3 w& u* N
# Take care of possible empty spaces in the argument values
  k% R7 x4 P0 z6 b6 N0 Y3 Pmy $outputFileStr = $hashRef->{'output_file'};
( _, G3 |4 [$ q" c$outputFileStr = handleEmptySpaceInPath($outputFileStr);
. k6 F) Y" R; U! t' G6 g. Ymy $scoUid = $hashRef->{'uid'}; * I* C% T" n( m
$scoUid = handleEmptySpaceInPath($scoUid); : [+ l* j  a/ y5 `
5 z4 Q8 u  P1 K
# Add the extra options. ' }7 Z1 ]5 h- L& X! T2 i
addOption(\@args, '-xml_file=', $outputFileStr, 1); / Z; R, P( T8 o, E' P5 z
addOption(\@args, '-uid=', $scoUid, 1);
& c* D9 i5 o3 F: [, gaddOption(\@args, '-u=', $tcdbauser, 1);     
6 n1 O. t* P0 daddOption(\@args, '-pf=', $pwdfile, 1); 5 |* {0 d. P. R7 x- F" S

& _1 H" O1 \8 ?! f# a: U2 W在 runLoadFscCache 子程序下增加红色标记的代码
: l0 j6 V: V# a( ~& L7 |# U  O! s- I
# This will be the full path to the executable.
, h  ^7 R0 W& omy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; , H9 j$ E1 Z) W+ x' D
2 o  F7 ~) p, j  o- d3 C; a4 j/ g
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
( n3 z6 }& T9 ~0 o; lmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; # \( W9 W" \, n* n
# Make sure we can find what we are executing.
9 o. i9 N: b& A# V6 rdie "The ${exe_name} executable was not found at the following location: ( P1 W1 q, u) i5 j+ v& u
${exe_path}\n" unless -x ${exe_path};
2 w0 M" e; u: t( ?; L; M8 ~: p& [9 T4 F* H; R
# Figure out output information from command line input
5 D* a; ]5 x* Pmy $outputFileStr = $hashRef->{'output_file'};
2 z9 `8 T+ i4 F. G7 Dmy $fscUri = $hashRef->{'targets'};
1 h$ v( p6 {2 x* `) Q6 }6 @2 z7 o$ N5 @$ _% x: D* V$ F
# Check possible empty space in the string 8 }  c) O, ^: P9 y/ j- i7 {% p( k
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
. q; A/ U" U  M5 {  X$fscUri = handleEmptySpaceInPath($fscUri);
3 V9 A- l- q3 r- L0 W( G! v! l' m& M5 D7 D! a2 N
# Add the extra options.
9 W0 y8 [$ }$ h! umy @args= ( $exe_path, '-f=load' ); 9 ]7 j4 L" h9 ~
addOption(\@args, '-plmxml=', $outputFileStr, 1); $ Z8 S$ U: o- t( f
addOption(\@args, '-fsctargets=', $fscUri, 1);
( Z. Z% O' S$ K' ?7 f6 z$ p8 gaddOption(\@args, '-u=', $tcdbauser, 1);
# q( Z" c0 a! c* iaddOption(\@args, '-pf=', $pwdfile, 1); 6 K9 u& A& {0 l. G

5 y% z- U1 B/ \. B! G2 v) ~- i) Q5 U% m$ d4 k5 ~

8 u* x1 Q% g7 N, P0 G$ `/ e8 X# d
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了