Please enable JavaScript to view this site.

Invantive Estate

Eenmalige Actie:

Kies een unieke voorvoegsel per Invantive Estate omgeving in de database. In de praktijk wordt vaak gebruik gemaakt van ‘P_’ voor productie en ‘A_’ voor acceptatie.

Vul dit voorvoegsel in in het veld RDBMS-gebruikervoorvoegsel in het scherm Instellingen.

Meld je aan als gebruiker ‘system’ op de Oracle database.

Voer het volgende statement uit (dit gebeurt normaliter gedurende de installatie):

grant execute on <APPLICATIE SCHEMA>.bubs_session to system

/

grant execute on <APPLICATIE SCHEMA>.itgen_maintain_my_synonyms to system

/

Maak een trigger aan die er zorg voor draagt dat gedurende het aanmelden op de database automatisch ook aangemeld wordt op Invantive Estate indien de gebruiker bekend is binnen Invantive Estate:

 

create or replace trigger set_bubs_user after logon on database

begin

 --

 -- Log on to development environment if available and applicable.

 --

 obubs.bubs_session.log_on_through_oracle;

 --

 -- Log on to test environment if available and applicable.

 --

 tbubs.bubs_session.log_on_through_oracle;

 --

 -- Log on to acceptance environment if available and applicable.

 --

 abubs.bubs_session.log_on_through_oracle;

 --

 -- Log on to production environment if available and applicable.

 --

 -- Caution: you will be logged on to multiple environments at one time. Increased

 -- risk of data loss in production due to human error!

 --

 pbubs.bubs_session.log_on_through_oracle;

 --

 -- Option to automatically correct synonyms.

 -- Currently not possible due to DDL. Might become autonomous in the future.

 --

 -- pbubs.itgen_maintain_my_synonyms('PBUBS');

exception

 when others

 then

   null;

   --

   -- To debug uncomment and: raise_application_error(-20163, dbms_utility.format_error_stack || dbms_utility.format_error_backtrace);

   -- you might be having al32utf8 problems when using java such as using ojdbc14 instead of ojdbc6.

   --

end;

/

Als alternatief voor een echte ontwikkelomgeving kun je ook het volgende voorbeeld gebruiken:

 

create or replace trigger set_bubs_user after logon on database

begin

 if user = 'USR_HGO_BUBS'

 then

   execute immediate

   'begin'

   || ' usr_hgo_bubs.bubs_session.set_session_info'

   || '( ''toad.sql'''

   || ', ''install'''

   || ', ''system'''

   || ', ''various'''

   || ', coalesce(sys_context(''userenv'', ''ip_address''), ''?'')'

   || ', sys_context(''userenv'', ''host'')'

   || ', ''n/a'''

   || ', ''$Header: http://svn.invantive.com/repos/p104/trunk/help/nl/manual/Topics/voorbereiding-database-eenmalig.xml 23615 2013-11-17 11:25:45Z gle3 $'' || to_char(sysdate, ''YYYYMMDDHH24MISS'')'

   || ');'

   || 'end;'

   ;

 end if;

end;

/

Op echte ontwikkelomgevingen is het ook handig om projectbeveiliging uit te schakelen via het scherm Instellingen of met:
update bubs_instellingen_v set isg_alle_pjt_zien_vlag='Y';
commit;