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

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

[复制链接]

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

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

admin 楼主

2019-8-19 15:47:15

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

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

x
8 v* o: f$ b4 L& e& X. _$ e
171. 更改运行调度程序的操作系统用户后,populatefsc 中止在 TRANSLATIN状态 4 Q1 `* l9 v& b8 T

" q/ O2 D& o& e" K问题   n' w( [. E$ c4 Y( P
默认情况下,该模块使用 2 层的自动登录,如果操作系统用户不是 Teamcenter 用户,该
3 W  v9 O4 W, n( v& D4 b模块中的功能无法登录
, a3 A9 M9 W, V4 |4 M1 q
( m8 P/ z. D: Y9 \ERROR - 2018/11/29-10:51:46.962 UTC - NoId - 515143: The login attempt failed: either the 5 w6 \8 o5 F# p: P0 X2 f2 d- l
user ID or the password is invalid.  - |/ A; P/ Q1 t7 U, o
$ n% v+ A6 E  A
方法
$ T5 s) ^  h! q( X3 ~+ W2 v, p+ p/ z修改 populatefsc 脚本,增加登录信息
+ D, J+ e* G* E在 populatefsc.bat 文件中,在 TC_ROOT 和 TC_DATA 的设定后增加如下行 ' |6 M7 k! r+ {) u4 \
set TC_DBA_USER=infodba
0 P3 P! s  o4 H! v: @
* t7 a. M8 W+ e& ]在 populatefsc.pl 中 :
6 j; j1 c- A2 B, V; o! F- X9 a  v, g' Y# t: \, ]+ X
在 runPLMXMLExport 子程序下增加红色标记的代码
% G) E0 n  ^5 S* f) g2 Q% K& s  T, t2 z  ^6 G/ F
# This will be the full path to the executable.
3 i( u( s0 T; j" Wmy $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}"; % l* p% x4 Z1 O; L
my $tcdbauser= "$ENV{'TC_DBA_USER'}";     8 G5 l1 M: M2 E. B$ L7 c3 k
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf";
, f* B9 f( Z8 H( ]2 e# Make sure we can find what we are executing.
; s4 v5 z3 t. a/ v* j: F4 edie "The ${exe_name} executable was not found at the following location:
' q% q0 f4 O* U2 `" C${exe_path}\n" unless -x ${exe_path};
' ]" {1 ]* x; t; s0 @% q" l2 J; `* D
# Start building the command line.
3 J& \3 V- l# u" jmy @args= ( $exe_path, '-transfermode=ConfiguredDataExportDefault' ); 6 K' D9 [" T: @( T
3 p4 `5 r; u  m9 l/ a% ~9 J- E
# Take care of possible empty spaces in the argument values
7 E6 q3 K) m0 s1 l! d- lmy $outputFileStr = $hashRef->{'output_file'};
# c# q- H: Z; n) ?! s, a$outputFileStr = handleEmptySpaceInPath($outputFileStr); 4 v6 D- Y, V9 J  z7 O, B
my $scoUid = $hashRef->{'uid'};
: D( A* l' h# m# ]; B$scoUid = handleEmptySpaceInPath($scoUid); ) T* ~7 g9 P% a1 x+ o  l! [
- M) a( h) {# ^5 l# l9 G; q
# Add the extra options.
" r& d* b! V& s) ]& Q. X- FaddOption(\@args, '-xml_file=', $outputFileStr, 1);
4 M* \: G: Z! q0 M* ]: C1 naddOption(\@args, '-uid=', $scoUid, 1); 8 d( _& @0 u1 P- q, d# g5 {
addOption(\@args, '-u=', $tcdbauser, 1);     
' P# A( L3 G1 s, v6 O- W7 VaddOption(\@args, '-pf=', $pwdfile, 1); 0 l  W  B; W; @
( p1 T$ v7 I7 G
在 runLoadFscCache 子程序下增加红色标记的代码
' Y+ V% m9 d3 N) B1 h
4 y; Y- `% `  T* I6 P' j0 }# This will be the full path to the executable. # k* [, D+ i" ~3 S) ^) ]
my $exe_path= "$ENV{'TC_BIN'}${dir_separator}${exe_name}${exe_suffix}";
& F) L7 x8 b/ ?' R& i
- Q$ A- B5 ~% `( }3 Pmy $tcdbauser= "$ENV{'TC_DBA_USER'}"; ; i1 N, j% v1 ^) O0 D
my $pwdfile= "$ENV{'TC_ROOT'}${dir_separator}security${dir_separator}server_infodba.pwf"; # V/ d0 n; ]8 @& [
# Make sure we can find what we are executing. 5 o* T% }0 o  }/ }% @  r
die "The ${exe_name} executable was not found at the following location: ( p( G7 f* I7 A' d. }6 q
${exe_path}\n" unless -x ${exe_path};
9 H. i- I1 X* A; ^: c1 B: L" _0 b- n: Q% d' c$ ^
# Figure out output information from command line input 4 e* d# C9 j# C7 O7 m# d
my $outputFileStr = $hashRef->{'output_file'};
6 F+ r- p+ p# Jmy $fscUri = $hashRef->{'targets'}; 0 S! a. ~3 y/ J0 ]5 k

& X: r7 \2 O. ]9 Y+ p) ^# Check possible empty space in the string
' |; n. v$ G# k$outputFileStr= handleEmptySpaceInPath($outputFileStr);
/ A0 v- u$ `2 h+ e$fscUri = handleEmptySpaceInPath($fscUri);
* q/ \0 x. Y' _' r1 `& U) Y* U) d' u. ?# ?4 x  k; k
# Add the extra options.
5 Z  A" z. z" L/ @8 t/ n. r, imy @args= ( $exe_path, '-f=load' ); / z4 @9 i/ R: r7 R3 R
addOption(\@args, '-plmxml=', $outputFileStr, 1); ; e6 Y% B/ a( n: E' j' `( R
addOption(\@args, '-fsctargets=', $fscUri, 1);
- y# A4 z" U$ K3 i0 n* ?addOption(\@args, '-u=', $tcdbauser, 1); ! m1 M: w6 C! \9 p' x, g0 F# [
addOption(\@args, '-pf=', $pwdfile, 1); " B9 O: Z& w  \2 |0 C

6 W3 ^/ w3 C$ C" s9 m4 O4 o
; F: E, \. c( Y' j; `0 S
( N) p$ R" o/ W; r9 n6 R
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了