|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user, y/ Y, @( V6 x. c! n. B
$ v, r6 @2 h- b; b+ k& \Problem:
0 F6 C( R. ?1 o: D" LIf your Server is using Oracle 11g, the Teamcenter users may have a connection problem and8 B9 P7 d- m) R" t
obtain the following message after 180 days.
0 Z- k8 N* ?- H2 R+ I+ j0 RLogin was unsuccessful.: Problems encountered logging into TCServer:$ c; @: r. F F0 y8 i# E% r! P
... database* J# L% d& u% O4 ]' v
Cause: Unable to bind to server running on localhost: 1572
( n2 C+ m# V7 s8 ^- i6 t2 ?- M" G
3 M: V6 X( h! K! u$ i7 TAnalysis:
* i' G$ |; @2 T# K* xThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started* q, n0 e8 G& V6 x" B. b
correctly. However, when you try to connect to the database using sqlplus you can obtain the
8 i9 `0 j x, l$ ?& z* Mfollowing error message:3 ?" B3 ?# V: Q+ H% t0 f
ORACLE_HOME=your_oracle_home
. L" X" R& u8 ]8 P( w( o TORACLE_SID=your_sid
" n7 ~; {) ^; F, J1 A! A" A) k>%oracle_home%\bin\sqlplus /nolog; Z2 E! |0 Z/ _# d5 z# `' n; A
SQL> connect
, W5 K, L. A6 T* } [infodba
1 a+ F- e0 H5 H; O, [6 ?/ Winfodba
3 Y V; f9 j* G+ HERROR:
5 X. H8 q7 e' @% w/ n$ P/ HORA-28002: the password will expire within 10 days5 S8 v( Q% s, L) P# j1 r" p
" l* L$ k d3 xIn the user tcserver.syslog file we find the error message:
: R0 n! _- z* {) j }5 DConnect failed (-28002) for 'infodba' at ***! Y! i" j2 X$ ^0 v
The "infodba" Oracle user seems to be created using the default oracle profile which has an
Y" u, j D+ P- i7 Jexpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database4 r: ^1 V D) n- ]2 N7 F3 G
an error message, ORA-28002, is sent and the connection fails.& _) k% ]5 n( c; t$ l. s' a
- ], J& E+ R! x9 k
Solution:
' j1 j4 ?, E6 z: QFind the infodba profile using SQLPLUS:) B6 P7 Z- Z' R, X) b
SQL> select profile from dba_users where username='INFODBA';+ P% H4 X6 I3 m2 K6 L
List the profile caracteristics:/ T& U) q# q4 p' `7 {) E2 _7 C7 j! e
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';/ y1 P6 V. j/ O; s$ z$ A5 ?
Check the PASSWORD_LIFE_TIME.% E/ x- M$ s* ^0 u5 I/ B
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:
! L& ^# e2 X7 F- D% B3 F. t; jSQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
; b0 e8 T. q9 ]% s: O, UChange the password. It will not expire again.
; v! C# k% l5 j0 ~0 W$ f6 bIf you don't change the password, it will expire because it was created using a different profile at
/ i0 \, W: h( H# [the time.3 j4 Q! Y: L. p) q9 X% R
SQL> select expiry_date from dba_users where username ='INFODBA';0 D( ^4 t) M' X: m0 E
=> you obtain an expiration date
! E3 i4 ]" c F8 H, ]1 H7 B- YSQL>alter user infodba identified by tempo ; ( define a temporary pwd) 4 `/ P, q; H. [3 O8 O% K8 i+ _1 ^
SQL> alter user infodba identified by infodba ; ( specify your original infodba
1 K+ o1 B C4 v: ~; Hpassword)
4 Q; j" d6 B9 t7 W6 S. }( ~( PSQL> select expiry_date from dba_users where username ='INFODBA';& a5 g9 A) L* Q( o
=> you have no expiration date.
; x: i s. h; C% z* k2 v
6 h" d( y. w) \( V- O8 {
, a7 ?1 q. N4 yRemarks:
8 }5 Z; T$ P, `. gBecause we have redefined the same original infodba password, the TC_DB_CONNECT variable
- h3 R+ A$ a- jin %TC_DATA%\tc_profilevars.bat is always alive and correct.
& P9 D3 K7 @. r" _7 g1 {: xAnother modification can be done on the default profile:1 ^8 G& N, d; q: p; O( \' w
/ X# V. Y: D. B" P' v8 ]6 A/ xALTER PROFILE DEFAULT LIMIT
1 l# Y( g$ H2 n6 J* k- N2 `9 _) [ FAILED_LOGIN_ATTEMPTS UNLIMITED3 a# K, c8 n( o, I5 Z5 w/ S+ i$ W4 n
PASSWORD_LIFE_TIME UNLIMITED;0 z" `- K# n O6 w. w; k1 [4 }0 ?
+ ~& ]& y' P0 H. u) G7 t D |
|