The following lines contain the word 'select', 'insert', 'update' or 'delete':
procedure delete_aw_object(p_object varchar2) is
Begin
if p_object is not null then
bsc_aw_dbms_aw.execute('delete '||p_object);
null;--may try to delete an object that does not exist
procedure delete_table(p_table varchar2,p_where varchar2) is
--
l_stmt varchar2(1000);
log('delete '||p_table||' where '||p_where);
l_stmt:='delete '||p_table;
l_stmt:='delete '||p_table||' where '||p_where;
log('Deleted '||sql%rowcount||' rows '||get_time);
log('Exception in delete_table '||sqlerrm);
p_relation.delete;
bsc_aw_dbms_aw.execute_ne('delete '||p_program);
bsc_aw_dbms_aw.execute_ne('delete '||p_aggmap);
ORA-34738: (NOUPDATE) A severe problem has been detected. Analytic workspace operations have been disabled.
ORA-06512: at "APPS.BSC_AW_UTILITY", line 466
ORA-06512: at "APPS.BSC_AW_LOAD", line 112
ORA-37666: ** SYSTEM ERROR xsSqlImport01 **
A severe problem has been detected. Please save your work via EXPORT or OUTFILE and exit as soon as possible.
As a safety measure, analytic workspace operations have been disabled. Call Oracle OLAP technical support.
ORA-06512: at line 7
somehow, hardcoded 1 is interpreted as true / false 1.
so we will see if count is in the formula. if yes, we will go for groupby
*/
procedure parse_out_agg_function(p_formula varchar2,p_noagg_formula out nocopy varchar2) is
--
l_agg_function varchar2(100);
g_stmt:='select 1 from '||p_table;
cursor c1 is select table_owner from user_synonyms where synonym_name=upper(p_table);
SELECT oracle_username
FROM fnd_oracle_userid WHERE oracle_id
BETWEEN 900 AND 999 AND read_only_flag = 'U';
/*5121276 bsc_aw_dim_delete needs to be created here too*/
procedure create_perm_tables is
table_columns bsc_update_util.t_array_temp_table_cols;
table_name:='bsc_aw_dim_delete';
table_columns.delete;
table_columns(table_columns.count+1).column_name:='DELETE_VALUE';
if bsc_update_util.Create_Permanent_Table(table_name,table_columns,table_columns.count,l_tablespace,l_idx_tablespace)=false then
log_n('Exception in bsc_update_util.Create_Permanent_Table. For now, not raising this exception...');
p_array.delete(p_array.count);
update_job_status(p_parallel_jobs(i));--read from the pipe. then update the fields
procedure update_job_status(p_parallel_job in out nocopy parallel_job_r) is
--
l_pipe_message varchar2(2000);
log_n('Exception in update_job_status '||sqlerrm);
cursor c1 is select 1 from all_jobs where job=p_job_id;
g_parallel_jobs.delete;
g_parallel_jobs.delete;
open cv for 'select count(*) from all_scheduler_running_jobs';
cursor c1 is select value from v$parameter param where name=p_name;
select mystat.sid into l_sid from v$mystat mystat where rownum=1;
this will also update the option value if already in g_options
*/
procedure add_option(p_options varchar2,p_option_value varchar2,p_separator varchar2) is
l_values value_tb;
p_array.delete;
g_sqlerror.delete;
g_sqlerror.delete;
bsc_aw_utility.delete_table('bsc_aw_temp_pc',null);
execute immediate 'insert into bsc_aw_temp_pc(parent,child,id) values (:1,:2,:3)' using nvl(p_pc_1(i).parent,'null'),
nvl(p_pc_1(i).child,'null'),1;
execute immediate 'insert into bsc_aw_temp_pc(parent,child,id) values (:1,:2,:3)' using nvl(p_pc_2(i).parent,'null'),
nvl(p_pc_2(i).child,'null'),2;
open cv for 'select parent,child from bsc_aw_temp_pc where id=1 minus select parent,child from bsc_aw_temp_pc where id=2';
open cv for 'select parent,child from bsc_aw_temp_pc where id=2 minus select parent,child from bsc_aw_temp_pc where id=1';
g_values.delete;
g_values(p_index).new_values.delete;
delete_table('bsc_aw_temp_vn',null);
execute immediate 'insert into bsc_aw_temp_vn(name) values (:1)' using p_array(i);
open cv for 'select name from bsc_aw_temp_vn order by name';
cursor c1 is select * from all_tables where table_name=upper(p_table) and owner=upper(p_owner);
we update p_string with the values*/
procedure update_property(p_string in out nocopy varchar2,p_parameter varchar2,p_value varchar2,p_separator varchar2) is
l_values dbms_sql.varchar2_table;
log_n('Exception in update_property '||sqlerrm);
/*add/update property */
procedure merge_property(p_property in out nocopy property_tb,p_property_name varchar2,p_property_type varchar2,p_property_value varchar2) is
Begin
for i in 1..p_property.count loop
if p_property(i).property_name=p_property_name then
p_property(i).property_type:=p_property_type;
cursor c1 is select statname.name, mystat.value from v$mystat mystat,v$statname statname where mystat.statistic#=statname.statistic#
order by statname.name;
cursor c1 is select event.event,event.total_waits,event.total_timeouts,round(event.time_waited) time_waited,
round(event.average_wait) average_wait,round(event.max_wait) max_wait
from v$session_event event where event.sid=get_session_id order by event.event;
p_ssg.session_stats.delete;
stmt:='select count(*) from '||p_table;