|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user" j5 J' D& ~; L( _* ^! [. O, Z
& W; S% ^6 T* |. A6 d
Problem:: R: Z6 v5 H+ ^( `( n. N
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
: B! b c" \; _' ]+ o, X7 m! I) Nobtain the following message after 180 days.
4 r7 t* L6 o+ c: s! d- k _6 hLogin was unsuccessful.: Problems encountered logging into TCServer:6 m m% ^0 [& r
... database
5 n8 V+ Q2 Q9 CCause: Unable to bind to server running on localhost: 1572& E2 \! H$ X& p9 F G6 q5 t0 f
, Q' N& D+ T' D. A k9 c% rAnalysis:* `* `( z0 `% h- Q( a8 `, x6 p% q* L
This issue seems to be due to the Oracle 11g changes. All the Oracle services are started
# c6 s8 V) w8 Vcorrectly. However, when you try to connect to the database using sqlplus you can obtain the
, F8 r) L: a9 Z( C7 c# T# Cfollowing error message:
3 X- A s I; m+ r) f3 VORACLE_HOME=your_oracle_home
8 g; l( F+ V. L8 P1 M& P6 aORACLE_SID=your_sid
) d R) R" q9 P0 @! N>%oracle_home%\bin\sqlplus /nolog/ ]$ B0 l; B4 @. a
SQL> connect
3 G7 `9 o2 ?) J; C/ U) g" e' Dinfodba! a4 Z+ c5 h* R! i! ~
infodba& Q" ]4 K3 i) n& s/ A- M. q5 ]) [
ERROR:
; I. h! B6 o/ B' D* |. nORA-28002: the password will expire within 10 days
6 C" O) i% [4 A+ g5 s7 W! \0 g: v, G" I( J+ H
In the user tcserver.syslog file we find the error message:
9 `/ K$ d, e# S' k6 P- U6 [! I7 eConnect failed (-28002) for 'infodba' at ***, C/ i- D0 X! `/ y" L! M
The "infodba" Oracle user seems to be created using the default oracle profile which has an
8 e6 \, e- R* C- |9 @expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database a! f8 w3 b3 \9 L' ?
an error message, ORA-28002, is sent and the connection fails.
]" k4 Q. I6 Z7 L9 D% k
9 r# [1 h4 D' |6 D$ zSolution:$ l( W b% o. E: \ a8 V) Z- k
Find the infodba profile using SQLPLUS:
% M5 c4 c- t ~7 _7 {( oSQL> select profile from dba_users where username='INFODBA';* K3 x. |4 G: X- `; B- K
List the profile caracteristics:5 v7 b& t! \0 z
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';: t4 J G8 x$ G6 r. _
Check the PASSWORD_LIFE_TIME.8 a* U" U7 s( ]3 z4 l% ~, _& B
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:9 O7 ]7 \7 _' n5 J" P+ {) ^
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;0 L2 r$ J V8 u' A" g) `
Change the password. It will not expire again.' O: n5 O) ]7 |/ {4 I( \- ? ~
If you don't change the password, it will expire because it was created using a different profile at
4 R/ F+ c9 J" ~7 B5 Fthe time.
) ~* a- j6 T9 c4 G2 USQL> select expiry_date from dba_users where username ='INFODBA';
+ w# ?2 B1 A2 s D. L=> you obtain an expiration date. }2 p+ Z7 M5 B
SQL>alter user infodba identified by tempo ; ( define a temporary pwd)
$ \0 ]* D3 ^5 P6 v# I2 MSQL> alter user infodba identified by infodba ; ( specify your original infodba
# o& _# r. h4 j' b% M- |9 z, Ipassword)
- ]* o6 |7 W# |8 d1 }SQL> select expiry_date from dba_users where username ='INFODBA';+ j" L$ G. \# {; g1 }/ d% m
=> you have no expiration date.
' s$ D% ^/ W( v7 V- ~: m/ t; f% A; _# s& M- `+ [, e
: @; h0 R$ T; G0 C, U. ]: B
Remarks:& L0 a5 \ {2 i& n" b
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable& o/ v) x `9 D7 D$ z0 b
in %TC_DATA%\tc_profilevars.bat is always alive and correct.3 c! D# r& u6 s4 L3 U% M
Another modification can be done on the default profile:! i1 J) C/ M" Q
* D" x* Q/ A: i8 vALTER PROFILE DEFAULT LIMIT
5 o ?3 ^6 j/ O4 @ FAILED_LOGIN_ATTEMPTS UNLIMITED
/ r0 w/ N3 R6 h) N J PASSWORD_LIFE_TIME UNLIMITED;
8 |% Q% ^0 h7 W' x+ X& u2 e8 e/ S& ^! F
|
|