Pular para o conteúdo

Serviço do DATABASE não inicializa automaticamente no Grid Infrastructure 11gR2

Serviço do DATABASE não inicializa automaticamente no Grid Infrastructure 11gR2

Em alguns casos o serviço do Banco de Dados (Database) no Grid Infrastructure ou Grid Infrastructure Stand-Alone Server não inicia automaticamente quando o cluster é iniciado (crsctl start). Por que?

Existe um atributo para os serviços de Database no Cluster (GI 11gR2). Este atributo tem por objetivo ativar ou não o restart
de um serviço de Banco de Dados no re-start do cluster.

Pode-se verificar o status deste atributo usando o comando “crsctl”. Basta verificar o atributo AUTO_START:

$ crsctl status resource ora.orcl.db
NAME=ora.orcl.db
TYPE=ora.database.type
TARGET=OFFLINE
STATE=OFFLINE

$ crsctl status resource ora.orcl.db -p | grep AUTO_START
AUTO_START=restore

Segue abaixo legenda para cada status do atributo AUTO_START:

  • always: Restarts the resource when the server restarts regardless of the state of the resource when the server stopped.
  • restore: Restores the resource to the same state that it was in when the server stopped. Oracle Clusterware attempts to restart the resource if the value of TARGET was ONLINE before the server stopped.
  • never: Oracle Clusterware never restarts the resource regardless of the state of the resource when the server stopped.

OK… o atributo AUTO_START no serviço ora.orcl.db está setado como “restore” isso significa que o se o recurso foi parado e teremos que iniciá-lo automaticamente

$ crsctl start resource ora.orcl.db
CRS-2672: Attempting to start 'ora.orcl.db' on 'oratest'
CRS-2676: Start of 'ora.orcl.db' on 'oratest' succeeded

$ crsctl status resource ora.orcl.db
NAME=ora.orcl.db
TYPE=ora.database.type
TARGET=ONLINE
STATE=ONLINE on oratest

Agora basta mudar o atributo AUTO_START para “always”:

$ crsctl modify resource ora.orcl.db -attr AUTO_START=always

$ crsctl status resource ora.orcl.db -p | grep AUTO_START
AUTO_START=always

FEITO! Agora toda vez que for necessário executar um STOP/START do cluster usando o comando: crsctl start/stop crs o serviço do DATABASE (neste caso ora.orcl.db) irá iniciar automaticamente.

Fonte

http:/surachartopun.com/2011/04/why-database-not-startup-automatic.html

Quão útil foi este post ?

Clique em uma estrela para classificar o post

nota média 4.8 / 5. Contagem de votos: 24

Sem votos ! Seja o primeiro a classificar !

Marcações:

4 comentários em “Serviço do DATABASE não inicializa automaticamente no Grid Infrastructure 11gR2”

Deixe um comentário

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *

plugins premium WordPress