21 lines
821 B
Plaintext
Executable File
21 lines
821 B
Plaintext
Executable File
# designed to be called from frontrunner script
|
|
script_folder=$(dirname "${0}")
|
|
"${script_folder}"/check_conf_file.sh || exit 1
|
|
source config/asc.conf || exit 1
|
|
NLS_LANG=.AL32UTF8
|
|
export NLS_LANG
|
|
|
|
if which -s sql; then
|
|
sql_cmd=sql
|
|
else
|
|
echo WARNING: could not find SQLcl \(sql\). Falling back to sqlplus
|
|
sql_cmd=sqlplus
|
|
fi
|
|
|
|
if [ -z "${app_alias}" ]; then
|
|
#call install_apex with an empty app_alias string (will ask for user input otherwise)
|
|
${sql_cmd} "${username}"/"${password}"@"${database_connection}" @"${script_folder}"/install_apex.sql "${apexappid}" "${workspace_name}" "${parsing_schema}" '' || exit 1
|
|
else
|
|
${sql_cmd} "${username}"/"${password}"@"${database_connection}" @"${script_folder}"/install_apex.sql "${apexappid}" "${workspace_name}" "${parsing_schema}" "${app_alias}" || exit 1
|
|
fi
|