Oracle 10g的DBA無法登錄解決方案
更新時間:2009年05月07日 16:07:25 作者:
很多時候當裝好Oracle10g后,登錄http://kcsqlbi:5560/isqlplus/dba彈出的Windows認證窗口,盡管輸入什么帳號,都無法登錄。
下面就是解決方案:
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"
結(jié)果:
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))),權(quán)限SYSDBA, 就可以訪問了。
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"
結(jié)果:
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))),權(quán)限SYSDBA, 就可以訪問了。
您可能感興趣的文章:
- 淺談Oracle 11g 發(fā)行版2 新安裝后關(guān)于登錄的一些基本操作
- 登錄oracle數(shù)據(jù)庫時密碼忘記的解決方法
- [Oracle] 如何使用觸發(fā)器實現(xiàn)IP限制用戶登錄
- Oracle 10g各個帳號的訪問權(quán)限、登錄路徑、監(jiān)控狀態(tài)命令查詢等等
- ORACLE 查詢被鎖住的對象,并結(jié)束其會話的方法
- oracle查看被鎖的表和被鎖的進程以及殺掉這個進程
- 深入探討:Oracle中如何查詢正鎖表的用戶以及釋放被鎖的表的方法
- ORACLE 如何查詢被鎖定表及如何解鎖釋放session
- Oracle數(shù)據(jù)庫賬號被鎖定解決方法
- 使用Oracle數(shù)據(jù)庫登錄時被告知用戶被鎖怎么解決
相關(guān)文章
window10 安裝Oracle19C 和SQL Developer 的圖文教程
這篇文章主要介紹了window10 安裝Oracle19C 和SQL Developer 教程(圖文詳解),本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-03-03詳解oracle中通過觸發(fā)器記錄每個語句影響總行數(shù)
這篇文章主要介紹了詳解oracle中通過觸發(fā)器記錄每個語句影響總行數(shù)的相關(guān)資料,需要的朋友可以參考下2017-06-06Oracle RMAN還原時set newname文件名有空格報錯的解決方法
數(shù)據(jù)庫備份還原是我們?nèi)粘i_發(fā)少不了的一個功能,但如果一不注意估計就會有問題,下面這篇文章主要給大家介紹了關(guān)于Oracle RMAN還原時set newname文件名有空格報錯的解決方法,需要的朋友可以參考借鑒,下面隨著小編來一起學習學習吧。2017-11-11ORACLE數(shù)據(jù)庫對long類型字段進行模糊匹配的解決思路
這篇文章主要介紹了ORACLE數(shù)據(jù)庫對long類型字段進行模糊匹配的解決思路,本文通過實例代碼給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-04-0411g Oracle導出表不導出數(shù)據(jù)默認為空表的解決方法
11g Oracle導出表 默認不導出數(shù)據(jù)為空的表解決2014-07-07