a我考网

 找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 359|回复: 0

[考试辅导] oracle10gsoctt解锁步骤

[复制链接]
发表于 2012-8-4 14:06:19 | 显示全部楼层 |阅读模式
新装完Oracle10g后,用system/password可以正常登录,而使用scott/tiger用户却不能登录:
# z  D! ^7 v  j  conn scott/tiger
6 S1 f) t) K+ `' _2 v$ i- ^  error:oracle10g the account is locked0 u' [+ P2 x0 |7 W$ K$ G0 ~* g+ J/ |
  oracle10g the password has expired! A* J( }  [  k; L
  原因:默认Oracle10g的scott不能登陆。被禁用了。  \1 ~/ [$ y, ^( i# x$ W0 K
  解决方法:
1 N, J( B" J) D8 p! Y  首先确认已经安装oracle 数据库和客户端
" l6 D- h: a1 |  B# u- N; V  {: R  .在客户端DOS下执行如下语句:" Y* d$ ]  B2 L, N; \; B  c9 g
  注意提示符号
% I. F3 R) Y( J  c:\sqlplus /nolog
. ~( a9 _6 b5 ^& F2 r  sqlp\ conn sys/system@oracle10 as sysdba // sys为当前的oracle 用户 system 为该用户密码 oracle10 为SID- d: i5 o9 G# U# [4 q$ \
  # alter user soctt account lock; // 把 scott用户锁定' I2 @% n: ?; u- t
  # alter user scott account unlock; //把scott用户解锁) X& K! `. G0 v. Z7 Q
  # alter user scott identified by scott //修改scott用户密码为 scott,scott用户默认密码为 tiger4 v" {/ V& ~3 V$ D6 h$ ?; i3 ^
  1 Dos下输入C:\sqlplus /nolog& c" w5 t  n) s: ^# D. l
  2 以DBA的身份登录8 h5 ~9 g- E- o, v: H
  conn sys/password as sysdba;
( b0 i1 R/ h1 [6 G' M  3 解锁
+ Y, ]1 h! [. S/ g: Y  alter user scott account unlock;$ I& D8 x1 h: I" U
  4 弹出一个修改密码的对话框,修改密码$ V( Z) i( z: Y
  conn scott/tiger
: g: _" {# M8 Y7 R+ S& ?  SQL> conn sys/sys as sysdba;
" l. |2 B$ B  M8 l$ r  Connected.
" t7 H& j) t1 e; ]3 m  SQL> alter user scott account unlock;5 V! s2 j3 O& P* X' f0 G$ O0 e' R
  User altered./ C0 U8 [! I2 T' O7 O' b2 S
  SQL> commit;
7 [( p* K- K! u! B  Commit complete.
3 @7 _6 C* q8 P2 ]: {  SQL> conn scott/tiger//请输入新密码,并确认后OK
  R  K. n( H- q3 I  Password changed
' W- `) [% w+ L# _  |: i  o  Connected.
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Woexam.Com ( 湘ICP备18023104号 )

GMT+8, 2024-9-23 02:07 , Processed in 0.427344 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表