|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user k# \. _/ t; u' S+ M4 Q9 @; V
" Z0 `2 n+ }$ |& }
Problem:! a3 x7 h, g) z; ?+ w6 I
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
; i6 e% f5 t1 P% q7 Aobtain the following message after 180 days.9 k% [0 g' x, r% J
Login was unsuccessful.: Problems encountered logging into TCServer:
& y1 U; h0 \ G3 j* S- ]5 k ... database
2 {2 p3 S. G5 d7 w: FCause: Unable to bind to server running on localhost: 15723 V" Y% X3 ~/ _- t: z. `2 l4 i# e
6 y& a4 p8 K6 u0 }7 J* nAnalysis:
! ~2 J& N" J5 b6 f1 J0 ]7 L" RThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started
8 n: F; }: \8 d+ X$ pcorrectly. However, when you try to connect to the database using sqlplus you can obtain the$ T9 c- s, v7 w+ P4 ?3 t
following error message:3 p, J" t. ^/ u K2 y+ y- ~7 R
ORACLE_HOME=your_oracle_home
/ d! x3 S# _$ `3 r* XORACLE_SID=your_sid
- R1 r+ F, E& ?6 Y4 J6 f3 ^>%oracle_home%\bin\sqlplus /nolog
% i1 y# M% D) f" rSQL> connect
* @# X% ^# n, D/ Y3 Pinfodba8 u+ Z6 d, c; ]
infodba8 |) a' b/ ^5 |$ [
ERROR:
- u0 ]2 a4 P5 c4 v( s0 ^ORA-28002: the password will expire within 10 days
h" ~9 T. B$ J/ u+ e4 Q6 b* A
' i3 h, D9 \; `- e. ]In the user tcserver.syslog file we find the error message:+ @0 T& I; j o% z% A3 R" ]" q- E; g
Connect failed (-28002) for 'infodba' at ***; k$ F9 ?) e! h J
The "infodba" Oracle user seems to be created using the default oracle profile which has an0 a4 Y4 G. N8 r: n. @" I( t
expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database! z4 [! c+ c' M \! l3 f( B
an error message, ORA-28002, is sent and the connection fails.! [* P0 O/ y2 F# W' {: s g7 @
/ g# A; D. o# g m8 G7 b. n! FSolution:. s+ x- \8 z P
Find the infodba profile using SQLPLUS:
- J( b8 }% b g; s+ n( B, {SQL> select profile from dba_users where username='INFODBA';
. c. L j; L+ ^' _- x: YList the profile caracteristics:. Z+ |( O8 B% }, m
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';
* ?# V" q6 }9 T$ R& M. W, |6 _Check the PASSWORD_LIFE_TIME.4 f8 ]9 j' G6 g" R
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:0 r( k9 E9 e. X- t! T$ l( q
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
* [' a0 k8 k4 ? v: B9 RChange the password. It will not expire again." e G4 b/ K" y
If you don't change the password, it will expire because it was created using a different profile at
1 L0 K/ M0 J1 L. ^& \the time.: m9 _! J) p0 ^ ], s
SQL> select expiry_date from dba_users where username ='INFODBA';
" b! H! u" Y- h=> you obtain an expiration date+ u3 M; s" P& N7 A
SQL>alter user infodba identified by tempo ; ( define a temporary pwd)
, s2 h- p5 O- N# X6 ]6 kSQL> alter user infodba identified by infodba ; ( specify your original infodba
6 X+ I y2 f; J3 ~" y U; {password)
; v# r1 U( q5 r0 F3 bSQL> select expiry_date from dba_users where username ='INFODBA';
# [" d/ T+ q% D9 p6 b) u- b=> you have no expiration date.
* ]: x' O8 X; t6 n' x4 [; n
6 P5 Z( r0 T+ w: t$ x! [ f% U- {+ k; q) }7 M3 l
Remarks:
! @0 m; a! g- P K0 j9 \Because we have redefined the same original infodba password, the TC_DB_CONNECT variable. ?* D' }( H; w5 ?5 {2 i# m
in %TC_DATA%\tc_profilevars.bat is always alive and correct., E. C1 \* j! J
Another modification can be done on the default profile:- F! j. T3 N$ P- P+ T' x9 b
# S5 o4 P) [5 E; r8 WALTER PROFILE DEFAULT LIMIT
5 U: S. g1 Z, Z/ H+ c FAILED_LOGIN_ATTEMPTS UNLIMITED( _1 F! u9 E) q" M1 L7 R+ G/ f1 I
PASSWORD_LIFE_TIME UNLIMITED;4 `. ]5 c3 X% l; G+ J% @, b
9 _ `; a* \/ r) \+ G) b3 V6 v
|
|