Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:Update
resource-agents.3500
0005-oracle-fix-issue-with-C-in-monprofile.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0005-oracle-fix-issue-with-C-in-monprofile.patch of Package resource-agents.3500
From 9f3222fab720505fbcbf4354837810aa7ba10c11 Mon Sep 17 00:00:00 2001 From: Oyvind Albrigtsen <oalbrigt@redhat.com> Date: Mon, 29 Aug 2016 16:54:30 +0200 Subject: [PATCH 05/12] oracle: fix issue with C## in monprofile --- heartbeat/oracle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/heartbeat/oracle b/heartbeat/oracle index e8e6148..da322a7 100755 --- a/heartbeat/oracle +++ b/heartbeat/oracle @@ -371,7 +371,7 @@ show_mon_profile() { } mk_mon_profile() { cat<<EOF -create profile $MONPROFILE limit FAILED_LOGIN_ATTEMPTS UNLIMITED PASSWORD_LIFE_TIME UNLIMITED; +create profile "$MONPROFILE" limit FAILED_LOGIN_ATTEMPTS UNLIMITED PASSWORD_LIFE_TIME UNLIMITED; EOF } show_mon_user() { @@ -379,7 +379,7 @@ show_mon_user() { } mk_mon_user() { cat<<EOF -create user $MONUSR identified by "$MONPWD" profile $MONPROFILE; +create user $MONUSR identified by "$MONPWD" profile "$MONPROFILE"; grant create session to $MONUSR; grant select on v_\$instance to $MONUSR; EOF @@ -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;" @@ -758,7 +758,7 @@ MONPWD=${OCF_RESKEY_monpassword:-$OCF_RESKEY_monpassword_default} MONPROFILE=${OCF_RESKEY_monprofile:-$OCF_RESKEY_monprofile_default} MONUSR=$(echo $MONUSR | awk '{print toupper($0)}') -MONPROFILE=$(echo $MONPROFILE | awk '{print toupper($0)}') +MONPROFILE=$(echo "$MONPROFILE" | awk '{print toupper($0)}') OCF_REQUIRED_PARAMS="sid" OCF_REQUIRED_BINARIES="sqlplus" ocf_rarun $* -- 2.10.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor