命令行界面下使用Emca安装配置Oracle Database Control实战
在Oracle9i以及之前,OEM是以C/S架构出现的,从10g开始,使用B/S架构,使得管理员无需安装客户端即可直接通过浏览器进行管理。本
作为命令行忠实用户,服务器端软件的运维都倾向于使用命令或 脚本完成,非常讨厌资源占用很大的GUI。Oracle数据库作为重要的服务器端软件,其安装运维自然也完全支持纯命令行方式,尽管同时提供了OUI这个GUI安装程序。至于纯命令行下静默安装Oracle11g,本人之前写过详细的博文,有需要的请参考之,博文地址 。按照这篇博文安装的数据库完全可用。本文算是对前面这篇博文的一个补充,就是在数据库安装完成的基础上安装配置Oracle Enterprise Manager,使得管理员在厌倦单纯sqlplus的情况下,可以使用浏览器来管理Oracle数据库。
1 Oracle Enterprise Manager与Oracle Database Control
OEM是一个统称,是Oracle提供的图形化企业级管理工具的统称。具体有三种可用的工具:
(1)Database Control
它用于管理一个数据库(可以是RAC集群数据库),具有实时管理和监视的功能,运行调度作业功能,告警功能。
(2)Application Server Control
用于管理一个或者多个应用服务器实例。
(3)Grid Control
Grid Control可以管理多个数据库和应用服务器,还可以管理计算机节点,支持通过第三方插件管理第三方产品。
在Oracle9i以及之前,OEM是以C/S架构出现的,从10g开始,使用B/S架构,使得管理员无需安装客户端即可直接通过浏览器进行管理。本文专注于Database Control这个工具,Database Control无需单独安装,在安装oracle的时候,它是自动一起安装的,但是必须经过仔细的配置才能使用。
2 Oracle Database Control 目录结构与工作原理
分析任何软件都需要从静态和动态两个方面着手,静态对应的是软件安装后的物理目录和文件布局;动态对应的是软件运行时各个部分之间的交互过程和内存布局。
2.1 目录结构
Database Control在10g和11g中的目录结构有细微差异,本文以11g为基础说明。
在安装完oracle 11g之后,$ORACLE_HOME目录下会有专门为Database Control提供服务的目录,如上图所示。其中oc4j是oracle container for j2ee的缩写,是oracle专用的j2ee容器与tomcat类似。
--------------------------------------分割线 --------------------------------------
Oracle 11g 在RedHat Linux 5.8_x64平台的安装手册
Linux-6-64下安装Oracle 12C笔记
在CentOS 6.4下安装Oracle 11gR2(x64)
Oracle 11gR2 在VMWare虚拟机中安装步骤
Debian 下 安装 Oracle 11g XE R2
--------------------------------------分割线 --------------------------------------
2.2 工作原理
从本质上说,Database Control本身就是一个j2EE应用,只是这个应用的功能很单一,就是管理Oracle数据库。它运行在oracle为其定制的j2EE容器中,使用其管理的oracle数据库来存放自身数据,使用代理进程来收集数据库之外的系统信息。
单纯从程序角度来说,Database Control其实本身与其管理的oracle数据库(称之为目标数据库)并无关联,完全可以使用单独的数据库(如单独的oracle数据库或者mysql数据库)来存放自身数据,也可以运行在单独机器的符合j2EE标准的容器中(如Tomcat)。但是Oracle公司考虑到效率和配置,为其定制了专门的容器,并且本身使用目标数据库来存放管理数据,而且运行在目标数据库实例所在的机器上。
Database Control的工作原理如下图所示。
Database Control自身使用的管理数据都存放到SYSMAN这个模式下。
了解了工作原理,其配置就容易理解了。与部署其他的j2EE程序一样,需要从数据和程序文件两个方面进行。从本质上说,所有这些操作都可以通过手工来一一完成,但是无论是建立大量的配置文件还是创建大量的数据表,纯手工方式都会很低效,,也容易出错。所以Oracle公司为部署Database Control提供了专门的工具软件。
如果使用OUI来安装Oracle可以在安装阶段配置Database Control,在安装完成后还可以通过DBCA来配置,这些都是好用的GUI工具,但是本文的目的是在纯命令行下进行配置,所以上述方式不可用。
为了应对命令行模式下的配置,ORACLE公司为Database Control专门提供了配置助手emca(Enterprise manager Configuration Assistant)。
更多详情见请继续阅读下一页的精彩内容:

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



InnoDB's full-text search capabilities are very powerful, which can significantly improve database query efficiency and ability to process large amounts of text data. 1) InnoDB implements full-text search through inverted indexing, supporting basic and advanced search queries. 2) Use MATCH and AGAINST keywords to search, support Boolean mode and phrase search. 3) Optimization methods include using word segmentation technology, periodic rebuilding of indexes and adjusting cache size to improve performance and accuracy.

The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

Full table scanning may be faster in MySQL than using indexes. Specific cases include: 1) the data volume is small; 2) when the query returns a large amount of data; 3) when the index column is not highly selective; 4) when the complex query. By analyzing query plans, optimizing indexes, avoiding over-index and regularly maintaining tables, you can make the best choices in practical applications.

Yes, MySQL can be installed on Windows 7, and although Microsoft has stopped supporting Windows 7, MySQL is still compatible with it. However, the following points should be noted during the installation process: Download the MySQL installer for Windows. Select the appropriate version of MySQL (community or enterprise). Select the appropriate installation directory and character set during the installation process. Set the root user password and keep it properly. Connect to the database for testing. Note the compatibility and security issues on Windows 7, and it is recommended to upgrade to a supported operating system.

The difference between clustered index and non-clustered index is: 1. Clustered index stores data rows in the index structure, which is suitable for querying by primary key and range. 2. The non-clustered index stores index key values and pointers to data rows, and is suitable for non-primary key column queries.

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.

The article discusses dropping tables in MySQL using the DROP TABLE statement, emphasizing precautions and risks. It highlights that the action is irreversible without backups, detailing recovery methods and potential production environment hazards.
