重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 4431|回复: 0
打印 上一主题 下一主题

安装配置 Enterprise Manager Cloud Control 12c

[复制链接]
跳转到指定楼层
楼主
发表于 2014-6-22 01:44:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

在 Oracle Database 10g 之前,Oracle Enterprise Manager 是一个 GUI 方式的管理框架,同样由Console,OMR,Agent 三层体系组成。
从 Oracle 10g 开始,Oracle 重写了 OEM,推出了 Web 模式的 OEM,并有了新的名词:

  1. Oracle Enterprise Manager Database Control
  2. Oracle Enterprise Manager Grid Control

Grid Control 是具有完整功能的全企业 Oracle 生态系统管理工具。它可以监控整个 Oracle 生态环境,它具有一个中心存储仓库,用于收集有关多个计算机上的多个目标的数据,并且提供一个界面来显示所有已发现目标的共同信息。

Database Control 是可以只作为数据库管理实用程序部署的 OEM 版本。它是 Grid Control 功能的一个子集,Database Control 只监控一个数据库,并且不能用于监控多个数据库。 它只在数据库上运行。从数据库管理的观点来看,两个使用程序的功能几乎是相同的,只不过网格控制提供了涉及多台计算机的操作的更多功能。 两个程序的界面是相同的,底层代码也是相同的,并且只有很细微的区别。 从备份和恢复的观点来看,两个程序几乎相等。

Cloud Control 12c 详细的配置安装过程我在这里就不表述了,请参考国外博客的两篇相关文档,内容如下:

安装文档:

安装后设置文档:

在我实际的安装过程中我遇到了以下问题:

1. Oracle 数据库已经配置了 Database Control (DB Console),所以需要 deconfigure 一下已经配置的 Database Control。过程如下:

[oracle@manager ~]$ emca -deconfig dbcontrol db -repos drop -SYS_PWD OracleDB11g -SYSMAN_PWD OracleDB11g

STARTED EMCA at Apr 9, 2013 2:00:34 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:
Database SID: em12c
Listener port number: 1521

Do you wish to continue? [yes(Y)/no(N)]: y
Apr 9, 2013 2:00:51 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/em12c/emca_2013_04_09_14_00_34.log.
Apr 9, 2013 2:00:51 PM oracle.sysman.emcp.util.DBControlUtil stopOMS
INFO: Stopping Database Control (this may take a while) …
Apr 9, 2013 2:01:12 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Dropping the EM repository (this may take a while) …
Apr 9, 2013 2:03:22 PM oracle.sysman.emcp.EMReposConfig invoke
INFO: Repository successfully dropped
Enterprise Manager configuration completed successfully
FINISHED EMCA at Apr 9, 2013 2:03:24 PM
[oracle@manager ~]$

2. 在 Plugins Prerequisites Check 环节安装程序报错,我参考了 Oracle 官方论坛 成功解决该文问题。该问题表现为:

make[1]: *** [/u01/app/oracle/product/Middleware12c/oms/sqlplus/bin/sqlplus32] Error 1
make: *** [newsqlplus32] Error 2

INFO: make[1]: Leaving directory `/u01/app/oracle/product/Middleware12c/oms/sqlplus/lib’

INFO: End output from spawned process.
INFO: ———————————-
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target ‘install’ of makefile ‘/u01/app/oracle/product/Middleware12c/oms/sqlplus/lib/ins_sqlplus.mk’. See ‘/u01/app/oraInventory/logs/installActions2013-04-09_04-15-41-PM.log’ for details.
Exception Severity: 1
INFO: POPUP WARNING:Error in invoking target ‘install’ of makefile ‘/u01/app/oracle/product/Middleware12c/oms/sqlplus/lib/ins_sqlplus.mk’. See ‘/u01/app/oraInventory/logs/installActions2013-04-09_04-15-41-PM.log’ for details.

Click “Retry” to try again.
Click “Ignore” to ignore this error and go on.
Click “Cancel” to stop this installation.

解决方法如下:

[oracle@manager db_1]$ cd sqlplus/lib
[oracle@manager lib]$ make -f ins_sqlplus.mk install
mkdir -p /u01/app/oracle/product/11.2.0/db_1/sqlplus/bin
cp -f /u01/app/oracle/product/11.2.0/db_1/lib/libsqlplus.so \
/u01/app/oracle/product/11.2.0/db_1/sqlplus/lib/libsqlplus.so
Linking /u01/app/oracle/product/11.2.0/db_1/sqlplus/bin/sqlplus
rm -f /u01/app/oracle/product/11.2.0/db_1/sqlplus/bin/sqlplus
gcc -o /u01/app/oracle/product/11.2.0/db_1/sqlplus/bin/sqlplus -m64 -L/u01/app/oracle/product/11.2.0/db_1/sqlplus/lib/ -L/u01/app/oracle/product/11.2.0/db_1/lib/ -L/u01/app/oracle/product/11.2.0/db_1/lib/stubs/

… …

rm -f /u01/app/oracle/product/11.2.0/db_1/sqlplus/lib/libsqlplus.so
rm -rf /u01/app/oracle/product/11.2.0/db_1/sqlplus/bin/sqlplus
[oracle@manager lib]$

3. 安装配置 EM12c 的数据库 Repository 需要特定的初始化参数,官方文档(Sizing Your Enterprise Manager Deployment) 给出了详细的指导方案,所以我参考自己的实际情况,修改了自己的数据库初始化参数,具体过程如下:

SQL> alter system set processes=300 scope=spfile;
System altered.

SQL> alter system set session_cached_cursors=300 scope=spfile;
System altered.

SQL> alter database add logfile size 300M;
Database altered.

SQL> alter database add logfile size 300M;
Database altered.

SQL> alter database add logfile size 300M;
Database altered.

SQL> alter system switch logfile;
System altered.

SQL> alter system checkpoint;
System altered.

SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME
———- ———- ———- ———- ———- ———- — —————- ————- ——— ———— ———
1 1 10 52428800 512 1 NO INACTIVE 1052524 09-APR-13 1058188 09-APR-13
2 1 11 52428800 512 1 NO INACTIVE 1058188 09-APR-13 1080674 09-APR-13
3 1 9 52428800 512 1 NO INACTIVE 1047104 09-APR-13 1052524 09-APR-13
4 1 12 314572800 512 1 NO CURRENT 1080674 09-APR-13 2.8147E+14
5 1 0 314572800 512 1 YES UNUSED 0 0
6 1 0 314572800 512 1 YES UNUSED 0 0

6 rows selected.

SQL> alter database drop logfile group 1;
Database altered.

SQL> alter database drop logfile group 2;
Database altered.

SQL> alter database drop logfile group 3;
Database altered.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-6-24 21:26 , Processed in 0.083261 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表