1)select * from ad_appl_tops (in a good formatted way)
2)select * from ad_timestamps (in a good formatted way)
3)check the triggers on ad_appl_tops and ad_timestamps tables (not editioning views). Send me their scripts, (If there are any)
This is strange.. Because the update in adadmrat.sql tries to update these..
update ad_timestamps
set attribute = l_new_apps_system_name || '*' || l_new_appltop_name
where type in ('INSTANTIATED_CURRENT_VIEW_SNAPSHOT',
'BACKFILLED_BUGS_IN_CURRENT_VIEW_SNAPSHOT')
and attribute = l_new_apps_system_name || '*' || l_old_appltop_name;
addnode.pl should add these actually.
Anyways, take backup of ad_appl_tops and ad_timestamps.
Modify adadmrat.sql script.
put a commit one line above the following;
commit <<--put commit here- >>
update ad_timestamps
set attribute = l_new_apps_system_name || '*' || l_new_appltop_name
where type in ('INSTANTIATED_CURRENT_VIEW_SNAPSHOT',
'BACKFILLED_BUGS_IN_CURRENT_VIEW_SNAPSHOT')
and attribute = l_new_apps_system_name || '*' || l_old_appltop_name;
retry... Send me the output of ad_appl_tops and ad_timestamps after that.
Lets put some more prompts and be sure where the sql is failing.
Modify the relevant part of the sql as below; (backup original sql, put propmts as below , save sql and rerun your failing adadnode )
prompt Updating AD_APPL_TOPS
update ad_appl_tops
set name = l_new_appltop_name
where applications_system_name = l_new_apps_system_name
and name = l_old_appltop_name;
-- Update AD_TIMESTAMPS. Assume that the "apps-sys-name" portion in
-- ATTRIBUTE has already been updated (The portion before the
-- asterisk '*'. adadmprf.sql does this)
prompt successfully updated AD_APPL_TOPS
prompt now updating AD_TIMESTAMPS
update ad_timestamps
set attribute = l_new_apps_system_name || '*' || l_new_appltop_name
where type in ('INSTANTIATED_CURRENT_VIEW_SNAPSHOT',
'BACKFILLED_BUGS_IN_CURRENT_VIEW_SNAPSHOT')
and attribute = l_new_apps_system_name || '*' || l_old_appltop_name;