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

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

[复制链接]

2015-9-10 17:08:35 5481 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
3 N, D/ ?6 [# z: \% i  P
; b" U. ^; b/ ]* E  C7 [Problem:* G! t! v+ p! C
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and9 x- p' j' ~: C) s7 ~" P
obtain the following message after 180 days.- V; f: h3 v# C1 J4 @, Z' m% x
Login was unsuccessful.: Problems encountered logging into TCServer:: V  x# B6 g1 p' C; J# B
... database7 A( a$ y7 G+ I+ P
Cause: Unable to bind to server running on localhost: 1572
. n( K! A" d% v! l# C$ Q- c8 L) d9 p8 e/ f" ~7 g7 K
Analysis:
$ t: r- n+ }- ~% Q2 C' NThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started- N  @: W3 {& e1 b2 S5 t
correctly. However, when you try to connect to the database using sqlplus you can obtain the
! \  e1 U1 N$ ?9 {# V) h' J" ?following error message:
7 t+ w) B; K# f* p$ V. A+ H& ]ORACLE_HOME=your_oracle_home( m0 R. o0 C3 b# ?+ e# G8 c
ORACLE_SID=your_sid
: t8 [  S' k2 h; I>%oracle_home%\bin\sqlplus /nolog
4 T! J6 E7 |; A  g/ YSQL> connect! @! v( {# H) e
infodba
( Z' D$ R$ i" e4 w2 ainfodba* J% ]0 ?' M2 C. i: D: M
ERROR:
$ c4 f& T# P* Q0 K  UORA-28002: the password will expire within 10 days- p' G: F! x* I% w( V6 n
) Q  a" _( k* }, z+ A
In the user tcserver.syslog file we find the error message:
# \& y7 o( A0 x+ B& l8 |Connect failed (-28002) for 'infodba' at ***5 g2 ]' W1 c" q3 f% m
The "infodba" Oracle user seems to be created using the default oracle profile which has an
. y3 [4 Z$ B$ G) J! v4 q2 V* Xexpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database
' e) n% z5 P1 t: d! f% Tan error message, ORA-28002, is sent and the connection fails./ q9 B/ x3 w, X0 d8 @; Z9 Y

' U; @1 e# R9 _# z( W# ?$ ASolution:
4 G1 v! s- G; V1 C) j& J: @Find the infodba profile using SQLPLUS:
8 O- G* b5 |& E( v+ vSQL> select profile from dba_users where username='INFODBA';# {8 `, I& p' P8 ^
List the profile caracteristics:
9 Z1 _) Z) J: |: ?5 j  W0 [. sSQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';& V. P0 L. ?( H5 |# W
Check the PASSWORD_LIFE_TIME.  w2 e- A5 o1 R2 J/ z3 u
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:7 n9 o% A! ?" D5 [2 E5 _
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;, x, _; T( C# H5 L- `. z% |3 F( M
Change the password. It will not expire again.
3 |) Y- z; ?" BIf you don't change the password, it will expire because it was created using a different profile at
3 C- w# Y( N! @& r- a* g* Xthe time.+ a+ O) E# j9 ?- Q: M- H
SQL> select expiry_date from dba_users where username ='INFODBA';
# C3 o9 N' T% ~=> you obtain an expiration date+ |3 H" `' v8 j; ^# q, Q
SQL>alter user infodba identified by tempo ; ( define a temporary pwd) 0 C$ y% q. {5 k. I# L2 b
SQL> alter user infodba identified by infodba ; ( specify your original infodba
3 d8 H) Z# X) Qpassword)
% @2 B0 {/ [" ^# ]/ u2 ^: g7 ISQL> select expiry_date from dba_users where username ='INFODBA';
6 l$ w1 H% l% k4 q7 U. l$ b=> you have no expiration date.0 E0 ^8 o9 K. A9 K

! |7 x4 d9 P+ k& o' q, q. W. ~- |4 x( d# |; t# {8 B
Remarks:
. @9 }5 j8 R  K+ ], l6 YBecause we have redefined the same original infodba password, the TC_DB_CONNECT variable" @' G; N/ I/ P- M" G" P& d, ^
in %TC_DATA%\tc_profilevars.bat is always alive and correct.9 b0 ^" o6 L! n1 w- j' z, ~! c
Another modification can be done on the default profile:8 K! ]- p5 h4 e0 f4 H7 Y. f- A

1 V) q) h# n  AALTER PROFILE DEFAULT LIMIT
! {  j$ u/ d$ d* n FAILED_LOGIN_ATTEMPTS UNLIMITED
1 J! C3 h( s% ?5 t, H+ h PASSWORD_LIFE_TIME UNLIMITED;2 g2 k" r, X6 i9 q8 s; C' _; _5 X
. ]1 @3 j6 |7 X* Q
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了