Skip to content

Commit

Permalink
Merge pull request #275 from Rendanic/prlistener
Browse files Browse the repository at this point in the history
oradb_manage_db: Bugfix listener.ora for multiple Instances on 1 host
  • Loading branch information
Rendanic authored Sep 26, 2022
2 parents b88fc4e + 58426a5 commit cf3d93f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
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

0 comments on commit cf3d93f

Please sign in to comment.