|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
4 u; W2 A: v: X; [+ ]6 a7 ~8 M, [9 S: m2 V5 O2 O* ~4 Y0 V
Problem:' {, }6 F, W( p& J% }( J
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
4 m2 g) X. I, _) t' f0 G' Sobtain the following message after 180 days.
8 U2 Q) a. B$ {( O: DLogin was unsuccessful.: Problems encountered logging into TCServer:
7 _* S% Z6 ~5 u9 v5 }( h ... database; h6 z& A, z, p2 k
Cause: Unable to bind to server running on localhost: 1572
6 {9 I- [: X7 ]3 U3 R) a- v: \9 s1 o; d% b2 k
Analysis:% X3 J$ H* D6 w& q8 Q7 k [0 B% Z
This issue seems to be due to the Oracle 11g changes. All the Oracle services are started, k/ ]- U0 b9 c, \5 L- A5 g
correctly. However, when you try to connect to the database using sqlplus you can obtain the+ g$ q9 ]+ ]: e! Y; j& U: P! ~
following error message:8 X1 C o1 b4 k# @
ORACLE_HOME=your_oracle_home3 B* m% o) ~' ?0 \) N* h; U; M6 \
ORACLE_SID=your_sid+ k: h$ _$ W& E" m. G* ]4 q5 z
>%oracle_home%\bin\sqlplus /nolog; U# W i1 a5 Z, k6 r( |
SQL> connect
: X3 [& ^) p, C8 E1 X5 z- R) minfodba" v: G% x+ ^& O/ A; W& K! R
infodba
' S: {8 v' Y3 |" w5 ?) O9 oERROR:
; [/ m9 C: J. S0 y9 iORA-28002: the password will expire within 10 days5 E; ~: H4 v" }# `+ v
, M. c! @9 w4 I1 X, f% YIn the user tcserver.syslog file we find the error message:
" j' K4 C: `$ S' I6 p+ k3 F' WConnect failed (-28002) for 'infodba' at ***
6 a0 ~! Q" }2 LThe "infodba" Oracle user seems to be created using the default oracle profile which has an
5 j4 d. m8 T: Wexpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database2 v N6 B: g8 _7 O. \
an error message, ORA-28002, is sent and the connection fails.$ ~9 }7 a+ i6 | Q. B
$ l1 z& ^2 S0 p4 |) `: ?0 S! n: `Solution:
! V8 m: Y7 d) R. a3 t7 J0 Y0 AFind the infodba profile using SQLPLUS:7 K) F) k7 y9 M( M& d3 P- H* @' |
SQL> select profile from dba_users where username='INFODBA';
6 D. a0 a: b) P+ ^" vList the profile caracteristics:0 V- z1 y8 R- R! |/ m
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';
: W; y o' ^7 C8 _6 w9 wCheck the PASSWORD_LIFE_TIME.5 b! r0 \# z5 v
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:/ \4 g/ Q0 M1 X0 S
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;6 M7 o1 O; y# J
Change the password. It will not expire again.: s1 y6 U# i' i* z
If you don't change the password, it will expire because it was created using a different profile at
. |8 o" e$ g N3 E- Y' O7 Rthe time.
, n) B9 R& k1 t" [# c9 K0 Z) d7 l0 e0 hSQL> select expiry_date from dba_users where username ='INFODBA';% ^; \8 _4 {/ B/ d
=> you obtain an expiration date
2 {! [3 ]0 q; r9 k2 a8 Z, M/ y& m9 I6 sSQL>alter user infodba identified by tempo ; ( define a temporary pwd) 5 t. [: c' u8 p% I. d+ h
SQL> alter user infodba identified by infodba ; ( specify your original infodba* e# V1 r+ o0 d' @$ R; A
password)2 k5 B8 f$ N/ e% h2 F
SQL> select expiry_date from dba_users where username ='INFODBA';
7 |5 d: B, n4 I/ a% a. M/ J! @6 u4 a=> you have no expiration date.% S% {6 V+ s, x4 X
" a/ g# A) z- R0 m! c$ G
( L3 e6 {9 G- {, g. \4 k9 \Remarks:
% y, O e5 F5 B" R( @" A4 aBecause we have redefined the same original infodba password, the TC_DB_CONNECT variable* @& F! Q" z' \3 E/ Z
in %TC_DATA%\tc_profilevars.bat is always alive and correct.! [ t2 t) j Q$ S5 ]" ~
Another modification can be done on the default profile:# q" ]4 {# z \. r% u' W
3 _' l* }7 I P8 f. E0 J$ xALTER PROFILE DEFAULT LIMIT
6 M5 P0 o6 H W; i FAILED_LOGIN_ATTEMPTS UNLIMITED& N* K- H( L9 q% g8 T. p4 q. u
PASSWORD_LIFE_TIME UNLIMITED;
# }; R4 z3 V. f/ ]! q$ {6 i' \! g/ I# k+ x
|
|