67: and column_name = 'ACTION_CODE';
68:
69: exception
70: when no_data_found then
71: fnd_stats.load_histogram_cols('INSERT', 50, 'AD_PATCH_COMMON_ACTIONS',
72: 'ACTION_CODE',NULL, hsize=>250);
73: when others then
74: raise_application_error(-20000 ,sqlerrm||': Error getting hisotgram
75: column from FND_HISTOGRAM_COLS');
85: and column_name = 'IS_FLAGGED_FILE';
86:
87: exception
88: when no_data_found then
89: fnd_stats.load_histogram_cols('INSERT', 50, 'AD_FILES',
90: 'IS_FLAGGED_FILE', NULL, hsize=>250);
91: when others then
92: raise_application_error(-20000 ,sqlerrm||': Error getting hisotgram
93: column from FND_HISTOGRAM_COLS');
93: column from FND_HISTOGRAM_COLS');
94: end;
95: --
96:
97: fnd_stats.gather_table_stats(G_UN_FND, 'AD_RELEASES');
98: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPL_TOPS');
99: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPLIED_PATCHES');
100: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVERS');
101: fnd_stats.gather_table_stats(G_UN_FND, 'AD_COMPRISING_PATCHES');
94: end;
95: --
96:
97: fnd_stats.gather_table_stats(G_UN_FND, 'AD_RELEASES');
98: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPL_TOPS');
99: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPLIED_PATCHES');
100: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVERS');
101: fnd_stats.gather_table_stats(G_UN_FND, 'AD_COMPRISING_PATCHES');
102: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_MINIPKS');
95: --
96:
97: fnd_stats.gather_table_stats(G_UN_FND, 'AD_RELEASES');
98: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPL_TOPS');
99: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPLIED_PATCHES');
100: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVERS');
101: fnd_stats.gather_table_stats(G_UN_FND, 'AD_COMPRISING_PATCHES');
102: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_MINIPKS');
103: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_LANGS');
96:
97: fnd_stats.gather_table_stats(G_UN_FND, 'AD_RELEASES');
98: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPL_TOPS');
99: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPLIED_PATCHES');
100: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVERS');
101: fnd_stats.gather_table_stats(G_UN_FND, 'AD_COMPRISING_PATCHES');
102: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_MINIPKS');
103: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_LANGS');
104: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUNS');
97: fnd_stats.gather_table_stats(G_UN_FND, 'AD_RELEASES');
98: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPL_TOPS');
99: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPLIED_PATCHES');
100: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVERS');
101: fnd_stats.gather_table_stats(G_UN_FND, 'AD_COMPRISING_PATCHES');
102: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_MINIPKS');
103: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_LANGS');
104: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUNS');
105: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUGS');
98: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPL_TOPS');
99: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPLIED_PATCHES');
100: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVERS');
101: fnd_stats.gather_table_stats(G_UN_FND, 'AD_COMPRISING_PATCHES');
102: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_MINIPKS');
103: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_LANGS');
104: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUNS');
105: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUGS');
106: fnd_stats.gather_table_stats(G_UN_FND, 'AD_BUGS');
99: fnd_stats.gather_table_stats(G_UN_FND, 'AD_APPLIED_PATCHES');
100: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVERS');
101: fnd_stats.gather_table_stats(G_UN_FND, 'AD_COMPRISING_PATCHES');
102: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_MINIPKS');
103: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_LANGS');
104: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUNS');
105: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUGS');
106: fnd_stats.gather_table_stats(G_UN_FND, 'AD_BUGS');
107: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_COMMON_ACTIONS');
100: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVERS');
101: fnd_stats.gather_table_stats(G_UN_FND, 'AD_COMPRISING_PATCHES');
102: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_MINIPKS');
103: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_LANGS');
104: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUNS');
105: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUGS');
106: fnd_stats.gather_table_stats(G_UN_FND, 'AD_BUGS');
107: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_COMMON_ACTIONS');
108: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUG_ACTIONS');
101: fnd_stats.gather_table_stats(G_UN_FND, 'AD_COMPRISING_PATCHES');
102: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_MINIPKS');
103: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_LANGS');
104: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUNS');
105: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUGS');
106: fnd_stats.gather_table_stats(G_UN_FND, 'AD_BUGS');
107: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_COMMON_ACTIONS');
108: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUG_ACTIONS');
109: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILE_VERSIONS');
102: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_MINIPKS');
103: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_LANGS');
104: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUNS');
105: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUGS');
106: fnd_stats.gather_table_stats(G_UN_FND, 'AD_BUGS');
107: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_COMMON_ACTIONS');
108: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUG_ACTIONS');
109: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILE_VERSIONS');
110: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILES');
103: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_DRIVER_LANGS');
104: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUNS');
105: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUGS');
106: fnd_stats.gather_table_stats(G_UN_FND, 'AD_BUGS');
107: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_COMMON_ACTIONS');
108: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUG_ACTIONS');
109: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILE_VERSIONS');
110: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILES');
111: elsif p_subsystem_code = 'SNAPSHOT' then
104: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUNS');
105: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUGS');
106: fnd_stats.gather_table_stats(G_UN_FND, 'AD_BUGS');
107: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_COMMON_ACTIONS');
108: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUG_ACTIONS');
109: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILE_VERSIONS');
110: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILES');
111: elsif p_subsystem_code = 'SNAPSHOT' then
112: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOTS');
105: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUGS');
106: fnd_stats.gather_table_stats(G_UN_FND, 'AD_BUGS');
107: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_COMMON_ACTIONS');
108: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUG_ACTIONS');
109: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILE_VERSIONS');
110: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILES');
111: elsif p_subsystem_code = 'SNAPSHOT' then
112: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOTS');
113: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_BUGFIXES');
106: fnd_stats.gather_table_stats(G_UN_FND, 'AD_BUGS');
107: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_COMMON_ACTIONS');
108: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUG_ACTIONS');
109: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILE_VERSIONS');
110: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILES');
111: elsif p_subsystem_code = 'SNAPSHOT' then
112: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOTS');
113: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_BUGFIXES');
114: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_FILES');
108: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_BUG_ACTIONS');
109: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILE_VERSIONS');
110: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILES');
111: elsif p_subsystem_code = 'SNAPSHOT' then
112: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOTS');
113: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_BUGFIXES');
114: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_FILES');
115: elsif p_subsystem_code = 'TASK_TIMING' then
116: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PROGRAM_RUN_TASKS');
109: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILE_VERSIONS');
110: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILES');
111: elsif p_subsystem_code = 'SNAPSHOT' then
112: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOTS');
113: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_BUGFIXES');
114: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_FILES');
115: elsif p_subsystem_code = 'TASK_TIMING' then
116: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PROGRAM_RUN_TASKS');
117: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PROGRAM_RUN_TASK_JOBS');
110: fnd_stats.gather_table_stats(G_UN_FND, 'AD_FILES');
111: elsif p_subsystem_code = 'SNAPSHOT' then
112: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOTS');
113: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_BUGFIXES');
114: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_FILES');
115: elsif p_subsystem_code = 'TASK_TIMING' then
116: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PROGRAM_RUN_TASKS');
117: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PROGRAM_RUN_TASK_JOBS');
118: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_SESS_ATTRIBS');
112: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOTS');
113: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_BUGFIXES');
114: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_FILES');
115: elsif p_subsystem_code = 'TASK_TIMING' then
116: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PROGRAM_RUN_TASKS');
117: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PROGRAM_RUN_TASK_JOBS');
118: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_SESS_ATTRIBS');
119: else
120: raise_application_error(-20000, 'Invalid p_subsystem_code: '||
113: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_BUGFIXES');
114: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_FILES');
115: elsif p_subsystem_code = 'TASK_TIMING' then
116: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PROGRAM_RUN_TASKS');
117: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PROGRAM_RUN_TASK_JOBS');
118: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_SESS_ATTRIBS');
119: else
120: raise_application_error(-20000, 'Invalid p_subsystem_code: '||
121: p_subsystem_code);
114: fnd_stats.gather_table_stats(G_UN_FND, 'AD_SNAPSHOT_FILES');
115: elsif p_subsystem_code = 'TASK_TIMING' then
116: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PROGRAM_RUN_TASKS');
117: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PROGRAM_RUN_TASK_JOBS');
118: fnd_stats.gather_table_stats(G_UN_FND, 'AD_PATCH_RUN_SESS_ATTRIBS');
119: else
120: raise_application_error(-20000, 'Invalid p_subsystem_code: '||
121: p_subsystem_code);
122: end if;