set feedback off
set define off

prompt
prompt	Initializare SAL_PERSONAL
prompt	=========================

prompt Disabling triggers for SAL_PERSONAL...
alter table SAL_PERSONAL disable all triggers;

prompt Deleting SAL_PERSONAL...
delete from SAL_PERSONAL where id_salariat=0;
commit;

prompt Loading SAL_PERSONAL...
insert into SAL_PERSONAL (ID_SALARIAT, NUME, PRENUME, MARCA, STERS, INACTIV, BINR, BLOC, CMNR, LOCNASTERE, LOCALITATE, LIVRETMIL, JUDET, ID_PART, ETAJ, CODPOSTAL, CODPERS, CMSERIA, VECHIMEI, STRADA, SPECIALIZ, SITMIL, SECTOR, SCARA, NUMAR, NATIONALIT, MODINCADR, CETATENIE, BISERIA, BIELIBERAT, APART, BIDATA, DATA_VECH, STARECIV, NUMEMAMA, NUMESOT, NUMETATA, ID_PROFESIE, VECHIMEZ)
values (0, '<NEREPARTIZAT>', null, 0, 0, 0, null, null, null, null, null, null, null, 0, null, null, 0, null, 0, null, null, null, null, null, null, null, null, null, null, null, null, null, null, 0, null, null, null, null, 0);
commit;
prompt 1 records loaded

prompt Enabling triggers for SAL_PERSONAL...
alter table SAL_PERSONAL enable all triggers;

prompt
prompt	Initializare DEV_MECANICI
prompt	=========================
prompt Disabling triggers for DEV_MECANICI...
alter table DEV_MECANICI disable all triggers;

prompt Deleting DEV_MECANICI...
delete from DEV_MECANICI where id_mecanic=1;
commit;

prompt Loading DEV_MECANICI...
insert into DEV_MECANICI (ID_MECANIC, ID_SALARIAT, ID_SECTIE, STERS, INACTIV)
values (1, 0, null, 0, 0);
commit;
prompt 1 records loaded

prompt Enabling triggers for DEV_MECANICI...
alter table DEV_MECANICI enable all triggers;

prompt
prompt	Initializare DEV_NOM_ANSAMBLE
prompt	=============================
prompt Disabling triggers for DEV_NOM_ANSAMBLE...
alter table DEV_NOM_ANSAMBLE disable all triggers;

prompt Deleting DEV_NOM_ANSAMBLE...
delete from DEV_NOM_ANSAMBLE where id_ansamblu=0;
commit;

prompt Loading DEV_NOM_ANSAMBLE...
insert into DEV_NOM_ANSAMBLE (ID_ANSAMBLU, DENUMIRE, STERS, INACTIV)
values (0, null, 0, 0);
commit;
prompt 1 records loaded

prompt Enabling triggers for DEV_NOM_ANSAMBLE...
alter table DEV_NOM_ANSAMBLE enable all triggers;

prompt
prompt	Initializare DEV_NOM_ASIGURATORI
prompt	================================
prompt Disabling triggers for DEV_NOM_ASIGURATORI...
alter table DEV_NOM_ASIGURATORI disable all triggers;

prompt Deleting DEV_NOM_ASIGURATORI...
delete from DEV_NOM_ASIGURATORI where id_asigurator=0;
commit;

prompt Loading DEV_NOM_ASIGURATORI...
insert into DEV_NOM_ASIGURATORI (ID_ASIGURATOR, ASIGURATOR, STERS, INACTIV)
values (0, null, 0, 0);
commit;
prompt 1 records loaded

prompt Enabling triggers for DEV_NOM_ASIGURATORI...
alter table DEV_NOM_ASIGURATORI enable all triggers;

prompt
prompt	Initializare DEV_NOM_FURNIZORIMASINI
prompt	====================================
prompt Disabling triggers for DEV_NOM_FURNIZORIMASINI...
alter table DEV_NOM_FURNIZORIMASINI disable all triggers;

prompt Deleting DEV_NOM_FURNIZORIMASINI...
delete from DEV_NOM_FURNIZORIMASINI where id_furnizor=0;
commit;

prompt Loading DEV_NOM_FURNIZORIMASINI...
insert into DEV_NOM_FURNIZORIMASINI (ID_FURNIZOR, DENUMIRE, STERS, INACTIV)
values (0, null, 0, 0);
commit;
prompt 1 records loaded

prompt Enabling triggers for DEV_NOM_FURNIZORIMASINI...
alter table DEV_NOM_FURNIZORIMASINI enable all triggers;

prompt
prompt	Initializare DEV_NOM_INSPECTORI
prompt	===============================
prompt Disabling triggers for DEV_NOM_INSPECTORI...
alter table DEV_NOM_INSPECTORI disable all triggers;

prompt Disabling foreign key constraints for DEV_NOM_INSPECTORI...
alter table DEV_NOM_INSPECTORI disable constraint FK_NOM_ASIGURATORI;

prompt Deleting DEV_NOM_INSPECTORI...
delete from DEV_NOM_INSPECTORI where id_inspector=0;
commit;

prompt Loading DEV_NOM_INSPECTORI...
insert into DEV_NOM_INSPECTORI (ID_INSPECTOR, INSPECTOR, ID_ASIGURATOR, STERS, INACTIV)
values (0, null, 0, 0, 0);
commit;
prompt 1 records loaded

prompt Enabling foreign key constraints for DEV_NOM_INSPECTORI...
alter table DEV_NOM_INSPECTORI enable constraint FK_NOM_ASIGURATORI;

prompt Enabling triggers for DEV_NOM_INSPECTORI...
alter table DEV_NOM_INSPECTORI enable all triggers;

prompt
prompt	Initializare DEV_NOM_MARCI
prompt	================================
prompt Disabling triggers for DEV_NOM_MARCI...
alter table DEV_NOM_MARCI disable all triggers;

prompt Deleting DEV_NOM_MARCI...
delete from DEV_NOM_MARCI where id_marca=0;
commit;

prompt Loading DEV_NOM_MARCI...
insert into DEV_NOM_MARCI (ID_MARCA, MARCA, STERS, INACTIV)
values (0, null, 0, 0);
commit;
prompt 1 records loaded

prompt Enabling triggers for DEV_NOM_MARCI...
alter table DEV_NOM_MARCI enable all triggers;

prompt
prompt	Initializare DEV_NOM_MASINI
prompt	===========================
prompt Disabling triggers for DEV_NOM_MASINI...
alter table DEV_NOM_MASINI disable all triggers;

prompt Disabling foreign key constraints for DEV_NOM_MASINI...
alter table DEV_NOM_MASINI disable constraint FK_MARCA;

prompt Deleting DEV_NOM_MASINI...
delete from DEV_NOM_MASINI where id_masina=0;
commit;

prompt Loading DEV_NOM_MASINI...
insert into DEV_NOM_MASINI (ID_MASINA, ID_MARCA, MASINA, SCTIP, CLASA, STERS, INACTIV)
values (0, 0, null, null, null, 0, 0);
commit;
prompt 1 records loaded

prompt Enabling foreign key constraints for DEV_NOM_MASINI...
alter table DEV_NOM_MASINI enable constraint FK_MARCA;

prompt Enabling triggers for DEV_NOM_MASINI...
alter table DEV_NOM_MASINI enable all triggers;

prompt
prompt	Initializare DEV_TIPURI_MOTOARE
prompt	===============================
prompt Disabling triggers for DEV_TIPURI_MOTOARE...
alter table DEV_TIPURI_MOTOARE disable all triggers;

prompt Deleting DEV_TIPURI_MOTOARE...
delete from DEV_TIPURI_MOTOARE where id_tipmotor=0;
commit;

prompt Loading DEV_TIPURI_MOTOARE...
insert into DEV_TIPURI_MOTOARE (ID_TIPMOTOR, DENUMIRE, STERS, INACTIV)
values (0, null, 0, 0);
commit;
prompt 1 records loaded

prompt Enabling triggers for DEV_TIPURI_MOTOARE...
alter table DEV_TIPURI_MOTOARE enable all triggers;

prompt
prompt	Initializare DEV_TIP_DEVIZ
prompt	==========================
prompt Disabling triggers for DEV_TIP_DEVIZ...
alter table DEV_TIP_DEVIZ disable all triggers;

prompt Deleting DEV_TIP_DEVIZ...
delete from DEV_TIP_DEVIZ;
commit;

prompt Loading DEV_TIP_DEVIZ...
insert into DEV_TIP_DEVIZ (ID_TIP, DENUMIRE, STERS)
values (1, 'POST GARANTIE', 0);
insert into DEV_TIP_DEVIZ (ID_TIP, DENUMIRE, STERS)
values (2, 'GARANTIE', 0);
insert into DEV_TIP_DEVIZ (ID_TIP, DENUMIRE, STERS)
values (3, 'REGIE', 0);
insert into DEV_TIP_DEVIZ (ID_TIP, DENUMIRE, STERS)
values (4, 'PREGATIRE', 0);
insert into DEV_TIP_DEVIZ (ID_TIP, DENUMIRE, STERS)
values (5, 'REGIE 2', 0);
commit;
prompt 5 records loaded

prompt Enabling triggers for DEV_TIP_DEVIZ...
alter table DEV_TIP_DEVIZ enable all triggers;

set feedback on
set define on
prompt Done.
