名词解释:
1.Control-M/Enterprise Manager 是Control-M的一个组件,负责制定、维护、修改调度任务,简称EM;
2.Control-M/CTM Server 是Control-M调度服务器,是调度工具的核心,负责任务的调度,简称CTM-Server;
3.Control-M/Agent 是Control-M代理,负责与CTM-Server连接,接受CTM-Server的调度指令,负责实际任务的调度运行,安装在实际调度任务的ETL服务器上,简称Agent;
说明:此次安装为测试环境安装,故EM、CTM-Server、Agent都安装在同一台机器上。
一、基础环境说明:
服务器:CentOS7 64位
数据库:Oracle 11g
Control-M:Control-M 8.0
IP地址:192.168.38.10
Hostname:Mr-MoJi
配置:EM、CTM-Server、Agent
二、基础配置、准备安装文件
1.基础配置
配置hosts文件,添加EM、CTM-Server、Agent服务器主机名的hostname与IP的与映射 (由于测试环境CTM-Server、EM、Agent服务器部署在同一台机器上,故hosts中只增加一条):
[root@Mr-MoJi ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.38.10 Mr-MoJi Mr-MoJi.localhost #此为添加内容
注:必须按照以下形式修改
2.准备安装文件
Control-M版本为8.0包括(Control-M.tar.gz、Agent.tar)两个压缩包,将压缩文件上传至服务器/data/tools/目录下,并进行解压缩。
[root@Mr-MoJi Control-M_V8.0]# su - moji
[moji@Mr-MoJi ~]$ cd /data/tools/Control-M_V8.0/
[moji@Mr-MoJi Control-M_V8.0]$ ls -l
total 4602776
-rwxrwxrwx 1 moji moji 2811074560 May 14 13:42 Agent.tar
-rwxrwxrwx. 1 moji moji 1902165812 May 8 16:19 Control-M.tar.gz
[moji@Mr-MoJi Control-M_V8.0]$ tar -zxf Control-M.tar.gz
[moji@Mr-MoJi Control-M_V8.0]$ ls -l
total 4602780
-rwxrwxrwx 1 moji moji 2811074560 May 14 13:42 Agent.tar
-rwxrwxrwx. 1 moji moji 1902165812 May 8 16:19 Control-M.tar.gz
drwxr-xr-x 4 moji moji 4096 Sep 8 2015 LIN
[moji@Mr-MoJi Control-M_V8.0]$ tar -xf Agent.tar
[moji@Mr-MoJi Control-M_V8.0]$ ls -l
total 4602780
drwxr-xr-x 6 moji moji 84 Sep 9 2015 Agent
-rwxrwxrwx 1 moji moji 2811074560 May 14 13:42 Agent.tar
-rwxrwxrwx. 1 moji moji 1902165812 May 8 16:19 Control-M.tar.gz
drwxr-xr-x 4 moji moji 4096 Sep 8 2015 LIN
[moji@Mr-MoJi Control-M_V8.0]$ chmod -R 777 LIN/
[moji@Mr-MoJi Control-M_V8.0]$ chmod -R 777 Agent/
[moji@Mr-MoJi Control-M_V8.0]$ ls -l
total 4602780
drwxrwxrwx 6 moji moji 84 Sep 9 2015 Agent
-rwxrwxrwx 1 moji moji 2811074560 May 14 13:42 Agent.tar
-rwxrwxrwx. 1 moji moji 1902165812 May 8 16:19 Control-M.tar.gz
drwxrwxrwx 4 moji moji 4096 Sep 8 2015 LIN
三、安装EM (Enterprise Manager)
1.服务器配置
a.以root用户登录EM服务器(192.168.38.10),创建emuser用户:
[root@Mr-MoJi home]# useradd -d /home/emuser -s /bin/csh -m emuser
设置密码: passwd emuser(default123)
[root@Mr-MoJi home]# passwd emuser
Changing password for user emuser.
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
b.修改主机名称
1).若未建立(Mr-MoJi),则修改主机名称,否则跳过此步骤
vi /etc/sysconfig/network
[root@Mr-MoJi ~]# cat /etc/sysconfig/network
# Created by anaconda
NETWORKING=yes
HOSTNAME=Mr-MoJi
2).确认启动修改的主机名称:
[root@Mr-MoJi ~]# hostname
Mr-MoJi
3).配置安装目录属组及用户权限
chmod -R 755 /home/emuser
chown -R emuser:emuser /data/tools/Control-M(安装文件存放目录)
2.安装
以emuser用户登录服务器(192.168.38.10),切换至安装文件所在目录
[root@Mr-MoJi ~]# su - emuser
Last login: Tue May 14 16:03:46 CST 2019 on pts/4
Mr-MoJi%
Mr-MoJi% cd /data/tools/Control-M/LIN/
Mr-MoJi% pwd
/data/tools/Control-M/LIN
Mr-MoJi% ls -l
total 20
drwxrwxr-x 2 emuser emuser 4096 Sep 2 2015 pre_req
drwxrwxr-x 9 emuser emuser 4096 Sep 2 2015 Setup_files
-rwxrwxr-x 1 emuser emuser 11209 Aug 15 2012 setup.sh
执行./setup.sh
注意:在使用emuser执行安装时,LIN目录的属组要设置为emuser,否则会报错
*** current directory [/data/tools/Control-M_V8.0/LIN] is not owned by emuser . ***
*** Please log in as moji or as root and restart installation. ***
安装流程如下所示:
[emuser@Mr-MoJi LIN]$ ./setup.sh
步骤1:同意在非图形模式下安装, 输入y并回车
Starting graphical user interface...
The $DISPLAY environment variable is not defined.
Install will continue in non graphical mode.
Are you sure you want to continue?
== No Yes ==
Enter command:
y
步骤2:同意安装许可协议
a.输入s并回车跳过阅读条款
b.输入y并回车同意许可条款
=== License Agreement ===
END USER LICENSE AGREEMENT
BY OPENING THE PACKAGE, INSTALLING, PRESSING "AGREE" OR "YES" OR USING THE PRODUCT, THE ENTITY OR INDIVIDUAL ENTERING INTO THIS AGREEMENT AGREES TO BE BOUND BY THE FOLLOWING TERMS. IF YOU DO NOT AGREE WITH ANY OF THESE TERMS, DO NOT INSTALL OR USE THE PRODUCT, PROMPTLY RETURN THE PRODUCT TO BMC OR YOUR BMC RESELLER, AND IF YOU ACQUIRED THE LICENSE WITHIN 15 DAYS OF THE DATE OF YOUR ORDER CONTACT BMC OR YOUR BMC RESELLER FOR A REFUND OF LICENSE FEES PAID. IF YOU REJECT THIS AGREEMENT, YOU WILL NOT ACQUIRE ANY LICENSE TO USE THE PRODUCT.
This Agreement ("Agreement") is between the entity or individual entering into this Agreement ("Customer") and the BMC Entity for the applicable Territory as described in Section 19 ("BMC"). In addition to the restrictions imposed under this Agreement, any other usage restrictions contained in the Product installation instructions or release notes shall apply to your use of the Product.
Territory: The country where Customer acquired the license.
1.GENERAL DEFINITIONS.
"Affiliate" is an entity that controls, is controlled by or shares common control with BMC or Customer, where such control arises from either (a) a direct or indirect ownership interest of more than 50% or (b) the power to direct or cause the direction of the management and policies, whether through the ownership of voting stock by contract, or otherwise, equal to that provided by a direct or indirect ownership of more than 50%.
"Documentation" means the technical publications relating to the software, such as release notes, reference, user, installation, systems administrator and technical guidelines, included with the Product.
"Licensed Capacity" is the amount of each Product licensed as established in the Order.
"Order" is an agreed written or electronic document, subject to the terms of this Agreement that identifies the Products to be licensed and their Licensed Capacity and/or the Support to be purchased and the fees to be paid.
"Product" is the object code of the software and all accompanying Documentation delivered to Customer, including all items delivered by BMC to Customer under Support.
"Support" is the support services program as further specified in this Agreement.
Press to continue or to skip: s
Do you accept and agree to the terms of this Software License Agreement (Y/N)?y
步骤3:输入’3’选项(Advanced Installations),在子选项中输入’2’,然后回车,进行EM的安装
=== Product Settings : Installation Options ===
1 : (x) Control-M Workload Automation 8.0.00 - Full Installation
Use custom settings (y/n)? - n
Install trial version with all optional components (y/n)? - n
2 : ( ) Control-M Agent
3 : ( ) Advanced Installations
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change: 3
(x) Advanced Installations
1 : (x) Control-M/Server
2 : ( ) Control-M/Enterprise Manager
Enter your selection: 2
=== Product Settings : Installation Options ===
1 : ( ) Control-M Workload Automation 8.0.00 - Full Installation
Use custom settings (y/n)?
Install trial version with all optional components (y/n)?
2 : ( ) Control-M Agent
3 : (x) Advanced Installations
( ) Control-M/Server
(x) Control-M/Enterprise Manager
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change:
步骤4:配置安装类型,这里选择自定义(‘Custom’)安装方式,输入’1’并回车,然后输入’2’并回车,再输入回车下一项
=== Product Settings : Setup Type ===
1 : Setup Type
(x) Default: Use the default settings.
( ) Custom: Optionally, change the default settings.
== Cancel / Next Panel ==
Enter command or item number you wish to change: 1
Setup Type
(x) 1 : Default: Use the default settings.
( ) 2 : Custom: Optionally, change the default settings.
Enter your selection: 2
=== Product Settings : Setup Type ===
1 : Setup Type
( ) Default: Use the default settings.
(x) Custom: Optionally, change the default settings.
== Cancel / Next Panel ==
Enter command or item number you wish to change:
步骤5:选择数据库类型,(我们这里提前安装好了Oracle 11g),输入’1’并回车,再输入’2’并回车,再输入回车进入下一项
=== Product Settings : Database Server Type ===
1 : Database Server Type
(x) PostgreSQL
( ) Oracle
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change: 1
Database Server Type
(x) 1 : PostgreSQL
( ) 2 : Oracle
Enter your selection: 2
=== Product Settings : Database Server Type ===
1 : Database Server Type
( ) PostgreSQL
(x) Oracle
== Cancel Previous Panel / Next Panel ==
步骤6:配置数据库连接信息(hostname,port,service name),
a.输入’1’并回车,然后输入数据库hostname(Mr-MoJi)并回车
b.输入’2’并回车,然后输入数据库端口port(1521)并回车
c.输入’3’并回车,然后输入数据库service name(orcl8023)并回车
以上3项配置完成后,输入回车进行下一项
=== Product Settings : Database Server Connection ===
1 : Oracle server hostname:
2 : Oracle listener port number:
3 : Oracle database service name:
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change: 1
Enter a new value for Oracle server hostname: Mr-MoJi
=== Product Settings : Database Server Connection ===
1 : Oracle server hostname: Mr-MoJi
2 : Oracle listener port number:
3 : Oracle database service name:
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change: 2
Enter a new value for Oracle listener port number: 1521
=== Product Settings : Database Server Connection ===
1 : Oracle server hostname: Mr-MoJi
2 : Oracle listener port number: 1521
3 : Oracle database service name:
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change: 3
Enter a new value for Oracle database service name: orcl8023
=== Product Settings : Database Server Connection ===
1 : Oracle server hostname: Mr-MoJi
2 : Oracle listener port number: 1521
3 : Oracle database service name: orcl8023
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change:
步骤7:创建Control-M中EM服务的资料库用户(注意:emuser用户不需要在oracle数据库中提前创建)
由于1、2、4选择已经默认输入完毕,故没有特殊要求可以不需要改动
a.输入’3’并回车,创建数据库中emuser的密码(default123,密码要输入两遍)并回车
b.输入’5’并回车,输入Oracle数据库中system用户的密码并回车
选项’3’、'5’填写完毕后,输入回车,若数据库可以正常联通,则会进行下一步
=== Product Settings : Database Properties ===
1 : Create a new database (y/n)? - y
2 : Database owner username: emuser
3 : Database owner password:
4 : Database administrator login: SYSTEM
5 : Database administrator password:
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change: 3
Enter a new value for Database owner password: ********
Confirm the password: ********
=== Product Settings : Database Properties ===
1 : Create a new database (y/n)? - y
2 : Database owner username: emuser
3 : Database owner password: *****
4 : Database administrator login: SYSTEM
5 : Database administrator password:
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change: 5
Enter a new value for Database administrator password: ********
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change:
步骤8:配置数据库类型,新增emuser用户表空间,由于是测试环境安装,故数据库大小,这里选择的是’Small’
a.输入’1’并回车,再输入’1’回车,可以看到由于选择的数据库大小为Small,则对应的用户表空间的大小也有了变化。
b.输入回车进行下一步
=== Product Settings : Database Properties ===
1 : Database size
( ) Small - Less than 2,000 jobs per day, approximately 340 MB disk space
(x) Medium - 2,001-10,000 jobs per day, approximately 1100 MB disk space
( ) Large - More than 10,000 jobs per day, approximately 3400 MB disk space
2 : Product data tablespace name: emuser_tbs
3 : Product data tablespace full remote path and filename: /data/app/Oracle/oracle/oradata/orcl8023/emuser.dbf
4 : Product data tablespace size: 800
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change: 1
Database size
( ) 1 : Small - Less than 2,000 jobs per day, approximately 340 MB disk space
(x) 2 : Medium - 2,001-10,000 jobs per day, approximately 1100 MB disk space
( ) 3 : Large - More than 10,000 jobs per day, approximately 3400 MB disk space
Enter your selection: 1
=== Product Settings : Database Properties ===
1 : Database size
(x) Small - Less than 2,000 jobs per day, approximately 340 MB disk space
( ) Medium - 2,001-10,000 jobs per day, approximately 1100 MB disk space
( ) Large - More than 10,000 jobs per day, approximately 3400 MB disk space
2 : Product data tablespace name: emuser_tbs
3 : Product data tablespace full remote path and filename: /data/app/Oracle/oracle/oradata/orcl8023/emuser.dbf
4 : Product data tablespace size: 250
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change:
步骤9:配置EM的端口,这里已经有默认值,若无特殊需求直接输入回车即可,进行下一步
=== Product Settings : Control-M/Enterprise Manager Configuration ===
1 : CORBA naming service port number: 13075
2 : Control-M Web Server port number: 18080
== Cancel Previous Panel / Next Panel ==
Enter command or item number you wish to change:
步骤10:确认配置信息,若无需修改直接输入回车即可,进行下一步
=== Summary ===
You are about to install Control-M/Enterprise Manager version 8.0.00
Destination Folder: /home/emuser
Control-M/Enterprise Manager Setup type: Full
Naming Service Hostname: Mr-MoJi
Naming Service Port Number: 13075
Web Server Port Number: 18080
Database Server Type: Oracle
Database Server Name: Mr-MoJi
Database Server Port Number: 1521
Control-M/Enterprise Manager Database Owner Username: emuser
Control-M/Enterprise Manager Oracle Database Instance Name: orcl8023
Data Tablespace Name: emuser_tbs
Data Tablespace Full Remote Path and File Name: /data/app/Oracle/oracle/oradata/orcl8023/emuser.dbf
Database Size: Small
== Cancel Previous Panel / Install Generate an automatic installation configuration file ==
Enter command:
步骤11:开始安装,安装完成后,程序自动退出
=== Installation ===
[ Starting to unpack ]
[ Processing package: Control-M/Enterprise Manager Server files ]
[ Processing package: Configure Control-M/Enterprise Manager ]
[ Processing package: Configure Control-M/Enterprise Manager oracle configuration ]
[ Processing package: Configure database schema ]
[ Processing package: Creating DB version description file ]
[ Processing package: Configure Control-M Web Server ]
[ Processing package: Configure Control-M/Enterprise Manager ]
[ Processing package: Starting Control-M/Enterprise Manager ]
[ Processing package: Configurate Control-M/Enterprise Manager ]
[ Processing package: The installed-versions.txt update. ]
[ Processing package: Write uninstaller ]
[ Unpacking finished ]
=== Installation Result - Success ===
Installation has completed successfully.
Supplementary information:
To start working with Control-M/Enterprise Manager 8.0.00, you must close
the current session and open a new one.
至此,Control-M的Enterprise Manager组件安装结束。
后续补充CTM-Server、Agent的安装