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

oradb_manage_db: Bugfix listener.ora for multiple Instances on 1 host #275

Merged
merged 1 commit into from
Sep 26, 2022
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions changelogs/fragments/274-listener_details.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
bugfixes:
- "oradb_manage_db: Bugfix listener.ora for multiple Instances on 1 host (#275)"
6 changes: 3 additions & 3 deletions roles/oradb_manage_db/templates/listener_details.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
{%- endif %}

{# config_sid_list is used as a helper. jinja2 doesn't allow the exposing of variables from inside a loop to outside before version 2.10! #}
{%- set config_sid_list = 0 %}
{%- set config_sid_list = namespace(created = False) %}
{# The following loop is executed only once for the header 'SID_LIST_... #}
{%- for testsid in oracle_databases if testsid.listener_name is defined and testsid.listener_name == lsnrinst.listener_name and config_sid_list == 0 %}
{%- set config_sid_list = 1 %}
{%- for testsid in oracle_databases if testsid.listener_name is defined and testsid.listener_name == lsnrinst.listener_name and not config_sid_list.created%}
{%- set config_sid_list.created = True -%}

SID_LIST_{{ lsnrinst.listener_name }} =
(SID_LIST =
Expand Down