Skip to content

Commit 80c5b28

Browse files
committed
Merge branch 'release/2.0.1'
2 parents f0e74b2 + 1ceeac0 commit 80c5b28

File tree

2 files changed

+46
-43
lines changed

2 files changed

+46
-43
lines changed

Changelog.txt

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,89 @@
11
Changelog of Pythia:
22

3+
Version 2.0.1
4+
- Fixed Issue #9: Tempfiles will now be dropped / deleted, when Target DB already exists and you specify to override the Target DB
5+
36
Version 2.0.0
47
- Pythia is now OpenSource. All former Changes are no longer part of this repository. Changelog history is only for a better overview still included
58

69
Version 1.5.2
7-
- Fixed (reopened) Issue #97: The psmisc Package is now also a required Package for SLES OS
8-
- Fixed Issue #142: acl Package is now a prerequisite Package for all Linux OS
9-
- Fixed Issue #141: Maximum Datafiles are now set to 500 in the DBCA Templates
10-
- Fixed Issue #124: You can now specify an additional directory in rdbms_dict, that will be created / permission set when installing an RDBMS
11-
- Fixed Issue #116: For SLES Systems and the NMDA Module RPM Installation, the Zypper Module will be used without making a gpg check
10+
- Fixed (reopened) Issue #097: The psmisc Package is now also a required Package for SLES OS
11+
- Fixed Issue #0142: acl Package is now a prerequisite Package for all Linux OS
12+
- Fixed Issue #0141: Maximum Datafiles are now set to 500 in the DBCA Templates
13+
- Fixed Issue #0124: You can now specify an additional directory in rdbms_dict, that will be created / permission set when installing an RDBMS
14+
- Fixed Issue #0116: For SLES Systems and the NMDA Module RPM Installation, the Zypper Module will be used without making a gpg check
1215

1316
Version 1.5.1
14-
- Fixed Issue #138: Fixed Archivelog Backup Template during duplicate
17+
- Fixed Issue #0138: Fixed Archivelog Backup Template during duplicate
1518

1619
Version 1.5.0
17-
- Fixed Issue #125: Backup of Archivelogs will now be altered before running a duplicate. So Archivelogs will be preserved during duplicate and be restored after a finished Duplicate
18-
- Fixed Issue #132: Listener Names will now be checked before Duplicate.
19-
- Fixed Issue #131: RMAN Duplicate will now run in "no_log" Mode. So no passwords will be visible
20-
- Fixed Issue #133: Duplicate now runs inside a block and copies back the backed up rman_arc.par file always
21-
- Fixed Issue #134: RMAN Duplicate will now run in async and poll mode (background) to prevent SSH Timeouts
22-
- New Feature #123: You can now execute a SQL Script as a Duplicate Post-processing task by specifiying the duplicate_run_post_script Variable
23-
- New Feature #135: A List of User Passwords can now be preserved during duplicate and will be set after duplication
20+
- Fixed Issue #0125: Backup of Archivelogs will now be altered before running a duplicate. So Archivelogs will be preserved during duplicate and be restored after a finished Duplicate
21+
- Fixed Issue #0132: Listener Names will now be checked before Duplicate.
22+
- Fixed Issue #0131: RMAN Duplicate will now run in "no_log" Mode. So no passwords will be visible
23+
- Fixed Issue #0133: Duplicate now runs inside a block and copies back the backed up rman_arc.par file always
24+
- Fixed Issue #0134: RMAN Duplicate will now run in async and poll mode (background) to prevent SSH Timeouts
25+
- New Feature #0123: You can now execute a SQL Script as a Duplicate Post-processing task by specifiying the duplicate_run_post_script Variable
26+
- New Feature #0135: A List of User Passwords can now be preserved during duplicate and will be set after duplication
2427

2528
Version 1.4.3
26-
- Fixed Issue #129: Patch Archive and Gather Databases running are now running as oracle_user.
29+
- Fixed Issue #0129: Patch Archive and Gather Databases running are now running as oracle_user.
2730

2831
Version 1.4.2
2932
- New Feature: Duplicate will now handle more complex situations when the target database already exists
3033
- New Feature: Duplicate now uses "using backupset" for RMAN duplicate which will enable "Null Block Compression"
3134
- New Feature: Duplicate now supports preserving existing SPFILE / Database on Target System
32-
- Fixed Issue #121: == true and == false usages have been replaced
33-
- Fixed Issue #122: Names are now specified for all set_facts and debug tasks
34-
- Fixed Issue #95: It is now checked if a Target Database already exists. If you don't specify the duplicate_remove_target=true Variable, Pythia will fail
35+
- Fixed Issue #0121: == true and == false usages have been replaced
36+
- Fixed Issue #0122: Names are now specified for all set_facts and debug tasks
37+
- Fixed Issue #095: It is now checked if a Target Database already exists. If you don't specify the duplicate_remove_target=true Variable, Pythia will fail
3538

3639
Version 1.4.1
37-
- Fixed Issue #113: sqlscriptoutput TAG has been removed from README.md
40+
- Fixed Issue #0113: sqlscriptoutput TAG has been removed from README.md
3841

3942
Version 1.4
4043
- New Feature: Pythia can now Upgrade Oracle Databases using the Autoupgrade Mechanism
4144
- New Feature: Added Support for RHEL8, OEL8 and CentOS8 (beware, CentOS is not officially certified for Oracle Database)
42-
- Changed #98: The Tag sqlscriptoutput has been removed. Use the Variable sqlscriptoutput True / False instead
43-
- Fixed Issue #111: Wrong Package Name for SLES12 fixed
45+
- Changed #098: The Tag sqlscriptoutput has been removed. Use the Variable sqlscriptoutput True / False instead
46+
- Fixed Issue #0111: Wrong Package Name for SLES12 fixed
4447

4548
Version 1.3.4
46-
- Fixed Issue #99: UID and GID of Oracle OS User and DBA Group are now 1500 instead of 500
49+
- Fixed Issue #099: UID and GID of Oracle OS User and DBA Group are now 1500 instead of 500
4750

4851
Version 1.3.3
49-
- Fixed Issue #93: When duplicating, the Target Listener will be configured and started if not already configured or started
52+
- Fixed Issue #093: When duplicating, the Target Listener will be configured and started if not already configured or started
5053

5154
Version 1.3.2
52-
- Fixed Issue #87: .bash_profile is now created if not existant
53-
- Fixed Issue #88: Grub Configuration is now divided into SLES and RHEL specific Task
55+
- Fixed Issue #087: .bash_profile is now created if not existant
56+
- Fixed Issue #088: Grub Configuration is now divided into SLES and RHEL specific Task
5457

5558
Version 1.3.1
56-
- Fixed Issue #82: Diagnostic Destination is now created before Database Creation
59+
- Fixed Issue #082: Diagnostic Destination is now created before Database Creation
5760

5861
Version 1.3
5962
- New Feature: Oracle Client Software can now be installed on Linux Systems with using the "client" tag
6063
- New Feature: Duplicate from Active Database is now possible with using the "duplicate" tag
61-
- Fixed Issue #78: sysctl_stable is not respected correctly in prerequisite.yml
64+
- Fixed Issue #078: sysctl_stable is not respected correctly in prerequisite.yml
6265

6366
Version 1.2.3
64-
- Fixed Issue #73: ora_set.sh now displays Oracle Version and Release correctly for Oracle 18 onwards
67+
- Fixed Issue #073: ora_set.sh now displays Oracle Version and Release correctly for Oracle 18 onwards
6568

6669
Version 1.2.2
67-
- Fixed Issue #69: Listener and Tnsnames Configuration will now be appended when there is already an existing listener on the Oracle Home
70+
- Fixed Issue #069: Listener and Tnsnames Configuration will now be appended when there is already an existing listener on the Oracle Home
6871
- New Feature: Listener Logging Configuration is now dynamic. You can now Specify Variable listener_logging to either ON of OFF (Default OFF)
6972

7073
Version 1.2.1
71-
- Fixed Issue #59: You can now specify autoextend=true/false (Default false) when calling a playbook. This controls if datafiles will be autoextensible or not
72-
- Fixed Issue #57: Default sysctl.conf Settings will now be deleted
74+
- Fixed Issue #059: You can now specify autoextend=true/false (Default false) when calling a playbook. This controls if datafiles will be autoextensible or not
75+
- Fixed Issue #057: Default sysctl.conf Settings will now be deleted
7376
- New Feature: A converttohugepage Tag has been implemented to convert a non Hugepage configured System into a Hugepage configured System
7477
- New Feature: A prepare Tag has been implemented to prepare a target System for an Oracle Installation later on. (User / Group, Kernel Parameters, Hugepages, Shell Scripts)
7578

7679
Version 1.2
7780
- New Feature: SGA and PGA can now be dynamically set for DB Creation. sga_max_size and pga_aggregate_target can be set as extra Variable when calling the Playbook
7881
- New Feature: Hugepages can now be configured by Pythia using the hugepage tag.
7982
- New Feature: DBCA Logfile location is now shown before running DBCA
80-
- Fixed Issue #54: Done a complete Code Review. Added dozens of Comments, Restructure Prerequisite and Precheck Tasks
83+
- Fixed Issue #054: Done a complete Code Review. Added dozens of Comments, Restructure Prerequisite and Precheck Tasks
8184

8285
Version 1.1.1
83-
- Fixed Issue #44: DBCA does not honor the Controlfile Initialization Parameter unless you call dbca with -honorControlFileInitParam
86+
- Fixed Issue #044: DBCA does not honor the Controlfile Initialization Parameter unless you call dbca with -honorControlFileInitParam
8487

8588
Version 1.1
8689
- New Feature: SQL Scripts can be executed on a remote Oracle Database. Files to be executed can be located under local_sql_stage_directory path
@@ -92,17 +95,17 @@ Version 1.1
9295
- New Feature: You can setup Autostart for a Database you specify under the Linux System.
9396

9497
Version 1.0.2
95-
- Fixed Issue #5: The RDBMS Software and Patch Archives will now be copied to the Remote Staging Area before uncompressing. Thos solves, that user temp directories or /var/tmp will become full.
96-
- Fixed Issue #12: Overloaded the Variable space_needed_gb from rdbms_dict.yml into main.yml. When calling the Playbook with the variable set, this value will be checked for free space available rather than the value in rdbms_dict.yml
97-
- Fixed Issue #30: Remote Stage Directory will now be created also when only tagging Patch or Patchonly
98-
- Fixed Issue #48: Wrong Package Names for SLES12 and SLES15 Systems
98+
- Fixed Issue #05: The RDBMS Software and Patch Archives will now be copied to the Remote Staging Area before uncompressing. Thos solves, that user temp directories or /var/tmp will become full.
99+
- Fixed Issue #012: Overloaded the Variable space_needed_gb from rdbms_dict.yml into main.yml. When calling the Playbook with the variable set, this value will be checked for free space available rather than the value in rdbms_dict.yml
100+
- Fixed Issue #030: Remote Stage Directory will now be created also when only tagging Patch or Patchonly
101+
- Fixed Issue #048: Wrong Package Names for SLES12 and SLES15 Systems
99102

100103
Version 1.0.1
101-
- Fixed Issue #3, #4: Tags in prereq_packages included. Include Filename Changed
102-
- Fixed Issue #6: Check if Oracle OS User and Group exist
103-
- Fixed Issue #9: Value of needed Free Space when installing a RDBMS is now configurable in the rdbms_dict.yml
104-
- Fixed Issue #11: If the files 97* under sysctl.d and limits.d exist, they will now not be overwritten. Also Owner and Group are now setup for security.d template file
105-
- Fixed Issue #10 #15: Split RDBMS Installation and Prechecks into separate Task Files to clean up the main.yml Files
104+
- Fixed Issue #03, #04: Tags in prereq_packages included. Include Filename Changed
105+
- Fixed Issue #06: Check if Oracle OS User and Group exist
106+
- Fixed Issue #09: Value of needed Free Space when installing a RDBMS is now configurable in the rdbms_dict.yml
107+
- Fixed Issue #011: If the files 97* under sysctl.d and limits.d exist, they will now not be overwritten. Also Owner and Group are now setup for security.d template file
108+
- Fixed Issue #010 #015: Split RDBMS Installation and Prechecks into separate Task Files to clean up the main.yml Files
106109

107110
Version 1.0
108111
- Initial Version

roles/pythia/tasks/duplicate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,10 @@
298298
tags:
299299
- duplicate
300300

301-
- name: Shutdown running Target Database
301+
- name: Dropping Target Database {{ duplicate_target_sid }}
302302
become: yes
303303
become_user: "{{ oracle_user }}"
304-
shell: "echo -e \"shutdown abort;\" | {{ duplicate_source_home.stdout }}/bin/sqlplus -s / as sysdba"
304+
shell: "echo -e \"shutdown abort; \\n startup mount exclusive restrict; \\n drop database;\" | {{ duplicate_source_home.stdout }}/bin/sqlplus -s / as sysdba"
305305
environment:
306306
ORACLE_HOME: "{{ duplicate_source_home.stdout }}"
307307
ORACLE_SID: "{{ duplicate_target_sid }}"

0 commit comments

Comments
 (0)