查看: 5733|回复: 0

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

[复制链接]

4

主题

4

回帖

52

积分

管理员

积分
52
发表于 2015-9-10 17:08:35 | 显示全部楼层 |阅读模式

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

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

×
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
! z  ^: s! E% b6 m( s
; d* m8 K7 g# c8 q. t. I% w7 fProblem:# E# P9 N) w4 j/ c6 v/ a  T
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and) w  P, A2 y4 o
obtain the following message after 180 days.# |3 H# n2 l/ y6 G
Login was unsuccessful.: Problems encountered logging into TCServer:
. {- x! r2 g" A2 F ... database
. T+ p8 E. B4 T) ?6 T/ PCause: Unable to bind to server running on localhost: 1572+ O1 A6 g# A: @0 H6 P+ n9 p# r) T4 R( K% {
6 S8 G/ l0 M) }# U
Analysis:
# T# w% x4 G+ iThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started2 v6 a( ]' k+ z. t( s3 `
correctly. However, when you try to connect to the database using sqlplus you can obtain the' t: G* I, C. S' I" m  a
following error message:0 u5 B$ ~* w" J: X
ORACLE_HOME=your_oracle_home
' B: x/ i" E4 g, iORACLE_SID=your_sid" X1 W  a% z: l1 @8 [) Q8 B( m  p
>%oracle_home%\bin\sqlplus /nolog8 L0 s/ i' v4 A" ?) U
SQL> connect8 [1 {& j& \0 y3 n& `1 l1 K- G
infodba1 Q% B5 r5 \4 r8 u5 `
infodba% W0 @2 _% R7 L* w4 l
ERROR:
! A7 p" _9 l% X# lORA-28002: the password will expire within 10 days
' `) ?* }/ S. ^8 n6 s
. Y1 @9 [7 ?+ O, N- D, R5 _; ^$ cIn the user tcserver.syslog file we find the error message:
$ M* E9 B/ l% f2 [3 m5 N' X/ w) kConnect failed (-28002) for 'infodba' at ***
+ `4 I; m, w7 F, cThe "infodba" Oracle user seems to be created using the default oracle profile which has an/ V6 g. s, V5 p$ o/ A
expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database- N. v( @: b3 r
an error message, ORA-28002, is sent and the connection fails.
9 g. t7 R5 J  m0 f) f* p. p! P, Q
1 E* x1 R3 i: F+ }9 J$ dSolution:7 k- w6 P4 R* t
Find the infodba profile using SQLPLUS:' i' S/ P( M4 O2 a$ C, Y- q
SQL> select profile from dba_users where username='INFODBA';) q) K. I  d# s" `
List the profile caracteristics:% N" T  I! K7 ]6 V! ?! \- y
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';
  l" ?5 o  q8 _7 o  F6 a1 FCheck the PASSWORD_LIFE_TIME.
& \! l0 }4 l4 L4 p  H  N" @Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:
/ G. q! c- O# i3 f0 s% l* n% i; gSQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
% n  Z0 L* I* b3 M2 P. Z, mChange the password. It will not expire again.
3 n# Z1 D2 z8 O8 K# g5 FIf you don't change the password, it will expire because it was created using a different profile at$ |# w5 f2 l$ ?% |5 y3 ]* j
the time.
: ]" L& {" j% A( T3 @) USQL> select expiry_date from dba_users where username ='INFODBA';
7 ]& ^8 D" Y& N+ @1 m=> you obtain an expiration date% p9 C  ]' T$ f5 b, c$ ?: s! A
SQL>alter user infodba identified by tempo ; ( define a temporary pwd)
' U- x7 E5 u# P& a" D" U  o( GSQL> alter user infodba identified by infodba ; ( specify your original infodba
! X7 ~6 g1 j  l3 A1 a4 jpassword)
* |% B5 j" H. \. g5 O7 ^SQL> select expiry_date from dba_users where username ='INFODBA';
: Z9 \7 m; Z  k: h* F=> you have no expiration date.
" x/ L" U/ n3 r
8 I! g) Z7 h  T; ^+ C$ m8 e. f8 r, s0 U! M
Remarks:
; v' U# b0 u1 VBecause we have redefined the same original infodba password, the TC_DB_CONNECT variable
$ V& c- T. l& n0 U( J9 z/ Iin %TC_DATA%\tc_profilevars.bat is always alive and correct.$ R. u9 O/ x+ S: ^  r3 x5 A: z
Another modification can be done on the default profile:0 Q8 F! S. ]2 v6 I
1 R! B) z! T4 t2 S4 d
ALTER PROFILE DEFAULT LIMIT
' }+ @. W9 p" [0 T+ I FAILED_LOGIN_ATTEMPTS UNLIMITED
8 A: L; e. ]+ D* Q4 }: ] PASSWORD_LIFE_TIME UNLIMITED;, P' X5 r% T2 j: C
5 X8 D6 r& C" q! T: [6 M
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复

使用道具 举报

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

本版积分规则

在本版发帖
关注公众号
QQ客服返回顶部