源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Oracle 10g的DBA无法登录解决方案

  • 时间:2022-04-19 18:03 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Oracle 10g的DBA无法登录解决方案
下面就是解决方案: [b]1- From the command prompt, stop isqlplus: [/b]c:\>isqlplusctl stop [b]2- Assuming that you install oracle under C drive, run the following comands:[/b] c:\>set oracle_home=c:\oracle\product\10.2.0\db_1 c:\>set java_home=%ORACLE_HOME%\jdk [b]3- Change directory to:[/b] cd %ORACLE_HOME%\oc4j\j2ee\isqlplus\application-deployments\isqlplus [b]4- Suppose you need to create a new user with user name 'yoyo' and password 'ch51*****', run the following command:[/b] %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 -adduser "iSQL*Plus DBA" yoyo ch51***** [b]5- To check that adding this new user was successful, run the following command:[/b] %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 [b]6- To grant a user access to the webDba role from the command line, enter:[/b] %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 [b]7- Now, run start isqlplus again and enjoy it:[/b] isqlplusctl start [b]8. 再次访问: http://hostname:5560/isqlplus/dba, 给出用户名和密码: yoyo 和 ch51***** (全小写),就可看到isqlplus的登入界面,[/b] 然后再提供用户名:SYSTEM,口令:ch51*****, 连接标识:(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=KCSQLBI)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=orcl))),权限SYSDBA, 就可以访问了。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部