|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
) i: T/ X6 S( }: N
+ ^' S: d7 K& Q" nProblem:
. C& b7 m/ g- g) b. YIf your Server is using Oracle 11g, the Teamcenter users may have a connection problem and% B2 C) o6 s# Y ]- K
obtain the following message after 180 days.$ W* x! W& T2 G/ l5 l: b, c
Login was unsuccessful.: Problems encountered logging into TCServer:
) V; a4 ^$ P5 u' x$ e- l/ X& o! H ... database8 ]6 T' U, G9 t; X4 U
Cause: Unable to bind to server running on localhost: 1572
0 {2 [5 e9 [4 a! F1 ?! y2 I0 B6 C5 }' @# o$ H$ @
Analysis:
. n, O6 E$ n7 d2 X! `7 WThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started
( q( L, N) P: _correctly. However, when you try to connect to the database using sqlplus you can obtain the
5 L0 ~- a( i; n) ?# e) m6 ~following error message:9 H4 ^ {' h. g" M! _
ORACLE_HOME=your_oracle_home q! {0 i, M/ h* Y" s6 N! V
ORACLE_SID=your_sid
8 [ q) B8 w8 T. Q, x& t9 ?! O3 l>%oracle_home%\bin\sqlplus /nolog
[; R9 T% p* gSQL> connect
4 S& u% L1 Z2 X$ dinfodba
$ [/ h$ F+ m% z1 k8 }: einfodba9 d% @* q; a, K; {
ERROR:) K9 Y- m: L, n: E9 U: n, k
ORA-28002: the password will expire within 10 days$ c& A4 E# [9 \; F/ i/ r8 q( w
; g. {( s3 X A) oIn the user tcserver.syslog file we find the error message:% l7 R6 C% I/ k, E+ i
Connect failed (-28002) for 'infodba' at ***3 Y% x, U' `$ D& n1 Q+ \8 L H
The "infodba" Oracle user seems to be created using the default oracle profile which has an- \+ X$ O" o% B. `
expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database
* c8 e! k% k. _an error message, ORA-28002, is sent and the connection fails.
1 h' \: x& b' K4 @% F; h a. o+ N* P0 M7 i. {$ m" \
Solution:
1 G9 d1 ~) v/ q+ s) ~/ KFind the infodba profile using SQLPLUS:1 g/ }9 q9 t4 a `: p: b% U
SQL> select profile from dba_users where username='INFODBA';: ?7 C( a+ I& v6 P
List the profile caracteristics:
% Q+ \3 S! A5 wSQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';
! z9 B- @) K7 k8 c' S8 \& h" J6 b# u. MCheck the PASSWORD_LIFE_TIME.- y! g0 d' T" x: ?4 f
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:
2 T' z; c1 a3 G w* j( z& uSQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;9 J4 Z. O# E, D' f
Change the password. It will not expire again.
0 ~2 G' W; D9 `& W# rIf you don't change the password, it will expire because it was created using a different profile at0 ?( T; ], S6 N' c) T# I/ O
the time.
; d+ Z. F. s# Z+ U* P- fSQL> select expiry_date from dba_users where username ='INFODBA';
3 V1 Q! j6 h5 H; s+ {" }=> you obtain an expiration date. w r" \1 n1 M9 a% ~
SQL>alter user infodba identified by tempo ; ( define a temporary pwd)
+ p3 i$ q0 Q, a, z+ fSQL> alter user infodba identified by infodba ; ( specify your original infodba
+ q8 c" z% ^; I* q& Gpassword)
9 m& o3 I$ a3 C% JSQL> select expiry_date from dba_users where username ='INFODBA';
* N. Y' q; S* Y0 T6 A' b=> you have no expiration date.
! |( m) |5 L$ S" G
( t. ^. x# s3 Z5 q$ T; ~2 A9 e! c" r0 A! G/ H6 H$ t3 J3 c# x
Remarks:; Y+ O+ m2 _5 ^/ H
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable5 N* e5 Z9 \# [/ A# f
in %TC_DATA%\tc_profilevars.bat is always alive and correct.
4 T, O8 D) x5 }8 L6 o! RAnother modification can be done on the default profile:
2 z# @- e8 i4 j7 A3 k6 @9 h! Y' g ?9 g! G
ALTER PROFILE DEFAULT LIMIT) Y' F6 i8 L% Z; g9 p' k( w
FAILED_LOGIN_ATTEMPTS UNLIMITED( _( L0 y& s$ ]" { Y
PASSWORD_LIFE_TIME UNLIMITED;7 O+ ]& |3 }9 o8 E
% i( M8 ?- ?8 ^/ d |
|