dbTalk Databases Forums  

oracle 9i: errors by clone a DB by a script

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss oracle 9i: errors by clone a DB by a script in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Andreas Mosmann
 
Posts: n/a

Default oracle 9i: errors by clone a DB by a script - 04-21-2008 , 11:50 AM






Hi,

I have to clone a DB to built a Test DB.
To avoid manual work our admin wrote a script, that in general
- fills some files with file structure
- fills some files with parameters
- shuts down the database
- copies and packs all datafiles
- startd the database

and back:
- fills the filestructure from files
- rebuilds password and controlfiles
- builds a service
- starts the database

there are still some manual steps, f.e. to fill
tnsnames.ora/listener.ora
but in general it works fine.

My problem is, that it doesnt work in my case, and I do not know, why.
My explicit question is

what are possible reasons for

... Database opened with MOUNT ...
ORA-01113: Für Datei '1' ist Datentrõger-Recovery notwendig
ORA-01110: Datendatei 1: 'D:\ORACLE\ORADATA\XXXXX\SYSTEM01.DBF'
-> recover database
-> shutdown
-> startup
... Database opened with MOUNT ...
ORA-01092: ORACLE-Instance beendet. Verbindungsabbruch erzwungen.

what can I look for?

Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de

Reply With Quote
  #2  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: oracle 9i: errors by clone a DB by a script - 04-21-2008 , 02:22 PM






Andreas Mosmann wrote:

Quote:
.. Database opened with MOUNT ...
ORA-01113: Für Datei '1' ist Datentrõger-Recovery notwendig
ORA-01110: Datendatei 1: 'D:\ORACLE\ORADATA\XXXXX\SYSTEM01.DBF'
-> recover database
-> shutdown
-> startup
.. Database opened with MOUNT ...
ORA-01092: ORACLE-Instance beendet. Verbindungsabbruch erzwungen.

what can I look for?

1) A new administrator - look up db cloning with RMAN:
7 lines of code...
2) trace and log files - alter log to start with.

And you could provide a little more info:
* What version of Oracle
* What platform (other than the obvious Microsoft)
* same, or other machine (if other - patch levels the same?!?)

FvB


Reply With Quote
  #3  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: oracle 9i: errors by clone a DB by a script - 04-21-2008 , 02:22 PM



Andreas Mosmann wrote:

Quote:
.. Database opened with MOUNT ...
ORA-01113: Für Datei '1' ist Datentrõger-Recovery notwendig
ORA-01110: Datendatei 1: 'D:\ORACLE\ORADATA\XXXXX\SYSTEM01.DBF'
-> recover database
-> shutdown
-> startup
.. Database opened with MOUNT ...
ORA-01092: ORACLE-Instance beendet. Verbindungsabbruch erzwungen.

what can I look for?

1) A new administrator - look up db cloning with RMAN:
7 lines of code...
2) trace and log files - alter log to start with.

And you could provide a little more info:
* What version of Oracle
* What platform (other than the obvious Microsoft)
* same, or other machine (if other - patch levels the same?!?)

FvB


Reply With Quote
  #4  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: oracle 9i: errors by clone a DB by a script - 04-21-2008 , 02:22 PM



Andreas Mosmann wrote:

Quote:
.. Database opened with MOUNT ...
ORA-01113: Für Datei '1' ist Datentrõger-Recovery notwendig
ORA-01110: Datendatei 1: 'D:\ORACLE\ORADATA\XXXXX\SYSTEM01.DBF'
-> recover database
-> shutdown
-> startup
.. Database opened with MOUNT ...
ORA-01092: ORACLE-Instance beendet. Verbindungsabbruch erzwungen.

what can I look for?

1) A new administrator - look up db cloning with RMAN:
7 lines of code...
2) trace and log files - alter log to start with.

And you could provide a little more info:
* What version of Oracle
* What platform (other than the obvious Microsoft)
* same, or other machine (if other - patch levels the same?!?)

FvB


Reply With Quote
  #5  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: oracle 9i: errors by clone a DB by a script - 04-21-2008 , 02:22 PM



Andreas Mosmann wrote:

Quote:
.. Database opened with MOUNT ...
ORA-01113: Für Datei '1' ist Datentrõger-Recovery notwendig
ORA-01110: Datendatei 1: 'D:\ORACLE\ORADATA\XXXXX\SYSTEM01.DBF'
-> recover database
-> shutdown
-> startup
.. Database opened with MOUNT ...
ORA-01092: ORACLE-Instance beendet. Verbindungsabbruch erzwungen.

what can I look for?

1) A new administrator - look up db cloning with RMAN:
7 lines of code...
2) trace and log files - alter log to start with.

And you could provide a little more info:
* What version of Oracle
* What platform (other than the obvious Microsoft)
* same, or other machine (if other - patch levels the same?!?)

FvB


Reply With Quote
  #6  
Old   
Andreas Mosmann
 
Posts: n/a

Default Re: oracle 9i: errors by clone a DB by a script - 04-21-2008 , 04:00 PM



Frank van Bortel schrieb am 21.04.2008 in
<2bcf4$480ce95c$524b5c40$22691 (AT) cache3 (DOT) tilbu1.nb.home.nl>:

Quote:
Andreas Mosmann wrote:


.. Database opened with MOUNT ...
ORA-01113: Für Datei '1' ist Datentrõger-Recovery notwendig
ORA-01110: Datendatei 1: 'D:\ORACLE\ORADATA\XXXXX\SYSTEM01.DBF'
-> recover database
-> shutdown
-> startup
.. Database opened with MOUNT ...
ORA-01092: ORACLE-Instance beendet. Verbindungsabbruch erzwungen.

what can I look for?


1) A new administrator - look up db cloning with RMAN:
7 lines of code...
Sounds simple, but I did not find up to now. I look for.
2) trace and log files - alter log to start with.

And you could provide a little more info:
Sorry, I didn't want to be boring
* What version of Oracle
Oracle 9.2.0.7i
* What platform (other than the obvious Microsoft)
MS Windows (Source: Win2003 Server, Destination: WinXP Prof)
* same, or other machine (if other - patch levels the same?!?)
different machines, same patchlevel, different number of processors

The destination machines are a personal PC and a LapTop.

In former times I exported the database and imported it into a new one.
But in this case I found no way to keep the BLOB- data. All the rows
containing a BLOB are killed after this export/import.
And I hoped to get along without the manual stuff as recompile a.s.o.

Quote:
FvB
Thank you very much
Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de


Reply With Quote
  #7  
Old   
Andreas Mosmann
 
Posts: n/a

Default Re: oracle 9i: errors by clone a DB by a script - 04-21-2008 , 04:00 PM



Frank van Bortel schrieb am 21.04.2008 in
<2bcf4$480ce95c$524b5c40$22691 (AT) cache3 (DOT) tilbu1.nb.home.nl>:

Quote:
Andreas Mosmann wrote:


.. Database opened with MOUNT ...
ORA-01113: Für Datei '1' ist Datentrõger-Recovery notwendig
ORA-01110: Datendatei 1: 'D:\ORACLE\ORADATA\XXXXX\SYSTEM01.DBF'
-> recover database
-> shutdown
-> startup
.. Database opened with MOUNT ...
ORA-01092: ORACLE-Instance beendet. Verbindungsabbruch erzwungen.

what can I look for?


1) A new administrator - look up db cloning with RMAN:
7 lines of code...
Sounds simple, but I did not find up to now. I look for.
2) trace and log files - alter log to start with.

And you could provide a little more info:
Sorry, I didn't want to be boring
* What version of Oracle
Oracle 9.2.0.7i
* What platform (other than the obvious Microsoft)
MS Windows (Source: Win2003 Server, Destination: WinXP Prof)
* same, or other machine (if other - patch levels the same?!?)
different machines, same patchlevel, different number of processors

The destination machines are a personal PC and a LapTop.

In former times I exported the database and imported it into a new one.
But in this case I found no way to keep the BLOB- data. All the rows
containing a BLOB are killed after this export/import.
And I hoped to get along without the manual stuff as recompile a.s.o.

Quote:
FvB
Thank you very much
Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de


Reply With Quote
  #8  
Old   
Andreas Mosmann
 
Posts: n/a

Default Re: oracle 9i: errors by clone a DB by a script - 04-21-2008 , 04:00 PM



Frank van Bortel schrieb am 21.04.2008 in
<2bcf4$480ce95c$524b5c40$22691 (AT) cache3 (DOT) tilbu1.nb.home.nl>:

Quote:
Andreas Mosmann wrote:


.. Database opened with MOUNT ...
ORA-01113: Für Datei '1' ist Datentrõger-Recovery notwendig
ORA-01110: Datendatei 1: 'D:\ORACLE\ORADATA\XXXXX\SYSTEM01.DBF'
-> recover database
-> shutdown
-> startup
.. Database opened with MOUNT ...
ORA-01092: ORACLE-Instance beendet. Verbindungsabbruch erzwungen.

what can I look for?


1) A new administrator - look up db cloning with RMAN:
7 lines of code...
Sounds simple, but I did not find up to now. I look for.
2) trace and log files - alter log to start with.

And you could provide a little more info:
Sorry, I didn't want to be boring
* What version of Oracle
Oracle 9.2.0.7i
* What platform (other than the obvious Microsoft)
MS Windows (Source: Win2003 Server, Destination: WinXP Prof)
* same, or other machine (if other - patch levels the same?!?)
different machines, same patchlevel, different number of processors

The destination machines are a personal PC and a LapTop.

In former times I exported the database and imported it into a new one.
But in this case I found no way to keep the BLOB- data. All the rows
containing a BLOB are killed after this export/import.
And I hoped to get along without the manual stuff as recompile a.s.o.

Quote:
FvB
Thank you very much
Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de


Reply With Quote
  #9  
Old   
Andreas Mosmann
 
Posts: n/a

Default Re: oracle 9i: errors by clone a DB by a script - 04-21-2008 , 04:00 PM



Frank van Bortel schrieb am 21.04.2008 in
<2bcf4$480ce95c$524b5c40$22691 (AT) cache3 (DOT) tilbu1.nb.home.nl>:

Quote:
Andreas Mosmann wrote:


.. Database opened with MOUNT ...
ORA-01113: Für Datei '1' ist Datentrõger-Recovery notwendig
ORA-01110: Datendatei 1: 'D:\ORACLE\ORADATA\XXXXX\SYSTEM01.DBF'
-> recover database
-> shutdown
-> startup
.. Database opened with MOUNT ...
ORA-01092: ORACLE-Instance beendet. Verbindungsabbruch erzwungen.

what can I look for?


1) A new administrator - look up db cloning with RMAN:
7 lines of code...
Sounds simple, but I did not find up to now. I look for.
2) trace and log files - alter log to start with.

And you could provide a little more info:
Sorry, I didn't want to be boring
* What version of Oracle
Oracle 9.2.0.7i
* What platform (other than the obvious Microsoft)
MS Windows (Source: Win2003 Server, Destination: WinXP Prof)
* same, or other machine (if other - patch levels the same?!?)
different machines, same patchlevel, different number of processors

The destination machines are a personal PC and a LapTop.

In former times I exported the database and imported it into a new one.
But in this case I found no way to keep the BLOB- data. All the rows
containing a BLOB are killed after this export/import.
And I hoped to get along without the manual stuff as recompile a.s.o.

Quote:
FvB
Thank you very much
Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de


Reply With Quote
  #10  
Old   
sybrandb@hccnet.nl
 
Posts: n/a

Default Re: oracle 9i: errors by clone a DB by a script - 04-25-2008 , 12:48 PM



On Mon, 21 Apr 2008 18:50:09 +0200, Andreas Mosmann
<mosmann (AT) expires-30-04-2008 (DOT) news-group.org> wrote:

Quote:
what can I look for?
The admin. His script sucks.
There is a mismatch between the SYSTEM tablespace and the
controlfiles.
Why don't you just use RMAN duplicate, or a RMAN cold backup?
Why do people rather 'engineer' their own crap solution, as opposed to
reading the docs, and using the tools Oracle already provides for this
purpose?
And why do they start crying out for help here, without even trying to
troubleshoot it?

--
Sybrand Bakker
Senior Oracle DBA


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.