File 0001-High-oracle-Fix-alter-user-syntax-for-set_mon_user_p.patch of Package resource-agents.10310

From c3a3936d409b37f90976d473587cd6cfa3e4c36c Mon Sep 17 00:00:00 2001
From: Giuseppe Mancuso <peppo.work@gmail.com>
Date: Thu, 7 Dec 2017 17:34:21 +0100
Subject: [PATCH] High: oracle: Fix alter user syntax for set_mon_user_profile
 (bsc#1089279)

after modify users on oracle, the alter user not works.
This is the error:
 ERROR: sqlplus output: alter user MONRHCS profile 'OCFMONPROFILE'#012*#012ERRORE alla riga 1:#012ORA-00931: identificativo mancante( DEFAULT )
---
 heartbeat/oracle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/heartbeat/oracle b/heartbeat/oracle
index 67e43859..b27150f3 100755
--- a/heartbeat/oracle
+++ b/heartbeat/oracle
@@ -388,7 +388,7 @@ show_mon_user_profile() {
 	echo "select PROFILE from dba_users where USERNAME='$MONUSR';"
 }
 set_mon_user_profile() {
-	echo "alter user "$MONUSR" profile '$MONPROFILE';"
+	echo "alter user "$MONUSR" profile "$MONPROFILE";"
 }
 reset_mon_user_password() {
 	echo "alter user "$MONUSR" identified by "$MONPWD";"
-- 
2.16.2

openSUSE Build Service is sponsored by