|
|
937446 |
From f84cdaa6ecf0febb6d33733bfdb30f3d41f615e1 Mon Sep 17 00:00:00 2001
|
|
|
937446 |
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
|
|
|
937446 |
Date: Mon, 29 Aug 2016 16:54:30 +0200
|
|
|
937446 |
Subject: [PATCH] oracle: fix issue with C## in monprofile
|
|
|
937446 |
|
|
|
937446 |
---
|
|
|
937446 |
heartbeat/oracle | 8 ++++----
|
|
|
937446 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
937446 |
|
|
|
937446 |
diff --git a/heartbeat/oracle b/heartbeat/oracle
|
|
|
937446 |
index e8e6148..da322a7 100755
|
|
|
937446 |
--- a/heartbeat/oracle
|
|
|
937446 |
+++ b/heartbeat/oracle
|
|
|
937446 |
@@ -371,7 +371,7 @@ show_mon_profile() {
|
|
|
937446 |
}
|
|
|
937446 |
mk_mon_profile() {
|
|
|
937446 |
cat<
|
|
|
937446 |
-create profile $MONPROFILE limit FAILED_LOGIN_ATTEMPTS UNLIMITED PASSWORD_LIFE_TIME UNLIMITED;
|
|
|
937446 |
+create profile "$MONPROFILE" limit FAILED_LOGIN_ATTEMPTS UNLIMITED PASSWORD_LIFE_TIME UNLIMITED;
|
|
|
937446 |
EOF
|
|
|
937446 |
}
|
|
|
937446 |
show_mon_user() {
|
|
|
937446 |
@@ -379,7 +379,7 @@ show_mon_user() {
|
|
|
937446 |
}
|
|
|
937446 |
mk_mon_user() {
|
|
|
937446 |
cat<
|
|
|
937446 |
-create user $MONUSR identified by "$MONPWD" profile $MONPROFILE;
|
|
|
937446 |
+create user $MONUSR identified by "$MONPWD" profile "$MONPROFILE";
|
|
|
937446 |
grant create session to $MONUSR;
|
|
|
937446 |
grant select on v_\$instance to $MONUSR;
|
|
|
937446 |
EOF
|
|
|
937446 |
@@ -388,7 +388,7 @@ show_mon_user_profile() {
|
|
|
937446 |
echo "select PROFILE from dba_users where USERNAME='$MONUSR';"
|
|
|
937446 |
}
|
|
|
937446 |
set_mon_user_profile() {
|
|
|
937446 |
- echo "alter user $MONUSR profile $MONPROFILE;"
|
|
|
937446 |
+ echo "alter user $MONUSR profile '$MONPROFILE';"
|
|
|
937446 |
}
|
|
|
937446 |
reset_mon_user_password() {
|
|
|
937446 |
echo "alter user $MONUSR identified by $MONPWD;"
|
|
|
937446 |
@@ -758,7 +758,7 @@ MONPWD=${OCF_RESKEY_monpassword:-$OCF_RESKEY_monpassword_default}
|
|
|
937446 |
MONPROFILE=${OCF_RESKEY_monprofile:-$OCF_RESKEY_monprofile_default}
|
|
|
937446 |
|
|
|
937446 |
MONUSR=$(echo $MONUSR | awk '{print toupper($0)}')
|
|
|
937446 |
-MONPROFILE=$(echo $MONPROFILE | awk '{print toupper($0)}')
|
|
|
937446 |
+MONPROFILE=$(echo "$MONPROFILE" | awk '{print toupper($0)}')
|
|
|
937446 |
OCF_REQUIRED_PARAMS="sid"
|
|
|
937446 |
OCF_REQUIRED_BINARIES="sqlplus"
|
|
|
937446 |
ocf_rarun $*
|