系统和软件包要求
推荐在Oracle Enterprise Linux 5.7或6.1上安装EM 12c的agent , 可以从edelivery.oracle.com 下载到这2款操作系统的安装介质。
以下演示中的主机均采用Oracle Enterprise Linux 5.7 操作系统。
以下表格列出了在Oracle Linux 6或5.x上 安装EM 12c agent ,所要求预装的操作系统软件包,这些软件包可以直接从OS安装DVD介质中找到:
Platform | 32-Bit Packages for 32-Bit Platform | 64-Bit Packages for 64-Bit Platform |
---|---|---|
Oracle Linux 6 |
|
|
Oracle Linux 5.xRed Hat Enterprise Linux 5.x |
|
Oracle Linux 5.6Red Hat Enterprise Linux 5.6
|
!确保/usr/local/bin/sudo 这个符号链接存在
[root@vrh2 ~]# ln -s /usr/bin/sudo /usr/local/bin/sudo
[root@vrh2 m01]# ls -l /etc/sudoers
-r--r----- 1 root root 3407 Oct 18 19:30 /etc/sudoers
[root@vrh2 m01]# cp /etc/sudoers /etc/sudoers.bak
打开/etc/sudoers 将以下三处修改
修改前:
Defaults requiretty
修改后:
Defaults:oracle !requiretty
修改前:
Defaults !visiblepw
修改后:
Defaults visiblepw
修改前:
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
修改后
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
oracle ALL=(ALL) ALL --这里加一行
以上三处修改完成后,save 文件
测试oracle 能否正常sudo
[root@vrh2 m01]# su - oracle
[oracle@vrh2 ~]$ ls -l /root
ls: /root: Permission denied
[oracle@vrh2 ~]$ sudo ls -l /root
[sudo] password for oracle:
total 88
-rw------- 1 root root 1832 Aug 11 05:26 anaconda-ks.cfg
drwxr-xr-x 2 root root 4096 Aug 10 21:31 Desktop
-rw-r--r-- 1 root root 56307 Aug 11 05:26 install.log
-rw-r--r-- 1 root root 4136 Aug 11 05:26 install.log.syslog
2. 在目标节点上创建必要的目录 :
[root@vrh2 m01]# mkdir /m01 [root@vrh2 m01]# chown oracle:oinstall /m013. 确保OMS server 和target server 间的通信畅通,如没有使用dns 服务 ,那么不要忘记将host/ip 信息写入到/etc/hosts文件中,如果漏掉这部将报target node can not be reached 错误 正式安装 首先再次以sysman身份登录EM https console,如https://192.168.1.169:7799/em。 点击右上角的setup-> Add Target -> Add Targets Manually 进入Add Targets Manually页面,选择" Add Host Target" ,并点击Add Host ...按钮: 在"add Target - Host and Platform "页面使用默认的"session name"即可,点选"+Add"按钮填入主机名和平台信息: 注意这里推荐填入规范的hostname,如"vrh2.oracle.com", 注意主机名不能带下划线 "_", 若Platform下拉列表中没有你要的平台那么说明在该平台上还没有12.1 的agent可用。 输入完成后点击Next进入"Add Target - Installation Details " 页面,点中deployment details 出现下来菜单选择Fresh Agent install ,并填入installation base directory 等目录信息。 接着在Named confidential 点击蓝色的"+" 图形按钮,会跳出 create new Named confidential 的窗口,填入之前配好的oracle用户的信息: 完成后点击Ok,回到原"Add Target - Installation Details "界面,确认并点击Next: 进入Review页面,确认信息正确并点击Deploy Agent: 完成后会进入Agent Deployment summary 页面 ,这里存在三个阶段:
- Initialization -- 拷贝agent介质到目标服务器
- Remote Prerequisite Check -- 检测目标服务器的安装先决条件
- Agent Deployment --具体的Installation Agent 、Secure Agent 和 执行root.sh