加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-12 16:49:39 所属栏目:百科 来源:网络整理
导读:下面就是解决方案: 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:oracleproduct10.2.0db_1 c:>set java_home=%ORACLE_HOME%j

下面就是解决方案:

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:oracleproduct10.2.0db_1
c:>set java_home=%ORACLE_HOME%jdk

3- Change directory to:


cd %ORACLE_HOME%oc4jj2eeisqlplusapplication-deploymentsisqlplus

4- Suppose you need to create a new user with user name 'yoyo' and password 'ch51',run the following command:


%JAVA_HOME%binjava -Djava.security.properties=%ORACLE_HOME%oc4jj2eehomeconfigjazn.security.props -jar %ORACLE_HOME%oc4jj2eehomejazn.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%binjava -Djava.security.properties=%ORACLE_HOME%oc4jj2eehomeconfigjazn.security.props -jar %ORACLE_HOME%oc4jj2eehomejazn.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%binjava -Djava.security.properties=%ORACLE_HOME%oc4jj2eehomeconfigjazn.security.props -jar %ORACLE_HOME%oc4jj2eehomejazn.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, 就可以访问了。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读