修改计算机名称后,已经将D:\oracle\product\10.2.0\db_1\NETWORK\ADMIN下的listener.ora、sqlnet.ora、tnsnames.ora文件的lost全部修改了,也重新配置net configuration assistant。
现在其他的服务都启动了,单独OracleDBConsole服务启动不了,提示:系统找不到指定的路径。还需要其他的配置吗?

解决方案 »

  1.   

    2. Stop DB Console:
    export ORACLE_HOME=<path to the database home>
    export ORACLE_SID=<database SID>
    cd $ORACLE_HOME/bin
    ./emctl stop dbconsole
    3. Delete the old dbconsole config files:
    cd $ORACLE_HOME
    rm -rf <HOSTNAME_SID>*
    4. Log in to the database as SYS (not SYSMAN) and run:
    SQL> drop user sysman cascade;
    SQL> drop role MGMT_USER;
    SQL> drop user MGMT_VIEW cascade;
    SQL> drop public synonym MGMT_TARGET_BLACKOUTS;
    SQL> drop public synonym SETEMVIEWUSERCONTEXT;
    5. Re-create the repository using the virtual hostname:
    export ORACLE_HOME=<path to the database home>
    export ORACLE_SID=<database SID>
    export ORACLE_HOSTNAME=<your virtual hostname>
    cd $ORACLE_HOME/bin
    ./emca -config dbcontrol db -repos create -ORACLE_HOSTNAME <your virtual hostname>
      

  2.   

    上问是unix环境下的,windows 环境下相应修改下 export -> set
      

  3.   

    可以参考这个文章
    http://bbs.inthirties.com/thread-80-1-1.html,这个不仅是解决你这个问题的,其他OracleDBConsole的问题的排查过程基本上可以按这个过程
      

  4.   

    在修改计算机名称以后,最好的方法是使用emca重新建立一个dbconsole,
      

  5.   

    看看这个对你有没有用启动或查看dbconsole的状态时,出现下面的错误,C:\Documents and Settings\capinfo-zcs>emctl status dbconsole
    OC4J Configuration issue. E:\oracle\product\10.2.0\db_1/oc4j/j2ee/OC4J_DBConsole_localhost_ORCL not found.其解决方法是:首先了解hostname
    C:\Documents and Settings\capinfo-zcs>hostname
    lenovo-56af9ec5打开文件C:\WINDOWS\system32\drivers\etc\hosts,增加一行127.0.0.1 lenovo-56af9ec5重新打开一个cmd,执行emctl start dbconsole
    成功。
      

  6.   

    不会吧再试试
    http://bbs.inthirties.com/thread-80-1-1.html
    或者
    http://www.inthirties.com/?p=700
      

  7.   


    呵呵,还是打不开,不过我的问题解决了,重建了OracledbConsole就好了
    谢谢了