|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
, \) m* e2 Q9 \4 \; @- v6 T
1 b) d* d8 R, a$ g CProblem:
" T0 H) a) W" u$ p' B) K+ ~If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
& M. A# \4 |$ aobtain the following message after 180 days., q& O2 @6 E; q8 M& N. S, V \
Login was unsuccessful.: Problems encountered logging into TCServer:
6 r4 `/ }1 y( h* B9 A; K ... database
9 A& E; _0 o/ W. Q' @Cause: Unable to bind to server running on localhost: 1572: B2 m/ x+ `* r* l/ c
7 C9 O7 C5 d0 ?) S" F7 J4 oAnalysis:
# f# }' i: X$ F VThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started
3 Q2 K$ g3 x( O$ acorrectly. However, when you try to connect to the database using sqlplus you can obtain the
$ S3 T. h7 N3 e8 I' h1 R" bfollowing error message:: }) R1 L) y" [/ a+ }5 [2 \
ORACLE_HOME=your_oracle_home2 t( x4 w, W! }: d5 t* B+ a
ORACLE_SID=your_sid O3 Y) W8 J1 |1 k( \
>%oracle_home%\bin\sqlplus /nolog3 H8 @. o+ [2 C& P4 l( |$ R
SQL> connect/ v3 W- n; |! r3 T9 i- h
infodba4 z1 @7 Z9 w8 M; R+ f3 b8 t
infodba
. L Q) @- \- Q6 P2 f7 e: `" b' `ERROR:& s- l* R7 d3 i3 ^8 X+ t( ~. J
ORA-28002: the password will expire within 10 days
* G+ Y0 D4 m) ]) i7 E
+ D. ~( D! ^* Y; `) b c/ ^$ s' HIn the user tcserver.syslog file we find the error message:, G5 o, I @7 q1 }4 s3 d
Connect failed (-28002) for 'infodba' at ***- F0 `, ~9 v4 V0 g7 Z% m" L/ \ e
The "infodba" Oracle user seems to be created using the default oracle profile which has an
% _4 h+ ]5 s( P V1 c+ I3 _expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database4 S m \+ ^- G; \. ^. e! A/ X8 g, r
an error message, ORA-28002, is sent and the connection fails.
( B( D/ C( ]/ _; N, h; N$ H0 I1 N& `2 {% V
Solution:
( [0 H, M9 L) n3 U; vFind the infodba profile using SQLPLUS:
0 C2 z9 x, @' ?* Q4 CSQL> select profile from dba_users where username='INFODBA';
5 n) t1 `# z0 H7 C& k) ~* k PList the profile caracteristics:: i4 J% w8 E( |- o9 P
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';0 @3 ]. n% b% k5 K
Check the PASSWORD_LIFE_TIME.
: ~! f7 ^0 B3 @% p; \: L" KModify the profile and specify an unlimited PASSWORD_LIFE_TIME:
. ~; o! a" X9 ZSQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
3 Q$ l' R% M9 y8 D8 {% `, \Change the password. It will not expire again.; J- J+ t( L5 Q5 Y" V$ j( ^, r
If you don't change the password, it will expire because it was created using a different profile at
& X5 z; x% s# N% C; l* Y! Fthe time.# b( _' q5 D k% t1 a1 R
SQL> select expiry_date from dba_users where username ='INFODBA';
! o: ^, T: G, P2 S: Z% D=> you obtain an expiration date
% z) `7 ?2 f c+ QSQL>alter user infodba identified by tempo ; ( define a temporary pwd)
3 }* f6 a0 z) N* X8 USQL> alter user infodba identified by infodba ; ( specify your original infodba: L) p5 `, C# w9 H
password)3 A4 T; O% K' z3 P
SQL> select expiry_date from dba_users where username ='INFODBA';+ }, f& R# G' C6 X+ M
=> you have no expiration date.7 s t# Z. x$ ]& m9 W" ^( i9 c
$ g6 F# v: t2 V8 P/ Z6 J V Y$ a1 Q. D$ x7 J, R: Q& T) ^! b. \
Remarks:" ~2 d* N; @/ j* \. t2 Z
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable# N% v. }8 W* w
in %TC_DATA%\tc_profilevars.bat is always alive and correct.
4 b) G; N; u# N1 m: nAnother modification can be done on the default profile:4 N: s2 I& k2 y/ v" G" \
+ D4 {' F* m$ |; t& F) sALTER PROFILE DEFAULT LIMIT0 P) J6 J; ~4 I. K
FAILED_LOGIN_ATTEMPTS UNLIMITED+ z: i' a& m) I% {# }0 d( I2 \! m+ V
PASSWORD_LIFE_TIME UNLIMITED;
: P0 y* d9 x+ D0 V
3 T. y1 O) Z! x1 r- _3 o" z& b |
|