Unix Technical Forum

SEO

vBulletin Search Engine Optimization


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 07:43 AM
CS
 
Posts: n/a
Default Oracle Automated DB Restore

Hi,

Is there anyone has thought about automated DB restoration?
Automated backup I have heard a lot and have it scheduled and running every
night but regarding the restoration, I just
know about it is done by the manual way (copy/restore backup from production
server, recover/apply log, bring up DB, etc...)

If I want copy the production database backups from it's server to my dev
server and have it done automatically, eg execute one script/command (in
Windows 2000 environment), is there any good input on this, like using tools
available in market ?

DB size: 100GB
Oracle EE 8i
Backup with RMAN

Thanks !



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 07:43 AM
Dave
 
Posts: n/a
Default Re: Oracle Automated DB Restore


"CS" <csjaring@myjaring.net> wrote in message
news:415587ae$1_2@news.tm.net.my...
> Hi,
>
> Is there anyone has thought about automated DB restoration?
> Automated backup I have heard a lot and have it scheduled and running
> every
> night but regarding the restoration, I just
> know about it is done by the manual way (copy/restore backup from
> production
> server, recover/apply log, bring up DB, etc...)
>
> If I want copy the production database backups from it's server to my dev
> server and have it done automatically, eg execute one script/command (in
> Windows 2000 environment), is there any good input on this, like using
> tools
> available in market ?
>
> DB size: 100GB
> Oracle EE 8i
> Backup with RMAN
>
> Thanks !
>
>
>


rman


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 07:44 AM
Hans Forbrich
 
Posts: n/a
Default Re: Oracle Automated DB Restore

CS wrote:

> Hi,
>
> Is there anyone has thought about automated DB restoration?
> Automated backup I have heard a lot and have it scheduled and running
> every night but regarding the restoration, I just
> know about it is done by the manual way (copy/restore backup from
> production server, recover/apply log, bring up DB, etc...)
>
> If I want copy the production database backups from it's server to my dev
> server and have it done automatically, eg execute one script/command (in
> Windows 2000 environment), is there any good input on this, like using
> tools available in market ?
>
> DB size: 100GB
> Oracle EE 8i
> Backup with RMAN
>
> Thanks !


RMAN does both, and would suit your purposes. But a generic fully automated
restore that covers all recovery situations can be a bit tricky (look up
the definition of restore in the Backup Recovery manual and you'll
understand why I say this.)

You might want to change your tactic a bit and investigate Oracle's Data
Guard. That's designed to accomplish pretty well what you want.

/Hans
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 07:44 AM
Howard J. Rogers
 
Posts: n/a
Default Re: Oracle Automated DB Restore

CS wrote:

> Hi,
>
> Is there anyone has thought about automated DB restoration?


OK, so how would that work, then?

Presumably some daemon or other would magically diagnose precisely what the
problem was on the non-functioning database, ranging from a corrupt block,
to a lost data file, to a user having done a stupid bit of DML. The daemon
would need to be aware that hardware failure renders a restoration to the
original disk somewhat problematic, but would be aware of all the other
spare disks it can use instead. This daemon would also be magically aware
of how much downtime your business can tolerate, and hence come up with
multiple proposals to effect recovery, some with a lot of downtime implied,
some with less. Of course, you're not there to assess these proposals,
because you want this automated, so the daemon puts its suggestions to a
committee of other daemons, who assess each proposal, and finally adopt the
right one.

And you, of course, would trust this mechanism to get it right, every time,
without mangling your precious data, and without causing excessive
downtime?

Is that roughly how it would go?

Because if it is, I think the flaws in the idea are self-evident.

> Automated backup I have heard a lot and have it scheduled and running
> every night


Because backing up means copying a well-defined set of files, and does not
imperil your data, nor your uptime.

> but regarding the restoration, I just
> know about it is done by the manual way (copy/restore backup from
> production server, recover/apply log, bring up DB, etc...)
>
> If I want copy the production database backups from it's server to my dev
> server and have it done automatically, eg execute one script/command (in
> Windows 2000 environment), is there any good input on this, like using
> tools available in market ?


Ah, well, that's a slightly different matter, and there is already an
excellent tool that can do this sort of thing, available for free. It's
called RMAN.

It requires that you do some typing, however, because (as I hope the ironic
description at the start of my reply suggests) the idea of automatically
doing anything on the restore/recovery side of the equation is very, very
dodgy.

Regards
HJR


>
> DB size: 100GB
> Oracle EE 8i
> Backup with RMAN
>
> Thanks !


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-24-2008, 07:44 AM
Sybrand Bakker
 
Posts: n/a
Default Re: Oracle Automated DB Restore

On Sat, 25 Sep 2004 08:47:06 +1000, "Howard J. Rogers"
<hjr@dizwell.com> wrote:

>It requires that you do some typing, however, because (as I hope the ironic
>description at the start of my reply suggests) the idea of automatically
>doing anything on the restore/recovery side of the equation is very, very
>dodgy.


Yet Oracle 10g, according to Mark Townsend at Oracle OpenWorld, *does*
include automatic backup *and* automatic restoration.


--
Sybrand Bakker, Senior Oracle DBA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-24-2008, 07:44 AM
Noons
 
Posts: n/a
Default Re: Oracle Automated DB Restore

"Howard J. Rogers" <hjr@dizwell.com> wrote in message news:<4155f63f$0$10345$afc38c87@news.optusnet.com. au>...

> And you, of course, would trust this mechanism to get it right, every time,
> without mangling your precious data, and without causing excessive
> downtime?


That is the best description of the entire Windows
(and IBM) user base I've ever heard....


> Is that roughly how it would go?
>
> Because if it is, I think the flaws in the idea are self-evident.


Wanna bet some1 from IBM or M$ will come up with something
along these lines and call it a "competitive advantage to lower
the TCO", or some other twaddle to that effect?
MOF, IIRC some of the Tivoli and HA ancillary options deal
precisely with this...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-24-2008, 07:51 AM
Howard J. Rogers
 
Posts: n/a
Default Re: Oracle Automated DB Restore

Sybrand Bakker <sybrandb@hccnet.nl> wrote in message news:<4jjcl0d4uk4847ub3c6vnjt676tu3ju276@4ax.com>. ..
> On Sat, 25 Sep 2004 08:47:06 +1000, "Howard J. Rogers"
> <hjr@dizwell.com> wrote:
>
> >It requires that you do some typing, however, because (as I hope the ironic
> >description at the start of my reply suggests) the idea of automatically
> >doing anything on the restore/recovery side of the equation is very, very
> >dodgy.

>
> Yet Oracle 10g, according to Mark Townsend at Oracle OpenWorld, *does*
> include automatic backup *and* automatic restoration.



Automatic backup, as I think I mentioned, is a very different
proposition. The files to be backed up are well-defined, and in a
known location, and it presents no great technical difficulty at all.

But automatic recovery is not on. There are some recovery scenarios
where a degree of automation would not be beyond the wit of Man or,
indeed, of Oracle Corporation. Media failures in an ASM setup, for
example, is probably do-able as an auto-detect and auto-fix issue,
largely because again you know precisely what storage components are
missing and where it can be restored to (somewhere else in the ASM
storage pool). But as a general proposition, 10g can't do automated
recoveries, and I'm pretty sure that Mark wouldn't have said that it
did... because until Oracle invents dbms_mindreading, I can't see how
on Earth you could automate something like the need for an incomplete
recovery.

"Would that be 'until time 9:55:37' or 'until time 9:56:23', Sir?"

It is possible we are talking about different degrees of automation,
however.

Regards
HJR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-24-2008, 07:51 AM
Hans Forbrich
 
Posts: n/a
Default Re: Oracle Automated DB Restore

Howard J. Rogers wrote:

> Sybrand Bakker <sybrandb@hccnet.nl> wrote in message
> news:<4jjcl0d4uk4847ub3c6vnjt676tu3ju276@4ax.com>. ..
>> On Sat, 25 Sep 2004 08:47:06 +1000, "Howard J. Rogers"
>> <hjr@dizwell.com> wrote:
>>
>> >It requires that you do some typing, however, because (as I hope the
>> >ironic description at the start of my reply suggests) the idea of
>> >automatically doing anything on the restore/recovery side of the
>> >equation is very, very dodgy.

>>
>> Yet Oracle 10g, according to Mark Townsend at Oracle OpenWorld, *does*
>> include automatic backup *and* automatic restoration.

>
>
> Automatic backup, as I think I mentioned, is a very different
> proposition. The files to be backed up are well-defined, and in a
> known location, and it presents no great technical difficulty at all.
>
> But automatic recovery is not on. There are some recovery scenarios
> where a degree of automation would not be beyond the wit of Man or,
> indeed, of Oracle Corporation. Media failures in an ASM setup, for
> example, is probably do-able as an auto-detect and auto-fix issue,
> largely because again you know precisely what storage components are
> missing and where it can be restored to (somewhere else in the ASM
> storage pool). But as a general proposition, 10g can't do automated
> recoveries, and I'm pretty sure that Mark wouldn't have said that it
> did... because until Oracle invents dbms_mindreading, I can't see how
> on Earth you could automate something like the need for an incomplete
> recovery.
>
> "Would that be 'until time 9:55:37' or 'until time 9:56:23', Sir?"
>
> It is possible we are talking about different degrees of automation,
> however.
>
> Regards
> HJR


Not having been there, I wonder whether Mark was slicing the difference
between Recovery and Restore?

Restoring missing or corrupt files could be relatively simple. However
recovering database, in all the scenarios possible, is not easy.

Then again, I wonder ... with flashback database ???

/Hans
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-24-2008, 07:51 AM
Howard J. Rogers
 
Posts: n/a
Default Re: Oracle Automated DB Restore

Hans Forbrich <news.hans@telus.net> wrote in message news:<K907d.130$N%.13@edtnps84>...
> Howard J. Rogers wrote:
>
> > Sybrand Bakker <sybrandb@hccnet.nl> wrote in message
> > news:<4jjcl0d4uk4847ub3c6vnjt676tu3ju276@4ax.com>. ..
> >> On Sat, 25 Sep 2004 08:47:06 +1000, "Howard J. Rogers"
> >> <hjr@dizwell.com> wrote:
> >>
> >> >It requires that you do some typing, however, because (as I hope the
> >> >ironic description at the start of my reply suggests) the idea of
> >> >automatically doing anything on the restore/recovery side of the
> >> >equation is very, very dodgy.
> >>
> >> Yet Oracle 10g, according to Mark Townsend at Oracle OpenWorld, *does*
> >> include automatic backup *and* automatic restoration.

> >
> >
> > Automatic backup, as I think I mentioned, is a very different
> > proposition. The files to be backed up are well-defined, and in a
> > known location, and it presents no great technical difficulty at all.
> >
> > But automatic recovery is not on. There are some recovery scenarios
> > where a degree of automation would not be beyond the wit of Man or,
> > indeed, of Oracle Corporation. Media failures in an ASM setup, for
> > example, is probably do-able as an auto-detect and auto-fix issue,
> > largely because again you know precisely what storage components are
> > missing and where it can be restored to (somewhere else in the ASM
> > storage pool). But as a general proposition, 10g can't do automated
> > recoveries, and I'm pretty sure that Mark wouldn't have said that it
> > did... because until Oracle invents dbms_mindreading, I can't see how
> > on Earth you could automate something like the need for an incomplete
> > recovery.
> >
> > "Would that be 'until time 9:55:37' or 'until time 9:56:23', Sir?"
> >
> > It is possible we are talking about different degrees of automation,
> > however.
> >
> > Regards
> > HJR

>
> Not having been there, I wonder whether Mark was slicing the difference
> between Recovery and Restore?
>
> Restoring missing or corrupt files could be relatively simple.


Well, maybe... But maybe not. I might prefer to drop my index
tablespace and rebuild all of them rather than recover them. Which
would mean knowing NOT to restore index01.dbf... Only I or an
implausibly fiendish and clever bit of coding on Oracle's part can
make that call, I would have thought.

>However
> recovering database, in all the scenarios possible, is not easy.
>
> Then again, I wonder ... with flashback database ???


You still have to mind-read your way to knowing what point to
flashback to.

Whether Oracle is actually capable of automating anything in this
subject area or not is really not the issue, however. The real issue
is: if it can, it probably shouldn't!!

Regards
HJR

>
> /Hans

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-24-2008, 07:51 AM
Hans Forbrich
 
Posts: n/a
Default Re: Oracle Automated DB Restore

Howard J. Rogers wrote:

>
>> Not having been there, I wonder whether Mark was slicing the difference
>> between Recovery and Restore?
>>
>> Restoring missing or corrupt files could be relatively simple.

>
> Well, maybe... But maybe not. I might prefer to drop my index
> tablespace and rebuild all of them rather than recover them. Which
> would mean knowing NOT to restore index01.dbf... Only I or an
> implausibly fiendish and clever bit of coding on Oracle's part can
> make that call, I would have thought.


No doubt.

But the simplistic approach would likely be 'bring it back from the backup'.
And in this day and age, simplistic seems to please those who have learned
to point 'n click to oblivion. After all, why troubleshoot when you can
reboot? (http://www.google.com/search?q=air+traffic+shutdown)

>>However recovering database, in all the scenarios possible, is not easy.
>>
>> Then again, I wonder ... with flashback database ???

>
> You still have to mind-read your way to knowing what point to
> flashback to.


Recover to current and then flashback manually, if desired? Advantage -
it's recovered and ready to flashback by the time you get back from lunch.

>
> Whether Oracle is actually capable of automating anything in this
> subject area or not is really not the issue, however. The real issue
> is: if it can, it probably shouldn't!!


No argument there.

/Hans
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 01:21 AM.


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

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 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603