程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 數據庫知識 >> Oracle數據庫 >> 關於Oracle數據庫 >> Oracle 10g的DBA無法登錄解決方案

Oracle 10g的DBA無法登錄解決方案

編輯:關於Oracle數據庫
下面就是解決方案:
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, 就可以訪問了。
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved