Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to reduce the number of channels due to high cpu usage during… #690

Merged
merged 1 commit into from
Apr 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 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,14 +260,14 @@ 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='|| case when value < 5 then 2 else to_number(value) end from $V_PARAMETER where name = 'cpu_count';
select 'CPU_COUNT='|| value/2 from $V_PARAMETER where name = 'cpu_count';
exit
EOF
)

[ $? -ne 0 ] && error "Cannot determine cpu count"
eval $X
info "cpu count = $CPU_COUNT"
info "Channels used for backup = $CPU_COUNT"

if [ "$CATALOGMODE" = "Y" ]
then
Expand Down
Loading