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

2022-01-16,,

下面就是解决方案:
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 "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 11g 发行版2 新安装后关于登录的一些基本操作
  • 登录oracle数据库时密码忘记的解决方法
  • [Oracle] 如何使用触发器实现IP限制用户登录
  • Oracle 10g各个帐号的访问权限、登录路径、监控状态命令查询等等
  • ORACLE 查询被锁住的对象,并结束其会话的方法
  • oracle查看被锁的表和被锁的进程以及杀掉这个进程
  • 深入探讨:Oracle中如何查询正锁表的用户以及释放被锁的表的方法
  • ORACLE 如何查询被锁定表及如何解锁释放session
  • Oracle数据库账号被锁定解决方法
  • 使用Oracle数据库登录时被告知用户被锁怎么解决

《Oracle 10g的DBA无法登录解决方案.doc》

下载本文的Word格式文档,以方便收藏与打印。