SQL Scripts for Custom Table Creation in Oracle Application 12.2.x
Due to introduction of Online Patching, Post 12.2.x version, there are certain steps to be followed while creating Custom Table.
1. For new table creations - after creating the table in custom schema execute below script to generate edition view and synonym for it in APPS schema.
exec AD_ZD_TABLE.UPGRADE('xxcust_schema','xxcust_Table');
2. For table alterations - after running the DDL run below script to regenerate the edition view for synchronizing any table changes.
exec AD_ZD_TABLE.PATCH('xxcust_schema','xxcust_table')
3. Table grants must be done through API to avoid invalids.
exec AD_ZD.GRANT_PRIVS('SELECT','xxcust_table,'xx_role')
4. To view objects in all editions, add "_ae" to the data dictionary views
select * from user_objects_ae;
5. To update seed data tables in Patch edition, execute prepare command.
example:
exec ad_zd_seed.prepare('WF_MESSAGES');
The prepare Procedure will create a edition based storage for the run edition data for which the updates will be made. During cut-over, the run time data will be synced using forward/reverse cross edition triggers.
1. For new table creations - after creating the table in custom schema execute below script to generate edition view and synonym for it in APPS schema.
exec AD_ZD_TABLE.UPGRADE('xxcust_schema','xxcust_Table');
2. For table alterations - after running the DDL run below script to regenerate the edition view for synchronizing any table changes.
exec AD_ZD_TABLE.PATCH('xxcust_schema','xxcust_table')
3. Table grants must be done through API to avoid invalids.
exec AD_ZD.GRANT_PRIVS('SELECT','xxcust_table,'xx_role')
4. To view objects in all editions, add "_ae" to the data dictionary views
select * from user_objects_ae;
5. To update seed data tables in Patch edition, execute prepare command.
example:
exec ad_zd_seed.prepare('WF_MESSAGES');
The prepare Procedure will create a edition based storage for the run edition data for which the updates will be made. During cut-over, the run time data will be synced using forward/reverse cross edition triggers.
Comments
Post a Comment