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,75 @@
####CRONTAB NODO dbcesebep1
##minute (0-59), hour (0-23), day of the month (1-31), month of the year (1-12), day of the week (0-6 with 0=Sunday)
00 05 * * * /oracle/UTILITY/copia_crontab.ksh 2>&1 >> /dev/null
00,30 * * * * /oracle/UTILITY/stat/take_snapshot.sh 2>&1 >> /oracle/UTILITY/stat/take_snapshot.log
30 04,10 * * * /oracle/UTILITY/scodaNPTS_250607.ksh 2>&1 >> /oracle/UTILITY/scodaNPTS.log
##35 20 * * * /oracle/MNP_HOT_LINE2/sera.ksh 2>&1 >> /dev/null
############ COMMENTATO x MAIL DI CERASARO #######
##35 06 * * * /oracle/MNP_HOT_LINE2/mattina_mail.ksh 2>&1 >> /dev/null
################# STATISTICHE #####################################
00 02 * * 6 /oracle/UTILITY/STATISTICHE/mnp_stat_tot.ksh 2>&1 >> /dev/null
00 23 * * 2 /oracle/UTILITY/STATISTICHE/mnp_stat_tot.ksh 2>&1 >> /dev/null
#00 02 27 09 * /oracle/UTILITY/STATISTICHE/mnp_statTCR.ksh 2>&1 >> /dev/null
00 01 * * 0 /oracle/UTILITY/STATISTICHE/dbcgo_stat.ksh 2>&1 >> /dev/null
30 12 * * * /oracle/UTILITY/STATISTICHE/schema_DWH_stat.ksh 2>&1 >> /dev/null
########################################################################
# Supporto Esercizio DBA CRM - situazione tablespace giornaliera
30 07 * * * /oracle/UTILITY/cron_rep_nuovo.ksh 2>/dev/null 1>/dev/null
######################################################################
################# BACKUP ARCHIVE ###################################
10 04,18,22 * * 1-5 /oracle/bk_arch.sh
30 17 16 02 * /oracle/bk_arch.sh
#10 10,12,14,16,18,20 * * 6 /oracle/bk_arch.sh
#10 00,02,04,06,08,10,12,18 * * 0 /oracle/bk_arch.sh
######################################### SPLIT ###############################
#10 00,02,04,06,08,10,12,14,16,18,20,22 * * * /oracle/RMAN/presidiocr/cron_archive_DBCGO.sh
##########################################################################
00 05 * * * /oracle/UTILITY/copia_crontab.ksh 2>&1 >> /dev/null
##########################################################################
## lancio ogni 2 minuti
00,02,04,06,08,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * * /oracle/UTILITY/lancia_utenti_attivi.ksh 2>&1 >> /dev/null
##########################################################################
## CONTROLLO OPEN_CURSOR
# tracciamento ogni 2 minuti
##00,02,04,06,08,10,12,14,16,18,20,22,24,26,28,30,32,34,36,38,40,42,44,46,48,50,52,54,56,58 * * * * /oracle/UTILITY/lancia_cursori.ksh 2>&1 >/dev/null
##########################################################################
15 11 * * * /mnpapp/script/UTILITY/storicizzaMNPMASSIVA.ksh 2>&1 >> /dev/null
##########################################################################
##00 08 02 05 * /oracle/UTILITY/lancio_update_mnp_evasione.ksh
##########################################################################
#30 21 09 07 * /oracle/UTILITY/foto_circe/foto_circe.ksh 2>&1 >> /dev/null
#00 07 * * * /oracle/UTILITY/refresh_viste_DWH.ksh 2>&1 >> /dev/null
00 07 * * * /oracle/UTILITY/refresh_viste_DWH_SEQ.ksh 2>&1 >> /dev/null
###########################################################################
###########################################################################
############### PENALI 3gg CLONE DELLO SCRIPT SULLA MNPESEFEP1 ################
00 02 02 * * /oracle/UTILITY/PENALI/refresh_DWH_CALCOLO_SLA_PENALI_2GG.sh >> /oracle/UTILITY/PENALI/refresh_DWH_CALCOLO_SLA_PENALI_2GG.log
############### MANCATE AZIONI CLONE DELLO SCRIPT SULLA MNPESEFEP1 ################
#00 05 * * * /oracle/UTILITY/MANCATE_AZIONI/refresh_MNP_REPORT_MANCATE_AZIONI_RC.sh >> /oracle/UTILITY/MANCATE_AZIONI/refresh_MNP_REPORT_MANCATE_AZIONI_RC_cron.log
00 04 * * * /oracle/UTILITY/MANCATE_AZIONI/refresh_MNP_REPORT_MANCATE_AZIONI_RC.sh >> /oracle/UTILITY/MANCATE_AZIONI/refresh_MNP_REPORT_MANCATE_AZIONI_RC_cron.log
############### REFRESH REPORT MVNO ##############
00 02 03 * * /oracle/UTILITY/MVNO/refresh_DWH_CALCOLO_SLA_MVNO.sh >> /oracle/UTILITY/MVNO/refresh_DWH_CALCOLO_SLA_MVNO.log
############### REFRESH REPORT SLA_SE ##############
00 02 03 * * /oracle/UTILITY/SLA_SE/refresh_SLA_SE.sh >> /oracle/UTILITY/SLA_SE/refresh_SLA_SE_cron.log
############### REFRESH REPORT AGCOM ################
##00 2 1 * * /oracle/UTILITY/AGCOM/refresh_DWH_AGCOM.sh >> /oracle/UTILITY/AGCOM/refresh_DWH_AGCOM.log 2>&1
00 2 3 * * /oracle/UTILITY/AGCOM/refresh_DWH_AGCOM.sh >> /oracle/UTILITY/AGCOM/refresh_DWH_AGCOM.log 2>&1
24 18 11 01 * /oracle/UTILITY/AGCOM/refresh_DWH_AGCOM.sh >> /oracle/UTILITY/AGCOM/refresh_DWH_AGCOM.log 2>&1
############### REFRESH CALCOLO SIM ################
00 14 2 * * /oracle/UTILITY/CALCOLO_SIM/refresh_DWH_CALCOLO_SIM.sh >> /oracle/UTILITY/CALCOLO_SIM/refresh_DWH_CALCOLO_SIM.log 2>&1
### CALCOLO_GIORNALIERO_SLA_FRANCHIGIA
00 01 * * 1-5 /oracle/UTILITY/FRANCHIGIA/refresh_DWH_CALCOLO_SLA_FRANCHIGIA.sh >> /oracle/UTILITY/FRANCHIGIA/refresh_DWH_CALCOLO_SLA_FRANCHIGIA.log 2>&1
### CARICAMENTO XML DWH ###
10 00 * * * /oracle/UTILITY/CARICA_XML/CARICA_MNP_DWH_XML_IN.sh >> /oracle/UTILITY/CARICA_XML/CARICA_MNP_DWH_XML_IN.log 2>&1
30 00 * * * /oracle/UTILITY/CARICA_XML/CARICA_MNP_DW_XML_IN_OUT.sh >> /oracle/UTILITY/CARICA_XML/CARICA_MNP_DW_XML_IN_OUT.log 2>&1
### STORICIZZAZIONE DATI MNP ###
###### LANCIO Del Primo Sabato di GENNAIO ######
30 00 1-7 1 * [ `date +%a` = "Sat" ] /oracle/UTILITY/STORICIZZAZIONE/esegui_storicizzazione.sh >> /oracle/UTILITY/STORICIZZAZIONE/esegui_storicizzazione.log
###### LANCIO Del Primo Sabato di APRILE ######
30 00 1-7 4 * [ `date +%a` = "Sat" ] /oracle/UTILITY/STORICIZZAZIONE/esegui_storicizzazione.sh >> /oracle/UTILITY/STORICIZZAZIONE/esegui_storicizzazione.log
###### LANCIO Del Primo Sabato di LUGLIO ######
30 00 1-7 7 * [ `date +%a` = "Sat" ] /oracle/UTILITY/STORICIZZAZIONE/esegui_storicizzazione.sh >> /oracle/UTILITY/STORICIZZAZIONE/esegui_storicizzazione.log
###### LANCIO Del Primo Sabato di OTTOBRE ######
30 00 1-7 10 * [ `date +%a` = "Sat" ] /oracle/UTILITY/STORICIZZAZIONE/esegui_storicizzazione.sh >> /oracle/UTILITY/STORICIZZAZIONE/esegui_storicizzazione.log
### PARTIZIONAMENTO MNP ###
00 10 15 12 * /oracle/UTILITY/PARTIZIONAMENTO/crea_partizione.sh 'LOG_PART' >> /oracle/UTILITY/PARTIZIONAMENTO/crea_partizione.LOG

View File

@@ -0,0 +1,15 @@
set serveroutput on size 1000000
set timing on
-- lancio da Crontab (prende in automatico la sysdate))
exec DWH.AGCOM.RUNALLBYDATE;
-- lancio manuale : commentare l'esecuzione della RUNALLBYDATE
-- e scommentare la riga di lancio della RUNALL.
-- La procedura accetta come parametri:
-- &1 --> anno (yyyy)
-- &2 --> mese (mm)
-- exec DWH.AGCOM.RUNALL ('&1','&2');
exit

View File

@@ -0,0 +1,51 @@
#!/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/DWH@MNP @refresh_AGCOM.sql ${TIME} >> refresh_AGCOM.log 2>&1
adesso=$(date)
echo '**' $adesso '**' FINE REFRESH REPORT AGCOM
#else
# echo " (WARNING) $(date) Esecuzione non avvenuta per presenza processo precedente : $task"
#fi
fi

View File

@@ -0,0 +1,48 @@
#!/bin/ksh
###########################################################
# Progetto: Gateway MNP
# Script: refresh_DWH_CALCOLO_SIM.sh
#
#
# PARAMETRO
# data di riferimento dd/mm/YYYY (es: 01-04-2010)
# aggiornamento verrà lanciato sul mese precedente alla data di riferimento
###########################################################
###########################################################################
#
#
# CLONE DELLO SCRIPT refresh_DWH_CALCOLO_SIM.sh A CRONTAB DELLA
# MNPESEFEP1 TOLTO DA QUEST'ULTIMA IN QUANTO TERMINEREBBE IN TIMEOUT
#
#
###########################################################################
. /oracle/.profile
if [ $# -eq 0 ]
then
TIME=`echo $(date -u +%d/%m/%Y)`
else
TIME=$1
fi
echo "DATA:" ${TIME}
if [ $? -eq 0 ]
then
#ESECUZIONE SCRIPT
cd /oracle/UTILITY/CALCOLO_SIM
echo '*******************************'
echo '**' $adesso '**' INIZIO REFRESH VISTE SLA PER UPDATE NUMERO SIM
$ORACLE_HOME/bin/sqlplus -s DWH/DWH@MNP @refresh_DWH_CALCOLO_SIM.sql ${TIME} > refresh_DWH_CALCOLO_SIM.log 2>&1 &
wait
adesso=$(date)
echo '**' $adesso '**' FINE REFRESH VISTE SLA PER UPDATE NUMERO SIM
fi

View File

@@ -0,0 +1,5 @@
SET SERVEROUTPUT ON SIZE 1000000
BEGIN
DWH.CALCOLO_SIM_PRJHOC(to_date('&1','dd/mm/yyyy'));
END;
/

View File

@@ -0,0 +1,37 @@
#!/bin/ksh
###########################################################
# Progetto: Gateway MNP
# Script: CARICA_MNP_DWH_XML_IN.sh
# Descrizione: Shell di caricamento tabella MNP_DWH_XML_IN
#
###########################################################
#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/CARICA_XML/
$ORACLE_HOME/bin/sqlplus -s mnp/mnp@MNP1 @/oracle/UTILITY/CARICA_XML/date.sql
A=`cat /oracle/UTILITY/CARICA_XML/inizio.log`
B=`cat /oracle/UTILITY/CARICA_XML/fine.log`
echo '*******************************'
echo '**' $adesso '**' INIZIO caricamento tabella MNP_DWH_XML_IN
$ORACLE_HOME/bin/sqlplus -s mnp/mnp@MNP1 @CARICA_MNP_DWH_XML_IN.sql $A $B CARICA_DWH_LOG >> CARICA_MNP_DWH_XML_IN.log 2>&1 &
wait
adesso=$(date)
echo '**' $adesso '**' FINE caricamento tabella MNP_DWH_XML_IN
DATAES=`date +%d%m%Y`
cat /mnpapp/CARICA_DWH_LOG/CARICA_MNP_DWH_XML_IN_$DATAES* | mail -s " MNP: LOG DEL CARICA_MNP_DWH_XML_IN" SupportoEsercizioDBACRM@mail.tim.it

View File

@@ -0,0 +1,5 @@
SET SERVEROUTPUT ON SIZE 1000000
BEGIN
DWH.CARICA_MNP_DWH_XML_IN('&1','&2', '&3');
END;
/

View File

@@ -0,0 +1,53 @@
#!/bin/ksh
###########################################################
# Progetto: Gateway MNP
# Script: CARICA_MNP_DW_XML_IN_OUT.sh
# Descrizione: Shell di caricamento tabella MNP_DW_XML_IN_OUT
#
###########################################################
#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
$ORACLE_HOME/bin/sqlplus -s mnp/mnp@MNP1 @/oracle/UTILITY/CARICA_XML/date.sql
A=`cat /oracle/UTILITY/CARICA_XML/inizio.log`
B=`cat /oracle/UTILITY/CARICA_XML/fine.log`
cd /oracle/UTILITY/CARICA_XML
if [ $? -eq 0 ]
then
#ESECUZIONE SCRIPT
task=refresh_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 caricamento tabella MNP_DW_XML_IN_OUT
$ORACLE_HOME/bin/sqlplus -s mnp/mnp@MNP1 @CARICA_MNP_DW_XML_IN_OUT.sql $A $B CARICA_DWH_LOG > CARICA_MNP_DW_XML_IN_OUT.log 2>&1 &
wait
adesso=$(date)
echo '**' $adesso '**' FINE caricamento tabella MNP_DW_XML_IN_OUT
else
echo " (WARNING) $(date) Esecuzione non avvenuta per presenza processo precedente : $task"
fi
fi

View File

@@ -0,0 +1,4 @@
BEGIN
DWH.CARICA_MNP_DW_XML_IN_OUT('&1','&2', '&3');
END;
/

View File

@@ -0,0 +1,9 @@
set trimspool off
set pages 0
spool inizio.log
select to_char(sysdate-1,'dd-mon-yyyy') from dual;
spool off
spool fine.log
select to_char(sysdate-1,'dd-mon-yyyy') from dual;
spool off
exit

View File

@@ -0,0 +1,58 @@
#!/bin/ksh
###########################################################
# Progetto: Gateway MNP
# Script: refresh_DWH_CALCOLO_SLA_FRANCHIGIA.sh
#
#
# PARAMETRO OPZIONALE
# data di riferimento dd/mm/YYYY (es: 01-04-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/FRANCHIGIA
if [ $# -eq 0 ]
then
# utilizzando il -u l'ora fa riferimento a Greenwich
#TIME=`echo $(date -u +%d/%m/%Y)`
TIME=`echo $(date +%d/%m/%Y)`
else
TIME=$1
fi
echo "DATA:" ${TIME}
if [ $? -eq 0 ]
then
#ESECUZIONE SCRIPT
task=refresh_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 VISTE
$ORACLE_HOME/bin/sqlplus DWH/DWH@MNP @refresh_DWH_CALCOLO_SLA_FRANCHIGIA.sql ${TIME} >> refresh_DWH_CALCOLO_SLA_FRANCHIGIA.log 2>&1
adesso=$(date)
echo '**' $adesso '**' FINE REFRESH VISTE SLA FRANCHIGIA
#else
# echo " (WARNING) $(date) Esecuzione non avvenuta per presenza processo precedente : $task"
#fi
fi
cd /oracle/UTILITY/FRANCHIGIA
tail -80 refresh_DWH_CALCOLO_SLA_FRANCHIGIA.log |mail -s " MNP: Esito refresh_DWH_CALCOLO_SLA_FRANCHIGIA" SupportoEsercizioDBACRM@mail.tim.it

View File

@@ -0,0 +1,5 @@
SET SERVEROUTPUT ON SIZE 1000000
BEGIN
DWH.PKG_CALCOLO_SLA_FRANCHIGIA.CALCOLO_SLA_FRANCHIGIA(to_date('&1','dd/mm/yyyy'));
END;
/

View File

@@ -0,0 +1,61 @@
#!/bin/ksh
###########################################################
# Progetto: Gateway MNP
# Script: refresh_MNP_REPORT_MANCATE_AZIONI_RC.sh
#
###########################################################
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/MANCATE_AZIONI
if [ $? -eq 0 ]
then
#ESECUZIONE SCRIPT
task=refresh_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 VISTE
$ORACLE_HOME/bin/sqlplus MNP/MNP@MNP @refresh_MNP_REPORT_MANCATE_AZIONI_RC.sql > refresh_MNP_REPORT_MANCATE_AZIONI_RC.log 2>&1 &
wait
adesso=$(date)
echo '**' $adesso '**' FINE REFRESH
# else
# echo " (WARNING) $(date) Esecuzione non avvenuta per presenza processo precedente : $task"
# fi
fi
#tail -30 refresh_MNP_REPORT_MANCATE_AZIONI_RC.log | mail -s "Esito Mancate Azioni" SupportoEsercizioDBACRM@mail.tim.it
cd /oracle/UTILITY/MANCATE_AZIONI
VER=`cat refresh_MNP_REPORT_MANCATE_AZIONI_RC.log | grep -i snapshot | cut -b -8`
if
[ "X${VER}X" = "XX" ]; then
tail -30 refresh_MNP_REPORT_MANCATE_AZIONI_RC.log | mail -s " MNP: Mancate Azioni OK" SupportoEsercizioDBACRM@mail.tim.it
cat fileOK.txt | mail -s " MNP: Mancate Azioni OK" TIMMNPAReportAOM@telecomitalia.it
else
tail -30 refresh_MNP_REPORT_MANCATE_AZIONI_RC.log | mail -s " MNP: Mancate Azioni KO" SupportoEsercizioDBACRM@mail.tim.it
cat fileKO.txt | mail -s " MNP: Mancate Azioni KO" TIMMNPAReportAOM@telecomitalia.it
fi

View File

@@ -0,0 +1,6 @@
set serveroutput on size 1000000
BEGIN
MNP.PKG_MNP_GUI_MANCATE_AZIONI.REPORT_MANCATE_AZIONI (1);
END;
/
exit

View File

@@ -0,0 +1,55 @@
#!/bin/ksh
###########################################################
# Progetto: Gateway MNP
# Script: refresh_DWH_CALCOLO_SLA_MVNO.sh
#
#
# PARAMETRO OPZIONALE
# data di riferimento dd/mm/YYYY (es: 01-04-2010)
###########################################################
#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/MVNO
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_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 VISTE
$ORACLE_HOME/bin/sqlplus DWH/DWH@MNP @refresh_DWH_CALCOLO_SLA_MVNO.sql ${TIME} >> refresh_DWH_CALCOLO_SLA_MVNO.log 2>&1
#wait
adesso=$(date)
echo '**' $adesso '**' FINE REFRESH VISTE SLA
#else
#echo " (WARNING) $(date) Esecuzione non avvenuta per presenza processo precedente : $task"
#fi
fi

View File

@@ -0,0 +1,4 @@
set timing on
SET SERVEROUTPUT ON SIZE 1000000
exec DWH.PKG_CALCOLO_SLA_MVNO.CALCOLO_SLA_MVNO(to_date('&1','dd/mm/yyyy'));
exit

View File

@@ -0,0 +1,51 @@
#!/bin/ksh
###########################################################
# Progetto: Gateway MNP
# Script: crea_partizione.sh
# Descrizione: Shell di Creazione delle partizioni per le tabelle MNP
#
# PARAMETRO OBBLIGATORIO
# DIRECTORY ORACLE LOG_PART
###########################################################
#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/PARTIZIONAMENTO
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 CREAZIONE PARTIZIONI
$ORACLE_HOME/bin/sqlplus MNP/MNP@MNP @crea_partizione.sql $1 >> crea_partizione.log 2>&1
adesso=$(date)
echo '**' $adesso '**' FINE PARTIZIONAMENTO
#else
# echo " (WARNING) $(date) Esecuzione non avvenuta per presenza processo precedente : $task"
#fi
fi

View File

@@ -0,0 +1,22 @@
set serveroutput on size 1000000
DECLARE
v_anno number;
BEGIN
for r_tab_part in
(select table_name from user_tables where partitioned = 'YES')
loop
begin
v_anno := to_char(sysdate,'yyyy') + 1;
MNP.CREA_PARTIZIONE(to_date('01/04/'||v_anno,'dd/mm/yyyy'),r_tab_part.table_name, '&1');
MNP.CREA_PARTIZIONE(to_date('01/07/'||v_anno,'dd/mm/yyyy'),r_tab_part.table_name, '&1');
MNP.CREA_PARTIZIONE(to_date('01/10/'||v_anno,'dd/mm/yyyy'),r_tab_part.table_name, '&1');
MNP.CREA_PARTIZIONE(to_date('01/01/'||(v_anno+1),'dd/mm/yyyy'),r_tab_part.table_name, '&1');
exception when others then
dbms_output.put_line('errore di creazione delle partizioni per la tabella '||r_tab_part.table_name||SQLERRM);
end;
end loop;
END;
/
exit;

View File

@@ -0,0 +1,28 @@
#!/bin/ksh
. /oracle/.profile
if [ $# -eq 0 ]
then
TIME=`echo $(date -u +%d/%m/%Y)`
else
TIME=$1
fi
echo "DATA:" ${TIME}
if [ $? -eq 0 ]
then
#ESECUZIONE SCRIPT
cd /oracle/UTILITY/PENALI
task=refresh_console
adesso=$(date)
echo '*******************************'
echo '**' $adesso '**' INIZIO REFRESH VISTE
$ORACLE_HOME/bin/sqlplus -s DWH/DWH@MNP @refresh_DWH_CALCOLO_SLA_PENALI_2GG.sql ${TIME} >> refresh_DWH_CALCOLO_SLA_PENALI_2GG_DB.log 2>&1 &
wait
adesso=$(date)
echo '**' $adesso '**' FINE REFRESH VISTE SLA
fi

View File

@@ -0,0 +1,5 @@
SET SERVEROUTPUT ON SIZE 1000000
BEGIN
DWH.PKG_CALCOLO_SLA_PENALI_2GG.CALCOLO_SLA_PENALI(to_date('&1','dd/mm/yyyy'));
END;
/

View File

@@ -0,0 +1,8 @@
spool /oracle/UTILITY/PENALI/refresh_DWH_CALCOLO_SLA_PENALI_3GG.lst
SET SERVEROUTPUT ON SIZE 1000000
BEGIN
DWH.PKG_CALCOLO_SLA_PENALI_3GG.CALCOLO_SLA_PENALI(to_date('&1','dd/mm/yyyy'));
END;
/
spool off
exit

View File

@@ -0,0 +1,38 @@
#!/bin/ksh
###########################################################################
#
#
# CLONE DELLO SCRIPT refresh_DWH_CALCOLO_SLA_PENALI_3GG.sh A CRONTAB DELLA
# MNPESEFEP1 TOLTO DA QUEST'ULTIMA IN QUANTO TERMINA IN TIMEOUT
#
#
###########################################################################
. /oracle/.profile
if [ $# -eq 0 ]
then
TIME=`echo $(date -u +%d/%m/%Y)`
else
TIME=$1
fi
echo "DATA:" ${TIME}
if [ $? -eq 0 ]
then
#ESECUZIONE SCRIPT
cd /oracle/UTILITY/PENALI
task=refresh_console
adesso=$(date)
echo '*******************************'
echo '**' $adesso '**' INIZIO REFRESH VISTE
$ORACLE_HOME/bin/sqlplus -s DWH/DWH@MNP @refresh_DWH_CALCOLO_SLA_PENALI_3GG.sql ${TIME} >> refresh_DWH_CALCOLO_SLA_PENALI_3GG_DB.log 2>&1 &
wait
adesso=$(date)
echo '**' $adesso '**' FINE REFRESH VISTE SLA
fi

View File

@@ -0,0 +1,51 @@
#!/bin/ksh
###########################################################
# PARAMETRO OPZIONALE
# data di riferimento dd/mm/YYYY (es: 01-04-2010)
###########################################################
#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/SLA_SE
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_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 VISTE
$ORACLE_HOME/bin/sqlplus DWH/DWH@MNP @refresh_SLA_SE.sql ${TIME} >> refresh_SLA_SE.log 2>&1
#wait
adesso=$(date)
echo '**' $adesso '**' FINE REFRESH VISTE SLA
#else
#echo " (WARNING) $(date) Esecuzione non avvenuta per presenza processo precedente : $task"
#fi
fi

View File

@@ -0,0 +1,4 @@
set timing on
SET SERVEROUTPUT ON SIZE 1000000
exec DWH.PKG_POPOLA_SLA_SE.CARICAMENTO_SLA_SE(to_date('&1'dd/mm/yyyy'));
exit

View File

@@ -0,0 +1,4 @@
#!/usr/bin/ksh
. /oracle/.profile
$ORACLE_HOME/bin/sqlplus dbcgo/dbcgo@DBCGO @$HOME/UTILITY/STATISTICHE/dbcgo_stat.sql >> $HOME/UTILITY/STATISTICHE/dbcgo_stat.log

View File

@@ -0,0 +1,6 @@
select to_char(sysdate,'dd-mm-yyyy hh24:mi') from dual;
set timing on
execute DBMS_STATS.GATHER_SCHEMA_STATS(OWNNAME => 'DBCGO',estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, CASCADE => TRUE, DEGREE => 4);
execute DBMS_STATS.GATHER_TABLE_STATS(OWNNAME => 'DBCGO', TABNAME =>'DBCGO_PP_MV00', METHOD_OPT => 'FOR COLUMNS pp_num SIZE 100', DEGREE => 4);
select to_char(sysdate,'dd-mm-yyyy hh24:mi') from dual;
exit;

View File

@@ -0,0 +1,8 @@
#!/usr/bin/ksh
. /oracle/.profile
DIR=/oracle/UTILITY/STATISTICHE
DATA=`date '+%d%m%Y`
#$ORACLE_HOME/bin/sqlplus -s mnp/mnp@MNP2 @$DIR/mnp_stat_tot.sql >> $DIR/LOG/mnp_stat_tot_$DATA.log
$ORACLE_HOME/bin/sqlplus mnp/mnp@MNP2 @$DIR/mnp_stat_tot.sql >> $DIR/LOG/mnp_stat_tot_$DATA.log

View File

@@ -0,0 +1,337 @@
set echo on
set timing on
set head off
PROMPT #####################################################
select 'Data Inizio Statistiche --> '||to_char(SYSDATE,'dd/mm/yyyy hh24:mi:ss') from dual;
PROMPT #####################################################
------------------ TABELLE AGGIUNTE su richiesta di sviluppo (Monosilio Letizia) in data 31-01-2011 ---------------------------
exec dbms_stats.gather_table_stats('MNP','MNP_ASP_CRM_CESS_OUT_GISP',estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade =>TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GISP_CESS_OUT_DON_ABB',estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade =>TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GISP_CESS_OUT_DON_PP',estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade =>TRUE,degree=>4);
PROMPT ############
exec dbms_stats.gather_table_stats('MNP','MNP_CCRM_NOTIFICA_OUT', estimate_percent => 7,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_CIRCE_OUT_REC', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--------------------------- TABELLE X PRODUZIONE FLUSSO ------------------------------
exec dbms_stats.gather_table_stats('MNP','MNP_XML_RICHIESTA_IN', estimate_percent => 7,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_XML_IN', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GESTIONE_RICHIESTA', estimate_percent => 7,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
----------------------------------------------------------------------------------------------------------
exec dbms_stats.gather_table_stats('MNP','MNP_XML_RICHIESTA_OUT', estimate_percent => 7,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GESTIONE_RICHIESTA_REC_EXT', estimate_percent => 2,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STORICO_RICHIESTA', estimate_percent => 6,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STORICO_RICHIESTA_REC', estimate_percent => 8,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GESTIONE_RICHIESTA_REC', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
execute DBMS_STATS.GATHER_TABLE_STATS(OWNNAME => 'MNP', TABNAME =>'MNP_GESTIONE_RICHIESTA_REC', METHOD_OPT =>'FOR COLUMNS STATO SIZE 20', DEGREE => 4);
exec dbms_stats.gather_table_stats('MNP','HZ_BIT_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_BIT_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_BIT_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_CCRM_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_DBCFX_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_DBCFX_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_GEST_RICH_CESS_OLO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_GESTIONE_RICHIESTA', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
execute DBMS_STATS.GATHER_TABLE_STATS(OWNNAME => 'MNP', TABNAME =>'HZ_GESTIONE_RICHIESTA', METHOD_OPT =>'FOR COLUMNS STATO SIZE 20', DEGREE => 4);
exec dbms_stats.gather_table_stats('MNP','HZ_GISP_CESS_OLO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_GISP_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_GISP_RETRIEVE_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_GISP_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_MSC_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_MSC_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_MSC_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_MSC_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_MSP_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_MSP_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_MSP_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_MSP_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_PITAGORA_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_PITAGORA_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_PITAGORA_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_RGN_DISTRETTO_AGW', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_SIMBA_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_STORICO_RICH_CESS_OLO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HZ_STORICO_RICHIESTA', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ANAG_BONIFICHE_DONOR', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ANAG_BONIFICHE_RECIPIENT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ANAG_CONDIZIONE_DUP', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ANAG_DETT_MOD_RECIPIENT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ANAG_DETT_MODIFICHE_DONOR', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ANAGRAFICA_LOG', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ANAGRAFICA_OPERATORI', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ANAGRAFICA_OT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ANAGRAFICA_PROCESSO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ANAGRAFICA_STATO_RICH_NOT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ASP_CRM_CESSAZIONE_OUT', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ASSOC_BONIFICHE_DONOR', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_ASSOC_BONIFICHE_RECIPIENT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_BIT_ANNULL_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_BIT_IN_REC', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_BIT_OUT_REC', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_BIT_PPBU_OUT_REC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--
-- In data 06-10-2009 è stata droppata questa tabella su indicazione di sviluppo.
--exec dbms_stats.gather_table_stats('MNP','MNP_BIT_RECIPIENT_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_BIT_SCARTI_DONOR', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_BIT_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_BIT_SCARTI_UPDATE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_BIT_TC_DONOR_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_BIT_UPDATE_DCO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_BLOCCO_RICHIESTE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_BONIFICHE_CESS_PORT', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_BONIFICHE_CESSAZIONE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_BONIFICHE_DONOR', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_BONIFICHE_RECIPIENT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_CAUSALE_ACCODAMENTO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_CAUSALE_RIFIUTO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_CCRM_APP', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--
-- In data 06-10-2009 è stata droppata questa tabella su indicazione di sviluppo.
--exec dbms_stats.gather_table_stats('MNP','MNP_CCRM_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_CCRM_SCARTI_DONOR', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_CCRMW_COOP_NOT_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--
-- In data 06-10-2009 è stata droppata questa tabella su indicazione di sviluppo.
--exec dbms_stats.gather_table_stats('MNP','MNP_CCRMW_COOP_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_CCRMW_COOP_SCARTI_DONOR', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_CIRCE_OUT', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_CIRCE_OUT_CESS', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_CIRCE_OUT_CESS_PORT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_CIRCE_OUT_SCARTI', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_CRM_RETENTION_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_CRM_VALIDAZIONE_IN', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_CRM_VALIDAZIONE_OUT', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DATA_MANUTENZIONE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DATA_REPORT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DATE_FESTIVE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DBCGO_NOTIFICA_DON_TC_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DBCGO_NOTIFICA_DONOR_OUT', estimate_percent => 15,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DBCGO_NOTIFICA_PORTING_OUT', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DBCGO_NOTIFICA_REC_OUT', estimate_percent => 18,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DBCGO_NOTIFICA_REC_TC_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DBCGO_PRIORITY_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DETT_BONIFICHE_DONOR', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DETT_BONIFICHE_RECIPIENT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DOMINIO_FUNZIONI', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_EVASIONE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_EVASIONE_REC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_EVENTO_GOVERNANCE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_FLUSSI_PATTERN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_FLUSSI_SISTEMI_INTERNI', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_FLUSSO_DEST', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_FUNZIONALITA_GUI', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GEST_RICH_DON_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GEST_RICH_DON_TC_EXT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GEST_RICH_DON_VIRT_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GEST_RICH_DONOR_VIRT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GEST_RICH_REC_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GEST_RICH_REC_TC_EXT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GEST_RICH_REC_VIRT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GEST_RICH_REC_VIRT_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GESTIONE_FILE_AOM', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GESTIONE_RICH_CESS_PORT', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GESTIONE_RICHIESTA_CESS', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GESTIONE_RICHIESTA_EXT', estimate_percent => 2,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GESTIONE_RICHIESTA_PORTING', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GISP_ATT_CESS_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GISP_ATT_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GISP_CESS_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GISP_CESSAZIONE_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GISP_NOTIFICA_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GISP_RETRIEVE_OUT', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--
-- In data 06-10-2009 è stata droppata questa tabella su indicazione di sviluppo.
--exec dbms_stats.gather_table_stats('MNP','MNP_GISP_RETRIEVE_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GISP_SCARTO_ATT_CESS_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GISP_SCARTO_NOTIFICA_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GUI_DONOR', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GUI_PORTING', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GUI_RECIPIENT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_INTERNAL_STATE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_LOV', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_LOV_REF', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MESSAGE_ID', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSC_IN_REC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSC_OUT_REC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--
-- In data 06-10-2009 è stata droppata questa tabella su indicazione di sviluppo.
--exec dbms_stats.gather_table_stats('MNP','MNP_MSC_RECIPIENT_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSC_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSP_END_TC_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSP_IN_REC', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSP_OUT_REC', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--
-- In data 06-10-2009 è stata droppata questa tabella su indicazione di sviluppo.
--exec dbms_stats.gather_table_stats('MNP','MNP_MSP_RECIPIENT_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSP_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSP_SCARTO_TC_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSP_TC_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSPCOOP_END_TC_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSPCOOP_IN_REC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSPCOOP_OUT_REC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--
-- In data 06-10-2009 è stata droppata questa tabella su indicazione di sviluppo.
--exec dbms_stats.gather_table_stats('MNP','MNP_MSPCOOP_REC_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSPCOOP_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSPCOOP_SCARTO_TC_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSPCOOP_TC_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_MSS_APPOGGIO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_ATTIVAZIONE_IN_REC', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_ATTIVITA_MANUALI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_CESS_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_CESS_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_MSS_CESS_PORT_ANNULLAMENTI', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_CESS_PORTING_IN', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_CESS_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_CESSAZIONE_IN', estimate_percent => 7,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_PORTING_IN', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_PORTING_OUT', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_PORTING_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_WAIT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_NOTIFICA_DON_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_NOTIFICA_REC_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_PORTING_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_SCARTO_PORTING_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_SCARTO_TC_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_SCARTO_VALIDAZ_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_TC_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_VALIDAZ_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_OLO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_OLO_PREFISSI', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_OLO_REPORT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_OPERATORE_GISP', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_OPERATORE_INTERNO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_PATTERN_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_PROCESSO_LOG', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_PROFILI_FUNZIONALITA', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_PROFILI_UTENTE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_RECOVERY_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_REFRESH_LOCK', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_REPORT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_REPORT_PARAM', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--In data 29-09-2009 è stata droppata la vista materializzata a cui è associata questa tabella
--exec dbms_stats.gather_table_stats('MNP','MNP_RICH_CESS_PORT_MIN_VGR', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_RICH_DUP_DONOR_REC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_RICHIESTA_BEOLO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_RICHIESTA_CESS_DUP', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--In data 29-09-2009 è stata droppata la vista materializzata a cui è associata questa tabella
--exec dbms_stats.gather_table_stats('MNP','MNP_RICHIESTA_CESS_MIN_VGR', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_RICHIESTA_DUP', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_RICHIESTA_PORTING_DUP', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--In data 29-09-2009 è stata droppata la vista materializzata a cui è associata questa tabella
--exec dbms_stats.gather_table_stats('MNP','MNP_RICHIESTA_PORTING_MIN_VGR', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--In data 29-09-2009 è stata droppata la vista materializzata a cui è associata questa tabella
--exec dbms_stats.gather_table_stats('MNP','MNP_RICHIESTA_REC_VGR10', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--In data 29-09-2009 è stata droppata la vista materializzata a cui è associata questa tabella
--exec dbms_stats.gather_table_stats('MNP','MNP_RICHIESTA_VGR10', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--In data 29-09-2009 è stata droppata la vista materializzata a cui è associata questa tabella
--exec dbms_stats.gather_table_stats('MNP','MNP_RICHIESTA_VGR5', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_SBLOCCO_RICHIESTE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_SEC_SMS_OUT', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_SID_IN', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_SID_OUT_REC', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_SID_RECIPIENT_RECUPERO_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
--exec dbms_stats.gather_table_stats('MNP','MNP_SID_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_SISTEMI_INTERNI', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_SMS_L1', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_SMS_L1V', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STATO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STATO_CESS', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STATO_CESS_PORTING', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STATO_DON_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STATO_DON_VIRT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STATO_DON_VIRT_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STATO_PORTING', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STATO_REC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STATO_REC_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STATO_REC_VIRT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STATO_REC_VIRT_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STOR_RICH_DON_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STOR_RICH_DON_VIRT_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STOR_RICH_REC_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STOR_RICH_REC_VIRT_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STORICO_CESS', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STORICO_CESS_PORTING', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STORICO_PORTING', estimate_percent => 15,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STORICO_RICH_DON_VIRT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_STORICO_RICH_REC_VIRT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_TAB_TEMP', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_UTENTI', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_XML_ACK_IN', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_XML_ACK_OUT', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_XML_OUT', estimate_percent => 25,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_XML_RIPETIZIONI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_XML_RIPETIZIONI_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_XML_SCARTO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_XML_SCARTO_CODICE', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','S_DIM_TEMPO', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
------------------ TABELLE AGGIUNTE DOPO RILASCIO 21 NOV 2009 ---------------------------
exec dbms_stats.gather_table_stats('MNP','MNP_BIT_NOTIFICA_DONOR_OUT', estimate_percent => 10,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_UPDATE_DCO_IN', estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_GINO_RETRIEVE_OUT', estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DBCGO_NOT_DON_VIRT_OUT', estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DBCGO_NOT_DON_VIRT_TC_OUT', estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DBCGO_NOT_REC_VIRT_OUT', estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DBCGO_NOT_REC_VIRT_TC_OUT', estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_TIPO_CLIENTI', estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_PRJHOC_DONOR', estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_SCARTO_UPDATE_DCO_IN', estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
------------------ TABELLE AGGIUNTE In data 05-02-2011 perche' mancavano dal totale dello schema MNP --------------------------------
------------------ La Monosilio ci ha dato l'OK per inserire anche queste --------------------------------
exec dbms_stats.gather_table_stats('MNP','MNP_DBP2DBCFX',estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade =>TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_DBCFX_DPP_OUT',estimate_percent => 20,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade =>TRUE,degree=>4);
--
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_DETT_NOT_SLA_DON_OUT',estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade =>TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_NOT_SLA_DON_OUT',estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade =>TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_NOT_SLA_REC_OUT',estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade =>TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MVNO_DETT_NOT_SLA_REC_OUT',estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade =>TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_MSS_VERIFICA_CESS_OUT',estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade =>TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_TASK_PIC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
------------------ TABELLE AGGIUNTE In data 14-03-2011 come indicato nel DOC "Consegna MNP_Extra-KitFebbraio11.doc" --------------------------------
------------------ non ci e' stato detto a che percentual fare le statistiche --------------------------------
exec dbms_stats.gather_table_stats('MNP','MNP_FENP_XML_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_FENP_XML_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_FENP_XML_ACK_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_FENP_XML_ACK_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_FENP_XML_RICHIESTE_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_FENP_XML_RICHIESTE_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','MNP_FENP_XML_SCARTI_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
------------------ NUOVE TABELLE PER LA STORICIZZAZIONE---------------------------------------------
exec dbms_stats.gather_table_stats('MNP','HIST_GESTIONE_RICHIESTA', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_GESTIONE_RICHIESTA_REC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_GEST_RICH_DONOR_VIRT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_GEST_RICH_DON_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_GEST_RICH_DON_VIRT_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_GEST_RICH_REC_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_GEST_RICH_REC_VIRT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_GEST_RICH_REC_VIRT_TC', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_GESTIONE_RICHIESTAPORTING', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_XML_ACK_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_XML_ACK_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_XML_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_XML_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_XML_RICHIESTA_IN', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
exec dbms_stats.gather_table_stats('MNP','HIST_XML_RICHIESTA_OUT', estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,method_opt =>'FOR ALL COLUMNS SIZE 1',cascade => TRUE,degree=>4);
PROMPT #####################################################
select 'Data Fine Statistiche --> '||to_char(SYSDATE,'dd/mm/yyyy hh24:mi:ss') from dual;
PROMPT #####################################################
exit;

View File

@@ -0,0 +1,4 @@
#!/usr/bin/ksh
. /oracle/.profile
$ORACLE_HOME/bin/sqlplus dwh/dwh@MNP2 @$HOME/UTILITY/STATISTICHE/schema_DWH_stat.sql >> $HOME/UTILITY/STATISTICHE/schema_DWH_stat.log

View File

@@ -0,0 +1,5 @@
select to_char(sysdate,'dd-mm-yyyy hh24:mi') from dual;
set timing on
execute DBMS_STATS.GATHER_SCHEMA_STATS(OWNNAME => 'DWH',estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE, CASCADE => TRUE, DEGREE => 4);
select to_char(sysdate,'dd-mm-yyyy hh24:mi') from dual;
exit;

View File

@@ -0,0 +1,49 @@
#!/bin/ksh
###########################################################
# Progetto: Gateway MNP
# Script: esegui_storicizzazione.sh
# Descrizione: Shell di storicizzazione dei dati per le tabelle MNP
#
###########################################################
#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/STORICIZZAZIONE
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 STORICIZZAZIONE
$ORACLE_HOME/bin/sqlplus MNP/MNP@MNP1 @esegui_storicizzazione.sql >> esegui_storicizzazione.log 2>&1
adesso=$(date)
echo '**' $adesso '**' FINE STORICIZZAZIONE
#else
# echo " (WARNING) $(date) Esecuzione non avvenuta per presenza processo precedente : $task"
#fi
fi

View File

@@ -0,0 +1,5 @@
set serveroutput on size 1000000
exec PKG_STORICIZZAZIONE.P_MAIN_STORICIZZAZIONE;
exit;

View File

@@ -0,0 +1,8 @@
#!/usr/bin/ksh
. /oracle/.profile
echo $ORACLE_SID
$ORACLE_HOME/bin/sqlplus dwh/dwh@MNP1 @$HOME/UTILITY/refresh_viste_DWH_SEQ.sql >> $HOME/UTILITY/refresh_viste_DWH_SEQ.log
cd $HOME/UTILITY/
cat refresh_viste_DWH_SEQ.lst | mail -s " MNP: Esito Refresh Viste Nodo1" SupportoEsercizioDBACRM@mail.tim.it
cat refresh_viste_DWH_SEQ.lst | mail -s " MNP: Esito Refresh Viste Nodo1" TIMMNPAReportAOM@telecomitalia.it

View File

@@ -0,0 +1,38 @@
set timing on
spool /oracle/UTILITY/refresh_viste_DWH_SEQ.lst
select to_char(sysdate,'yyyy/mm/dd hh24:mi:ss') data_inizio from dual;
prompt DWH.MNP_DWH_RICH_DON_VIRT_EXT
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_RICH_DON_VIRT_EXT', 'C');
--prompt DWH.MNP_DWH_DON
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_DON' , 'C');
prompt DWH.MNP_DWH_POR
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_POR', 'C');
prompt DWH.MNP_DWH_CESS_IN
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_CESS_IN', 'C');
--prompt DWH.MNP_DWH_CESS_OUT
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_CESS_OUT','C');
--prompt DWH.MNP_DWH_DON_VIRT
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_DON_VIRT', 'C');
prompt DWH.MNP_DWH_REC_PUSH_VIRT
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_REC_PUSH_VIRT', 'C');
prompt DWH.MNP_DWH_TC_ANOMALO
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_TC_ANOMALO', 'C');
prompt DWH.MNP_DWH_RICH_REC_VIRT_EXT
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_RICH_REC_VIRT_EXT', 'C');
prompt DWH.MNP_DWH_gest_rich_rec_ext
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_gest_rich_rec_ext', 'C');
--prompt DWH.MNP_DWH_gest_rich_don_ext
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_gest_rich_don_ext', 'C');
--prompt DWH.MNP_DWH_REC_PUSH
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_REC_PUSH', 'C');
--
--
-- Come da mail di Cerasaro del 24-11-2011, momentaneamente, il refresh
-- della vista sotto riportata viene inibito.
prompt DWH.MNP_DWH_XML_IN
prompt Refresh disattivato il 24-11-2011 come da mail di Cerasaro.
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_XML_IN', 'C');
select to_char(sysdate,'yyyy/mm/dd hh24:mi:ss') data_fine from dual;
spool off
exit;

View File

@@ -0,0 +1,7 @@
#!/usr/bin/ksh
. /oracle/.profile
echo $ORACLE_SID
$ORACLE_HOME/bin/sqlplus dwh/dwh@MNP1 @$HOME/UTILITY/refresh_viste_DWH_SEQ.sql >> $HOME/UTILITY/refresh_viste_DWH_SEQ.log
#/oracle/UTILITY/STATISTICHE/dbcgo_stat.ksh

View File

@@ -0,0 +1,33 @@
set timing on
spool /oracle/UTILITY/refresh_viste_DWH_SEQ.lst
select to_char(sysdate,'yyyy/mm/dd hh24:mi:ss') data_inizio from dual;
prompt DWH.MNP_DWH_RICH_DON_VIRT_EXT
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_RICH_DON_VIRT_EXT', 'C');
--prompt DWH.MNP_DWH_DON
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_DON' , 'C');
prompt DWH.MNP_DWH_POR
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_POR', 'C');
--prompt DWH.MNP_DWH_CESS_IN
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_CESS_IN', 'C'); eliminato il report
--prompt DWH.MNP_DWH_CESS_OUT
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_CESS_OUT','C');
--prompt DWH.MNP_DWH_DON_VIRT
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_DON_VIRT', 'C');
prompt DWH.MNP_DWH_REC_PUSH_VIRT
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_REC_PUSH_VIRT', 'C');
prompt DWH.MNP_DWH_TC_ANOMALO
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_TC_ANOMALO', 'C');
prompt DWH.MNP_DWH_RICH_REC_VIRT_EXT
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_RICH_REC_VIRT_EXT', 'C');
prompt DWH.MNP_DWH_gest_rich_rec_ext
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_gest_rich_rec_ext', 'C');
--prompt DWH.MNP_DWH_gest_rich_don_ext
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_gest_rich_don_ext', 'C');
--prompt DWH.MNP_DWH_REC_PUSH
--EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_REC_PUSH', 'C');
prompt DWH.MNP_DWH_XML_IN
EXECUTE DBMS_MVIEW.REFRESH ('DWH.MNP_DWH_XML_IN', 'C');
select to_char(sysdate,'yyyy/mm/dd hh24:mi:ss') data_fine from dual;
spool off
exit;