Skip to content

Commit ddb1f1e

Browse files
authored
Merge pull request #246 from Rendanic/patch1
oradb-rman: multiple fixes
2 parents be6c514 + 64f6b41 commit ddb1f1e

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

roles/oradb-rman/README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,16 @@ The following variables are global. They are not part of oracle_databases!
136136

137137
This parameter must be defined. Otherwise the assert of the role will fail, because there is no usable default for this directory.
138138

139+
* rman_fra_backupdir
140+
141+
The target directory when you use the templates to backup the FRA to another disk (usually nfs).
142+
143+
* rmanautofs and rmanautofsmount
144+
145+
When `rmanautofs: true`, then autofs is implemented to mount `rmanautofsmount` similar to "/net".
146+
Usually, you may then specify the nfs server and the corresponding export in `rman_channel_disk`.
147+
148+
139149
## Howtos
140150
### How to configure the RMAN scripts?
141151
The role copies the templatefiles from role/oradb-rman/templates to $ORACLE_BASE/admin/<DB_NAME>/rman. The name in the list defines the name of the template with .j2 as extension.
@@ -145,6 +155,6 @@ The role copies the templatefiles from role/oradb-rman/templates to $ORACLE_BASE
145155
The dictionary elements name, disabled, day, weekday, hour, minute are mandatory. The creation of cron only starts when every element is defined.
146156

147157
### How to use custom RMAN scripts?
148-
Copy the script into the template directory `role/oradb-rman/templates` and add a `- name: <filename>` at `rman_jobs`. The filename must end with `.rman.j2` regardless of Junja2 in the file. You could use your own variables in the custom files and add entries to `rman_jobs`. They will be added as item.1.<dictionaryelement> to the template.
158+
Copy the script into the template directory `role/oradb-rman/templates` and add a `- name: <filename>` at `rman_jobs`. The filename must end with `.rman.j2` regardless of Jinja2 in the file. You could use your own variables in the custom files and add entries to `rman_jobs`. They will be added as item.1.<dictionaryelement> to the template.
149159
Please do not edit existing files. They could be changed in future releases of oradb-rman.
150160

roles/oradb-rman/templates/archivelog_fra_disk.rman.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
run
88
{
99
backup archivelog all not backed up 1 times filesperset 50;
10-
backup DB_RECOVERY_FILE_DEST TO DESTINATION {{ rman_fra_backupdir }} not backed up 1 times;
10+
backup DB_RECOVERY_FILE_DEST TO DESTINATION '{{ rman_fra_backupdir }}' not backed up 1 times;
1111
}

roles/oradb-rman/templates/online_level0_fra_disk.rman.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ run
88
{
99
backup check logical incremental level 0 database filesperset 1;
1010
backup archivelog all not backed up 1 times filesperset 50;
11-
backup DB_RECOVERY_FILE_DEST TO DESTINATION {{ rman_fra_backupdir }} not backed up 1 times;
11+
backup DB_RECOVERY_FILE_DEST TO DESTINATION '{{ rman_fra_backupdir }}' not backed up 1 times;
1212
delete noprompt obsolete;
1313
}

roles/oradb-rman/templates/online_level1_fra_disk.rman.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ run
88
{
99
backup check logical incremental level 1 database filesperset 1;
1010
backup archivelog all not backed up 1 times filesperset 50;
11-
backup DB_RECOVERY_FILE_DEST TO DESTINATION {{ rman_fra_backupdir }} not backed up 1 times;
11+
backup DB_RECOVERY_FILE_DEST TO DESTINATION '{{ rman_fra_backupdir }}' not backed up 1 times;
1212
delete noprompt obsolete;
1313
}

roles/oradb-rman/templates/parameter.rman.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
CONFIGURE RETENTION POLICY TO {{rman_retention_policy}};
88
CONFIGURE CONTROLFILE AUTOBACKUP ON;
99
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO {{rman_controlfile_autobackup_disk}};
10-
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO COMPRESSED BACKUPSET;
10+
CONFIGURE DEVICE TYPE DISK {{rman_device_type_disk}};
1111
CONFIGURE CHANNEL DEVICE TYPE DISK {{ rman_channel_disk }};

0 commit comments

Comments
 (0)