Blame SOURCES/bz1328386-1-oracle-monprofile-container-databases.patch

937446
From 8ec7eb9fa6ccc242555eea7e3f0ebd7537799943 Mon Sep 17 00:00:00 2001
937446
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
937446
Date: Tue, 19 Apr 2016 14:27:39 +0200
937446
Subject: [PATCH] oracle: inform user that monprofile must start with C## for
937446
 container databases
937446
937446
---
937446
 heartbeat/oracle | 3 +++
937446
 1 file changed, 3 insertions(+)
937446
937446
diff --git a/heartbeat/oracle b/heartbeat/oracle
937446
index 5a8aca8..d68fa6e 100755
937446
--- a/heartbeat/oracle
937446
+++ b/heartbeat/oracle
937446
@@ -402,6 +402,9 @@ check_mon_profile() {
937446
 	output=`dbasql mk_mon_profile show_mon_profile`
937446
 	if echo "$output" | grep -iw "^$MONPROFILE" >/dev/null; then
937446
 		return 0
937446
+	elif echo "$output" | grep ORA-65140 >/dev/null 2>&1; then
937446
+		ocf_exit_reason "monprofile must start with C## for container databases"
937446
+		return $OCF_ERR_CONFIGURED
937446
 	else
937446
		ocf_log err "could not create $MONPROFILE oracle profile"
937446
 		ocf_log err "sqlplus output: $output"