|
|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user; m9 e& l4 [) f1 ?" ^. o$ V! h
3 V z+ a$ D1 Z' M+ ?) @5 a8 VProblem:4 r, Q R- V% s2 t9 N4 x4 s$ l
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
- U$ V+ J9 s+ J! K/ L5 {- [obtain the following message after 180 days.
4 h, o% Z" h9 E9 O( m( m9 O1 G' RLogin was unsuccessful.: Problems encountered logging into TCServer:
W" ^0 R9 h* K# \ ... database& n) F. x$ Y% k* \
Cause: Unable to bind to server running on localhost: 1572( H( h6 `6 d" `& ?! L8 W
! m# i: ?; i7 C; a I0 B
Analysis:
7 f+ K0 y* s( r# N& WThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started
9 e2 H7 L: W: A8 V, q+ Z* F, x2 xcorrectly. However, when you try to connect to the database using sqlplus you can obtain the' I j) e9 @ N% |
following error message:# n, D# g0 Y# y0 [1 @8 x% ]
ORACLE_HOME=your_oracle_home4 |* {& `& K. u; [$ c! U+ R
ORACLE_SID=your_sid
& u6 Y0 v! E; T7 i) ]& L# ^9 x>%oracle_home%\bin\sqlplus /nolog
6 R6 t7 R* v2 d& gSQL> connect
8 N( r; x7 `' D5 i1 Q' Ainfodba
4 ]( c6 n, |- L* F: Dinfodba1 S2 W1 F& Y; u1 ], [
ERROR:7 k8 |3 E7 i9 N$ Z1 t& j4 a6 ~! a
ORA-28002: the password will expire within 10 days
* _1 B' I3 p! C2 z9 [, @3 d9 i- t: |: H$ l
In the user tcserver.syslog file we find the error message:
+ Z" ]2 U: H/ I. _Connect failed (-28002) for 'infodba' at ***8 I% q7 t/ B' n5 ~& S
The "infodba" Oracle user seems to be created using the default oracle profile which has an
0 M0 A6 c4 K. \. g& t3 _; Dexpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database/ H8 T3 L3 D2 T- ~' z6 N( A
an error message, ORA-28002, is sent and the connection fails.+ }' [& m3 i P/ a, F
* Y$ v/ h' M8 G7 K* k. \Solution:
% a, K4 {5 N. C5 a3 mFind the infodba profile using SQLPLUS:
+ Q9 P/ l* j7 S m3 J4 B1 `SQL> select profile from dba_users where username='INFODBA';
8 k# e$ I. E3 s% ]5 r* OList the profile caracteristics:% E! ]7 J. m+ z! c" q5 q6 D9 l2 C
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';
0 r+ b" C& y- n6 wCheck the PASSWORD_LIFE_TIME.
9 ~7 A( V5 w" c; x t3 g5 }' S- |Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:: R) \# h% [$ e' @- b" }: p
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
0 b! r) X; }. L0 _& HChange the password. It will not expire again." q+ w# q0 Z: i h2 T; ?
If you don't change the password, it will expire because it was created using a different profile at% b. D! Q" |. b& A9 a! F2 K
the time.; x$ C1 @4 d' w! n7 {5 v4 Z
SQL> select expiry_date from dba_users where username ='INFODBA';- B' q( k. {/ G# w. }/ p
=> you obtain an expiration date
" t3 y6 Z o, _5 MSQL>alter user infodba identified by tempo ; ( define a temporary pwd)
: O- W w/ M$ q. H' W* PSQL> alter user infodba identified by infodba ; ( specify your original infodba
& t0 b K( F1 }$ |) X& b. ]password)
! f- O# {* |" Y. I _9 i5 e5 wSQL> select expiry_date from dba_users where username ='INFODBA';9 k3 O, Z' w: A" `
=> you have no expiration date.
$ q( X# U6 e# X# ]! O2 N
6 f4 q" b2 `7 Y+ V" _5 r
& w. ^% x# `1 K% B- F2 a' w4 ^0 wRemarks:
! ]' G7 w$ N& O8 V2 Z4 wBecause we have redefined the same original infodba password, the TC_DB_CONNECT variable
2 T: d) s" n* E Q. vin %TC_DATA%\tc_profilevars.bat is always alive and correct.
& p m1 |7 B# ~Another modification can be done on the default profile:6 T0 \* U* R& p
) [9 | Z* s; O- l3 Y/ V0 v: t# P' u
ALTER PROFILE DEFAULT LIMIT6 C; b4 y: W' e- e* V3 N9 J
FAILED_LOGIN_ATTEMPTS UNLIMITED
, k! V8 o1 p+ [" N0 m a PASSWORD_LIFE_TIME UNLIMITED;
$ X( E: x. B7 R. q. Q' O* I8 _! k; M) {& `
|
|