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
打开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>
2. Edit the emd.properties file to have the correct timezone
3. Reboot or restart the OracleDBConsole<SID>
本文详细介绍了Oracle 10g DBConsole的配置步骤与使用技巧,包括如何检查DBConsole配置状态、手动配置DBConsole、启动与停止DBConsole的方法,以及常见问题的解决方案。
1222

被折叠的 条评论
为什么被折叠?



