Abaixo segue exemplo de como trocar o endereço(single name) do SCAN:
Testando a resolução do novo single name utilizando o nslookup:
1
2 3 4 5 6 7 8 |
[root@teste01 ~]$ nslookup oracle-scantst2
Server: 192.168.250.203 Address: 192.168.250.203#53 Name: oracle-scantst2.oraclehome.com.br Address: 192.168.250.197 Name: oracle-scantst2.oraclehome.com.br Address: 192.168.250.198 |
Logado com o usuário GRID:
1
2 3 4 5 |
GRID-> srvctl config scan
SCAN name: oracle-scantst, Network: 1/192.168.250.0/255.255.255.0/bond0 SCAN VIP name: scan1, IP: /oracle-scantst/192.168.250.196 SCAN VIP name: scan2, IP: /oracle-scantst/192.168.250.195 GRID-> |
Parar o scan e scan listener:
1
2 3 4 5 6 7 |
GRID-> srvctl stop scan_listener
GRID-> srvctl stop scan GRID-> srvctl status scan SCAN VIP scan1 is enabled SCAN VIP scan1 is not running SCAN VIP scan2 is enabled SCAN VIP scan2 is not running |
Logado como ROOT alterar o endereço “single name“:
1 | ROOT-> srvctl modify scan -n oracle-scantst2 |
Logando novamente como GRID, verificar as alterações:
1
2 3 4 |
GRID-> srvctl config scan
SCAN name: oracle-scantst2, Network: 1/192.168.250.0/255.255.255.0/bond0 SCAN VIP name: scan1, IP: /oracle-scantst2/192.168.250.198 SCAN VIP name: scan2, IP: /oracle-scantst2/192.168.250.197 |
Efetuar o update da configuração do serviço (-u) e iniciar:
1
2 3 4 5 6 7 8 |
GRID-> srvctl modify scan_listener -u
GRID-> srvctl start scan_listener GRID-> srvctl status scan SCAN VIP scan1 is enabled SCAN VIP scan1 is running on node teste02 SCAN VIP scan2 is enabled SCAN VIP scan2 is running on node teste01 GRID-> |
fontes :
http://www.oraclehome.com.br/2015/03/16/alterando-o-endereco-do-scan-listener/