用orapwd恢复密码的问题

[复制链接]
查看11 | 回复7 | 2006-4-17 13:46:34 | 显示全部楼层 |阅读模式
网上有一篇文章谈到忘记密吗恢复的问题
//-------------------------------------------------------------------------------------------------------------//
如果是Unix,那你必须有Oracle DBA组的password,以便能修改INIT.ORA文件和运行orapwd.在你决定修改internal的password的时候,你必须先shutdown db.否则下次你将不能启动Oracle.
1, shutdown db
2, delete or rename the old password file.(在$Oracle_Home/dbs/下有个文件,类似PWD.ora这样的文件)
3,运行
orapwd file=$Oracle_Home/dbs/pwdxxx.ora password=oracle entries=5
4, ensure to set REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE in init.ora file
5, $>svrmgrl
svrmgrl>connect internal/oracle as sysdba
svrmgrl>startup
svrmgrl>alter sys (或则是system)都可以了。
这样你就可以完全修改以前的dba的password.
如果是NT,步骤基本一样,但第3不可以运行别的工具。例如:
ORADIM80 -delete -sid sid
ORADIM80 -new -sid sid -intpwd your_newpasswrd -maxuser n
//----------------------------------------------------------------------------------------------------//
但是这样做以后并不能用conn sys/newpassword as sysdba连接到数据库,请问怎么回事,oracle9i+win2000
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
在windows下,shutdown database后,还要再停止oracle service,用oradim修改密码后,再重新启动。
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
ORA-01031: insufficient privileges
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
关注,我也遇到这样的问题过
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
grant connection to user
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
试一试:
把当前用户加入 ORA_DBA组
sqlplus /nolog
connect /as sysdba
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
Do not remove or modify the password file if you have a database or instance mounted using
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE (or SHARED). If you do, you will be unable to reconnect
remotely using the password file. Even if you replace it, you cannot use the new password
file, because the timestamps and checksums will be wrong.
>
回复

使用道具 举报

千问 | 2006-4-17 13:46:34 | 显示全部楼层
grant connection to user
-----------------------------------------
connect 都不行怎么grant
connect / as sysdba
------------------------------------------
这样倒是可以,不过就是假设设置password认证的,否则这个问题还有什么意义
Do not remove or modify the password file if you have a database or instance mounted using
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE (or SHARED). If you do, you will be unable to reconnect
remotely using the password file. Even if you replace it, you cannot use the new password
file, because the timestamps and checksums will be wrong.
---------------------------------------------------------------------------------------------------------
你说的和最顶上的是不是正好相反阿,那个REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE到底什么时候设置阿,可不可以这么理解,在这个参数这样设置并且数据库open的时候,如果我用了orapwd就再也不能从远程登陆数据库了
但是我是在本机登陆的阿
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行