免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2221 | 回复: 7
打印 上一主题 下一主题

ora9i 忘了密码,怎么办 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-11 09:30 |只看该作者 |倒序浏览
装的ora9i for solaris,装完2个星期没动,忘了系统密码,有没有什么解决办法,我是菜鸟,虚心请教大家,谢谢

论坛徽章:
0
2 [报告]
发表于 2007-09-11 10:57 |只看该作者
看来你真的是一个非常非常新的新手,忘记sys密码,非常简单,登录到oracle所有机器,设置正确的ORACLE_SID,用sqlplus "/as sysdba"就可以直接登录,然后再改密码。

论坛徽章:
0
3 [报告]
发表于 2007-09-11 11:39 |只看该作者
用root帐户运行/ora/bin/orapwd file=/ora/dbs/orapworcl password=test123 entires=30 提示
Unable to find error file
在sun主机运行sqlplus "/as sysdba"
然后sql>show user;  显示是SYS
然后sql>alter user sys identified by test123;
显示missing or invaild operation
实在是菜鸟,希望高手搭救

论坛徽章:
0
4 [报告]
发表于 2007-09-11 12:28 |只看该作者
su - oracle
$orapwd file=/ora/dbs/orapworcl password=test123 entires=30

论坛徽章:
0
5 [报告]
发表于 2007-09-11 13:46 |只看该作者
$ orapwd file=/ora/dbs/orapworcl password=test123 entires=30
Usage: orapwd file=<fname> password=<password> entries=<users>

  where
    file - name of password file (mand),
    password - password for SYS (mand),
    entries - maximum number of distinct DBA and OPERs (opt),
  There are no spaces around the equal-to (=) character.

这是命令输入后的执行结果拷屏,密码还是没有修改成功,偶滴神啊
是su - oracle 后的执行

论坛徽章:
0
6 [报告]
发表于 2007-09-11 14:01 |只看该作者
原帖由 deepperblue 于 2007-9-11 13:46 发表
$ orapwd file=/ora/dbs/orapworcl password=test123 entires=30
Usage: orapwd file= password= entries=

  where
    file - name of password file (mand),
    password - password for SYS (mand), ...


entries=30

论坛徽章:
0
7 [报告]
发表于 2007-09-11 14:27 |只看该作者
终于搞定,偶滴神,我是大头虾,修改后重启数据库,一切正常.谢谢楼上的大侠

[ 本帖最后由 deepperblue 于 2007-9-11 14:28 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2007-09-11 14:32 |只看该作者
同时另外一个疑问
在sun主机运行sqlplus "/as sysdba"
然后sql>show user;  显示是SYS
然后sql>alter user sys identified by test123;
显示missing or invaild operation
为什么这种方法不对呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP