mirror of
https://github.com/hoshikawa2/compass_backoffice.git
synced 2026-07-09 13:54:20 +00:00
first commit
This commit is contained in:
13
sh_original_develop/run_export.sh
Normal file
13
sh_original_develop/run_export.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
ORACLE_HOME=/opt/oracle/instantclient_21_9
|
||||
export PATH=$ORACLE_HOME:$PATH LD_LIBRARY_PATH=$ORACLE_HOME
|
||||
|
||||
sqlplus -s admin/<sua_senha>@<SEU_ADW_SERVICE> @export_data_pump.sql
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Export falhou em $(date)"
|
||||
exit 1
|
||||
else
|
||||
echo "Export concluído com sucesso em $(date)"
|
||||
fi
|
||||
Reference in New Issue
Block a user