/*****************************************************************************
*
* Filename         - $Workfile:   drop_triggers.sql  $
*
*                     Name              Date      Version     CR Number
* Author           - See revision history below.
* Last Update      - See revision history below.
*
* Project Name     - TAGTRAK(Oracle Database)
*
* Source Code
* Identifier       - 0/3/300/8010/112
*
* Design Spec
* Section          -
*
* Contents         -  An sqlplus script to drop all the live schema triggers
*
* Language         - Oracle SQL*Plus script
*
* Classification   - Commercial In Confidence
*
*          (c) Ultra Electronics Limited, 1997
*
*****************************************************************************/
/****************************************************************************
* @(#)$Workfile:   drop_triggers.sql  $  $Revision:   1.9  $
*
* Revision History
*
* Note that user tagtrak is many users. For these users the user
* name is entered as the last line in the change description.
*
* $Log:   /pvcsarch/db_ora/db/source/live/triggers/drop_triggers.svl  $
* 
*    Rev 1.9   21 Jun 2001 15:04:08   tagtrak
* OR:
* CR:
* Re-baseline version 4.0.0 to include patches.
* 
*    Rev 1.8   26 Jul 1999 10:02:02   tagtrak
*  
* 
*    Rev 1.7.1.0   07 Jul 1999 11:54:30   tagtrak
* OR:
* CR: 14077 
* REV:
* Helsinki FIDS changes.
* 
* Neil Bishop.
* 
*    Rev 1.7   10 Jun 1999 14:51:54   tagtrak
* OR:
* CR: 14043
* REV:
* Changed Archive and Backup so that the database
* can be accessed during the eraseLive function.
* 
* Neil Bishop.
* 
*    Rev 1.6   04 Nov 1998 16:26:20   tagtrak
* OR: 12648
* CR: 12648
* REV:
* Bag Trace records were not cleared by Archive & Backup
* Andrew Walker
* (branch ATS revision copied to trunk.)
* Andrew Walker
* 
*    Rev 1.5.1.0   22 Oct 1998 14:04:02   tagtrak
* OR: 12648
* CR: 12648
* REV:
* Bag Trace records were not cleared by Archive & Backup
* Andrew Walker
* 
*    Rev 1.5   12 Oct 1998 16:44:22   tagtrak
* OR: 12682 12683 12678 12654 12419 12265 12805 12285
* CR: 12682 12683 12678 12654 12419 12265 12805
* REV:
* Vienna enhancements/fixes for database V0.4.1E
* branch ATS revision moved to trunk.
* Andrew Walker
* 
*    Rev 1.4.1.0   25 Sep 1998 12:33:06   tagtrak
* OR: 12682 12683 12678 12654 12419 12265 12285
* CR: 12682 12683 12678 12654 12419 12265
* REV:
* Vienna enhancements for Database 0.4.1
* Andrew Walker
* 
*    Rev 1.3.2.0   18 Aug 1998 09:33:28   tagtrak
* OR: 12484
* CR: 12484
* REV:
* Merging Vienna (0.3.1E) and Core Product (0.2.5E).
* Andrew Walker
* 
*    Rev 1.3.1.0   04 Jun 1998 15:31:08   tagtrak
* OR:
* CR: 12098
* REV:
* Vienna Modifications
* Andrew Walker
* 
*    Rev 1.3   02 Apr 1998 19:46:04   tagtrak
* OR:
* CR:
* REV:
* Initial Issue
* See label for concession
* 
*    Rev 1.2   26 Feb 1998 11:42:16   tagtrak
* OR:
* CR:
* REV:
* Initial core product version
*
*    Rev 1.1   15 Jan 1998 13:38:56   tagtrak
* OR: OR11101, TN13, TN15
* CR:
* REV:
* Phase 2C to Phase 3 upgrade plus code review actions and resolving some technical issues.
*
*
*    Rev 1.0   22 Oct 1997 16:38:28   tagtrak
* OR:
* CR:
* REV:
* Initial check-in
*
****************************************************************************/

/*
 * - Drop all of the user triggers
*/

drop trigger POST_FS_EVENT;
drop trigger TD2_SYSTEM_CFG;
drop trigger TD_AGENTS;
drop trigger TD_CONTRACTED_AGENTS;
drop trigger TD_ERROR;
drop trigger TD_FLIGHT_ACCESS;
drop trigger TD_FLIGHT_PRIV;
drop trigger TD_LOCATION;
drop trigger TD_MBA_FLIGHTS;
drop trigger TD_PRIVILEGE;
drop trigger TD_SYSTEM_CFG;
drop trigger TD_TAGTRAK_USERS;
drop trigger TD_USER_GROUP;
drop trigger TIAS_FLIGHT;
drop trigger TIA_FLIGHT;
drop trigger TIA_FLIGHT_PRIV;
drop trigger TIB_FLIGHT_PRIV;
drop trigger TI_AGENTS;
drop trigger TI_BAG;
drop trigger TI_BAG_ALERT;
drop trigger TI_BAG_TRACE;
drop trigger TI_CARRIER_LOOKUP;
drop trigger TI_CONTRACTED_AGENTS;
drop trigger TI_DB_VERSION;
drop trigger TI_ERROR;
drop trigger TI_FLIGHT;
drop trigger TI_FLIGHT_ACCESS;
drop trigger TI_KIT;
drop trigger TI_LOCATION;
drop trigger TI_LOG_TABLE;
drop trigger TI_MAIL_GLOBAL;
drop trigger TI_MAIL_INDIV;
drop trigger TI_PAX;
drop trigger TI_PRIVILEGE;
drop trigger TI_TAGTRAK_USERS;
drop trigger TI_ULD_TRACE;
drop trigger TI_USER_GROUP;
drop trigger TU2_SYSTEM_CFG;
drop trigger TUAS_FLIGHT;
drop trigger TUAS_TAGTRAK_USERS;
drop trigger TUA_FLIGHT;
drop trigger TUBS_TAGTRAK_USERS;
drop trigger TU_AGENTS;
drop trigger TU_BAG;
drop trigger TU_CARRIER_LOOKUP;
drop trigger TU_CONTRACTED_AGENTS;
drop trigger TU_ERROR;
drop trigger TU_FLIGHT;
drop trigger TD_FLIGHT;
drop trigger TU_FLIGHT_ACCESS;
drop trigger TU_FLIGHT_PRIV;
drop trigger TU_LOCATION;
drop trigger TU_LOG_TABLE;
drop trigger TU_MWS_SEARCH_PLANS;
drop trigger TU_PAX;
drop trigger TU_PRIVILEGE;
drop trigger TU_SYSTEM_CFG;
drop trigger TU_TAGTRAK_USERS;
drop trigger TU_ULD_TRACE;
drop trigger TU_ULD_TYPES;
drop trigger TU_USER_GROUP;
drop trigger TI_USER_TRACE;
drop trigger TD_CODE_SHARE;
drop trigger TIAS_FLIGHT_PRIV;
drop trigger TIA_CODE_SHARE;
drop trigger TI_CODE_SHARE;
drop trigger TI_WEIGHTS;
drop trigger ti_carrier_map;
drop trigger ti_hel_fids_flight_info;
drop trigger tu_hel_fids_flight_info;
drop trigger tia_hel_fids_flight_info;
drop trigger tua_hel_fids_flight_info;
drop trigger ti_site_info;
drop trigger ti_flight_dests;
drop trigger tu_ulds;
drop trigger tuas_ulds;
drop trigger ti_onward_flight

set heading off;
select count(*), 'Trigger(s) now exist for this user' from user_triggers;
set heading on;
