[oracle_br] Re: Como corrigir um datafile corrompido?

2007-07-10 Por tôpico Josir Gomes
Obrigado pelo reply.
Entretanto, essa solução não funciona pois eu não consigo dar 

CREATE ou DROP TABLESPACE 

já que não consigo abrir o banco (veja abaixo que eu não consigo dar
OPEN). Acredito que tenha que ser algum comando para dropar o datafile
ou algo do gênero.

Se alguem soube como, fico agradecido.
Josir.



--- Em oracle_br@yahoogrupos.com.br, Zumba [EMAIL PROTECTED] escreveu

 Olá Josir,
 
 eu tenho um procedimento aqui que peguei do metalink
 uma vez:
 
 
 --Create a new UNDO tablespace (UNDOTBS2) and bring it
 online 
 --no database users logged in to the database. 
 --ALTER SYSTEM SET UNDO_TABLESPACE = UNDOTBS2; (new
 UNDO tablespace) 
 --DROP TABLESPACE UNDOTBS (first and original undo
 tablspace) 
 --Edit the init file and change
 undo_tablespace=UNDOTBS2 
 --Stop and restart the database 
 --delete the datafile for the original undo tablepsace
 from the OS. 
 
 
 Espero ter ajudado.
 Abrax
 
 
 
 
 
 
 --- Josir Gomes [EMAIL PROTECTED] escreveu:
 
  Olá pessoal,
  tenho um banco de teste que corrompeu um datafile no
  File system. 
  Eu tentei recover automatic; mas deu o mesmo erro.
  Como é undotbls tablespace, ou seja, não tem dados,
  qual seria o
  procedimento correto para apagá-la e criá-la de
  novo?
  
  Saudações a todos,
  Josir.
  
  SQL alter database open;
  alter database open
  *
  ERROR at line 1:
  ORA-01115: IO error reading block from file 2 (block
  # 73)
  ORA-01110: data file 2:
  '/u01/app/oracle/oradata/orcl/undotbs01.dbf'
  ORA-27072: File I/O error
  Linux Error: 5: Input/output error
  Additional information: 4
  Additional information: 73
  Additional information: -1
  
  
  SQL recover automatic;
  ORA-00283: recovery session canceled due to errors
  ORA-01115: IO error reading block from file 2 (block
  # 73)
  ORA-01110: data file 2:
  '/u01/app/oracle/oradata/orcl/undotbs01.dbf'
  ORA-27072: File I/O error
  Linux Error: 5: Input/output error
  Additional information: 4
  Additional information: 73
  Additional information: -1




Re: [oracle_br] Re: Como corrigir um datafile corrompido?

2007-07-10 Por tôpico Zumba
Ah sim,
inicia o banco em modo mount (startup mount) que
permite adicionar os datafiles;
Aí depois executa o procedimento abaixo.

Deve funcionar.



--- Josir Gomes [EMAIL PROTECTED] escreveu:

 Obrigado pelo reply.
 Entretanto, essa solução não funciona pois eu não
 consigo dar 
 
 CREATE ou DROP TABLESPACE 
 
 já que não consigo abrir o banco (veja abaixo que eu
 não consigo dar
 OPEN). Acredito que tenha que ser algum comando para
 dropar o datafile
 ou algo do gênero.
 
 Se alguem soube como, fico agradecido.
 Josir.
 
 
 
 --- Em oracle_br@yahoogrupos.com.br, Zumba
 [EMAIL PROTECTED] escreveu
 
  Olá Josir,
  
  eu tenho um procedimento aqui que peguei do
 metalink
  uma vez:
  
  
  --Create a new UNDO tablespace (UNDOTBS2) and
 bring it
  online 
  --no database users logged in to the database. 
  --ALTER SYSTEM SET UNDO_TABLESPACE = UNDOTBS2;
 (new
  UNDO tablespace) 
  --DROP TABLESPACE UNDOTBS (first and original undo
  tablspace) 
  --Edit the init file and change
  undo_tablespace=UNDOTBS2 
  --Stop and restart the database 
  --delete the datafile for the original undo
 tablepsace
  from the OS. 
  
  
  Espero ter ajudado.
  Abrax
  
  
  
  
  
  
  --- Josir Gomes [EMAIL PROTECTED] escreveu:
  
   Olá pessoal,
   tenho um banco de teste que corrompeu um
 datafile no
   File system. 
   Eu tentei recover automatic; mas deu o mesmo
 erro.
   Como é undotbls tablespace, ou seja, não tem
 dados,
   qual seria o
   procedimento correto para apagá-la e criá-la de
   novo?
   
   Saudações a todos,
   Josir.
   
   SQL alter database open;
   alter database open
   *
   ERROR at line 1:
   ORA-01115: IO error reading block from file 2
 (block
   # 73)
   ORA-01110: data file 2:
   '/u01/app/oracle/oradata/orcl/undotbs01.dbf'
   ORA-27072: File I/O error
   Linux Error: 5: Input/output error
   Additional information: 4
   Additional information: 73
   Additional information: -1
   
   
   SQL recover automatic;
   ORA-00283: recovery session canceled due to
 errors
   ORA-01115: IO error reading block from file 2
 (block
   # 73)
   ORA-01110: data file 2:
   '/u01/app/oracle/oradata/orcl/undotbs01.dbf'
   ORA-27072: File I/O error
   Linux Error: 5: Input/output error
   Additional information: 4
   Additional information: 73
   Additional information: -1
 
 
 



   

Novo Yahoo! Cadê? - Experimente uma nova busca.
http://yahoo.com.br/oqueeuganhocomisso