PLM之家PLMHome-国产软件践行者

[TC问题解决方案] 88.Teamcenter 的账号infodba数据库oracle过期的处理

[复制链接]

2015-9-10 17:08:35 5542 0

admin 发表于 2015-9-10 17:08:35 |阅读模式

admin 楼主

2015-9-10 17:08:35

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x
Teamcenter - Oracle 11g and the expiration date for "infodba" Oracle user
: q# p+ I; ]9 T" K: n9 @8 o4 Z3 s! l6 J2 [1 e
Problem:0 t+ U3 s5 P$ N  h6 q% ^
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and
% @; B) ~9 d" ^2 T7 q( Bobtain the following message after 180 days.
3 }5 z, `* N* OLogin was unsuccessful.: Problems encountered logging into TCServer:; T: `/ z) c3 A' ^! s$ Q6 ]) h8 `
... database: d" p- h& y  \0 a+ `
Cause: Unable to bind to server running on localhost: 1572! @6 k3 [8 ^. t, D  k9 }' c
8 g& H# v4 ^$ y4 _$ ~
Analysis:
; z) P* X5 c: p5 gThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started. W; V1 b0 E) B  f2 F$ C
correctly. However, when you try to connect to the database using sqlplus you can obtain the
7 w; V) {; B+ D9 ~, Yfollowing error message:# X/ f% Z! n9 t; C2 l! t! S
ORACLE_HOME=your_oracle_home
' \3 P$ q; }+ }  s! o" V2 C3 bORACLE_SID=your_sid
" R0 z- L/ u4 h6 a' I* ~& G, B>%oracle_home%\bin\sqlplus /nolog
4 M. ]! W" C# o5 h* r/ H: V/ kSQL> connect
2 P, }, ?1 h- A! a6 q& Qinfodba8 Y) P; F0 n( }. f
infodba9 S, h( O$ n: v! c( E: B* r, d
ERROR:2 N" T/ ^$ }+ L7 }6 l& C. W
ORA-28002: the password will expire within 10 days+ |) ~' y* ^9 L

9 U1 _; ^0 e6 L& K' E2 a$ {In the user tcserver.syslog file we find the error message:
: z# x( x7 s: nConnect failed (-28002) for 'infodba' at ***1 v; @/ `' F. A7 f( k
The "infodba" Oracle user seems to be created using the default oracle profile which has an
: B/ X% n0 }, c/ ^0 f' x3 W6 Uexpiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database  W* z# B  k. M0 Y' |$ j
an error message, ORA-28002, is sent and the connection fails.
& E0 P4 O0 H$ _! z* x
( [3 ~2 f& B! c0 q/ eSolution:
4 K3 Y% b# K! k& s5 W* ~0 IFind the infodba profile using SQLPLUS:" x) j; X; H' `) l- h) I
SQL> select profile from dba_users where username='INFODBA';2 g0 R* ^* M; |! ^( x% f
List the profile caracteristics:
* p2 w* Y8 V) b, j, {SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';
! b/ n9 D7 e" x  J1 \, x/ ^Check the PASSWORD_LIFE_TIME.: @# {/ o$ E- w4 U
Modify the profile and specify an unlimited PASSWORD_LIFE_TIME:
6 C, ~. ?6 R' y7 RSQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;+ |* K9 \( R, w' q3 ~# s% L" H
Change the password. It will not expire again.) r. ]1 U9 J$ G" W7 U+ I1 A
If you don't change the password, it will expire because it was created using a different profile at4 E* I  `7 V8 r; V1 Q% U
the time.4 N( ]( X' q+ e9 q1 {2 Y1 G
SQL> select expiry_date from dba_users where username ='INFODBA';
2 X. V/ m' p5 Q+ B# |% Y; x) m=> you obtain an expiration date7 Z% Z1 `) ?- F  p6 u
SQL>alter user infodba identified by tempo ; ( define a temporary pwd) : O8 u+ f' \& O5 o
SQL> alter user infodba identified by infodba ; ( specify your original infodba6 u1 P5 s* s; \1 z4 W
password)! s! Z! W$ }: ^) e* E
SQL> select expiry_date from dba_users where username ='INFODBA';- {& v' c8 k" {: I& `
=> you have no expiration date., t' c& ~: O1 G# B- i

# \1 h& C3 i0 t/ G" g6 F
6 U) t2 n  h. j  \: \& f5 pRemarks:
. `* h* M) k* R9 lBecause we have redefined the same original infodba password, the TC_DB_CONNECT variable5 h3 G7 Z( r* y2 ^# ^# ]/ z5 ?" o
in %TC_DATA%\tc_profilevars.bat is always alive and correct.1 t/ p+ m# Q3 w8 r
Another modification can be done on the default profile:
. B; H/ P- M* @( f( B5 Q, F& C
. [1 b& u1 G; l8 `/ a& xALTER PROFILE DEFAULT LIMIT
3 j! ~' w  g) S  K7 [" A FAILED_LOGIN_ATTEMPTS UNLIMITED6 b/ @: |3 w, m2 Y
PASSWORD_LIFE_TIME UNLIMITED;
  n5 L2 m2 M# E9 {- g1 _. i6 s7 f+ x
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了