EM13c在受控主機上安裝agent,oracle用戶需要添加sudo權限
添加文件的寫權限
chmod u+w /etc/sudoers
編輯/etc/sudoers文件。也就是輸入命令
vi /etc/sudoers
root ALL=(ALL) ALL --這行下面增加一行
oracle ALL=(ALL) ALL
撤銷文件的寫權限
chmod u-w /etc/sudoers
測試
[root@dfmc-dbaasp-02 ~]# su - oracle
[oracle@dfmc-dbaasp-02 ~]$ sudo ls /root --第一次需要輸入密碼
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
[sudo] password for oracle:
anaconda-ks.cfg install.log install.log.syslog zxq.sh ?????? ????????? ?????? ?????? ?????? ?????? ?????? ??????
[oracle@dfmc-dbaasp-02 ~]$
[oracle@dfmc-dbaasp-02 ~]$
[oracle@dfmc-dbaasp-02 ~]$ sudo ls /root --第二次不需要輸入密碼
anaconda-ks.cfg install.log install.log.syslog zxq.sh ?????? ????????? ?????? ?????? ?????? ?????? ?????? ??????
[oracle@dfmc-dbaasp-02 ~]$
在受控主機和EM13c主機上配置域名解析
[root@test-dbaas-01 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.2.21.10 test-dbaas-01 test-dbaas-01.oracle.com
10.2.21.11 test-dbaas-02 test-dbaas-02.oracle.com
10.2.21.12 testdb1-vip
10.2.21.13 testdb2-vip
192.168.100.10 testdb1-priv1
192.168.200.10 testdb1-priv2
192.168.100.20 testdb2-priv1
192.168.200.20 testdb2-priv2
#添加如下
10.2.21.17 test-dbaasem-01 test-dbaasem-01.oracle.com
em13c主機
[root@dfmc-dbaasem-01 /]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
10.2.21.17 test-dbaasem-01 test-dbaasem-01.oracle.com
#添加如下
10.2.21.10 test-dbaas-01 test-dbaas-01.oracle.com
10.2.21.11 test-dbaas-02 test-dbaas-02.oracle.com
手動方式添加目標