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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
' v& Q7 R2 h5 f+ h4 w" _1 A
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 & M6 V; E+ S+ w8 W8 U( W9 f- d  H

/ W% ]% @2 {: [$ M# p8 [问题
5 @: @/ _2 a9 o7 u* f默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该. Q  W7 o9 ~3 W7 B
模块中的功能无法登录 4 [* a7 K& {8 g( J

5 n' f9 M: d. [% ^' sERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the
- B$ I, E; b" [0 Suser ID or the password is invalid.  
5 @" u) W( _9 F2 _/ Q4 G% H. W' X3 F5 B( ~6 q4 K6 r4 r" W
方法 / l9 {* m5 w) W
修改 populatefsc 脚本,增加登录信息
; F6 J( i; N! W; V在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行
, C/ _! Y+ d8 Lset TC_DBA_USER=infodba
! j) X% h# D1 q% d. k9 V
; n! H+ h7 h3 ^* r0 E3 \2 n& R, q在 populatefsc.pl 中 :
) k) \/ p  b5 U) k6 r
0 G  ]& M/ m6 _2 }" X在 runPLMXMLExport 子程序下增加红色标记的代码 & w% z1 P" |6 c) Z2 {8 |1 y+ x0 g
, i/ F5 [0 R1 b' n
# This will be the full path to the executable.
& D' e/ |, p. E( b" P  ?* umy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; 7 Z3 X0 W7 ^8 L+ Q8 Z) r
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     
0 }# @2 o$ }9 B/ l/ a0 u6 A- Rmy $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
9 e# l6 t, V! Q: y2 `9 B# Make sure we can find what we are executing.
6 E# C' w' I8 |9 F$ n% xdie "The ${exe_name} executable was not found at the following location: * F7 ]  S( U3 w/ Z
${exe_path}\n" unless -x ${exe_path};
- v8 {5 c3 z6 _% _: k+ {( o, J# z  d6 o$ V
# Start building the command line. . Y0 l7 ]  D1 h% T  ^# n" L! D( M
my @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' );
7 g# K0 n. X( z* ]" E4 s0 L' k0 ]
' @- X) f/ C1 A( L: W7 J# Take care of possible empty spaces in the argument values
) P3 a) w1 o. I4 S8 ]$ Smy $outputFileStr = $hashRef->{'output_file'};
4 r4 [* ]7 }: k: r: c7 S* P' E$outputFileStr = handleEmptySpaceInPath($outputFileStr);
2 h0 V) U1 G) C& w6 f$ s* tmy $scoUid = $hashRef->{'uid'};
1 a. e' m8 }& a/ h$scoUid = handleEmptySpaceInPath($scoUid);
) S" j4 j2 J1 v- Z% A4 t- ]+ `8 M0 _# ~
# Add the extra options. 9 ?$ ]0 q' d& B1 u  B* {2 t! D: v
addOption(\@args, '-xml_file=', $outputFileStr, 1);
7 n$ y6 ^8 j/ B/ J7 qaddOption(\@args, '-uid=', $scoUid, 1); ( V% d& j2 r1 X3 T7 Y
addOption(\@args, '-u=', $tcdbauser, 1);     
: _  L; |) h& ^0 ~' k. @1 {addOption(\@args, '-pf=', $pwdfile, 1); ! e( {, d' f' d* K  _6 ]

* V1 \. r$ G8 C9 q) H在 runLoadFscCache 子程序下增加红色标记的代码 . h4 F( `* q$ _8 s2 W2 {

3 X. W& G- @: Z1 ^# This will be the full path to the executable.
$ I7 f2 I- K8 W2 u" M6 R2 y5 ymy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
- W: K4 B# `4 e  Q- J4 q/ h. D8 H; C/ K* s" f8 @) D7 ]( [
my $tcdbauser= "$ENV{'TC_DBA_USER'}"; + q9 y- W; O, F: c! j  k' ]
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; 1 C# `- i6 a: @" J0 X
# Make sure we can find what we are executing. : q1 i$ q% S, X8 _1 H: S
die "The ${exe_name} executable was not found at the following location:
  f% w7 h- `- i${exe_path}\n" unless -x ${exe_path}; 3 F+ i2 h# x' h7 t- ?$ z3 g

. J9 \, L% b: f7 t# Figure out output information from command line input 0 ~6 f5 ^  {8 v* @0 X
my $outputFileStr = $hashRef->{'output_file'}; + J" f) {4 w" C/ l0 d7 L% Y( V
my $fscUri = $hashRef->{'targets'}; 9 L- s6 f3 S; r8 Y$ y

/ m: c3 X0 t9 W: |5 D( w# Check possible empty space in the string 4 b# m  R2 \: @7 n
$outputFileStr= handleEmptySpaceInPath($outputFileStr);
0 g7 G7 D( k8 k( l: w% v$fscUri = handleEmptySpaceInPath($fscUri);
5 y% X0 K+ V2 L
# f9 d8 V( y5 o4 R* v# Add the extra options.
4 t/ e/ {: j6 h) g  E1 P; i3 {my @args= ( $exe_path, '-f=load' ); . P! @1 k; x# Q' L- Z# I& t
addOption(\@args, '-plmxml=', $outputFileStr, 1);
$ U# o8 e+ J+ J* c$ haddOption(\@args, '-fsctargets=', $fscUri, 1); 6 m- _4 e3 d) h! T8 p& W) P  f
addOption(\@args, '-u=', $tcdbauser, 1); 6 @7 B* r* T5 u) c: _# Z
addOption(\@args, '-pf=', $pwdfile, 1); 3 ]$ X5 `) y$ ?; o' `
% ^/ W4 k' L( w6 ^3 T+ S- J" e
! X" q' N/ R& b. X
9 {7 h: V5 x, A4 [- M+ l/ G
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了