PLM之家PLMHome-国产软件践行者

[TC问题解决方案] 88.Teamcenter 的账号infodba数据库oracle过期的处理

[复制链接]

2015-9-10 17:08:35 5445 0

admin 发表于 2015-9-10 17:08:35 |阅读模式

admin 楼主

2015-9-10 17:08:35

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

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

x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
, \) m* e2 Q9 \4 \; @- v6 T
1 b) d* d8 R, a$ g  CProblem:
" T0 H) a) W" u$ p' B) K+ ~If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
& M. A# \4 |$ aobtain the following message after 180 days., q& O2 @6 E; q8 M& N. S, V  \
Login was unsuccessful.: Problems encountered logging into TCServer:
6 r4 `/ }1 y( h* B9 A; K ... database
9 A& E; _0 o/ W. Q' @Cause: Unable to bind to server running on localhost: 1572: B2 m/ x+ `* r* l/ c

7 C9 O7 C5 d0 ?) S" F7 J4 oAnalysis:
# f# }' i: X$ F  VThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started
3 Q2 K$ g3 x( O$ acorrectly. However, when you try to connect to the database using sqlplus you can obtain the
$ S3 T. h7 N3 e8 I' h1 R" bfollowing error message:: }) R1 L) y" [/ a+ }5 [2 \
ORACLE_HOME=your_oracle_home2 t( x4 w, W! }: d5 t* B+ a
ORACLE_SID=your_sid  O3 Y) W8 J1 |1 k( \
>%oracle_home%\bin\sqlplus /nolog3 H8 @. o+ [2 C& P4 l( |$ R
SQL> connect/ v3 W- n; |! r3 T9 i- h
infodba4 z1 @7 Z9 w8 M; R+ f3 b8 t
infodba
. L  Q) @- \- Q6 P2 f7 e: `" b' `ERROR:& s- l* R7 d3 i3 ^8 X+ t( ~. J
ORA-28002: the password will expire within 10 days
* G+ Y0 D4 m) ]) i7 E
+ D. ~( D! ^* Y; `) b  c/ ^$ s' HIn the user tcserver.syslog file we find the error message:, G5 o, I  @7 q1 }4 s3 d
Connect failed (-28002) for 'infodba' at ***- F0 `, ~9 v4 V0 g7 Z% m" L/ \  e
The "infodba" Oracle user seems to be created using the default oracle profile which has an
% _4 h+ ]5 s( P  V1 c+ I3 _expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database4 S  m  \+ ^- G; \. ^. e! A/ X8 g, r
an error message, ORA-28002, is sent and the connection fails.
( B( D/ C( ]/ _; N, h; N$ H0 I1 N& `2 {% V
Solution:
( [0 H, M9 L) n3 U; vFind the infodba profile using SQLPLUS:
0 C2 z9 x, @' ?* Q4 CSQL> select profile from dba_users where username='INFODBA';
5 n) t1 `# z0 H7 C& k) ~* k  PList the profile caracteristics:: i4 J% w8 E( |- o9 P
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';0 @3 ]. n% b% k5 K
Check the PASSWORD_LIFE_TIME.
: ~! f7 ^0 B3 @% p; \: L" KModify the profile and specify an unlimited PASSWORD_LIFE_TIME:
. ~; o! a" X9 ZSQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
3 Q$ l' R% M9 y8 D8 {% `, \Change the password. It will not expire again.; J- J+ t( L5 Q5 Y" V$ j( ^, r
If you don't change the password, it will expire because it was created using a different profile at
& X5 z; x% s# N% C; l* Y! Fthe time.# b( _' q5 D  k% t1 a1 R
SQL> select expiry_date from dba_users where username ='INFODBA';
! o: ^, T: G, P2 S: Z% D=> you obtain an expiration date
% z) `7 ?2 f  c+ QSQL>alter user infodba identified by tempo ; ( define a temporary pwd)
3 }* f6 a0 z) N* X8 USQL> alter user infodba identified by infodba ; ( specify your original infodba: L) p5 `, C# w9 H
password)3 A4 T; O% K' z3 P
SQL> select expiry_date from dba_users where username ='INFODBA';+ }, f& R# G' C6 X+ M
=> you have no expiration date.7 s  t# Z. x$ ]& m9 W" ^( i9 c

$ g6 F# v: t2 V8 P/ Z6 J  V  Y$ a1 Q. D$ x7 J, R: Q& T) ^! b. \
Remarks:" ~2 d* N; @/ j* \. t2 Z
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable# N% v. }8 W* w
in %TC_DATA%\tc_profilevars.bat is always alive and correct.
4 b) G; N; u# N1 m: nAnother modification can be done on the default profile:4 N: s2 I& k2 y/ v" G" \

+ D4 {' F* m$ |; t& F) sALTER PROFILE DEFAULT LIMIT0 P) J6 J; ~4 I. K
FAILED_LOGIN_ATTEMPTS UNLIMITED+ z: i' a& m) I% {# }0 d( I2 \! m+ V
PASSWORD_LIFE_TIME UNLIMITED;
: P0 y* d9 x+ D0 V
3 T. y1 O) Z! x1 r- _3 o" z& b
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复

使用道具 举报

发表回复

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

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

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

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

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

    我知道了