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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
2 y  o$ j4 U# G. J$ E. a
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态
- e" G/ U9 I: c$ |) f
  E# m. l# Q0 D6 }8 y9 D  i问题
! K) a3 \, U4 o7 x4 n9 f% w6 o) \默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
: ~6 M' u. T/ S, i/ f0 X模块中的功能无法登录 3 l3 A/ P7 J( M3 S" k

$ d) Y3 G( E. R& ]3 bERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the ' `9 q0 t9 r" o/ E1 A$ B. }
user ID or the password is invalid.  
) |6 y0 V  D& b& Z! x) X  I! |/ \) ?$ W3 m# ^$ u6 `2 g# v3 ]
方法
. H  k% u0 }* K, J& ?修改 populatefsc 脚本,增加登录信息 ! f- P, m' c  J( U
在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 2 ]% F+ W/ n- l$ M" r% e
set TC_DBA_USER=infodba 5 J9 v, A. ~1 q$ J
$ J, R4 G" I2 b
在 populatefsc.pl 中 :
3 D2 j$ }- J6 G4 e
) l$ x: {2 D1 [! G在 runPLMXMLExport 子程序下增加红色标记的代码
, W$ L6 ~4 T& w# {. D3 t6 X1 F8 c6 Q
# This will be the full path to the executable. 4 ]& A! U6 s& R& W- S
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 0 ^7 L; ^+ D- B- g/ C7 P
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     3 a$ @* O7 y( m+ [, ]2 g$ d1 M* ~
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
" @5 P! u' P) y3 A- i$ R( d# Make sure we can find what we are executing. 5 U0 ?5 y* o) ~. p, a2 C/ a
die "The ${exe_name} executable was not found at the following location: ! ]9 r) E- B0 p! T) p8 N  a
${exe_path}\n" unless -x ${exe_path}; % P+ }6 T# z7 D( E+ }

8 b% L; R/ I6 l# Start building the command line.
5 @- N* q1 U4 b' D" E  ?my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );   A+ u7 z$ T7 E' E0 ~: d* X
, e  x4 p% |5 X& U9 e0 `4 P
# Take care of possible empty spaces in the argument values 9 Y+ E9 U# o/ I4 q& Q! K$ {9 w/ b
my $outputFileStr = $hashRef->{'output_file'}; % W4 }2 i1 j* C2 |+ l" q! B0 m' E; I
$outputFileStr = handleEmptySpaceInPath($outputFileStr);
1 |1 @9 R" E  `/ Vmy $scoUid = $hashRef->{'uid'};
3 }) ]+ j! i+ w! F4 R$scoUid = handleEmptySpaceInPath($scoUid);
! V4 x7 {2 Y7 A0 Z2 \0 x# c2 @% Y- g6 `2 _4 z4 @
# Add the extra options.
0 R+ W# ~) @' C. W9 w6 [& saddOption(\@args, '-xml_file=', $outputFileStr, 1);
7 B4 e% w' |/ U9 jaddOption(\@args, '-uid=', $scoUid, 1); # I: V  v6 ?3 Y! s! e
addOption(\@args, '-u=', $tcdbauser, 1);     0 S  O, V" ?7 k9 G2 A3 ]* Z3 Y
addOption(\@args, '-pf=', $pwdfile, 1);
) ?8 x. l& E9 X/ F$ x+ {7 |" {
7 B0 N1 T! ?7 ~. F* U在 runLoadFscCache 子程序下增加红色标记的代码 , `& ?4 H, m1 i% N3 d, C5 J

" i$ L* }5 S; x+ D/ v6 d# This will be the full path to the executable. ' N2 |) D- u/ V' m6 N0 S
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 6 ?8 v. ?7 u, G
, o) E5 R2 D2 Q1 G
my $tcdbauser= "$ENV{'TC_DBA_USER'}";
% a, }/ K. V' n1 @my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
: ~7 G6 b. ]3 N5 m  i% `# Make sure we can find what we are executing. ' n% W" p8 \; U5 a, ?6 E
die "The ${exe_name} executable was not found at the following location:
5 A: Q. T: V$ N( M${exe_path}\n" unless -x ${exe_path};
  y# N5 `) r& ]# @8 ^2 @# |4 m6 L  J* s, c) E
# Figure out output information from command line input
9 \) G, [4 q* @: S3 x$ n* u/ _5 D, gmy $outputFileStr = $hashRef->{'output_file'};
# A! D8 b$ e0 {: Amy $fscUri = $hashRef->{'targets'};
5 K, `7 B' a8 N3 C' q" O" S( s( [" l; S* V
# Check possible empty space in the string 0 o$ A$ @  ~6 _; q, R* |
$outputFileStr= handleEmptySpaceInPath($outputFileStr); 1 p6 V  n/ j' G; P$ p* E
$fscUri = handleEmptySpaceInPath($fscUri); 6 b& a2 N3 _2 m! b) P3 S" C- q6 S/ k# c  j

/ [$ N, J- @& w4 b; E' H5 p# Add the extra options.
# ~' _( z3 n. V9 F( x/ _8 D, imy @args= ( $exe_path, '-f=load' ); ( f$ m  @2 k, c' `! s) h) d# B
addOption(\@args, '-plmxml=', $outputFileStr, 1);   m" [: \$ e9 J1 g
addOption(\@args, '-fsctargets=', $fscUri, 1);
6 k% t2 z/ f# P6 XaddOption(\@args, '-u=', $tcdbauser, 1); 5 l- k& O7 R6 V
addOption(\@args, '-pf=', $pwdfile, 1);
  {8 j$ e0 o! S2 ]; U4 z- {4 D# f9 R0 B$ R- E# h

7 o  F  S0 z+ ~  X6 c7 f! Y, Q% e4 d4 v1 m5 M, p/ V; l
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了