Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-24-2008, 06:09 PM
Andreas Mosmann
 
Posts: n/a
Default oracle 9i: errors by clone a DB by a script

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 06:09 PM
Frank van Bortel
 
Posts: n/a
Default Re: oracle 9i: errors by clone a DB by a script

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...
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-24-2008, 06:09 PM
Andreas Mosmann
 
Posts: n/a
Default Re: oracle 9i: errors by clone a DB by a script

Frank van Bortel schrieb am 21.04.2008 in
<2bcf4$480ce95c$524b5c40$22691@cache3.tilbu1.nb.ho me.nl>:

> 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.

> FvB

Thank you very much
Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-29-2008, 08:28 PM
sybrandb@hccnet.nl
 
Posts: n/a
Default Re: oracle 9i: errors by clone a DB by a script

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

>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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-29-2008, 08:28 PM
Frank van Bortel
 
Posts: n/a
Default Re: oracle 9i: errors by clone a DB by a script

Andreas Mosmann wrote:
> Frank van Bortel schrieb am 21.04.2008 in
> <2bcf4$480ce95c$524b5c40$22691@cache3.tilbu1.nb.ho me.nl>:
>
>> 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.


Ahw come on: "oracle rman clone" yield two useful examples
in the top-5

>> 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.
>



Same endianess, same # of bits? E.g. not 2003/64 to
XP/32? If so, follow Sybrand's suggestion:
- take a cold (RMAN?) backup, and copy the stuff over.
Re-create the services, and start your engines.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-29-2008, 08:28 PM
Andreas Mosmann
 
Posts: n/a
Default Re: oracle 9i: errors by clone a DB by a script

sybrandb@hccnet.nl schrieb am 25.04.2008 in
<j564141aasgflk0e42sfbev8cq1t2201jl@4ax.com>:

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


>> what can I look for?


> The admin. His script sucks.

ok
> There is a mismatch between the SYSTEM tablespace and the
> controlfiles.

ok
> 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?

Maybe because there are more Oracle docs I can read all my life?
And, by the way, many oracle tools are built by the flintstones (f.e.
SQL plus *), there are and must be better ways to do the work.

> And why do they start crying out for help here, without even trying to
> troubleshoot it?

Sorry, why do you think I did not try to troubleshoot this? Sure I am
part of the problem and the admin is it too. But in my opinion oracle is
reason for it because there is no intuitive to do some standard actions.

In my opinion oracle hides important information inside a mass of
useless information.
You have to decide whether you administrate oracle or do any other work.
But in my case my normal work is to develop database software and
therefore I have to administrate my OracleDB on my own. There is not
enough manpower to split into admins/developers in this situation.

I read a lot of your answers and there was a lot of helping answers.
But please accept, that oracle is not that userfriendly as it should in
my sight.

Andreas

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-29-2008, 08:28 PM
sybrandb@hccnet.nl
 
Posts: n/a
Default Re: oracle 9i: errors by clone a DB by a script

On Mon, 28 Apr 2008 13:09:17 +0200, Andreas Mosmann
<mosmann@expires-30-04-2008.news-group.org> wrote:

>Maybe because there are more Oracle docs I can read all my life?
>And, by the way, many oracle tools are built by the flintstones (f.e.
>SQL plus *), there are and must be better ways to do the work.


You do not know what you are talking about.
Sql*plus is the successor of UFI.
UFI is the acronym for U(ser)F(riendly)I(nterface).
Now THAT was a nightmare!!!

If you can't work with sql*plus, I suggest you stick to Mickeysoft
products.

--
Sybrand Bakker
Senior Oracle DBA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-29-2008, 08:28 PM
joel garry
 
Posts: n/a
Default Re: oracle 9i: errors by clone a DB by a script

On Apr 28, 4:09*am, Andreas Mosmann <mosm...@expires-30-04-2008.news-
group.org> wrote:
>
> Sorry, why do you think I did not try to troubleshoot this? Sure I am
> part of the problem and the admin is it too. But in my opinion oracle is
> reason for it because there is no intuitive to do some standard actions.


Backups and recovery are simply not intuitive to begin with. The
"standard actions" have no standards.

>
> In my opinion oracle hides important information inside a mass of
> useless information.
> You have to decide whether you administrate oracle or do any other work.
> But in my case my normal work is to develop database software and
> therefore I have to administrate my OracleDB on my own. There is not
> enough manpower to split into admins/developers in this situation.


That's why Oracle has made 2-day DBA tutorials and Backup and Recovery
Quick Start guides. They even debated whether XE should have
transactional recovery. Guess what they decided?

>
> I read a lot of your answers and there was a lot of helping answers.
> But please accept, that oracle is not that userfriendly as it should in
> my sight.
>


I've long said the same thing, but they've addressed some of the
issues, and other issues derive directly from the richness and depth
of Oracle's functionality.

I've directly observed a number of SQL-Server apps crash
unrecoverably, because of the lack of administration. And my-sql is
just barely starting to even address backups. So your complaints are
really kind of "it's the worst except for all the others," and perhaps
unjustified positive assumptions about your admin and how things
should and do work.

jg
--
@home.com is bogus.
http://catless.ncl.ac.uk/Risks/25.12.html#subj3
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-29-2008, 08:28 PM
Andreas Mosmann
 
Posts: n/a
Default Re: oracle 9i: errors by clone a DB by a script

joel garry schrieb am 28.04.2008 in
<fc664b58-51c9-4893-aac9-60c12981bc64@q27g2000prf.googlegroups.com>:

> On Apr 28, 4:09*am, Andreas Mosmann <mosm...@expires-30-04-2008.news-
> group.org> wrote:
>>
>> Sorry, why do you think I did not try to troubleshoot this? Sure I am
>> part of the problem and the admin is it too. But in my opinion oracle is
>> reason for it because there is no intuitive to do some standard actions.


> Backups and recovery are simply not intuitive to begin with. The
> "standard actions" have no standards.

The "standard action" I look for is a clone of a database. I am sure
that
it depends of the point of view, but I am a software developer and as
such I often need an actual copy of the database to try something.
And I suppose that most databases and of course oracle databases too are
delivered with an application using the database.


>>
>> I read a lot of your answers and there was a lot of helping answers.
>> But please accept, that oracle is not that userfriendly as it should in
>> my sight.
>>


> I've long said the same thing, but they've addressed some of the
> issues, and other issues derive directly from the richness and depth
> of Oracle's functionality.


> I've directly observed a number of SQL-Server apps crash
> unrecoverably, because of the lack of administration. And my-sql is
> just barely starting to even address backups. So your complaints are
> really kind of "it's the worst except for all the others," and perhaps
> unjustified positive assumptions about your admin and how things
> should and do work.

I am willing to learn, but it is impossible to learn all the oracle
knowledge AND to be a good software developer. I am not responsible for
backup and recovery, I (as probably all software developers) only
frequently need a copy of an actual database.
And by the way: shortest way for me was to export/import a user of a
database, but when I started to use a blob field it did not work
anymore.
Call me a fool, but it seems to be a bug!
But now I found out that I can export/import the complete database as
system and it takes more time and warns me much more than before, but it
works.

I come along with oracle but in my opinion it must be allowed to wish
things that still doesn't exist. And I am sure that I am not the only
one with these wishes. Maybe there will be a version where the
enterprise manager has a button "Clone a DB" and if you start it will
ask you the following questions:
- server?
- sys/system - passwords?
- shrink db?
- delete existing db?
and all the other information concerning operation system, installed
oracle version/patchlevel and whatever it finds out itself.
Dream a little dream ...

> jg
> --
> @home.com is bogus.
> http://catless.ncl.ac.uk/Risks/25.12.html#subj3

Thank you for your answer.
Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-29-2008, 08:28 PM
Andreas Mosmann
 
Posts: n/a
Default Re: oracle 9i: errors by clone a DB by a script

sybrandb@hccnet.nl schrieb am 28.04.2008 in
<vkrb145jmii034ah3ek5jqp2vh5v795cco@4ax.com>:

> On Mon, 28 Apr 2008 13:09:17 +0200, Andreas Mosmann
> <mosmann@expires-30-04-2008.news-group.org> wrote:


>> Maybe because there are more Oracle docs I can read all my life?
>> And, by the way, many oracle tools are built by the flintstones (f.e.
>> SQL plus *), there are and must be better ways to do the work.


> You do not know what you are talking about.

Doesn't I?
> Sql*plus is the successor of UFI.
> UFI is the acronym for U(ser)F(riendly)I(nterface).

A joke, isn't it?

> If you can't work with sql*plus, I suggest you stick to Mickeysoft
> products.

Why should I?
1.) I can work with sql*plus. And I also can undress me with a knife.
But both seems to me not really useful if there are better ways (and
there are)
2.) I do not have the choice of RDBMS
3.) Only because I think that some tools are not that useful as possible
I do not have a problem with oracle at all

Nevertheless
Thank you
Andreas Mosmann

--
wenn email, dann AndreasMosmann <bei> web <punkt> de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:38 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557