-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix for missing Listener autostart in systemd
The old dotprofile environment scripts were remove in 2022. They were replaced by ocenv but still nbeeded by manage_oracle_rdbms_procs.s for a mapping of listener to ORACLE_HOME. The dotprofiles are back again with ocenv as environment switcher.
- Loading branch information
Showing
5 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
bugfixes: | ||
- "oraswdb_install: shellchecker for manage_oracle_rdbms_procs.sh (oravirt#358)" | ||
- "Bugfix for missing Listener autostart in systemd (oravirt#358)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#jinja2: trim_blocks:True | ||
# {{ ansible_managed }} | ||
# | ||
. {{ oracle_user_home }}/dbenv/ocenv 2>&1 > /dev/null | ||
myoraenv {{ dbh.oracle_db_instance_name | ||
| default(dbh.oracle_db_unique_name) | ||
| default(dbh.oracle_db_name) }} 2>&1 > /dev/null | ||
|
||
{# Remove possible old LSNRNAME from environmet | ||
Maybe we cannot set it because it is not defined for this database... | ||
#} | ||
unset LSNRNAME | ||
{% if dbh.listener_name is defined %} | ||
LSNRNAME={{ dbh.listener_name }} | ||
export LSNRNAME | ||
{% endif %} | ||
|
||
{# create environemt variables when rman is configured in oracle_databases #} | ||
{% if dbh.rman_jobs is defined %} | ||
# setup some variables for oradb-rman | ||
export RMANTNS_ADMIN={{ rman_tns_admin | default(dbh.rman_tns_admin | default(oracle_base + '/rman/network/admin')) }} | ||
export RMANLOGDIR={{ rman_log_dir | default(dbh.rman_log_dir | default(oracle_base + '/rman/log/')) }} | ||
export RMANSCRIPTDIR={{ rman_script_dir | default(dbh.rman_script_dir | default(oracle_base + '/rman/script')) }} | ||
{% endif %} | ||
|
||
export PATH=${ORACLE_BASE}/bin:${PATH} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters