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

Corrected spool file name same as db name #665

Merged
merged 5 commits into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

- name: Copy the latest backup control file handle details to the runner
fetch:
src: /tmp/{{ ORACLE_DB_REFRESH_FILE }}
dest: "{{ lookup('env','GITHUB_WORKSPACE') | default('/tmp', true) }}/{{ ORACLE_DB_REFRESH_FILE }}"
src: "/tmp/{{ ORACLE_DB_REFRESH_DB_NAME }}_control.txt"
dest: "{{ lookup('env','GITHUB_WORKSPACE') | default('/tmp', true) }}/{{ ORACLE_DB_REFRESH_DB_NAME }}_control.txt"
flat: yes
fail_on_missing: yes

Expand All @@ -34,5 +34,5 @@
path: "{{ item }}"
state: absent
loop:
- "/tmp/get_latest_backup_control_file.sql"
- "/tmp/{{ ORACLE_DB_REFRESH_FILE }}"
- "/tmp/{{ ORACLE_DB_REFRESH_DB_NAME }}_control.txt"
- "/tmp/{{ ORACLE_DB_REFRESH_DB_NAME }}"
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set head off echo off feedback off
spool /tmp/{{ ORACLE_DB_REFRESH_FILE }}
spool /tmp/{{ ORACLE_DB_REFRESH_DB_NAME }}_control.txt
with controlfile_details as
(
select db_key, max(stamp) stamp from rcvcatowner.rc_backup_controlfile
Expand Down
1 change: 0 additions & 1 deletion ansible/roles/oracle-db-refresh/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
---
ORACLE_DB_REFRESH_DB_NAME: ""
ORACLE_DB_REFRESH_FILE: "latest_backup_control_file.txt"
Loading