Im Rahmen des Projektes MV sind diverse Versicherungsdaten aus MV Systemen in myLife System zu übernehmen.
Tätigkeiten zur Übernahme von Personendaten:
OASIS, LIFE und COR_ADMIN werden benötigt. Das eigentliche 'Zusammentragen' der Daten geschieht auf Mig_MVR
Mig_MVR benötigt Zugriff auf COR_ADMIN, LIFE und OASIS:
-- Ausführen auf COR_ADMIN
select 'grant select on COR_ADMIN.'||object_name||' to Mig_MVR with Grant Option;'
from all_objects
where object_type in ('VIEW','TABLE')
and object_name not like 'BIN$%==$0'
and owner = 'COR_ADMIN'
UNION
select 'grant execute on COR_ADMIN.'||object_name||' to Mig_MVR with Grant Option;'
from all_objects
where owner = 'COR_ADMIN'
and object_name not like 'BIN$%==$0'
and object_type in ('FUNCTION', 'PROCEDURE', 'PACKAGE');
-- Ausführen auf OASIS
select 'grant select on OASIS.'||object_name||' to Mig_MVR with Grant Option;'
from all_objects
where object_type in ('VIEW','TABLE')
and object_name not like 'BIN$%==$0'
and owner = 'OASIS'
UNION
select 'grant execute on OASIS.'||object_name||' to Mig_MVR with Grant Option;'
from all_objects
where owner = 'OASIS'
and object_name not like 'BIN$%==$0'
and object_type in ('FUNCTION', 'PROCEDURE', 'PACKAGE');
-- Ausführen auf LIFE
select 'grant select on LIFE.'||object_name||' to Mig_MVR with Grant Option;'
from all_objects
where object_type in ('VIEW','TABLE')
and object_name not like 'BIN$%==$0'
and owner = 'LIFE'
UNION
select 'grant execute on LIFE.'||object_name||' to Mig_MVR with Grant Option;'
from all_objects
where owner = 'LIFE'
and object_name not like 'BIN$%==$0'
and object_type in ('FUNCTION', 'PROCEDURE', 'PACKAGE');
Die Ausgaben der Statements müssen wiederum jeweils auf den beschriebenen Servern ausgeführt werden.
Zusätzlich braucht Mig_MVR noch weitere Berechtigungen:
grant select on BANK to Mig_MVR with Grant Option;
Auf Mig_MVR werden anschliessend diverse Views angelegt (MYLIFE_Mig_MVR_VIEWS.sql (14,39 kb)).