脚本宝典收集整理的这篇文章主要介绍了Oracle 10g的DBA无法登录解决方案,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
下面就是解决
方案:
1- From the command prompt, stop iSQLplus:
c:\>isqlplusctl stop
2- Assuming that you install oracle under C drive, run the following comands: c:\>set oracle_home=c:\oracle\
PRoduct\10.2.0\db_1
c:\>set java_home=%ORACLE_HOME%\jdk
3- Change directory to: cd %ORACLE_HOME%\oc4j\j2ee\isqlplus\application-
deployments\isqlplus
4- Suppose you need to create a new user wITh user name 'yoyo' and password 'ch51*****', run the following command: %JAVA_HOME%\bin\java -Djava.security.pro
PErties=%ORACLE_HOME%\oc4j\j2ee\home\
config\jazn.security.props -jar %ORACLE_HOME%\oc4j\j2ee\home\jazn.jar -user "iSQL*Plus DBA/admin" -password welcome -adduser "iSQL*Plus DBA" yoyo ch51*****
5- To check that adding this new user was successful, run the following command: %JAVA_HOME%\bin\java -Djava.security.properties=%ORACLE_HOME%\oc4j\j2ee\home\config\jazn.security.props -jar %ORACLE_HOME%\oc4j\j2ee\home\jazn.jar -user "iSQL*Plus DBA/admin" -password welcome -listusers "iSQL*Plus DBA"
结果:
admin
yoyo
6- To grant a user access to the webDba role from the command line, enter: %JAVA_HOME%\bin\java -Djava.security.properties=%ORACLE_HOME%\oc4j\j2ee\home\config\jazn.security.props -jar %ORACLE_HOME%\oc4j\j2ee\home\jazn.jar -user "iSQL*Plus DBA/admin" -password welcome -grantrole webDba "iSQL*Plus DBA" yoyo
7- Now, run start isqlplus again and enjoy it: isqlplusctl start
8. 再次访问: http://hostname:5560/isqlplus/dba, 给出用户名和密码: yoyo 和 ch51***** (全小写),就可看到isqlplus的登入界面, 然后再提供用户名:
SysTEM,口令:ch51*****, 连接标识:(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=KCSQLBI)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl))),权限SYSDBA, 就可以访问了。
脚本宝典总结
以上是脚本宝典为你收集整理的Oracle 10g的DBA无法登录解决方案全部内容,希望文章能够帮你解决Oracle 10g的DBA无法登录解决方案所遇到的问题。
如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。