AIX下 Oracle10GR2 DBconsole安装配置
简单记录一下安装配置基于web方式的EM步骤:
oracle@ibmvs_a@/oracle $ emca -repos create
STARTED EMCA at Oct 31, 2011 11:08:28 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: HT
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: y
Oct 31, 2011 11:08:43 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/product/10.2.0/cfgtoollogs/emca/HT/emca_2011-10-31_11-08-28-AM.log.
Oct 31, 2011 11:08:43 AM oracle.sysman.emcp.EMReposConfig createRepository
INFO: Creating the EM repository (this may take a while) ...
Oct 31, 2011 11:11:08 AM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully created
Enterprise Manager configuration completed successfully
FINISHED EMCA at Oct 31, 2011 11:11:08 AM
oracle@ibmvs_a@/oracle $ export ORACLE_SID=HT
oracle@ibmvs_a@/oracle $ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Oct 31 11:12:11 2011
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
SQL> show parameter job
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
job_queue_processes integer 10
SQL> select username,account_status from dba_users;
USERNAME ACCOUNT_STATUS
------------------------------ --------------------------------
OUTLN OPEN
MGMT_VIEW OPEN
SYS OPEN
SYSTEM OPEN
DBSNMP OPEN
SYSMAN OPEN
LINCINQ OPEN
LINC OPEN
TEST OPEN
TSMSYS EXPIRED & LOCKED
DIP EXPIRED & LOCKED
USERNAME ACCOUNT_STATUS
------------------------------ --------------------------------
WMSYS EXPIRED & LOCKED
12 rows selected.
SQL> exit
oracle@ibmvs_a@/oracle $ emca -config dbcontrol db
STARTED EMCA at Oct 31, 2011 11:13:23 AM
EM Configuration Assistant, Version 10.2.0.1.0 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: HT
Listener port number: 1521
Password for SYS user:
Password for DBSNMP user:
Password for SYSMAN user:
Email address for notifications (optional):
Outgoing Mail (SMTP) server for notifications (optional):
-----------------------------------------------------------------
You have specified the following settings
Database ORACLE_HOME ................ /oracle/product/10.2.0
Database hostname ................ ibmvs_a
Listener port number ................ 1521
Database SID ................ HT
Email address for notifications ...............
Outgoing Mail (SMTP) server for notifications ...............
-----------------------------------------------------------------
Do you wish to continue? [yes(Y)/no(N)]: y
Oct 31, 2011 11:13:53 AM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /oracle/product/10.2.0/cfgtoollogs/emca/HT/emca_2011-10-31_11-13-23-AM.log.
Oct 31, 2011 11:14:00 AM oracle.sysman.emcp.ParamsManager getLocalListener
WARNING: Error retrieving listener for ibmvs_a
Oct 31, 2011 11:14:01 AM oracle.sysman.emcp.util.DBControlUtil startOMS
INFO: Starting Database Control (this may take a while) ...
Oct 31, 2011 11:14:15 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: Database Control started successfully
Oct 31, 2011 11:14:15 AM oracle.sysman.emcp.EMDBPostConfig performConfiguration
INFO: >>>>>>>>>>> The Database Control URL is http://ibmvs_a:1158/em <<<<<<<<<<<
Enterprise Manager configuration completed successfully
FINISHED EMCA at Oct 31, 2011 11:14:15 AM
到这里基本的安装就好了,接下来只要启动dbconsole就可以使用EM了。不过在AIX平台,启动dbconsole会出现报错:
oracle@ibmvs_a@/oracle $ emctl start dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
http://ibmvs_a:1158/em/console/aboutApplication
ps: 0509-048 Flag -o was used with invalid list.
ps: Not a recognized flag: -
Usage: ps [-ANPaedfklmMZ] [-n namelist] [-F Format] [-o specifier[=header],...]
[-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist] [ -T pid] [ -L pidlist]
Usage: ps [aceglnsuvwxU] [t tty] [processnumber]
Agent Version : 10.1.0.5.1
OMS Version : Unknown
Protocol Version : 10.1.0.2.0
Agent Home : /oracle/product/10.2.0/ibmvs_a_HT
Agent binaries : /oracle/product/10.2.0
Agent Process ID : 3190890
Parent Process ID : 2969818
Agent URL : http://ibmvs_a:3938/emd/main
Started at : 2011-10-31 11:15:40
Started by user : oracle
Last Reload : 2011-10-31 11:15:40
Last successful upload : (none)
Last attempted upload : (none)
Total Megabytes of XML files uploaded so far : 0.00
Number of XML files pending upload : 8
Size of XML files pending upload(MB) : 2.45
Available disk space on upload filesystem : 75.01%
Agent is already started. Will restart the agent
Stopping agent ... stopped.
Starting Oracle Enterprise Manager 10g Database Control .... started.
------------------------------------------------------------------
Logs are generated in directory /oracle/product/10.2.0/ibmvs_a_HT/sysman/log
oracle@ibmvs_a@/oracle $
oracle@ibmvs_a@/oracle $ emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
http://ibmvs_a:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is not running.
------------------------------------------------------------------
Logs are generated in directory /oracle/product/10.2.0/ibmvs_a_HT/sysman/log
这里启动失败的原因是:在AIX平台上,ps命令后的-o参数使用了不正确的输入内容。可以在$ORACLE_HOME/bin下通过修改emctl.pl文件解决。具体步骤:
a) Stop DBConsole - 'emctl stop dbconsole'
b) Take backup of 'emctl.pl' from $ORACLE_HOME/bin
c) Edit emctl.pl and goto line number 1249, which is:
my $ps=`ps -p $PID -o cmd --cols 1000 |grep DEMDROOT`;
Modify above line as below:
my $ps=`ps -p $PID -o args | grep DEMDROOT`;
d) Save the file.
e) Start DBConsole - 'emctl start dbconsole' from $ORACLE_HOME/bin
修改后dbconsole正常启动,此时可以使用地址http://192.168.100.193:1158/em登录EM了。
oracle@ibmvs_a@/oracle/product/10.2.0/bin $ diff emctl.pl emctl.pl.bak
1249c1249
< my $ps=`ps -p $PID -o args | grep DEMDROOT`;
---
> my $ps=`ps -p $PID -o cmd --cols 1000 |grep DEMDROOT`;
oracle@ibmvs_a@/oracle/product/10.2.0/bin $ emctl status dbconsole
Oracle Enterprise Manager 10g Database Control Release 10.2.0.3.0
Copyright (c) 1996, 2006 Oracle Corporation. All rights reserved.
http://ibmvs_a:1158/em/console/aboutApplication
Oracle Enterprise Manager 10g is running.
------------------------------------------------------------------
Logs are generated in directory /oracle/product/10.2.0/ibmvs_a_HT/sysman/log
如果在浏览器中访问EM时按钮出现乱码,可按以下步骤进行设置:
cd $ORACLE_HOME/jdk/jre/lib
mv font.properties font.properties.bak
cp font.properties.zh_GB18030 font.properties
cd $ORACLE_HOME/jre/1.4.2/lib
mv font.properties font.properties.bak
cp font.properties.zh_GB18030 font.properties
cd $ORACLE_HOME/oc4j/j2ee/oc4j_applications/applications/em/em/cabo/images/cache/zhs
rm *.gif
emctl stop dbconsole
emctl start dbconsole
另,可通过查看$ORACLE_HOME/install/portlist.ini得知目前dbconsole正在使用的端口。
10gR2下,默认的http端口为1158,agent端口为3938,如果需要重新配置端口,可使用如下命令:
emca –reconfig ports –dbcontrol_http_port 1159
emca –reconfig ports –agent_port 3939
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/20750200/viewspace-709953/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/20750200/viewspace-709953/
- 点赞
- 收藏
- 分享
- 文章举报
- 在AIX5.3上安装Oracle10gR2
- linux 系统 oracle10 安装与配置
- RHEL6.1 安装 Oracle10gr2 (图文、解析)
- Oracle10GR2 RAC+ASM on RHAS4U4在VMWare上的安装笔记
- Oracle10gR2 64bit on SuSE11安装技术文档(原版英文)
- Win7安装Oracle10gR2
- Ubuntu10.04上安装Oracle10gR2
- Oracle10gR2 on RHEL4 x86_64安装技术文档(英文原版)
- Oracle10gR2 RAC+RHEL4+ VMWare GSX简明安装步骤
- .Net+EF连接Oracle 10、11 开发,ODAC安装配置与使用详解
- Solaris10安装Oracle10gR2
- Oracle10gR2 主备自动切换之客户端Failover配置
- Soloris 10下oracle 10g的安装与配置
- Solaris10安装Oracle10gR2时的注意事项
- Oracle GoldenGate学习之--AIX系统安装配置
- Oracle GoldenGate学习之--AIX系统安装配置
- solaris10 x86 安装oracle10gr1.03
- Oracle10gR2 On RHEL5 x86_64安装技术文档(原版英文)
- solaris11.6 安装oracle10gr2