已阅读5页,还剩41页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Oracle Cloud Control 12c 安装部署安装部署 应用简介应用简介 北京和仁中控数字医疗技术有限公司 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 I 修改历史修改历史 版本号版本号修改人修改人修改日期修改日期修改内容修改内容审批人审批人 1 0 韩笑 2012 8 31 创建 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 II 目录目录 1 1 ORACLEORACLE CLOUDCLOUD CONTROLCONTROL 12C12C 简介简介 1 1 2 2 ORACLEORACLE CLOUDCLOUD CONTROLCONTROL 12C12C 体系结构体系结构 2 2 3 3 AGENTAGENT 代理的工作原理代理的工作原理 3 3 4 4 安装安装 12C12C 7 7 4 1 为 12C安装配置REPOSITORY DATABASE 7 4 2 正式安装 12C 10 4 3 12C相关路径说明 18 4 4 启动和关闭 12C 18 4 5 12C问题诊断思路和例子 19 5 5 安装安装 AGENTAGENT 2222 5 1 安装 AGENT前 OMS 端的准备 22 5 2 安装 AGENT前 HOST端的准备 29 5 2 1 Windows 系统准备 29 5 2 2 Linux 系统准备 32 5 3 正式安装 AGENT 33 6 6 12C12C 的主要功能的主要功能 3838 6 1 主机监控 38 6 2 数据库监控 40 6 3 错误事件预警 41 7 7 总结总结 4343 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 1 1 1 OracleOracle CloudCloud ControlControl 12c12c 简介简介 Oracle 自 10g 以后 企业管理器 Oracle Enterprise Manager OEM 变 成了网页形式 俗称 Grid Control 网格控制 它具有完整功能的全企业 Oracle 生态系统管理工具 随着 云 概念的酝酿以及发展 Oralce 推出了云端的对应管理工具 cloud control 简称 12c 提供一个界面来显示所有已发现目标的共同信息和 管理办法 12c 部署在 Oracle 应用服务器 Oracle Application Server OAS 上 当安装 12c 时 同时也会安装 OAS 然后应用程序作为 Oracle Containers for J2EE OC4J 应用程序部署在 OAS 上 12c 可以监控许多不同类型的目标 各 种数据库 应用服务器 主机和存储设备 它收集遍及企业的计算系统的相关 信息 将这些信息合并到中心存储仓库中 然后通过它的 Web 控制台向 DBA 和 其它管理人员展现这些信息 根据这些实时或历史的信息 可以对相应目标下 达必要的指令 官方的介绍如下 The key capabilities of Enterprise Manager include A complete cloud lifecycle management solution enabling you to quickly set up manage and support enterprise clouds and traditional Oracle IT environments from applications to disk Maximum return on IT management investment through the best solutions for intelligent management of the Oracle stack and engineered systems with real time integration of Oracle s knowledge base with each customer environment Best service levels for traditional and cloud applications through business driven application management Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 2 2 2 OracleOracle CloudCloud ControlControl 12c12c 体系结构体系结构 12c 的体系结构从 Oracle 管理服务 Oracle Management Serveice OMS 开始 这是部署在应用服务器上的应用程序 OMS 通过代理程序 Agent 从注册 的目标服务器中收集数据 代理程序安装在目标服务器上 它收集信息并且将 这些数据推入 OMS OMS 将数据加载到存储仓库数据库中 然后根据仓库中的信 息构建 Web 页面 可以通过能够定位 OMS 服务器 URL 的任意浏览器检索该 Web 页面 1 代理程序 Agent 代理程序安装在使用 12c 监控的每台计算机上 代理程序不可以独立作出 任何决策 它使用 Perl 脚本收集数据 将这些数据通过 HTTPS 推入 OMS OMS 执行必须的任何操作都是将指令发送给代理程序以执行该操作 2 Oracle 管理服务 OMS OMS 是在 12c 体系结构的中间层上部署的 Web 应用程序 它不断从代理程序 处以 XML 文件的形式接收信息 然后将这些信息加载到存储仓库表中 它负责 为提供控制台 Web 页面的 HTTP 服务器构建 Web 内容 由此向代理程序要求特定 的信息 3 存储仓库数据库 Repository OMS 使用 Oracle 数据库作为它的数据源 存储仓库数据库用于存储有关管 理目标以及 12c 操作 如作业或通知 的信息 4 插件 Plug ins 为实现 oracle 中间件监控的辅助工具 一般都是特定的场景和对象需要安 装的 5 控制台 Console 用户登入的界面端 用于查看 监控管理各个对象 从任意一个 url 登入 后 可以对主机 数据库 中间件 监听 服务以及等等操作 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 3 12c Focus Areas Framework and Infrastructure Enterprise Monitoring Application Management Database Management Middleware Management Hardware and Virtualization Management Heterogeneous Non Oracle Management Cloud Management Lifecycle Management Application Performance Management Application Quality Management 3 3 AgentAgent 代理的工作原理代理的工作原理 在使用 12c 集中化管理 OS Oracle 数据库时要求在 host 上安装 Agent 代 理程序 以便 Agent 定期收集 OS Oracle 信息传输给 Oracle Grid Control Management Server OMS 并执行 OMS 下达的一系列指令 下图展示了 OMS Agent 的架构 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 4 Agent 主要由 2 个组件 component 部分组成 分别是 Collector 收集器和 Metric Engine 度量引擎 Collector 收集器是 agent 的重要子系统 它负责收集并上传 metric data 度量数据到 OMS oms 最终将这些数据存入数据库中 Collector 利用 collection file 中的信息判定针对哪些 target 目标需要收集 metric data 以 及多久收集一次 为了获取数据 Collector 将查询投递给 Metric Engine 而 Metric Engine 负责实际的 metric data 的收集 Metric Engine 通过 Fetchlets Metadata 原信息文件 Metadata files defined in OH sysman admin metadata 和已发现的 target 信息文件 Targets defined in OH sysman emd targets xml 来获得每一个目标的 metrics 监控信息 同时 metadata 原信息文件也提供了实际如何去计算 metrics 度量的算法 基于以上这些信息 Metric Engine 将使用恰当的 fetchlets 从监控目标获 取数据 这里的 Fetchlets 指的是指定数据的访问方式 例如访问数据库性能 数据会采用 SQL Fetchlets 而访问 OS 数据则使用 OS Fetchlets 一旦 Collector 收集到 metric data 它会将这些度量数据和已定义的阀 值做对比 检查是否发送警告 alert waring 同时将这些度量信息保存到本 地文件系统上 OH sysman emd upload 目录 这些文件最后通过 http 或 https 协议传送到 OMS 服务器的指定 URL 上 该 URL 被 OH sysman config emd properties 配置文件中的 REPOSITORY URL 指定 由 Collector 最终收集到的这些信息文件仅在满足以下任意条件时实际传 送给 OMS 1 有一条 alert 告警信息需要发送 2 Collector 收集到的信息文件的大小超过一个预定值 默认为 20MB 20480KB 该预定限制值由 OH sysman config emd properties 中 UploadFileSize 参数 指定 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 5 3 从上一次数据加载算起时间超过 30 分钟 默认 该预订限制值由 OH sysman config emd properties 中 UploadInterval 参数指定 注意与 Agent 的处理方式不同 由 Agent 发送给 OMS 的 Alert severities 告警信息 OMS 会直接将其存入到 EM Repository 数据库中 而不是以临时文 件的形式暂存 Agent 除了 Metric Engine 和 Collector 2 个主要模块外 还有其他子系 统负责完成不同的工作 Target Manager Target Manager holds monitored targets Target data in EM sysman emd targets xml lists managed targets each with name type and other properties Credential properties are encrypted Targets can be marked broken Required properties not provided Dynamic properties take too long to compute Discovery of new target instances possible by running perl scripts that list unmonitored instances Metric Engine Driven by XML target metadata one file per target type found in OH sysman admin metadata xml defines metrics each may have multiple columns for each metric defines how data is collected QueryDescriptor by fetchlet PushDescriptor by recvlet ExecutionDescriptor aggregation from other metrics Supports multiple target versions with ValidIf Defines properties for target type Instance properties specified in targets xml Dynamic properties computed by metric engine Metric Engine holds target type metadata given a target and a metric name calls fetchlet manager and or metric cache and returns a metric result Metric Cache caches last collected data for use in computing expressions Aggregate metric support allows metrics to be computed via views joins and group bys over other metrics GetView select columns or rows from a MetricResult GroupBy compute aggregation information SUM COUNT MIN MAX Union add rows returned by multiple MetricResults JoinTables combine multiple metrics columns Fetchlet Manager Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 6 A fetchlet is a data access mechanism available to compute metric data OS fetchlets launch an OS process and interpret output OS Fetchlet OSLine Fetchlet OSLineToken UDM User Defined Metric SQL fetchlet run a SQL or PL SQL statement URL fetchlets HTTP data URLTiming Fetchlet and more Collection Manager Holds all collections both default and per target CollectionItem is the basic unit of scheduled collection multiple metrics collected from the same target at the same interval can be collected in the same thread MetricColl Once data is collected for a CollectionItem any Conditions are evaluated three states Clear Warning Critical or Unknown last evaluated Condition states are stored in EM sysman emd state Collection XML files default collections defined for all targets of a type in OH sysman admin default collection xml additional collections for a particular target in EM sysman emd collection xml specifies by metric schedule for collection and thresholds to be applied to columns Blackout Manager Manage blackout information stored in EM sysman emd blackouts xml Scheduled collections consult Blackout Manager if target is currently blacked out collection does not proceed Targets may be affected by multiple blackouts if any blackout is effective on a target the target is blacked out Node blackouts affect all targets monitored by the agent Blackouts file blackouts in EM sysman emd blackouts xml each blackout can be applied to one or more targets if target is node blackout applies to all targets Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 7 blackout can be immediate or scheduled if scheduled can be one time or repeated Scheduler Schedules activities in order of next run time multiple schedule formats Once happens only once Interval happens every n minutes hours days Week happens on certain day of week Month happens on certain day of month can specify begin time end time Spawns threads to do work whose time has arrived Used by Collector and Blackout Manager Health Monitor checks that the scheduler is doing its work emctl status agent scheduler Dumps out all the scheduled elements Upload Manager As data is collected by other agent components serializes writing of intermediary dat files stored in AS sysman emd upload dat files merged into xml files on five priority channels XML files sent to OMS as HTTP requests maintains statistics on pending xml files will disable collections based on number of files aggregate size of files and percentage free disk space on upload filesystem Upload interval dynamic based on properties and previous upload status Ping Manager Periodically sends HTTP heartbeat request to OMS and verifies response OMS response dictates interval before next ping Exchange timezone information A successful ping from the agent to the OMS is required before any uploads will occur 4 4 安装安装 12c12c 4 1 4 1 为为 12c12c 安装配置安装配置 repositoryrepository databasedatabase 这里可以在 Metalink 上的 Certification Matrix 中找到 EM 12c 已认证的 数据库版本 如下图所示 11 2 0 2 和 11 2 0 3 均已通过该认证 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 8 这里推荐新建一个 11 2 0 2 版本的数据库作为 EM Repository 安装开始 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 9 安装结束后 EM Repository 的数据库还必须使用 EM 所要求的初始化参数 这些要求包括 Check the CBO stats gathering job Disable the stats gathering job 1 Check the processes instance parameter value The processes instance parameter needs to be set to at least 300 2 Check the session cached cursors instance parameter value The session cached cursors instance parameter should be set to 300 Any value between 200 and 500 inclusive will be accepted 3 Check the job queue processes instance parameter value The job queue processes instance parameter should be set to 20 4 Check the shared pool size instance parameter value The shared pool size instance parameter should be set to at least 600 megabytes or roughly one third of the sga target size 5 Check the redo log size The size of the EM database instance should be 300 megabytes or greater Generally there should be 3 or more redo logs available of this size 6 Ensure that the EM tablespace has at least one datafile set to autoextensible Add at least one datafile with the autoextend attribute to the EM tablespace 7 Check the open cursors instance parameter value The open cursors instance parameter should be set between 300 and 400 inclusive 8 Check the sga target instance parameter value The sga target instance parameter should be set to at least 2 gigabytes and roughly twice the size of the pga aggregate target setting 9 Check for invalid objects in the EM repository Compile all invalid objects in the EM repository 可以通过以下命令满足上述的参数要求 当然参数的值还可以适当放大 alter system set processes 500 scope spfile Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 10 alter system set session cached cursors 500 scope spfile alter system set shared pool size 650M scope spfile alter system set job queue processes 22 scope spfile alter database add logfile size 320M alter system set open cursors 350 scope spfile alter system set sga target 2g scope spfile ALTER SYSTEM SET pga aggregate target 1G SCOPE SPFILE 注意 EM 要求 repository database 没有配置 DB control 如果有的话需 要通过下列命令 drop 掉 emca deconfig dbcontrol db repos drop 同时要求 sysman 和 sysman mds sysman opss 用户不存在 已创建该用户 的 DB 可以 drop 掉 SQL select from v version SQL select from global name drop user sysman cascade drop user sysman mds cascade drop user sysman opss cascade drop user sysman apm cascade drop user sysman ro cascade drop user mgmt view cascade 7 确保能够从 EM 主机顺利登录到 repository 数据库 8 确保网络正常 这里要求 EM 主机必须使用 statics IP 静态 IP 否则安装会出错 且已 正确在 etc hosts 或 DNS 配置唯一的域名解析 4 2 4 2 正式安装正式安装 12c12c 1 如下图 OUI 界面顺利启动 勾销 I wish to receive security update 并点击 Next Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 11 2 Prerequisite Checks 会检测 EM 安装的前提条件 这里因为物理内存不 足 要求 3g 而出现 Warning 点击 Next 忽略该警告 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 12 3 点击 Yes 忽略该问题 4 若检测顺利 则如下图 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 13 5 下一步选择 create a new Enterprise Manager Simple 为 Middleware Home location 选定一可用的空目录 注意目录的拥有者应为 oem EM 所有者用户 6 选择想要安装的插件 这里我们不安装额外的插件 保持默认配置点击 Next 7 选择暂时不安装 Exalogic Elastic Cloud Infrastructure 插件 Install Later Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 14 8 配置 Weblogic Server 填入 Weblogic 和 Node Manager 密码及 OMS instance Base Location 9 配置数据库连接信息 填入 repository database 的连接信息 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 15 10 输入 sysman 用户和 Agent 注册使用的密码 安装程序会自动为你提供 EM 所需创 建表空间数据文件的位置 11 选择 EM 12c 将要使用的端口 一般默认即可 除非这些端口有其他用途 12 点击 Next 后 再点击 Install Now 进入安装过程 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 16 安装流程包括 Copy Files Configure Plugins Prerequisites Check Repository Configuration MDS Schema Configuration OMS Configuration Plugins Deployment and Configuration Start Oracle Management Service Oracle Configuration Manager Repeater Agent Configuration Assistant Run root scripts 总耗时在 1 个小时左右 在此过程中推荐监控安装进程的日志 这些日志的位置如下 oms sysman log schemamanager m date m date CREATE em repos config log oms sysman log schemamanager m date m date CREATE emschema log oms cfgtoollogs cfgfw oracle sysman top oms log oms cfgtoollogs omsca log 一切顺利后安装完成 打开浏览器 输入地址 https hostname 7799 em 7799 默认 端口 访问 EM Cloud Control 12c 输入 sysman 的身份认证 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 17 然后 接受 License Agreement 首次登陆 EM 会显示一个 OverView 页面 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 18 至此 12c 安装完毕 4 3 4 3 12c12c 相关路径说明相关路径说明 JAVA HOME D oms jdk16 jdk bin Oms home D oms oms oui bin Agent home D oms agent core 12 1 0 1 0 bin Opmn home d oms gc inst1 WebTierIH1 bin opmnctl bat emcli start log C Documents and Settings Administrator emcli emcli setup log D oms gc inst em EMGC OMS1 sysman emcli setup emcli oms log D oms gc inst em EMGC OMS1 sysman log agent log Host Machine D agenthome agent inst sysman log agent deployment log Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 19 D oms oms sysman prov agentpush agent setup log only finished D oms gc inst em EMGC OMS1 sysman agentpush logs emd properties Host Machine D agenthome agent inst sysman config 4 4 4 4 启动和关闭启动和关闭 12c12c 启动 1 Start the Listener lsnrctl start 2 Start the repository database sqlplus as sysdba startup 3 Start the Oracle Management Service From the OMS HOME directory run the following to start the OMS and WebTier services OMS HOME bin emctl start oms 4 Start the Oracle Management Agent From the AGENT HOME directory run the following to start the Agent AGENT HOME bin emctl start agent Enterprise Manager 12c and all associated services and can be accessed at https hostname domain 7799 em 关闭 1 Stop the Oracle Management Service From the OMS HOME directory run the following to stop the OMS and WebTier services OMS HOME bin emctl stop oms all 2 Stop the Oracle Management Agent From the AGENT HOME directory run the following to stop the Agent AGENT HOME bin emctl stop agent 3 Stop the repository database sqlplus as sysdba Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 20 shutdown immediate 4 Stop the Listener lsnrctl stop 4 5 4 5 12c12c 问题诊断思路和例子问题诊断思路和例子 诊断 12c 问题的思路 emctl status agent emctl upload emctl status agent scheduler emctl status agent memory emctl status agent jobs emctl config agent getTZ emctl status agent secure emctl secure status agent ping OMS 服务器 ip 的结果 研究过程中的一个难点处理实例 报错信息 EMD upload error full upload has failed uploadXMLFiles skipped OMS version not checked yet agent home emctl status agent verify agent inst bin emctl status agent Oracle Enterprise Manager 12c Cloud Control 12 1 0 1 0 Copyright c 1996 2011 Oracle Corporation All rights reserved Agent Version 12 1 0 1 0 OMS Version unknown Protocol Version 12 1 0 1 0 Agent Home oracle product 12 1 0 agent agent inst Agent Binaries oracle product 12 1 0 agent core 12 1 0 1 0 Agent Process ID 15360 Parent Process ID 15214 Agent URL https remote dev01 2872 emd main Repository URL https oms12c 4900 empbs upload Started at 2012 06 07 16 04 32 Started by user oracle Last Reload none Last successful upload none Last attempted upload none Total Megabytes of XML files uploaded so far 0 Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 21 Number of XML files pending upload 3 Size of XML files pending upload MB 0 Available disk space on upload filesystem 89 79 Collection Status Collections enabled Last attempted heartbeat to OMS 2012 06 07 16 16 45 Last successful heartbeat to OMS none Agent is Running and Ready 1 Stop the Oracle Agent on the remote host via agent home emctl stop agent 2 Clean up all not send XML messaging data agent home emctl clearstate agent 3 Secure the agent OMS Agent SSL handshake negotiation via Go to bin emctl stop oms emctl secure oms Go to opmn bin opmnctl startall opmnctl status Go to bin emctl secure agent 4 Start the Oracle Agent software via agent home emctl start agent 5 check emctl status agent oms version must can see Oracle Enterprise Manager 12c Cloud Control 12 1 0 1 0 Copyright c 1996 2011 Oracle Corporation All rights reserved Agent Version 12 1 0 1 0 OMS Version 12 1 0 1 0 Protocol Version 12 1 0 1 0 Agent Home oracle product 12 1 0 agent agent inst Agent Binaries oracle product 12 1 0 agent core 12 1 0 1 0 Agent Process ID 12895 Parent Process ID 12805 Agent URL https remote dev01 2872 emd main Repository URL https oms12c 4900 empbs upload Oracle Cloud Control 12c 安装部署应用简介 北京和仁中控数字医疗技术有限公司 22 Started at 2012 06 07 16 25 32 Started by user oracle Last Reload none Last successful upload 2012 06 07 16 25 41 Last attempted upload 2012 06 07 16 25 41 Total Megabytes of XML files uploaded so far 0 Number of XML files pending upload 2 Size of XML files pending upload MB 0 Available disk space on upload filesystem 90 61 Collection Status Collections enabled Last attempted heartbeat to OMS 2012 06 07 16 25 40 Last successful heartbeat to OMS 2012 06 07 16 25 40 Agent is Running and Ready 6 agent home emctl status agent verify 7 agent home emctl
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 房屋诚意金合同范本
- 房屋转让建设协议书
- 房屋销售合同协议书
- 房车出行协议书范本
- 手工活代加工协议书
- 手机厂家供货协议书
- 手机网点维修协议书
- 打工员工安全协议书
- 托养合同协议书范本
- 托管委托接送协议书
- Unit 2 how to keep healthy作文课件 英语八年级上册
- 土木工程施工课程设计完整版
- 农产品物流配送中心建设项目可行性研究报告
- 专转本英语800个词组复习
- 胶质瘤治疗课件
- 万人计划蓝色简约万人计划青年拔尖人才答辩PPT模板
- 《梅岭三章》 完整版课件
- 2022年四川省绵阳市涪城区东辰国际学校小升初数学试卷
- 气管镜科室讲课ppt课件(PPT 69页)
- 钢-混凝土叠合梁施工
- 中央电大(国开)专科《电工电子技术》机考题库及答案
评论
0/150
提交评论