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

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

[复制链接]

2015-9-10 17:08:35 5441 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! h  O8 S, M; d
9 A8 ?. a1 V  J, y) [
Problem:( K4 t0 x6 F, q: n: V2 r+ w) z7 r
If your Server is using Oracle 11g, the Teamcenter users may have a connection problem and3 l5 C+ I! g* V/ ^
obtain the following message after 180 days.8 w  x0 G/ L) O
Login was unsuccessful.: Problems encountered logging into TCServer:
8 }0 ~2 v$ _3 X2 q7 v1 O7 X ... database3 l; R+ O5 ~* b/ q& f- r3 ]
Cause: Unable to bind to server running on localhost: 1572
; S) H# @& m# m) a' i; U& x. ?$ U; }; M, Z
Analysis:
& F8 K: t# [6 m# _7 d4 RThis issue seems to be due to the Oracle 11g changes. All the Oracle services are started
$ z. _2 t7 d# c6 P3 Jcorrectly. However, when you try to connect to the database using sqlplus you can obtain the
1 f  V, l: L2 N3 N) Wfollowing error message:8 s) f$ j' J, Z
ORACLE_HOME=your_oracle_home
% {7 n/ b& F7 p4 d5 xORACLE_SID=your_sid
* a; X. w' \: `>%oracle_home%\bin\sqlplus /nolog) r5 V& R, E& M; I. J. I( X- V
SQL> connect) T+ O4 g. f  D! c, r2 E6 V; X6 ~
infodba4 C1 y! n- ^5 X+ h
infodba1 k1 O( y0 N1 m7 s0 v7 P8 X
ERROR:1 w, t# N  Z* G# V$ v1 _8 y
ORA-28002: the password will expire within 10 days: g1 F, Z& l6 Q, F

0 Z9 G7 D! G0 i$ `1 D  }; RIn the user tcserver.syslog file we find the error message:: z! @- K$ X* C6 N- o; |
Connect failed (-28002) for 'infodba' at ***! \; Q, G7 d$ a/ s; @
The "infodba" Oracle user seems to be created using the default oracle profile which has an5 q" Y9 z: `3 \: e  [
expiration date of 180 days. When the Teamcenter user tries to connect to the Oracle database
0 z1 n1 X$ D4 o& ~/ c( Y% Zan error message, ORA-28002, is sent and the connection fails., q7 c% S& J' y# [) b3 O) ]

% F+ C. F; Y. [0 |% F- E4 @1 HSolution:' e9 \& c1 m" ~8 C  @
Find the infodba profile using SQLPLUS:# T, B5 @: |1 ?6 ~. {% [7 i" w
SQL> select profile from dba_users where username='INFODBA';
& k2 ?# P, d( T: O  x0 d% CList the profile caracteristics:8 p3 \( }6 C8 Q6 V7 T
SQL> select resource_name,liMit from dba_profiles where profile='DEFAULT';
1 ?" W, l8 n, ACheck the PASSWORD_LIFE_TIME.
; Y1 q( T7 P; V8 N' n! B/ C( bModify the profile and specify an unlimited PASSWORD_LIFE_TIME:
( g/ c. V4 s5 c& S# o9 D- Z& _SQL> ALTER PROFILE DEFAULT LIMIT PASSWORD_LIFE_TIME UNLIMITED;
& d- Y3 I# K& P. VChange the password. It will not expire again.
8 |# ]) m8 M2 oIf you don't change the password, it will expire because it was created using a different profile at
% g5 B. x6 L) Y$ F4 `2 ~5 Q3 |% Cthe time.( R' `& ~4 V; z9 W6 X) f
SQL> select expiry_date from dba_users where username ='INFODBA';
" j+ p. ~. S" p% K) A$ e9 |=> you obtain an expiration date
7 N6 u9 e; r7 O/ \5 q& YSQL>alter user infodba identified by tempo ; ( define a temporary pwd) # }* p# `1 Y7 W7 q5 M
SQL> alter user infodba identified by infodba ; ( specify your original infodba
7 x' z( o+ C/ m1 C' ]$ Ipassword)) I1 m% Y6 C& p% O1 n& p5 s& I! j5 I
SQL> select expiry_date from dba_users where username ='INFODBA';
4 ~$ {: N0 H* u9 X- x1 T8 v=> you have no expiration date.7 W$ g9 v2 J! o! M* W, n6 W" P
( M# `. f3 P; \" W! h
' o6 m9 M: ~. e4 N( a' ?, Z
Remarks:2 g/ ~  R+ \. r7 |
Because we have redefined the same original infodba password, the TC_DB_CONNECT variable
0 G3 p' S' ]. w. G% a' j8 zin %TC_DATA%\tc_profilevars.bat is always alive and correct.9 k5 |( E- x) S2 N. X# `/ k
Another modification can be done on the default profile:
; Q: R( O! @3 E( V
- g' p: N) b* b3 [: ~! B6 b7 yALTER PROFILE DEFAULT LIMIT4 I# P- k5 ^) }1 F2 }
FAILED_LOGIN_ATTEMPTS UNLIMITED
/ s! y  w0 N8 X  h: [ PASSWORD_LIFE_TIME UNLIMITED;9 t5 U; E# o$ m, B+ @
. D2 s& {5 I; E
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复

使用道具 举报

发表回复

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

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

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

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

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

    我知道了