Skip to content

Commit

Permalink
[patch] update run-dbtest-in-maxinst-pod.sh to fix schemaowner
Browse files Browse the repository at this point in the history
  • Loading branch information
brianzwh committed Aug 6, 2024
1 parent 13cd6ab commit 24f4e89
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/pd/download/DBTest/run-dbtest-in-maxinst-pod.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# curl -L -v -o run-dbtest-in-maxinst-pod.sh https://ibm-mas.github.io/mas-performance/pd/download/DBTest/run-dbtest-in-maxinst-pod.sh

cd /tmp

Expand All @@ -18,5 +19,12 @@ export DBUSERNAME="${value}"
IFS='=' read -r key value <<< $(cat /etc/database/operator/secret/maximo.properties |grep mxe.db.password=)
export DBPASSWORD="${value}"

export SQLQUERY="select * from maximo.maxattribute"
IFS='=' read -r key value <<< $(cat /etc/database/operator/secret/maximo.properties |grep mxe.db.schemaowner=)
export DBSCHEMAOWNER="${value}"
if [ -z "$DBSCHEMAOWNER" ]; then
export SQLQUERY="select * from maxattribute"
else
export SQLQUERY="select * from ${DBSCHEMAOWNER}.maxattribute"
fi

java -classpath .:/opt/IBM/SMP/maximo/tools/maximo/lib/* "${JAVA_TOOL_OPTIONS}" DBTest

0 comments on commit 24f4e89

Please sign in to comment.