Skip to content

Commit

Permalink
Updated backup script to use 2 channels when number of cpu's are less…
Browse files Browse the repository at this point in the history
… than 5 to reduce cpu usage during level 0 backup
  • Loading branch information
Sandhya1874 committed Mar 12, 2024
1 parent 02b3b16 commit ae5b3ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ansible/roles/oracle-db-backup/templates/rman_backup.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,7 @@ build_rman_command_file () {
X=$(sqlplus -s "/ as sysdba" <<EOF
whenever sqlerror exit 1
set feedback off heading off verify off echo off
select 'CPU_COUNT="'||value||'"' from $V_PARAMETER
where name = 'cpu_count';
select 'CPU_COUNT='|| case when value < 5 then 2 else to_number(value) end from $V_PARAMETER where name = 'cpu_count';
exit
EOF
)
Expand Down

0 comments on commit ae5b3ad

Please sign in to comment.