ORACLE 10g DBCONSOLE的配置与使用技巧

ORACLE 10g DBCONSOLE的配置与使用技巧

一、检查 dbconsole 是否已配置:
[oracle@yljshz install]$ emctl status dbconsole
系统一般会出现:
TZ set to PRC
OC4JConfigurationissue. /home/oracle/app/oracle/product/10/db/oc4j/j2ee/OC4J_DBConsole_yljshz_yljshz not found. 说明服务器上没有配置 dbconsole ,可以查找确认一下:
[oracle@yljshz install]$ cd $ORACLE_HOME/oc4j/j2ee
[oracle@yljshz j2ee]$ ll
系统一般会出现:
-rw-r--r--   1 oracle dba  258 2007-08-24  deploy_db.ini
drwxr-x---  15 oracle dba 4096 2007-08-24  home
drwxr-x---   9 oracle dba 4096 2007-08-24  isqlplus
drwxr-x---   3 oracle dba 4096 2007-08-24  oc4j_applications
drwxr-x---   5 oracle dba 4096 2007-08-24  OC4J_DBConsole
没有 OC4J_DBConsole_ylsjhz_yljshz 的目录(命名规则 OC4J_DBConsole_<hostnamae>_<SID>
确认说明没有配置 dbconsole.

二、手工配置 dbconsole
[oracle@yljshz install]$ emca -config dbcontrol db
系统一般会出现:
EMCA  开始于  2008-6-13 11:20:52
EM Configuration Assistant 10.2.0.1.0  正式版
版权所有  (c) 2003, 2005, Oracle 。保留所有权利。
输入以下信息 :
数据库  SID: yljshz  [ 输入数据库 SID]
监听程序端口号 : 1521 [ 输入数据库服务器监听端口,一般为 1521]
SYS  用户的口令 :    [ 输入 sys 用户口令 ]
DBSNMP  用户的口令 :  [ 输入 DBSNMP 用户口令,如果忘记了,可以在 oracle enterprise manager console 中用 sys 用户登录后重置,也可以用 sys 用户登录 SQLPLUS 后修改,如 sql>alter user dbsnmp identified by xxx]
SYSMAN  用户的口令 :  [ 输入 SYSMAN 用户口令,如果忘记了,重置密码方法如上。 ]

通知的电子邮件地址  ( 可选 ):
通知的发件  (SMTP)  服务器  ( 可选 ):
-----------------------------------------------------------------
已指定以下设置
数据库  ORACLE_HOME ................ /home/oracle/app/oracle/product/10/db
数据库主机名  ................ yljshz
监听程序端口号  ................ 1521
数据库  SID ................ yljshz
通知的电子邮件地址  ...............
通知的发件  (SMTP)  服务器  ...............

-----------------------------------------------------------------
是否继续 ? [yes(Y)/no(N)]: y
2008-6-13 11:21:24 oracle.sysman.emcp.EMConfig perform
信息 :  正在将此操作记录到  /home/oracle/app/oracle/product/10/db/cfgtoollogs/emca/yljshz/emca_2008-06-13_11-20-52- 上午 .log
2008-6-13 11:21:25 oracle.sysman.emcp.DatabaseChecks performReposChecks
警告 : 'shared_pool_size'  必须大于等于  80 MB  
2008-6-13 11:21:31 oracle.sysman.emcp.util.DBControlUtil startOMS
信息 :  正在启动  Database Control ( 此操作可能需要一段时间 )...
2008-6-13 11:23:10 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息 :  已成功启动  Database Control
2008-6-13 11:23:10 oracle.sysman.emcp.EMDBPostConfig performConfiguration
信息 : >>>>>>>>>>> Database Control URL    http://yljshz:5500/em <<<<<<<<<<<
已成功完成  Enterprise Manager  的配置
EMCA  结束于  2008-6-13 11:23:10

三、检查 dbconsole 的状态
[oracle@yljshz install]$ emctl status dbconsole
系统一般会出现:
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
http://yljshz:5500/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory /home/oracle/app/oracle/product/10/db/yljshz_yljshz/sysman/log
说明 emctl 已启动了。

另外,也可以到 [oracle@yljshz install]$ cd $ORACLE_HOME/oc4j/j2ee
查看一下是否有 OC4J_DBConsole_yljshz_yljshz 目录。
系统一般会出现:
-rw-r--r--   1 oracle dba  258 2007-08-24  deploy_db.ini
drwxr-x---  15 oracle dba 4096 2007-08-24  home
drwxr-x---   9 oracle dba 4096 2007-08-24  isqlplus
drwxr-x---   3 oracle dba 4096 2007-08-24  oc4j_applications
drwxr-x---   5 oracle dba 4096 2007-08-24  OC4J_DBConsole
drwxr-x---   7 oracle dba 4096 2007-08-24  OC4J_DBConsole_localhost.localdomain_yljshz
drwxr-xr-x   7 oracle dba 4096  6   13 11:21 OC4J_DBConsole_yljshz_yljshz

四、登录 emctl

五、关闭 / 启动 emctl
emctl 异常时,可以通过 emctl stop dbconsole 关闭 emctl ,通过 emctl start dbconsole 启动 emctl

[oracle@yljshz j2ee]$ emctl stop dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
http://yljshz:5500/em/console/aboutApplication
Stopping Oracle Enterprise Manager 10g Database Control ...
 ...  Stopped.

[oracle@yljshz j2ee]$ emctl start dbconsole
TZ set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0 
Copyright (c) 1996, 2005 Oracle Corporation.  All rights reserved.
http://yljshz:5500/em/console/aboutApplication
Starting Oracle Enterprise Manager 10g Database Control ........................ started.
------------------------------------------------------------------
Logs are generated in directory /home/oracle/app/oracle/product/10/db/yljshz_yljshz/sysman/log

六、常见问题:
1 .在使用 oracle10g oem 登陆时出现这样的问题 !!!
出现这样的警告:  java.lang.Exception: UnknownHostException sending request

解决如下:
$ORACLE_HOME/><sever_name_SID>/sysman/config/emd.properties.
打开 emd.properties 文件,
修改其中的 agentTZRegion 缺省是 GMT, 改为你所在的时区即可 , 例如 :
agentTZRegion=Asia/Chungking
然后 :
1. Kill the java process which is the console portion of OracleDBConsole<SID>
2. Edit the emd.properties file to have the correct timezone
3. Reboot or restart the OracleDBConsole<SID>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值