Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I used dd to clone a x4100 server with Linux Red Hat. The hardware is identical for old and new servers. Then I changed IP address and host name. The newly restored server is up and running but Oracle gives following errors and cannot start.

Database start:

(...)

Opening oracle.

ALTER DATABASE OPEN
*
ERROR at line 1:

ORA-01113: file 1 needs media recovery    
ORA-01110: data file 1: '/../../system01.dbf'

Trying to log into SQL*Plus....

ORA-01033: ORACLE initialization or shutdown in progress

If I run recover datafile '/../../system01.dbf'; I get

ORA-00283: recovery session canceled due to errors    
ORA-00322: log 3 of thread 1 is not current copy    
ORA-00312: online log 3 thread 1: /../../_REDO3A.log

How can I fix the problem? What is the wrong thing in restoring the Oracle with dd?

share|improve this question

migrated from stackoverflow.com Aug 24 '11 at 23:49

This question came from our site for professional and enthusiast programmers.

2  
Was the Oracle instance shut-down before you cloned it? –  Allan Aug 24 '11 at 15:25

1 Answer 1

dd is a low level unix copying tool. This is not a good way to clone a database, because there are too many places where host and instance information is stored. You say you changed "IP address and host name" but where? how?

The recommended approach would be to use RMAN. The process is defined in the documentation. Find out more.

share|improve this answer
    
In linux configuration (hosts etc) I changed the host name and etc, but where to make changes for Oracle? –  Ephieste Sep 7 '11 at 8:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.