我在cmd窗口模式下启动,启动不起来:大家帮看下什么问题!

解决方案 »

  1.   

    看看这个文章,应该可以帮你解决问题。
    http://www.inthirties.com/?p=700
      

  2.   


    解决方案,
    解决方案有两种,一种是比较正式的
    通过emca重新建立repos
    命令如下
    emca -config dbcontrol db -repos recreate方法二是自己实验出来的,并不是一个正式的方法,但是比上一种方法简单,易于操作。
    信息提示里找不到一个目录D:\oracle\product\10.1.0\db_1\oc4j\j2ee\OC4J_DBConsole_localhost_java, 到这个信息提示的上一层目录里一看,可以看到有个类似的目录, 形如OC4J_DBConsole_janes_java, 这里janes是我的机器名,把这个目录copy到当前目录下,改成信息提示里没有找到的目录名,比如 我这里就改成D:\oracle\product\10.1.0\db_1\oc4j\j2ee\OC4J_DBConsole_localhost_java同时来到D:\oracle\product\10.1.0\db_1目录下,可以找到一个名字形如janes_ORCL的目录,
    注意janes_ORCL 这里的janes是我的机器名,ORCL是我这里ORacle的SID,你可以根据你的具体情况,来找到类似的目录, 同样在当前copy到当前目录,并改名为localhost_ORCL.然后通过emctl start dbconsole或者服务里的ORacleDBConsoleXXXX的服务就可以启动了。===============================================================Inthirties关注Oracle数据库 维护,优化,安全,备份,恢复,迁移,故障处理 如果你需要帮助或想和我一起学习的请联系联系方式QQ:370140387
    电子邮件:[email protected]
    网站: http://www.inthirties.com
      

  3.   

    1,第一种方法,报错如下:C:\>emca -config dbcontrol db -repos recreate
    用法不正确:
    oracle.sysman.emcp.EMConfigAssistant [options] [list of paramet
    Options:
            -a          :configure for an ASM database
            -b          :configure for automatic backup
            -c          :configure a cluster database
            -d          :run EMCA from within the development view
            -e <node>   :remove a node from the cluster
            -f <file>   :specify the file name that contains parame
            -h          :help
            -m          :configure for central mode
            -n <node>   :add a new node to the cluster
            -r          :skip creation of repository schema
            -s          :silent mode (no user prompts
            -x <db>     :deletion of a SID or DBThe script will prompt for any required data that is not specif
     configuration file, the file may contain any of the followingParameters for single instance databases:
            HOST=<Database hostname>
            SID=<Database SID>
            PORT=<Listener port number>
            ORACLE_HOME=<Database ORACLE_HOME>
            LISTENER=<Listener name>
            HOST_USER=<Host user name for automatic backup>
            HOST_USER_PWD=<Host user password for automatic backup>
            BACKUP_HOUR=<Automatic backup hour in number>
            BACKUP_MINUTE=<Automatic backup minute in number>
            ARCHIVE_LOG=<Archive log>
            EMAIL_ADDRESS=<Email address for automatic notification
            MAIL_SERVER_NAME=<Email gateway for automatic notificat
            ASM_OH=<ASM ORACLE_HOME>
            ASM_SID=<ASM SID>
            ASM_PORT=<ASM port>
            ASM_USER_ROLE=<ASM user role>
            ASM_USER_NAME=<ASM user name>
            ASM_USER_PWD=<ASM user password>
            EM_HOME=<Enterprise Manager ORACLE_HOME>
            DBSNMP_PWD=<Password for dbsnmp>
            SYSMAN_PWD=<Password for sysman>
            SYS_PWD=<Password for sys>Parameters for cluster databses:
            HOST=<Database Instance hostname>
            PORT=<Listener port number>
            LISTENER=<Listener name>
            ORACLE_HOME=<Database ORACLE_HOME>
            CLUSTER_NAME=<Cluster name>
            DB_NAME=<Database name>
            SERVICE_NAME=<Service name>
            HOST_USER=<Host user name for automatic backup>
            HOST_USER_PWD=<Host user password for automatic backup>
            BACKUP_HOUR=<Automatic backup hour in number>
            BACKUP_MINUTE=<Automatic backup minute in number>
            ARCHIVE_LOG=<Archive log>
            EMAIL_ADDRESS=<Email address for automatic notification
            MAIL_SERVER_NAME=<Email gateway for automatic notificat
            ASM_OH=<ASM ORACLE_HOME>
            ASM_PORT=<ASM port>
            ASM_USER_ROLE=<ASM user role>
            ASM_USER_NAME=<ASM user name>
            ASM_USER_PWD=<ASM user password>
            EM_HOME=<Enterprise Manager ORACLE_HOME>
            DBSNMP_PWD=<Password for dbsnmp>
            SYSMAN_PWD=<Password for sysman>
            SYS_PWD=<Password for sys>
      

  4.   


    我机器上可以的哟
    C:\Documents and Settings\shenjuan>emca -config dbcontrol db -repos recreateEMCA 开始于 2009-6-10 7:35:17
    EM Configuration Assistant 10.2.0.1.0 正式版
    版权所有 (c) 2003, 2005, Oracle。保留所有权利。输入以下信息:
    数据库 SID:
    ......不知道是不是版本的差别,你查查你这个版本下emca的帮助,或者直接用方法2来试试。
      

  5.   

    参考:http://hi.baidu.com/zhy_haiyan/blog/item/4572813d9f511803bba16722.html1,set ORACLE_HOSTNAME=localhost2,在没有找到的目录中建立 Skyman.mshome.net_orcl  文件夹3,把你原来Skyman_orcl(这个目录名字我根据你的图片猜的,不一定跟你机器上的一模一样)目录下的sysman下面的文件copy 到step2建立的新文件夹下面去。 4,再执行emctl start dbcontrol 试试看。