ALTER TABLE MNP_EVASIONE_REC
ADD ID_OPERATORE       VARCHAR2(4 BYTE);
ALTER TABLE MNP_EVASIONE_REC
DROP CONSTRAINT PK_EVASIONE_REC;

CREATE OR REPLACE DIRECTORY 
MAV_OUT AS 
'/mnpapp/script/report/mav';

create table MNP_ANAG_FINESTRE_TEMP_D147
(
  TIPO_FILE      NUMBER not null,
  DESC_FILE      VARCHAR2(35) not null,
  T_INIZIALE     VARCHAR2(8) not null,
  T_FINALE       VARCHAR2(8) not null,
  T_INIZIALE_ACK VARCHAR2(8) not null,
  T_FINALE_ACK   VARCHAR2(8) not null,
  TIPO_OPERATORE VARCHAR2(10) default 'AOM' not null
)
tablespace TAB_SMALL;
-- Create/Recreate primary, unique and foreign key constraints 
alter table MNP_ANAG_FINESTRE_TEMP_D147
  add constraint MNP_ANAG_FINESTRE_TEMP_D147_PK primary key (TIPO_FILE, TIPO_OPERATORE)
  using index 
  tablespace TAB_IDX_SMALL;
-- Grant/Revoke object privileges 
grant select on MNP_ANAG_FINESTRE_TEMP_D147 to DWH with grant option;

grant select on mnp_gest_rich_don_tc to dwh with grant option;
grant select on mnp_gest_rich_rec_tc to dwh with grant option;
