Sie sind auf Seite 1von 2

delete from pronto_customer_session where end_time>to_date('31-DEC-13','DD-MM-YY

') or end_time is null;


delete from PRONTO_PMS_EVENT where date_time>to_date('31-DEC-13','DD-MM-YY');
delete from pronto_alert where ALERT_RECPT_DATE_TIME<=to_date('06-JUL-14','DD-M
M-YY'); --4290825
DELETE FROM PRONTO_WISP_PREPAID_CARD WHERE BATCH_NUMBER NOT IN (select distinct
batch_number from PRONTO_WISP_PREPAID_CARD where DATE_OF_EXPIRY > sysdate);
delete from PRONTO_CUSTOMER where customer_id not in(select customer_id from PR
ONTO_CUSTOMER_REALM) --13504
delete from CREDIT_RESERVE_ERR_CANCEL_TRAN where TRAN_DATE_TIME<to_date('30-MAY
-13','DD-MM-YY'); --1212627
delete from PRONTO_PMS_GUEST_HISTORY where CHECK_IN_DATE<to_date('01-JUL-13','D
D-MM-YY') and CHECK_OUT_DATE is not null;
delete from AP_INFO_UPDATE where POPULATED_DATETIME<to_date('31-DEC-13','DD-MM-
YY');
truncate table PRONTO_REQUEST_LOG;
delete from PRONTO_GATEWAY_PL_PMS where PAYLOAD_ID not in (select PAYLOAD_ID fr
om PRONTO_GATEWAY_PAYLOAD);
truncate INTL_LOCATION_GEOGRAPHY;
delete from PRONTO_PRODUCT_PP where pin not in(select count(pin) from PRONTO_WI
SP_PREPAID_CARD);
delete from PRONTO_PREPAID_SALE where pin not in (select count(pin) from PRONTO
_WISP_PREPAID_CARD);
delete from PRONTO_TRANSACTION where TRANSACTION_ID NOT in(select TRANSACTION_I
D from PRONTO_PREPAID_SALE);
delete from PRONTO_CUS_MAC_MAPPING where customer_id not in (select customer_id
from PRONTO_CUSTOMER_SESSION);
delete from PRONTO_CS_RADIUS_SESS_PARAMS where CUS_SESSION_ID not in (select C
US_SESSION_ID from pronto_customer_session);
delete from PRONTO_GATEWAY_PAYLOAD where gateway_id in(select gateway_id from p
ronto_gateway where NAS_ID LIKE '~%'); --641072
delete from pronto_gateway_payload where to_date('PAYLOAD_ID','DD-MM-YY') < to
_date('30-MAY-14');
delete from PRONTO_PREPAID_CARD_BALANCE where pin NOT in(select REALM_USER_ID f
rom PRONTO_CUSTOMER_SESSION_ACTIVE WHERE SESSION_STATUS IN ('Y', 'W'));
truncate table HTTP_USER_AGENT_TYPES;
delete from PRONTO_GATEWAY_PACKET_DETAILS where SESSION_ID NOT in (select CUS_S
ESSION_ID from PRONTO_CUSTOMER_SESSION);
delete from CONTROLLER_INFO_UPDATE where POPULATED_TIME << to_date('30-MAY-14')
;
delete from PREPAID_CARD_PRINT_DETAILS where pin not in (select pin from PRONT
O_WISP_PREPAID_CARD);
delete from PRONTO_CC_TRANSACTION where customer_id not in (select customer_id
from pronto_customer);
delete from PRONTO_GATEWAY_PL_LOGOUT where PAYLOAD_ID not in (select PAYLOAD_I
D from PRONTO_GATEWAY_PAYLOAD);
delete from PRONTO_GATEWAY_SESSION where session_id not in (select CUS_SESSION_
ID from pronto_customer_session );
truncate table PRONTO_GATEWAY_INIT;
delete from PRONTO_CUSTOMER_PMS_EXT where guest_id not in (select guest_id from
PRONTO_PMS_GUEST_HISTORY);
delete from PRONTO_CUSTOMER_SESSION_RSRVTN where CUS_SESSION_ID not in (select
CUS_SESSION_ID from PRONTO_CUSTOMER_SESSION_ACTIVE WHERE SESSION_STATUS IN ('Y',
'W'));
delete from PRONTO_TRANSACTION_TAX_BREAKUP where TRANSACTION_ID not in (select
TRANSACTION_ID from PRONTO_PREPAID_SALE);