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.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 "iSQLPlus 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 "iSQLPlus DBA/admin" -password welcome -listusers "iSQLPlus 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 "iSQLPlus DBA/admin" -password welcome -grantrole webDba "iSQLPlus 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, 就可以访问了。

相关文章

文章浏览阅读773次,点赞6次,收藏9次。【代码】c# json字符...
文章浏览阅读8.7k次,点赞2次,收藏17次。此现象一般定位到远...
文章浏览阅读2.8k次。mysql脚本转化为oracle脚本_mysql建表语...
文章浏览阅读2.2k次。cx_Oracle报错:cx_Oracle DatabaseErr...
文章浏览阅读1.1k次,点赞38次,收藏35次。本文深入探讨了Or...
文章浏览阅读1.5k次。默认自动收集统计信息的时间为晚上10点...