![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have couple of instances running on Linux (9iRel2), now I would like to do an online backup with RMAN to a disk and schedule it to happen every night. I wonder if you have a sample shell script to do this and could you post it here. TIA Kalle HI |
#3
| |||
| |||
|
|
Kalle wrote: Hi, I have couple of instances running on Linux (9iRel2), now I would like to do an online backup with RMAN to a disk and schedule it to happen every night. I wonder if you have a sample shell script to do this and could you post it here. TIA Kalle HI This is CATALOG version... Best regards -- www.konsultancIT.pl Oracle&MS-SQL consulting |
|
run { sql "alter system archive log current"; allocate channel ch1 type disk; backup full format '/oracle/backup_rman/bckF_%s_%p_%d_%u' (database include current controlfile); sql "alter system archive log current"; backup format '/oracle/backup_rman/bckA_%s_%p_%d_%u' (archivelog all delete input); } |
#4
| |||
| |||
|
|
And, since this is 9i RMAN, Oracle is recommending running without a catalog database these days, and hence the elaborate script you have is a bit redundant. |
#5
| |||
| |||
|
|
"konsultant_1 - konsultancIT.pl" <konsultant_1 (AT) konsultancIT (DOT) pl> wrote in message news:3EF7EF86.1040605 (AT) konsultancIT (DOT) pl... Kalle wrote: Hi, I have couple of instances running on Linux (9iRel2), now I would like to do an online backup with RMAN to a disk and schedule it to happen every night. I wonder if you have a sample shell script to do this and could you post it here. TIA Kalle HI This is CATALOG version... Best regards -- www.konsultancIT.pl Oracle&MS-SQL consulting -------------------------------------------------------------------------- -- ---- run { sql "alter system archive log current"; allocate channel ch1 type disk; backup full format '/oracle/backup_rman/bckF_%s_%p_%d_%u' (database include current controlfile); sql "alter system archive log current"; backup format '/oracle/backup_rman/bckA_%s_%p_%d_%u' (archivelog all delete input); } It's also a very out of date version. You don't need either of the 'alter system archive log current' lines, because 9i RMAN throws one in for you automatically before beginning the backup of archivelogs. You also don't need the 'include current controlfile' line, because in 9i RMAN, any time you backup something that includes the SYSTEM datafile, RMAN throws the controlfile into the backup set automatically. And, since this is 9i RMAN, Oracle is recommending running without a catalog database these days, and hence the elaborate script you have is a bit redundant. To the original poster: all you need, given that you have 9i Release 2, is: backup database; For scheduling, try cron, dbms_job or Enterprise Manager. ;-o |
#6
| |||
| |||
|
| It's also a very out of date version. You don't need either of the 'alter system archive log current' lines, because 9i RMAN throws one in for you automatically before beginning the backup of archivelogs. You also don't need the 'include current controlfile' line, because in 9i RMAN, any time you backup something that includes the SYSTEM datafile, RMAN throws the controlfile into the backup set automatically. And, since this is 9i RMAN, Oracle is recommending running without a catalog database these days, and hence the elaborate script you have is a bit redundant. To the original poster: all you need, given that you have 9i Release 2, is: backup database; For scheduling, try cron, dbms_job or Enterprise Manager. ;-o Hi, |
#7
| |||
| |||
|
|
For scheduling, try cron, dbms_job or Enterprise Manager. I always thought dbms_job can only schedule ps/sql stuff? |
#8
| |||
| |||
|
|
This is absolute nonsense. George Barbour. |
#9
| |||
| |||
|
|
And, since this is 9i RMAN, Oracle is recommending running without a catalog database these days, and hence the elaborate script you have is a bit redundant. Who is recommending to run without a Recovery Catalog in 9i? |
|
What did 9i introduce that does away with the benefits of a Recovery Catalog? |
|
Do you have docs to back this up? |
#10
| |||
| |||
|
|
"In general, Oracle Corporation advises using a catalog when you manage multiple databases." Which can also be read to mean 'we don't advise it for a single database'. |
|
And then, later, explicity they say: "Hence, unless you manage a network of databases, you may choose to avoid the overhead and use the control file as the exclusive repository of metadata" |
![]() |
| Thread Tools | |
| Display Modes | |
| |