这里有一份文档,你参考一下: 如何修改internal 用户的密码? 用法:orapwd file= password= entries= 参数解释: file - name of password file (mand), password - password for SYS and INTERNAL (mand), entries - maximum number of distinct DBA and OPERs (opt), There are no spaces around the equal-to (=) character. 1)进入DOS下 2)默认internal密码文件在c:\orant\database下,是隐藏属性,文件名称与数据库实例名有关 如默认ORACLE实例名为ORCL,则internal密码文件名为pwdorcl.ora 3)建立新的internal密码文件,起个新名字为pwdora8.ora orapwd80 file=pwdora8.ora password=B entries=5 --注:password项一定要用大写,并且不要用单引号 4)拷贝pwdora8.ora文件到c:\orant\database目录下 5)运行regedit,修改口令文件指向 6)找到HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE项 定位ORA_ORCL_PWFILE子项,改变其值为c:\orant\database\pwdora8.ora 7)关闭ORACLE数据库,重新启动 8)进入svrmgrl服务程序,测试internal密码是否更改成功
转到dos界面下, c:\>sqlplus /nologsql>connect / as sysdba就连上去了 然后照着做
C:\Documents and Settings\Administrator>sqlplus/nologSQL*Plus: Release 9.0.1.0.1 - Production on 星期二 9月 22 13:43:17 2009(c) Copyright 2001 Oracle Corporation. All rights reserved.SQL> conn / as sysdba ERROR: ORA-01031: insufficient privileges SQL> connect / as sysdba ERROR: ORA-01031: insufficient privileges SQL> conn zy/zy 已连接。 SQL>咋不行啊
C:\Documents and Settings\Administrator>sqlplus / as sysdbaSQL*Plus: Release 10.2.0.1.0 - Production on 星期三 8月 3 14:05:31 2011Copyright (c) 1982, 2005, Oracle. All rights reserved. 连接到: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, OLAP and Data Mining optionsSQL> alter user scott account unlock;用户已更改。SQL> conn scott/tiger@orcl ERROR: ORA-28000: the account is locked 警告: 您不再连接到 ORACLE。 SQL> conn scott/tiger ERROR: ORA-28001: 口令已经失效 更改 scott 的口令 新口令: 重新键入新口令: 口令已更改 已连接。 SQL> show user USER 为 "SCOTT" SQL>原来是要先登录一个用户的、、
这个问题我也遇到过,期间放假隔一个月没有登录oracle,后来回来就登录不了oracle
最后只能重新安装oracle
alter user sys account unlock;
alter user sys identified by 123;
conn sys/123 as sysdba
你这是采用操作系统认证的方式,
如果楼主也是你这种方式,不会存在他的问题,所以它和你的认证方式是不一样的.
sys应该不会被锁定的,真是奇怪.
忘记密码的话,可以用命令orapwd重置sys密码,没必要重装.
用法如下:
orapwd file=e:/oracle/ora90/database/pwdfox.ora password=sssssss entries=10;如果你sys用户能登录数据库,其它的用户问题都好办了,它可以对所有用户进行设置.
我账号,密码都都有知道,现在的问题是,SQL PLSE连不上,无法进行数据查询和访问,
请教,
sql>conn 用户/密码 as sysdba
如何修改internal 用户的密码?
用法:orapwd file= password= entries=
参数解释:
file - name of password file (mand),
password - password for SYS and INTERNAL (mand),
entries - maximum number of distinct DBA and OPERs (opt),
There are no spaces around the equal-to (=) character.
1)进入DOS下
2)默认internal密码文件在c:\orant\database下,是隐藏属性,文件名称与数据库实例名有关
如默认ORACLE实例名为ORCL,则internal密码文件名为pwdorcl.ora
3)建立新的internal密码文件,起个新名字为pwdora8.ora
orapwd80 file=pwdora8.ora password=B entries=5
--注:password项一定要用大写,并且不要用单引号
4)拷贝pwdora8.ora文件到c:\orant\database目录下
5)运行regedit,修改口令文件指向
6)找到HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE项
定位ORA_ORCL_PWFILE子项,改变其值为c:\orant\database\pwdora8.ora
7)关闭ORACLE数据库,重新启动
8)进入svrmgrl服务程序,测试internal密码是否更改成功
c:\>sqlplus /nologsql>connect / as sysdba就连上去了
然后照着做
ERROR:
ORA-01031: insufficient privileges
SQL> connect / as sysdba
ERROR:
ORA-01031: insufficient privileges
SQL> conn zy/zy
已连接。
SQL>咋不行啊
连接到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining optionsSQL> alter user scott account unlock;用户已更改。SQL> conn scott/tiger@orcl
ERROR:
ORA-28000: the account is locked
警告: 您不再连接到 ORACLE。
SQL> conn scott/tiger
ERROR:
ORA-28001: 口令已经失效
更改 scott 的口令
新口令:
重新键入新口令:
口令已更改
已连接。
SQL> show user
USER 为 "SCOTT"
SQL>原来是要先登录一个用户的、、