永发信息网

Oracle忘记用户名密码怎样恢复

答案:2  悬赏:30  手机版
解决时间 2021-02-24 01:09
Oracle忘记用户名密码怎样恢复
最佳答案
忘记密码?
那用dba用户登录,然后用alter user XXX identified by XXXXX改一个密码就行了。
如果是dba用户的密码忘了,那么就登录操作系统的oracle用户,用系统认证的sysdba登录,然后还是按照上面的方式修改密码,就可以了。
全部回答
一、忘记除sys、system用户之外的用户的登录密码。 用sys (或system)用户登录。 conn sys/pass_word as sysdba; 使用如下语句修改用户的密码。 alter user user_name identified by newpass; 注意:密码不能全是数字。并且不能是数字开头。否则会出现:ora-00988: 口令缺失或无效 二、忘记sys用户,或者是system用户的密码。 如果是忘记system用户的密码,可以用sys用户登录。然后用alter user 密令 修改密码。 conn sys//pass_word as sysdba; alter user system identified by newpass; 如果是忘记sys用户的密码,可以用system用户登录。然后用alter user 密令 修改密码。 conn system//pass_word ; alter user system identified by newpass; 三、如果sys,system用户的密码都忘记或是丢失。 这一项尤其重要。 方法一、 可以使用orapwd.exe 工具修改密码。 开始菜单->运行->输入‘cmd’,打开命令提示符窗口,输入如下命令: orapwd file=d:\oracle\product\10.2.0\db_1\database\pwdctcsys.ora password=newpass 这个命令重新生成了数据库的密码文件。密码文件的位置在oracle_home目录下 的\database目录下。 这个密码是修改sys用户的密码。除sys和system其他用户的密码不会改变。 方法二、 1.如果不记得sys用户的密码了,采用如下方法可以修改密码: (1)打开cmd,输入sqlplus /nolog,回车。 (2)输入“conn / as sysdba”; (3)输入“alter user sys identified by 新密码;”(新密码必须以字母开头,另外每条sql语句后得分号不能忘) 其他用户方式同理2.(1)在cmd中启动sqlplus; (2)用sqlplus/as sysdba登录,使其连接到: oracle database 10g express edition release 10.2.0.1.0 - production (3)执行alter user dbsnmp account unlock; (4) 从新用sql/plus登录,设置用户名、密码; 附:oracle 10g 默认安装带来的用户名/密码 usernamepassworddescriptionsee alsoctxsysctxsys the oracle text accountoracle text referencedbsnmpdbsnmpthe account used by the management agent component of oracle enterprise manager to monitor and manage the databaseoracle enterprise manager grid control installation and basic configurationlbacsyslbacsys the oracle label security administrator accountoracle label security administrator's guidemddatamddatathe schema used by oracle spatial for storing geocoder and router dataoracle spatial user's guide and referencemdsysmdsys the oracle spatial and oracle intermedia locator administrator accountoracle spatial user's guide and referencedmsysdmsys the oracle data mining account.oracle data mining administrator's guideoracle data mining conceptsolapsysmanagerthe account used to create olap metadata structures. it owns the olap catalog (cwmlite).oracle olap application developer's guideordpluginsordplugins the oracle intermedia user. plug-ins supplied by oracle and third party format plug-ins are installed in this schema.oracle intermedia user's guideordsysordsys the oracle intermedia administrator accountoracle intermedia user's guideoutlnoutlnthe account that supports plan stability. plan stability enables you to maintain the same execution plans for the same sql statements. outln acts as a role to centrally manage metadata associated with stored outlines.oracle database performance tuning guidesi_informtn_schemasi_informtn_schemathe account that stores the information views for the sql/mm still image standardoracle intermedia user's guidesyschange_on_installthe account used to perform database administration tasksoracle database administrator's guidesysmanchange_on_installthe account used to perform oracle enterprise manager database administration tasks. note that sys and system can also perform these tasks.oracle enterprise manager grid control installation and basic configurationsystemmanageranother account used to perform database administration tasks.
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
英雄联盟LOL_V3.1.6.0_FULL.7z.001损坏怎么办
坚苦奋斗的反义词
烽火战国 韬光养晦 任务做了给什么啊
中国移动桂城店地址在什么地方,想过去办事
如图表示农田中一昼夜温度变化(I)、光照强
皮肤黄的人穿紫色妮子大衣好不好看
尊敬的用户:您积分38863可兑换388.63元现金
我现在在做化工,想转型,能进哪些其他行业?
佳信平价超市地址在哪,我要去那里办事
求圣邪的意志那3个见习人物的出处和名字 以及
联通号码可以使用飞信吗?
国字脸剪什么样的短发
由长安至深圳皇岗口岸怎样走最快?在哪里坐车?
怎么才能从公交站牌上看出有没有坐反公交车?
品源酒楼我想知道这个在什么地方
推荐资讯
在细胞分裂过程中,变化最大的是?主要体现在
<问歌名>
服从调剂是什么意思?是从你报名的6个专业调
北京稳如泰山金融信息服务有限公司怎么样?
中国移动充值卡哪个省份都可以充值吗?
如果要考水利局,要具备什么才能
交通银联标准普卡和借记卡是什么
翻译并判断对错!麻烦经济英语大虾!
睡觉时脖子酸痛是什么原因
男友不努力好吃懒做。怎么办。我已经有他孩子
有没有好看的黑道总裁类的小说~~~~~~
东营西四路与潍坊路交叉口铭朱花卉
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?