|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user- q4 D$ ^2 g8 W0 L# v9 _% Y! y
. E6 i9 e9 n; c
Problem:/ P, l; D! [& Z. w! B' I
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
' s- w# W2 @# p! r$ q/ L6 Nobtain the following message after 180 days.% a7 |3 W( h! f, k
Login was unsuccessful.: Problems encountered logging into TCServer:
, S8 E! m) O2 O' K# D9 O ... database+ d) a! N* O1 K) ?! A
Cause: Unable to bind to server running on localhost: 15729 M0 l$ t* J5 F2 ?3 j+ b/ p
4 G. ~, s0 |" y0 _ M! `
Analysis:
1 a7 \, P4 D1 |+ s5 b P5 ]. TThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started
% ~1 ^. ]+ ~9 A0 m1 F1 Y; kcorrectly. However, when you try to connect to the database using sqlplus you can obtain the! W' M. c4 m. F: a! }
following error message:
/ s4 C% r" w9 T Q8 [ORACLE_HOME=your_oracle_home) e2 e' Q' l5 d' b/ D$ d( A2 v! l
ORACLE_SID=your_sid. ?/ w1 B1 m8 [
>%oracle_home%\bin\sqlplus /nolog8 G8 l( U1 }" M. e2 R
SQL> connect
; l. \6 k5 I7 n P m4 H- @ e/ Binfodba0 i! K9 L" A9 _. |0 \& C$ s
infodba
- f+ G$ Q9 |$ C7 [, w' p" h+ O8 {ERROR:
9 l L2 s2 L4 z- fORA-28002: the password will expire within 10 days
$ @+ L5 i9 }8 r3 P0 V: `5 G
8 [% X" J1 ^2 f+ p7 Q1 pIn the user tcserver.syslog file we find the error message:
8 T7 C% [, t6 t- n8 g! z' c' KConnect failed (-28002) for 'infodba' at ***
3 q! y ~! K0 I" e/ ~/ O. ?The "infodba" Oracle user seems to be created using the default oracle profile which has an9 _+ s1 L' |( O5 J
expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database
% l6 w a% Y! W/ Lan error message, ORA-28002, is sent and the connection fails.: p4 g6 i9 Z* Z" h: r+ m$ }
+ s2 ~. P/ x( ]% C+ ESolution:% L) N2 G2 @' s
Find the infodba profile using SQLPLUS:
1 w* j# }+ h! W& I2 vSQL> select profile from dba_users where username='INFODBA';
. g7 k; Q+ W7 ]$ rList the profile caracteristics:; L) Q$ F; ?7 M: k, S$ A5 E
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';+ W; G' y2 T. M$ Z7 h
Check the PASSWORD_LIFE_TIME.
- y- E k& ?0 A6 hModify the profile and specify an unlimited PASSWORD_LIFE_TIME:8 p! b1 l7 g" p# V8 [& @
SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
! w/ u# P7 }" ]1 ~& o& iChange the password. It will not expire again./ A) s! Q s6 J+ g# O5 S( F# Z
If you don't change the password, it will expire because it was created using a different profile at7 I" j9 i0 h# _
the time.4 Z! X/ I+ `8 L4 m: k: ~
SQL> select expiry_date from dba_users where username ='INFODBA';
7 f2 C- z& M, C, s$ e* s: J=> you obtain an expiration date. w* \4 f- K0 A8 z: ~6 U
SQL>alter user infodba identified by tempo ; ( define a temporary pwd)
+ _% D# L1 Q4 P4 T$ ^SQL> alter user infodba identified by infodba ; ( specify your original infodba
+ e! j* O4 f7 R/ cpassword)# @0 C9 L" [) u! E( f
SQL> select expiry_date from dba_users where username ='INFODBA';
" E0 H/ k9 O6 ~. H: D=> you have no expiration date.# u& A/ Y) J3 t( Z
. O9 Q# \* S/ v3 M" F
1 b* x7 j3 f8 [3 T7 G- GRemarks:
( ~( T+ E2 d) Z. F7 L' gBecause we have redefined the same original infodba password, the TC_DB_CONNECT variable3 o- J9 a( q& I/ m/ H3 o7 J- f
in %TC_DATA%\tc_profilevars.bat is always alive and correct.
. Y4 s9 Q8 G, x9 C$ m2 w& HAnother modification can be done on the default profile:
6 Y# p ~# F+ C2 g+ R6 B
" J; a1 z# |; TALTER PROFILE DEFAULT LIMIT% d& f0 @8 o4 n' c
FAILED_LOGIN_ATTEMPTS UNLIMITED
) ^# K' J) b- j( D9 Y+ ~ PASSWORD_LIFE_TIME UNLIMITED;: ^* J" g8 v. q4 X( w; e3 M
6 t8 X" Q- a' F; n8 }) Y+ ]4 [1 Q |
|