windows下面的dbconsole启动不起来,如何搞啊,附图片!

DiligencyMan 2009-06-10 12:09:26
我在cmd窗口模式下启动,启动不起来:大家帮看下什么问题!
...全文
524 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
a36768388 2011-10-30
  • 打赏
  • 举报
回复
同样问题
DiligencyMan 2009-06-10
  • 打赏
  • 举报
回复
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 DB

The script will prompt for any required data that is not specif
configuration file, the file may contain any of the following

Parameters 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>
inthirties 2009-06-10
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 inthirties 的回复:]
看看这个文章,应该可以帮你解决问题。


http://www.inthirties.com/?p=700
[/Quote]

解决方案,
解决方案有两种,一种是比较正式的
通过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
电子邮件:dba@Inthirties.com
网站: http://www.inthirties.com
inthirties 2009-06-10
  • 打赏
  • 举报
回复
看看这个文章,应该可以帮你解决问题。


http://www.inthirties.com/?p=700
oraclelogan 2009-06-10
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 DiligencyMan 的回复:]
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

[/Quote]


参考:http://hi.baidu.com/zhy_haiyan/blog/item/4572813d9f511803bba16722.html

1,set ORACLE_HOSTNAME=localhost

2,在没有找到的目录中建立 Skyman.mshome.net_orcl 文件夹

3,把你原来Skyman_orcl(这个目录名字我根据你的图片猜的,不一定跟你机器上的一模一样)目录下的sysman下面的文件copy 到step2建立的新文件夹下面去。

4,再执行emctl start dbcontrol 试试看。

DiligencyMan 2009-06-10
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 oraclelogan 的回复:]
引用 3 楼 DiligencyMan 的回复:
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 wit…
[/Quote]

谢谢大家,搞定了!
inthirties 2009-06-10
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 DiligencyMan 的回复:]
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 <nod…
[/Quote]

我机器上可以的哟


C:\Documents and Settings\shenjuan>emca -config dbcontrol db -repos recreate

EMCA 开始于 2009-6-10 7:35:17
EM Configuration Assistant 10.2.0.1.0 正式版
版权所有 (c) 2003, 2005, Oracle。保留所有权利。

输入以下信息:
数据库 SID:
......

不知道是不是版本的差别,你查查你这个版本下emca的帮助,

或者直接用方法2来试试。

17,382

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧