DBA Data[Home] [Help]

APPS.BSC_DBGEN_UTILS dependencies on BSC_DBGEN_UTILS

Line 1: Package Body BSC_DBGEN_UTILS AS

1: Package Body BSC_DBGEN_UTILS AS
2: /* $Header: BSCDBUTB.pls 120.10 2007/04/25 12:52:55 ashankar ship $ */
3:
4:
5: FUNCTION Is_Simulation_Report

Line 50: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_bsc_schema:'||sqlerrm);

46: END IF;
47: g_bsc_schema := l_bsc_schema;
48: return l_bsc_schema;
49: EXCEPTION when others then
50: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_bsc_schema:'||sqlerrm);
51: raise;
52: end;
53:
54: /*---------------------------------------------------------------------

Line 71: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_apps_schema:'||sqlerrm);

67: FETCH cApps INTO l_schema;
68: CLOSE cApps;
69: return l_schema;
70: EXCEPTION when others then
71: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_apps_schema:'||sqlerrm);
72: raise;
73: END;
74:
75: PROCEDURE init IS

Line 85: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.init:'||sqlerrm);

81: g_bsc_schema := get_bsc_schema;
82: g_apps_schema := get_apps_schema;
83: g_initialized := true;
84: EXCEPTION when others then
85: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.init:'||sqlerrm);
86: raise;
87:
88: END;
89:

Line 112: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_datatype:'||sqlerrm);

108: l_type := l_type ||'('||l_length||')';
109: END IF;
110: return l_type;
111: EXCEPTION when others then
112: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_datatype:'||sqlerrm);
113: raise;
114:
115: END;
116:

Line 139: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.Get_New_Big_In_Cond_Number:'||sqlerrm);

135: ' SELECT VALUE_N FROM BSC_TMP_BIG_IN_COND WHERE SESSION_ID = USERENV(''SESSIONID'')'||
136: ' AND VARIABLE_ID = ' || x_variable_id || ')';
137: return l_cond;
138: EXCEPTION when others then
139: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.Get_New_Big_In_Cond_Number:'||sqlerrm);
140: raise;
141: End;
142:
143: --===========================================================================+

Line 157: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.Add_Value_Big_In_Cond_Number:'||sqlerrm);

153: init;
154: END IF;
155: bsc_apps.Add_Value_Big_In_Cond(x_variable_id , x_value);
156: EXCEPTION when others then
157: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.Add_Value_Big_In_Cond_Number:'||sqlerrm);
158: raise;
159: End;
160:
161: --===========================================================================+

Line 180: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.Get_New_Big_In_Cond_Varchar2:'||sqlerrm);

176: cond := 'UPPER('|| x_column_name || ') IN ('||
177: ' SELECT UPPER(VALUE_V) FROM BSC_TMP_BIG_IN_COND WHERE SESSION_ID = USERENV(''SESSIONID'') AND VARIABLE_ID = '||x_variable_id||')';
178: return cond;
179: EXCEPTION when others then
180: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.Get_New_Big_In_Cond_Varchar2:'||sqlerrm);
181: raise;
182: End;
183: --===========================================================================+
184: -- Name: Add_Value_Big_In_Cond_Varchar2

Line 198: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.Add_Value_Big_In_Cond_Varchar2:'||sqlerrm);

194: END IF;
195: bsc_apps.Add_Value_Big_In_Cond(x_variable_id , x_value);
196:
197: EXCEPTION when others then
198: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.Add_Value_Big_In_Cond_Varchar2:'||sqlerrm);
199: raise;
200: End;
201:
202: FUNCTION get_dbgen_fact_id(p_fact_name IN VARCHAR2, p_application_short_name IN VARCHAR2) RETURN NUMBER IS

Line 216: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_dbgen_fact_id:'||sqlerrm);

212: CLOSE cFactID;
213: return l_fact_id;*/
214: return to_number(p_fact_name);
215: EXCEPTION when others then
216: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_dbgen_fact_id:'||sqlerrm);
217: raise;
218: END;
219:
220: --****************************************************************************

Line 274: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_measure_list:'||sqlerrm||', expression='||p_expression);

270: i := l_measure_list_tmp.next(i);
271: END LOOP;
272: return l_measure_list;
273: EXCEPTION when others then
274: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_measure_list:'||sqlerrm||', expression='||p_expression);
275: raise;
276: End;
277:
278: --***************************************************************************

Line 316: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_kpi_property_value:'||sqlerrm||', p_kpi='||p_kpi||', p_property='||p_property||', p_default='||p_default);

312: return l_value;
313: END IF;
314: return p_default;
315: EXCEPTION when others then
316: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_kpi_property_value:'||sqlerrm||', p_kpi='||p_kpi||', p_property='||p_property||', p_default='||p_default);
317: raise;
318: End;
319:
320: PROCEDURE add_property(

Line 355: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.add_property:'||sqlerrm||', p_name='||p_name||', p_Value='||p_value);

351: l_property.name := p_name;
352: l_property.value := p_value;
353: p_properties(p_properties.last+1) := l_property;
354: EXCEPTION when others then
355: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.add_property:'||sqlerrm||', p_name='||p_name||', p_Value='||p_value);
356: raise;
357: END;
358:
359: FUNCTION get_property_value(p_properties IN BSC_DBGEN_STD_METADATA.tab_ClsProperties, p_name in varchar2) return VARCHAR2

Line 376: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_property_value:'||sqlerrm||', p_name='||p_name);

372: END LOOP;
373: return BSC_DBGEN_STD_METADATA.BSC_PROPERTY_NOT_FOUND ;
374:
375: EXCEPTION when others then
376: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_property_value:'||sqlerrm||', p_name='||p_name);
377: raise;
378: END;
379:
380: FUNCTION get_source_table_names(p_table_name IN VARCHAR2) RETURN DBMS_SQL.VARCHAR2_TABLE IS

Line 395: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_source_table_names:'||sqlerrm||', p_table_name='||p_table_name);

391: l_list(l_list.count) := i.source_table_name;
392: END LOOP;
393: return l_list;
394: EXCEPTION when others then
395: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_source_table_names:'||sqlerrm||', p_table_name='||p_table_name);
396: raise;
397: END;
398:
399: FUNCTION get_table_type(p_table_name IN VARCHAR2) RETURN VARCHAR2

Line 448: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_table_type:'||sqlerrm||', p_table_name='||p_table_name);

444: return 'S';
445: END IF;
446: return null;
447: EXCEPTION when others then
448: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_table_type:'||sqlerrm||', p_table_name='||p_table_name);
449: raise;
450: END;
451:
452: FUNCTION get_mvlog_for_table(p_table_name IN VARCHAR2) RETURN VARCHAR2

Line 467: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_mvlog_for_table:'||sqlerrm||', p_table_name='||p_table_name);

463: FETCH cMVLog INTO l_mvlog_name;
464: CLOSE cMVLog;
465: RETURN l_mvlog_name;
466: EXCEPTION when others then
467: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_mvlog_for_table:'||sqlerrm||', p_table_name='||p_table_name);
468: raise;
469: END;
470:
471:

Line 523: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_char_chunks:'||sqlerrm||', p_msg='||p_msg||', p_chunk_size='||p_chunk_size);

519: l_msg := substr(l_msg, l_chunk_size+1, length(l_msg));
520: END LOOP;
521: return l_varchar2_table;
522: EXCEPTION when others then
523: fnd_file.put_line(FND_FILE.LOG, 'Exception in BSC_DBGEN_UTILS.get_char_chunks:'||sqlerrm||', p_msg='||p_msg||', p_chunk_size='||p_chunk_size);
524: raise;
525: END;
526:
527: /****************************************************************************

Line 968: END BSC_DBGEN_UTILS;

964:
965:
966:
967:
968: END BSC_DBGEN_UTILS;