First Commit - Source Code from Reply

This commit is contained in:
vincenzofariello
2024-05-13 12:54:14 +02:00
parent 73e32a5020
commit a15aee1f08
11184 changed files with 1065913 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
#!/bin/ksh
###########################################################
# Progetto: Gateway MNP
# Script: refresh_DWH_AGCOM.sh
# Descrizione: Shell di refresh dei REPORT AGCOM per DBCGO
#
# PARAMETRO OPZIONALE
# data di riferimento dd/mm/YYYY (es: 01-01-2011)
###########################################################
#impostazione ambiente
export ORACLE_BASE=/oracle/app
export ORACLE_HOME=/oracle/app/product/920
export PATH=$PATH:$ORACLE_HOME/bin:.:$ORACLE_HOME/OPatch
export LIBPATH=/usr/lib:/lib:/oracle/app/product/920/lib32:/oracle/app/product/920/lib
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
export ORACLE_TERM=Xterm
cd /oracle/UTILITY/AGCOM
if [ $# -eq 0 ]
then
TIME=`echo $(date -u +%d/%m/%Y)`
else
TIME=$1
fi
echo "DATA:" ${TIME}
if [ $? -eq 0 ]
then
#ESECUZIONE SCRIPT
task=refresh_AGCOM_console
adesso=$(date)
#controllo se il task è già in esecuzione
#check_rc=`$THIS_PATH/is_RunningConsole $task $$`
#if [ $? -eq 0 ]
#then
echo '*******************************'
echo '**' $adesso '**' INIZIO REFRESH REPORT
$ORACLE_HOME/bin/sqlplus DWH/xxx@MNP @refresh_AGCOM.sql ${TIME} > refresh_AGCOM.log 2>&1 &
#wait
adesso=$(date)
echo '**' $adesso '**' FINE REFRESH REPORT AGCOM
#else
# echo " (WARNING) $(date) Esecuzione non avvenuta per presenza processo precedente : $task"
#fi
fi