80: uiutil.render_tab(c_url => 'etrm_pnav.ls_apps'
81: , c_title => 'DBA'
82: , c_position => 'RIGHT'
83: , c_state => 'SELECTED');
84: -- htp.p('
');
85: end draw_tabs;
86:
87: procedure quick_list is
88:
97: for v_rec in cur_version loop
98: v_version := v_rec.release_name;
99: end loop;
100:
101: htp.p(''||v_version||' DBA Data
');
102:
103: end quick_list;
104:
105: procedure draw_form(c_name in dba_objects.object_name%type := '%'
Browse the online data dictionary of an Applications database
');
112: if (c_name = '%'
113: and c_owner = '%'
114: and c_type = '%'
115: and c_status = '%') then
116: htp.p('
Browse the online data dictionary of an Applications database
');DBA Navigator Home');
120: end if;
115: and c_status = '%') then
116: htp.p('
Browse the online data dictionary of an Applications database
');DBA Navigator Home');
120: end if;
121:
122: htp.p('
199: htp.p('');
200: htp.p('');
201:
202: htp.p('');
203: htp.p('');
204: htp.p('');
205:
206: --htp.p('c_name='||c_name||' c_owner='||c_owner||' c_type='||c_type);
207: end draw_form;
200: htp.p('');
201:
202: htp.p('');
203: htp.p('');
204: htp.p('');
205:
206: --htp.p('c_name='||c_name||' c_owner='||c_owner||' c_type='||c_type);
207: end draw_form;
208:
202: htp.p('');
203: htp.p('');
204: htp.p('');
205:
206: --htp.p('c_name='||c_name||' c_owner='||c_owner||' c_type='||c_type);
207: end draw_form;
208:
209:
210: FUNCTION get_object_name(n_object_id in dba_objects.object_id%type
314: etrm_pnav.draw_buttons;
315: uiutil.cabo2b;
316: etrm_pnav.draw_tabs;
317: uiutil.cabo3;
318: -- htp.p('Objects
');
319:
320: v_owner := 'foRce_mE_to_diff';
321: v_name := replace(c_name, '*', '%'); -- http drops trailing %
322: v_name := replace(v_name, '%23', '#');
321: v_name := replace(c_name, '*', '%'); -- http drops trailing %
322: v_name := replace(v_name, '%23', '#');
323: v_httpname := replace(c_name, '%', '*');
324: v_httpname := replace(v_httpname, '#', '%23');
325: htp.p('');
326: htp.p('
322: v_name := replace(v_name, '%23', '#');
323: v_httpname := replace(c_name, '%', '*');
324: v_httpname := replace(v_httpname, '#', '%23');
325: htp.p('
332: if a_rec.owner = v_owner then
333: null;
334: else
335: v_owner := a_rec.owner;
336: htp.p('
338: , c_link => 'etrm_pnav.ls_object?c_name='
339: || v_httpname
340: ||'&c_owner='
341: ||a_rec.owner
342: ||'&c_status='
343: || replace(c_status, '%', '*')
344: , c_display => a_rec.owner);
345: htp.p('');
346: end if;
347: htp.p('
343: || replace(c_status, '%', '*')
344: , c_display => a_rec.owner);
345: htp.p('');
346: end if;
347: htp.p('
349: , c_link => 'etrm_pnav.ls_object?c_name='
350: || v_httpname
351: ||'&c_owner='
357: , c_display => a_rec.object_type
358: ||' ('
359: ||a_rec.object_count
360: ||')');
361: htp.p('');
362: v_counter := v_counter + a_rec.object_count;
363: end loop;
364: htp.p('
360: ||')');
361: htp.p('');
362: v_counter := v_counter + a_rec.object_count;
363: end loop;
364: htp.p('
365: htp.p('');
366:
367: uiutil.cabo4;
368: etrm_pnav.quick_list;
361: htp.p('');
362: v_counter := v_counter + a_rec.object_count;
363: end loop;
364: htp.p('
402: etrm_pnav.draw_buttons;
403: uiutil.cabo2b;
404: etrm_pnav.draw_tabs;
405: uiutil.cabo3;
406: htp.p(''||c_type||'
');
407: v_owner := 'foRce_mE_to_diff';
408: v_name := replace(c_name, '*', '%'); -- http drops trailing %
409: v_name := replace(v_name, '%23', '#');
410: v_httpname := replace(c_name, '%', '*');
410: v_httpname := replace(c_name, '%', '*');
411: v_httpname := replace(v_httpname, '#', '%23');
412:
413:
414: htp.p('');
415: htp.p('
411: v_httpname := replace(v_httpname, '#', '%23');
412:
413:
414: htp.p('
421: if a_rec.owner = v_owner then
422: null;
423: else
424: v_owner := a_rec.owner;
425: htp.p('
427: , c_link => 'etrm_pnav.ls_object?c_name='
428: || v_httpname
429: ||'&c_owner='
430: ||a_rec.owner
431: ||'&c_status='
432: ||replace(c_status, '%', '*')
433: , c_display => a_rec.owner);
434: htp.p('');
435: end if;
436: htp.p('
432: ||replace(c_status, '%', '*')
433: , c_display => a_rec.owner);
434: htp.p('');
435: end if;
436: htp.p('
438: , c_link => 'etrm_pnav.show_object?c_name='
439: || replace(replace(a_rec.object_name, '#', '%23'),'+', '%2B')
440: ||'&c_owner='
441: ||a_rec.owner
442: ||'&c_type='
443: ||c_type
444: , c_display => a_rec.object_name);
445: htp.p('');
446: v_counter := v_counter + 1;
447: end loop;
448: htp.p('
444: , c_display => a_rec.object_name);
445: htp.p('');
446: v_counter := v_counter + 1;
447: end loop;
448: htp.p('
449: htp.p('');
450:
451: uiutil.cabo4;
452: etrm_pnav.quick_list;
445: htp.p('');
446: v_counter := v_counter + 1;
447: end loop;
448: htp.p('
509: v_first BOOLEAN;
510:
511: begin
512: for o_rec in cur_object(c_name, c_owner, c_type) loop
513: htp.p('Object Details
');
514:
515: htp.p('
Object Name: | ');
---|
Object Name: | ');'||o_rec.object_name||' | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Object Name: | ');
Object Name: | ');'||o_rec.object_name||' | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Object Type: | ');'||o_rec.object_type||' | '||o_rec.object_name||' | ');
Object Name: | ');'||o_rec.object_name||' | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Object Type: | ');'||o_rec.object_type||' | ||||||||||||||||||||||||||||||
Object Type: | ');|||||||||||||||||||||||||||||||
Object Name: | ');'||o_rec.object_name||' | ||||||||||||||||||||||||||||||
Object Type: | ');'||o_rec.object_type||' | ||||||||||||||||||||||||||||||
Owner: | ');'||o_rec.owner||' | '||o_rec.object_type||' | ');|||||||||||||||||||||||||||||
Object Name: | ');'||o_rec.object_name||' | ||||||||||||||||||||||||||||||
Object Type: | ');'||o_rec.object_type||' | ||||||||||||||||||||||||||||||
Owner: | ');'||o_rec.owner||' | ||||||||||||||||||||||||||||||
Owner: | ');|||||||||||||||||||||||||||||||
Object Type: | ');'||o_rec.object_type||' | ||||||||||||||||||||||||||||||
Owner: | ');'||o_rec.owner||' | '||o_rec.owner||' | ');|||||||||||||||||||||||||||||
Object Type: | ');'||o_rec.object_type||' | ||||||||||||||||||||||||||||||
Owner: | ');'||o_rec.owner||' | ||||||||||||||||||||||||||||||
FND Design Data: | ');
528:
530: if v_first = TRUE
545:
547: if v_first = TRUE
560: end loop;
563: if v_first = FALSE then
564: htp.p('
566: 567: htp.prn(' | ||||||||||||||||||||||||||||||
Subobject Name: | ');'||o_rec.subobject_name||' | ||||||||||||||||||||||||||||||
Object ID: | ');'||o_rec.object_id||' | ||||||||||||||||||||||||||||||
Data Object ID: | ');'||o_rec.data_object_id||' | ||||||||||||||||||||||||||||||
Data Object ID: | ');|||||||||||||||||||||||||||||||
Object ID: | ');'||o_rec.object_id||' | ||||||||||||||||||||||||||||||
Data Object ID: | ');'||o_rec.data_object_id||' | ||||||||||||||||||||||||||||||
Created: | ');'||o_rec.created||' | '||o_rec.data_object_id||' | ');|||||||||||||||||||||||||||||
Object ID: | ');'||o_rec.object_id||' | ||||||||||||||||||||||||||||||
Data Object ID: | ');'||o_rec.data_object_id||' | ||||||||||||||||||||||||||||||
Created: | ');'||o_rec.created||' | ||||||||||||||||||||||||||||||
Created: | ');|||||||||||||||||||||||||||||||
Data Object ID: | ');'||o_rec.data_object_id||' | ||||||||||||||||||||||||||||||
Created: | ');'||o_rec.created||' | ||||||||||||||||||||||||||||||
Last DDL Time: | ');'||o_rec.last_ddl_time||' | '||o_rec.created||' | ');|||||||||||||||||||||||||||||
Data Object ID: | ');'||o_rec.data_object_id||' | ||||||||||||||||||||||||||||||
Created: | ');'||o_rec.created||' | ||||||||||||||||||||||||||||||
Last DDL Time: | ');'||o_rec.last_ddl_time||' | ||||||||||||||||||||||||||||||
Last DDL Time: | ');|||||||||||||||||||||||||||||||
Created: | ');'||o_rec.created||' | ||||||||||||||||||||||||||||||
Last DDL Time: | ');'||o_rec.last_ddl_time||' | ||||||||||||||||||||||||||||||
Timestamp: | ');'||o_rec.timestamp||' | '||o_rec.last_ddl_time||' | ');|||||||||||||||||||||||||||||
Created: | ');'||o_rec.created||' | ||||||||||||||||||||||||||||||
Last DDL Time: | ');'||o_rec.last_ddl_time||' | ||||||||||||||||||||||||||||||
Timestamp: | ');'||o_rec.timestamp||' | ||||||||||||||||||||||||||||||
Timestamp: | ');|||||||||||||||||||||||||||||||
Last DDL Time: | ');'||o_rec.last_ddl_time||' | ||||||||||||||||||||||||||||||
Timestamp: | ');'||o_rec.timestamp||' | ||||||||||||||||||||||||||||||
Status: | ');'||o_rec.timestamp||' | ||||||||||||||||||||||||||||||
Last DDL Time: | ');'||o_rec.last_ddl_time||' | ||||||||||||||||||||||||||||||
Timestamp: | ');'||o_rec.timestamp||' | ||||||||||||||||||||||||||||||
Status: | ');|||||||||||||||||||||||||||||||
Status: | ');|||||||||||||||||||||||||||||||
Timestamp: | ');'||o_rec.timestamp||' | ||||||||||||||||||||||||||||||
Status: | ');'); 589: uiutil.a_href_gen(c_type => 'EXCEPTION' Line 588: htp.p('
584: */
594: ||'&c_type=' Line 600: htp.p(' | Status: | ');'); 589: uiutil.a_href_gen(c_type => 'EXCEPTION' 590: , c_link => 'etrm_pnav.show_details?c_name=' 591: ||c_name 592: ||'&c_owner=' Line 598: htp.p(' | ||||||||||||||||||||||||||||
'||o_rec.status||' | |||||||||||||||||||||||||||||||
Temporary: | ');'||o_rec.temporary||' | ||||||||||||||||||||||||||||||
Temporary: | ');'||o_rec.status||' | ||||||||||||||||||||||||||||||
Temporary: | ');'||o_rec.temporary||' | ||||||||||||||||||||||||||||||
Generated: | ');'||o_rec.generated||' | '||o_rec.temporary||' | '||o_rec.status||' | ');||||||||||||||||||||||||||||
Temporary: | ');'||o_rec.temporary||' | ||||||||||||||||||||||||||||||
Generated: | ');'||o_rec.generated||' | ||||||||||||||||||||||||||||||
Generated: | ');|||||||||||||||||||||||||||||||
Temporary: | ');'||o_rec.temporary||' | ||||||||||||||||||||||||||||||
Generated: | ');'||o_rec.generated||' | ||||||||||||||||||||||||||||||
Secondary: | ');'||o_rec.secondary||' | '||o_rec.generated||' | ');|||||||||||||||||||||||||||||
Temporary: | ');'||o_rec.temporary||' | ||||||||||||||||||||||||||||||
Generated: | ');'||o_rec.generated||' | ||||||||||||||||||||||||||||||
Secondary: | ');'||o_rec.secondary||' | ||||||||||||||||||||||||||||||
Secondary: | ');|||||||||||||||||||||||||||||||
Generated: | ');'||o_rec.generated||' | ||||||||||||||||||||||||||||||
Secondary: | ');'||o_rec.secondary||' |
606: htp.prn('
608:
609: htp.prn('
656: v_first := TRUE;
657: for key_rec in cur_fk(n_object_id) loop
658: if v_first = TRUE then
659: v_first := FALSE;
660: htp.p('Foreign Keys
');
661: htp.p('
Table | '); 667: | Foreign Table | Foreign Key Column | '); 672: v_table_name := etrm_pnav.get_object_name(n_object_id, 'RAW'); 673: htp.p(v_table_name); 674: htp.p(' | ');'); 672: v_table_name := etrm_pnav.get_object_name(n_object_id, 'RAW'); 673: htp.p(v_table_name); 674: htp.p(' | ');' 677: ||''); 672: v_table_name := etrm_pnav.get_object_name(n_object_id, 'RAW'); 673: htp.p(v_table_name); 674: htp.p(' | ');' 677: ||''
672: v_table_name := etrm_pnav.get_object_name(n_object_id, 'RAW'); | ');' 677: ||' | ');');Line 680: htp.p('676: htp.p(' 677: ||' 681: uiutil.a_href_gen(c_type => 'TABLE' 682: , c_link => 'etrm_pnav.show_object?c_name=' 683: || etrm_pnav.get_object_name(key_rec.object_id, 'RAW') 684: ||'&c_owner=' Line 689: htp.p(' | ');'); 693: for key_col in cur_list_cons_columns( Line 692: htp.p('
688: 693: for key_col in cur_list_cons_columns( 694: cv_cons_name => etrm_pnav.get_object_name(key_rec.cons_id, 'CONS') 695: , c_owner=>etrm_pnav.get_object_name(key_rec.object_id, 'USER')) loop 696: if v_first2 = TRUE Line 699: htp.p(' | ');
---|
695: , c_owner=>etrm_pnav.get_object_name(key_rec.object_id, 'USER')) loop
696: if v_first2 = TRUE
697: then v_first2 := FALSE;
698: else
699: htp.p('
');
700: end if;
701: htp.p(v_table_name);
702: htp.p(''||key_col.column_name||'');
703: end loop;
697: then v_first2 := FALSE;
698: else
699: htp.p('
');
700: end if;
701: htp.p(v_table_name);
702: htp.p(''||key_col.column_name||'');
703: end loop;
704: htp.p('
Table | ');
720: end if; | '); 725: v_table_name := key_rec.table_name; 726: uiutil.a_href_gen(c_type => 'TABLE' 727: , c_link => 'etrm_pnav.show_object?c_name=' 728: || etrm_pnav.get_object_name(key_rec.object_id, 'ITEM') Line 734: htp.p(' | ');' 736: ||' | ');'
731: ||'&c_type=TABLE' | ');' 736: ||' | ');');Line 739: htp.p('735: htp.p(' 736: ||' 740: htp.p(etrm_pnav.get_object_name(n_object_id, 'RAW')); 741: htp.p(' | ');'); 740: htp.p(etrm_pnav.get_object_name(n_object_id, 'RAW')); 741: htp.p(' | ');'); 740: htp.p(etrm_pnav.get_object_name(n_object_id, 'RAW')); 741: htp.p(' | ');');Line 742: htp.p(' | ');'); 740: htp.p(etrm_pnav.get_object_name(n_object_id, 'RAW')); 741: htp.p(' | ');'); 746: for key_col in cur_list_cons_columns( Line 745: htp.p('741: htp.p(' | ');'); 746: for key_col in cur_list_cons_columns( 747: cv_cons_name => etrm_pnav.get_object_name(key_rec.cons_id, 'CONS') 748: , c_owner=>etrm_pnav.get_object_name(key_rec.object_id, 'USER')) loop 749: if v_first2 = TRUE Line 752: htp.p(' |
---|
760:
761: if v_first
762: then null;
763: else
764: htp.p('
882: v_first := TRUE;
883: FOR tab_rec IN cur_table_dets(c_name, c_owner) LOOP
884:
885: if tab_rec.temporary = 'Y' then
886: htp.p('Temporary Table Details
');
887: htp.p('
'||c_owner||'.'||c_name||' is a global temporary table. The current session is able see data that it placed in the table but other sessions cannot. Data
888: in the table is temporary. It has a data duration of '||tab_rec.duration||'.
889: Data is removed at the end of this period.
'||c_owner||'.'||c_name||' is a global temporary table. The current session is able see data that it placed in the table but other sessions cannot. Data
883: FOR tab_rec IN cur_table_dets(c_name, c_owner) LOOP
884:
885: if tab_rec.temporary = 'Y' then
886: htp.p('
'||c_owner||'.'||c_name||' is a global temporary table. The current session is able see data that it placed in the table but other sessions cannot. Data
888: in the table is temporary. It has a data duration of '||tab_rec.duration||'.
889: Data is removed at the end of this period.
889: Data is removed at the end of this period.
');Tablespace: | 'Line 894: htp.p('
904: end loop; 905: -- Line 903: htp.p('899: htp.p(' | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
PCT Free: | ' 900: ||tab_rec.pct_free||' | ||||||||||||||||||||||||||
PCT Used: | ' 902: || tab_rec.pct_used||' |
906:
907:
908:
909: for key_rec in cur_primary_key(c_name, c_owner) loop
910: htp.p('Primary Key: '|| key_rec.constraint_name || '
');
911: htp.p('
907:
908:
909: for key_rec in cur_primary_key(c_name, c_owner) loop
910: htp.p('
910: htp.p('
915: || uiutil.el_image('COL')
916: ||key_col.column_name
917: ||'');
918: end loop;
919: htp.p('');
920: end loop;
921: --
922: for key_rec in cur_unique_keys(c_name, c_owner) loop
923: htp.p('
919: htp.p('');
920: end loop;
921: --
922: for key_rec in cur_unique_keys(c_name, c_owner) loop
923: htp.p('Unique Key: '|| key_rec.constraint_name || '
');
924: htp.p('
920: end loop;
921: --
922: for key_rec in cur_unique_keys(c_name, c_owner) loop
923: htp.p('
922: for key_rec in cur_unique_keys(c_name, c_owner) loop
923: htp.p('
927: || uiutil.el_image('COL')
928: ||key_col.column_name
929: ||'');
930: end loop;
931: htp.p('');
932: end loop;
933: --
934: v_first := TRUE;
935: for ind_rec in cur_index(c_name, c_owner) loop
934: v_first := TRUE;
935: for ind_rec in cur_index(c_name, c_owner) loop
936: if v_first = TRUE then
937: v_first := FALSE;
938: htp.p('Indexes
');
939: htp.p('
Index |
---|
Index | Type | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Tablespace | Column | |||||||||||||||||||||||||||||||||
'); 951: htp.p(ind_rec.index_name); 952: htp.p(' | ');'); 946: | Column | ||||||||||||||||||||||||||||||||
'); 951: htp.p(ind_rec.index_name); 952: htp.p(' | ');');Line 951: htp.p(ind_rec.index_name); | |||||||||||||||||||||||||||||||||
'); 951: htp.p(ind_rec.index_name); 952: htp.p(' | ');'); 955: htp.p(ind_rec.index_type); Line 952: htp.p(' | ');|||||||||||||||||||||||||||||||||
'); 951: htp.p(ind_rec.index_name); 952: htp.p(' | ');'); 955: htp.p(ind_rec.index_type); 956: htp.p(' | ');'); 950: htp.p(' | '); 951: htp.p(ind_rec.index_name); 952: htp.p(' | ');'); 955: htp.p(ind_rec.index_type); 956: htp.p(' | ');');Line 955: htp.p(ind_rec.index_type); | ');'); 955: htp.p(ind_rec.index_type); 956: htp.p(' | ');'); 959: htp.p(ind_rec.uniqueness); Line 956: htp.p(' | ');'); 955: htp.p(ind_rec.index_type); 956: htp.p(' | ');'); 959: htp.p(ind_rec.uniqueness); 960: htp.p(' | ');'); 954: htp.p(' | '); 955: htp.p(ind_rec.index_type); 956: htp.p(' | ');'); 959: htp.p(ind_rec.uniqueness); 960: htp.p(' | ');'); 959: htp.p(ind_rec.uniqueness); 960: htp.p(' | ');');Line 960: htp.p(' | ');'); 959: htp.p(ind_rec.uniqueness); 960: htp.p(' | ');'); 964: htp.p(uiutil.el_image('TS')||ind_rec.tablespace_name); Line 963: htp.p('
959: htp.p(ind_rec.uniqueness); 964: htp.p(uiutil.el_image('TS')||ind_rec.tablespace_name); 965: htp.p(' | ');'); 964: htp.p(uiutil.el_image('TS')||ind_rec.tablespace_name); 965: htp.p(' | ');'); 964: htp.p(uiutil.el_image('TS')||ind_rec.tablespace_name); 965: htp.p(' | ');');Line 969: htp.p('965: htp.p(' 970: 971: v_first2 := TRUE; 972: if ind_rec.index_type like 'FUNCTION-BASED%' then 973: for ind_col_rec in cur_function_index(ind_rec.index_name, ind_rec.owner) loop Line 977: htp.p(' |
973: for ind_col_rec in cur_function_index(ind_rec.index_name, ind_rec.owner) loop
974: IF v_first2 Then
975: v_first2 := FALSE;
976: else
977: htp.p('
');
978: end if;
979: htp.p(uiutil.el_image('COL')||ind_col_rec.column_expression);
980: end loop;
981: else
975: v_first2 := FALSE;
976: else
977: htp.p('
');
978: end if;
979: htp.p(uiutil.el_image('COL')||ind_col_rec.column_expression);
980: end loop;
981: else
982: for ind_col_rec in cur_index_col(ind_rec.index_name, ind_rec.owner) loop
983: IF v_first2 Then
982: for ind_col_rec in cur_index_col(ind_rec.index_name, ind_rec.owner) loop
983: IF v_first2 Then
984: v_first2 := FALSE;
985: else
986: htp.p('
');
987: end if;
988: htp.p(uiutil.el_image('COL')||ind_col_rec.column_name);
989: end loop;
990: end if;
984: v_first2 := FALSE;
985: else
986: htp.p('
');
987: end if;
988: htp.p(uiutil.el_image('COL')||ind_col_rec.column_name);
989: end loop;
990: end if;
991: htp.p('
993:
994: IF v_first Then
995: null;
996: else
997: htp.p('
1039: v_first := TRUE;
1040: for col_rec in cur_columns(c_name, c_owner) loop
1041: IF v_first Then
1042:
1043: htp.p(' Columns
');
1044: htp.p('
Name | ');
---|
Name | ');Datatype | ');|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | ');Datatype | ');Length | ');Mandatory | ');Name | ');
---|
Name | ');Datatype | ');Length | ');Mandatory | ');Comments | Datatype | ');
---|
Name | ');Datatype | ');Length | ');Mandatory | ');Comments | Length | ');|||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Name | ');Datatype | ');Length | ');Mandatory | ');Comments | Mandatory | ');|||||||||||||||||||||||||||||
Name | ');Datatype | ');Length | ');Mandatory | ');Comments | Comments | ');Name | ');Datatype | ');Length | ');Mandatory | ');Comments | ');||||||||||||||||||||||||
');Line 1055: htp.prn(''); | 1051: htp.p(' Comments | '); | ');1056: htp.prn(col_rec.column_name); 1057: htp.p(' 1058: htp.prn(' '); | 1059: htp.prn(col_rec.data_type); Line 1056: htp.prn(col_rec.column_name); | '); 1056: htp.prn(col_rec.column_name); 1057: htp.p(' | ');'); 1059: htp.prn(col_rec.data_type); 1060: htp.p(' | ');'); 1056: htp.prn(col_rec.column_name); 1057: htp.p(' | ');'); 1059: htp.prn(col_rec.data_type); 1060: htp.p(' | ');');Line 1058: htp.prn('
1054: | '); 1056: htp.prn(col_rec.column_name); 1057: htp.p(' | ');'); 1059: htp.prn(col_rec.data_type); 1060: htp.p(' | ');'); 1062: if col_rec.data_type = 'DATE' Line 1059: htp.prn(col_rec.data_type); | '); 1056: htp.prn(col_rec.column_name); 1057: htp.p(' | ');'); 1059: htp.prn(col_rec.data_type); 1060: htp.p(' | ');'); 1062: if col_rec.data_type = 'DATE' 1063: then htp.prn(' '); Line 1060: htp.p(' | ');'); 1059: htp.prn(col_rec.data_type); 1060: htp.p(' | ');'); 1062: if col_rec.data_type = 'DATE' 1063: then htp.prn(' '); 1064: elsif (col_rec.data_type = 'NUMBER' Line 1061: htp.prn('1057: htp.p(' 1059: htp.prn(col_rec.data_type); 1060: htp.p(' 1062: if col_rec.data_type = 'DATE' 1063: then htp.prn(' '); 1064: elsif (col_rec.data_type = 'NUMBER' 1065: AND col_rec.data_precision = ' ') Line 1063: then htp.prn(' | ');');Line 1075: htp.p(' | ');'); 1078: htp.prn(col_rec.nullable); 1079: htp.p(' | ');');
1073: htp.prn('('||col_rec.data_length||')'); | ');'); 1078: htp.prn(col_rec.nullable); 1079: htp.p(' | ');'); 1081: v_first2 := TRUE; Line 1078: htp.prn(col_rec.nullable); | ');'); 1078: htp.prn(col_rec.nullable); 1079: htp.p(' | ');'); 1081: v_first2 := TRUE; 1082: for t_rec in cur_col_comments(c_tname => c_name Line 1079: htp.p(' | ');'); 1078: htp.prn(col_rec.nullable); 1079: htp.p(' | ');'); 1081: v_first2 := TRUE; 1082: for t_rec in cur_col_comments(c_tname => c_name 1083: , c_cname => col_rec.column_name Line 1080: htp.prn('
1076: 1078: htp.prn(col_rec.nullable); 1079: htp.p(' 1081: v_first2 := TRUE; 1082: for t_rec in cur_col_comments(c_tname => c_name 1083: , c_cname => col_rec.column_name 1084: , c_owner => c_owner) loop Line 1087: htp.prn(' |
1059: htp.prn(col_rec.data_type);
1060: htp.p('
1062: if col_rec.data_type = 'DATE'
1063: then htp.prn('
');
1064: elsif (col_rec.data_type = 'NUMBER'
1065: AND col_rec.data_precision = '
')
1066: then htp.prn('
');
1067: elsif (col_rec.data_type = 'NUMBER'
1068: AND col_rec.data_precision != '
')
1069: then htp.prn('('||col_rec.data_precision||')');
1070: elsif col_rec.data_length is null
1065: AND col_rec.data_precision = '
')
1066: then htp.prn('
');
1067: elsif (col_rec.data_type = 'NUMBER'
1068: AND col_rec.data_precision != '
')
1069: then htp.prn('('||col_rec.data_precision||')');
1070: elsif col_rec.data_length is null
1071: then htp.prn('
');
1072: else
1073: htp.prn('('||col_rec.data_length||')');
1067: elsif (col_rec.data_type = 'NUMBER'
1068: AND col_rec.data_precision != '
')
1069: then htp.prn('('||col_rec.data_precision||')');
1070: elsif col_rec.data_length is null
1071: then htp.prn('
');
1072: else
1073: htp.prn('('||col_rec.data_length||')');
1074: end if;
1075: htp.p('
1083: , c_cname => col_rec.column_name
1084: , c_owner => c_owner) loop
1085: v_first2 := FALSE;
1086: if t_rec.comments like '%- Retrofitted%' then
1087: htp.prn('
');
1088: else
1089: htp.prn(t_rec.comments);
1090: end if;
1091: end loop;
1085: v_first2 := FALSE;
1086: if t_rec.comments like '%- Retrofitted%' then
1087: htp.prn('
');
1088: else
1089: htp.prn(t_rec.comments);
1090: end if;
1091: end loop;
1092: if v_first2 then
1093: htp.prn('
');
1089: htp.prn(t_rec.comments);
1090: end if;
1091: end loop;
1092: if v_first2 then
1093: htp.prn('
');
1094: end if;
1095: htp.p('
1098: end loop;
1099: IF v_first Then
1100: htp.p(FND_CSS_PKG.Encode(c_name)|| ' has no columns
');
1101: else
1102: htp.p('
1102: htp.p('
Cut, paste (and edit) the following text to query this object:
');Cut, paste (and edit) the following text to query this object:
');
1103:
1104: -- sql to select from this table
1105: if c_query_text = 'Y' then
1106: htp.p('
Cut, paste (and edit) the following text to query this object:
');');
Line 1111: htp.p('');
1107: htp.p('
Cut, paste (and edit) the following text to query this object:
');
1108: v_first := TRUE;
1109: for col_rec in cur_columns(c_name, c_owner) loop
1110: IF v_first Then
1111: htp.p('');
1112: htp.p('SELECT '||col_rec.column_name);
1113: v_first := FALSE;
1114: else
1115: htp.p(', '||col_rec.column_name);
Line 1112: htp.p('SELECT '||col_rec.column_name);
1108: v_first := TRUE;
1109: for col_rec in cur_columns(c_name, c_owner) loop
1110: IF v_first Then
1111: htp.p('
');
1112: htp.p('SELECT '||col_rec.column_name);
1113: v_first := FALSE;
1114: else
1115: htp.p(', '||col_rec.column_name);
1116: end if;
Line 1115: htp.p(', '||col_rec.column_name);
1111: htp.p('
');
1112: htp.p('SELECT '||col_rec.column_name);
1113: v_first := FALSE;
1114: else
1115: htp.p(', '||col_rec.column_name);
1116: end if;
1117: end loop;
1118: htp.p('FROM '||FND_CSS_PKG.Encode(c_owner)||'.'||FND_CSS_PKG.Encode(c_name)||';');
1119: htp.p('
');
Line 1118: htp.p('FROM '||FND_CSS_PKG.Encode(c_owner)||'.'||FND_CSS_PKG.Encode(c_name)||';');
1114: else
1115: htp.p(', '||col_rec.column_name);
1116: end if;
1117: end loop;
1118: htp.p('FROM '||FND_CSS_PKG.Encode(c_owner)||'.'||FND_CSS_PKG.Encode(c_name)||';');
1119: htp.p('
');
1120: end if;
1121: end if;
1122:
Line 1119: htp.p('
');
1115: htp.p(', '||col_rec.column_name);
1116: end if;
1117: end loop;
1118: htp.p('FROM '||FND_CSS_PKG.Encode(c_owner)||'.'||FND_CSS_PKG.Encode(c_name)||';');
1119: htp.p('');
1120: end if;
1121: end if;
1122:
1123: end ls_columns;
1158:
1159: begin
1160:
1161: for t_rec in cur_mview(c_name=>c_name, c_owner =>c_owner) loop
1162: htp.p(
1163: '
Container: | 'Line 1192: htp.p(' |
---|
Base Object: | ');Line 1230: htp.p(' |
---|
1247:
1248: begin
1249:
1250: for t_rec in cur_index(c_name=>c_name, c_owner =>c_owner) loop
1251: htp.p(
1252: '
Base Object: | ');Line 1262: htp.p(' |
---|
1279:
1280: begin
1281:
1282: for t_rec in cur_synonym(c_name=>c_name, c_owner =>c_owner) loop
1283: htp.p(
1284: '
Base Object: | 'Line 1292: htp.p('@'||t_rec.db_link); |
---|
1290: then null;
1291: else
1292: htp.p('@'||t_rec.db_link);
1293: end if;
1294: htp.p('
1295:
1315:
1316: begin
1317:
1318: for t_rec in cur_queue(c_name=>c_name, c_owner =>c_owner) loop
1319: htp.p(
1320: '
Queue Table: | 'Line 1445: htp.p( |
---|
Type Code: | 'Line 1459: htp.p( |
---|
Collection Type: | 'Line 1474: htp.p(nvl(c_rec.elem_type_name, ' |
---|
1482:
1483:
1484:
1485: if t_rec.attributes > 0 then
1486: htp.p('
1487:
Prcn | ||||||||
---|---|---|---|---|---|---|---|---|
' 1500: ||a_rec.attr_name||' | '); 1502: if a_rec.ATTR_TYPE_OWNER is not null then Line 1509: htp.p(nvl(a_rec.attr_type_name, ' | ');'); 1513: Line 1511: htp.p(' | ');'); 1513: 1514: if a_rec.length is not null then 1515: htp.p('('||a_rec.length||')'); Line 1512: htp.p('
1508: else 1513: 1514: if a_rec.length is not null then 1515: htp.p('('||a_rec.length||')'); 1516: else Line 1515: htp.p('('||a_rec.length||')'); | ' 1522: ||nvl(to_char(a_rec.precision), ' ')||' |
1511: htp.p('
1513:
1514: if a_rec.length is not null then
1515: htp.p('('||a_rec.length||')');
1516: else
1517: htp.p('
');
1518: end if;
1519:
1520: htp.p('
1521:
1525: htp.p('
Result | ||||
---|---|---|---|---|
' 1542: ||a_rec.method_name||' | '); 1544: Line 1550: htp.p(''||p_rec.param_name || '('||p_rec.param_type_name||') | ');'); 1559: Line 1558: htp.p('
1554: end if; 1559: 1560: if a_rec.results > 0 then 1561: for p_rec in cur_mresult(c_name => c_name 1562: , c_owner => c_owner Line 1565: htp.p(p_rec.result_type_name||' |
1561: for p_rec in cur_mresult(c_name => c_name
1562: , c_owner => c_owner
1563: , c_method => a_rec.method_name
1564: , n_methno => a_rec.method_no) loop
1565: htp.p(p_rec.result_type_name||'
');
1566: end loop;
1567: else
1568: htp.p('
');
1569: end if;
1564: , n_methno => a_rec.method_no) loop
1565: htp.p(p_rec.result_type_name||'
');
1566: end loop;
1567: else
1568: htp.p('
');
1569: end if;
1570:
1571: htp.p('
1570:
1571: htp.p('
1572:
1602:
1603: begin
1604: v_first := TRUE;
1605: v_owner := 'foRce_mE_to_diff';
1606: htp.p('
1607:
1607:
');');
1613: htp.p('
1609: for a_rec in cur_depend2(n_object_id) loop
1610: IF v_first Then
1611: htp.p(''||etrm_pnav.get_object_name(n_object_id)
1612: || ' references the following:
');
1613: htp.p('');
1614: v_first := FALSE;
1615: end if;
1616:
1617: if a_rec.owner = v_owner then
1617: if a_rec.owner = v_owner then
1618: null;
1619: else
1620: v_owner := a_rec.owner;
1621: htp.p('
1623: htp.p(uiutil.el_image('SCHEMA')||''||a_rec.owner||'');
1624: end if;
1625: htp.p('');
1619: else
1620: v_owner := a_rec.owner;
1621: htp.p('
1621: htp.p('
1625: htp.p('');
1626: end if;
1627:
1628:
1629: htp.p('
1631: if get_object_name(a_rec.object_id, 'TYPE') in ('PACKAGE', 'PACKAGE BODY', 'PROCEDURE')
1632: then htp.prn(' - ');
1633: uiutil.a_href_gen(c_type => 'NONE'
1628:
1629: htp.p('
1638: , c_display => ' show dependent code');
1639: end if;
1640:
1641:
1642: htp.p('
'||etrm_pnav.get_object_name(n_object_id)|| ' does not reference any database object
');
1643: end loop;
1644:
1645:
1646: IF v_first Then
1647: htp.p('
'||etrm_pnav.get_object_name(n_object_id)|| ' does not reference any database object
');
1648: else
1649: htp.p('
1645:
1646: IF v_first Then
1647: htp.p('
'||etrm_pnav.get_object_name(n_object_id)|| ' does not reference any database object
');
1648: else
1649: htp.p('');
1650: v_first := TRUE;
1651: end if;
1652:
1653:
1655: v_owner := 'foRce_mE_to_diff';
1656:
1657: for a_rec in cur_depend(n_object_id) loop
1658: IF v_first Then
1659: htp.p(''||etrm_pnav.get_object_name(n_object_id)
1660: || ' is referenced by following:
');
1661: htp.p('
1657: for a_rec in cur_depend(n_object_id) loop
1658: IF v_first Then
1659: htp.p(''||etrm_pnav.get_object_name(n_object_id)
1660: || ' is referenced by following:
');
1661: htp.p('');
1662: v_first := FALSE;
1663: end if;
1664:
1665: if a_rec.owner = v_owner then
1665: if a_rec.owner = v_owner then
1666: null;
1667: else
1668: v_owner := a_rec.owner;
1669: htp.p('
1671: htp.p(uiutil.el_image('SCHEMA')||''||a_rec.owner||'');
1672: end if;
1673: htp.p('');
1667: else
1668: v_owner := a_rec.owner;
1669: htp.p('
1669: htp.p('
1672: end if;
1673: htp.p('');
1674: end if;
1675:
1676: htp.p('
1678: if get_object_name(a_rec.object_id, 'TYPE') in ('PACKAGE', 'PACKAGE BODY', 'PROCEDURE')
1679: then htp.prn(' - ');
1680: uiutil.a_href_gen(c_type => 'NONE'
1675:
1676: htp.p('
1684: || get_object_name(n_object_id, 'ITEM')
1685: , c_display => ' show dependent code');
1686: end if;
1687:
1688: htp.p('
'||etrm_pnav.get_object_name(n_object_id)|| ' is not referenced by any database object
');
1689: end loop;
1690:
1691:
1692: IF v_first Then
1693: htp.p('
'||etrm_pnav.get_object_name(n_object_id)|| ' is not referenced by any database object
');
1694: else
1695: htp.p('
1691:
1692: IF v_first Then
1693: htp.p('
'||etrm_pnav.get_object_name(n_object_id)|| ' is not referenced by any database object
');
1694: else
1695: htp.p('');
1696: v_first := TRUE;
1697: end if;
1698:
1699: end ls_dependencies;
1745: begin
1746:
1747: if c_type = 'VIEW' then
1748: for t_rec in cur_vw_source(c_name, c_owner) loop
1749: htp.p('View Text - Preformatted
');
1750: htp.p('
');
1751: htp.p(t_rec.text);
1752: htp.p('
');');
1746:
1747: if c_type = 'VIEW' then
1748: for t_rec in cur_vw_source(c_name, c_owner) loop
1749: htp.p('
');
1751: htp.p(t_rec.text);
1747: if c_type = 'VIEW' then
1748: for t_rec in cur_vw_source(c_name, c_owner) loop
1749: htp.p('
');
1751: htp.p(t_rec.text);
1752: htp.p('
');
1748: for t_rec in cur_vw_source(c_name, c_owner) loop
1749: htp.p('
');
1751: htp.p(t_rec.text);
1752: htp.p('
');
1758: v_viewtext := replace(v_viewtext , ' WHERE ', '
WHERE ');
1759: v_viewtext := replace(v_viewtext , ',', '
, ');
1760: v_viewtext := replace(v_viewtext , ' AND ', '
AND ');
1761:
1762: htp.p('View Text - HTML Formatted
');
1763: htp.p('
');
1764: htp.p(v_viewtext);
1765: htp.p('
');
1759: v_viewtext := replace(v_viewtext , ',', '
, ');
1760: v_viewtext := replace(v_viewtext , ' AND ', '
AND ');
1761:
1762: htp.p('
');
1764: htp.p(v_viewtext);
1765: htp.p('
1760: v_viewtext := replace(v_viewtext , ' AND ', '
AND ');
1761:
1762: htp.p('
');
1764: htp.p(v_viewtext);
1765: htp.p('
1761:
1762: htp.p('
');
1764: htp.p(v_viewtext);
1765: htp.p('
');
Line 1769: htp.p('');
1765: htp.p('
');
1766: end loop;
1767: elsif c_type = 'MATERIALIZED VIEW' then
1768: for t_rec in cur_mview(c_name, c_owner) loop
1769: htp.p('');
1770: htp.p(t_rec.query);
1771: htp.p('
');
1766: end loop;
1767: elsif c_type = 'MATERIALIZED VIEW' then
1768: for t_rec in cur_mview(c_name, c_owner) loop
1769: htp.p('
');
1770: htp.p(t_rec.query);
1771: htp.p('
');
1767: elsif c_type = 'MATERIALIZED VIEW' then
1768: for t_rec in cur_mview(c_name, c_owner) loop
1769: htp.p('
');
1770: htp.p(t_rec.query);
1771: htp.p('
');
1771: htp.p('');
1772: end loop;
1773: elsif c_type = 'TRIGGER' then
1774: for t_rec in cur_trigger(c_name, c_owner) loop
1775: htp.p('Description
');
1776: htp.p('
'||t_rec.description||'
');'||t_rec.trigger_type||'
');'||t_rec.description||'
');
1772: end loop;
1773: elsif c_type = 'TRIGGER' then
1774: for t_rec in cur_trigger(c_name, c_owner) loop
1775: htp.p('
'||t_rec.description||'
');'||t_rec.trigger_type||'
');'||t_rec.triggering_event||'
');
1773: elsif c_type = 'TRIGGER' then
1774: for t_rec in cur_trigger(c_name, c_owner) loop
1775: htp.p('
'||t_rec.description||'
');'||t_rec.trigger_type||'
');'||t_rec.triggering_event||'
');'||t_rec.trigger_type||'
');
1774: for t_rec in cur_trigger(c_name, c_owner) loop
1775: htp.p('
'||t_rec.description||'
');'||t_rec.trigger_type||'
');'||t_rec.triggering_event||'
');'||t_rec.column_name||'
');1775: htp.p('
'||t_rec.description||'
');'||t_rec.trigger_type||'
');'||t_rec.triggering_event||'
');'||t_rec.column_name||'
');'||t_rec.triggering_event||'
');1776: htp.p('
'||t_rec.description||'
');'||t_rec.trigger_type||'
');'||t_rec.triggering_event||'
');'||t_rec.column_name||'
');'||t_rec.when_clause||'
');1777: htp.p('
'||t_rec.trigger_type||'
');'||t_rec.triggering_event||'
');'||t_rec.column_name||'
');'||t_rec.when_clause||'
');'||t_rec.column_name||'
');1778: htp.p('
'||t_rec.trigger_type||'
');'||t_rec.triggering_event||'
');'||t_rec.column_name||'
');'||t_rec.when_clause||'
');'||t_rec.referencing_names||'
');1779: htp.p('
'||t_rec.triggering_event||'
');'||t_rec.column_name||'
');'||t_rec.when_clause||'
');'||t_rec.referencing_names||'
');'||t_rec.when_clause||'
');1780: htp.p('
'||t_rec.triggering_event||'
');'||t_rec.column_name||'
');'||t_rec.when_clause||'
');'||t_rec.referencing_names||'
');'||t_rec.trigger_body||'
');1781: htp.p('
'||t_rec.column_name||'
');'||t_rec.when_clause||'
');'||t_rec.referencing_names||'
');'||t_rec.trigger_body||'
');'||t_rec.referencing_names||'
');1782: htp.p('
'||t_rec.column_name||'
');'||t_rec.when_clause||'
');'||t_rec.referencing_names||'
');'||t_rec.trigger_body||'
');1783: htp.p('
'||t_rec.when_clause||'
');'||t_rec.referencing_names||'
');'||t_rec.trigger_body||'
');');
Line 1788: htp.p(''||t_rec.trigger_body||'
');
1784: htp.p('
'||t_rec.when_clause||'
');
1785: htp.p('Referencing
');
1786: htp.p(''||t_rec.referencing_names||'
');
1787: htp.p('Body
');
1788: htp.p(''||t_rec.trigger_body||'
');
1789: end loop;
1790: else
1791: htp.p('');
1792: for t_rec in cur_source(c_name, c_type, c_owner) loop
Line 1791: htp.p('');
1787: htp.p('
Body
');
1788: htp.p(''||t_rec.trigger_body||'
');
1789: end loop;
1790: else
1791: htp.p('');
1792: for t_rec in cur_source(c_name, c_type, c_owner) loop
1793: uiutil.txt_p(t_rec.line||' '||t_rec.text);
1794: end loop;
1795: htp.p('
');
Line 1795: htp.p('
');1791: htp.p('
');
1792: for t_rec in cur_source(c_name, c_type, c_owner) loop
1793: uiutil.txt_p(t_rec.line||' '||t_rec.text);
1794: end loop;
1795: htp.p('
');
1817: where view_name = c_name
1818: and owner = c_owner;
1819:
1820: begin
1821: htp.p('Content-type: application/octet-stream');
1822: htp.p('Content-Disposition: attachement; filename='||c_name||'.sql');
1823: htp.p('Content-Transfer-Encoding: base64');
1824: -- htp.p('Content-Disposition: inline; filename='||c_name||'.txt');
1825: htp.p('');
1818: and owner = c_owner;
1819:
1820: begin
1821: htp.p('Content-type: application/octet-stream');
1822: htp.p('Content-Disposition: attachement; filename='||c_name||'.sql');
1823: htp.p('Content-Transfer-Encoding: base64');
1824: -- htp.p('Content-Disposition: inline; filename='||c_name||'.txt');
1825: htp.p('');
1826:
1819:
1820: begin
1821: htp.p('Content-type: application/octet-stream');
1822: htp.p('Content-Disposition: attachement; filename='||c_name||'.sql');
1823: htp.p('Content-Transfer-Encoding: base64');
1824: -- htp.p('Content-Disposition: inline; filename='||c_name||'.txt');
1825: htp.p('');
1826:
1827: if c_type = 'VIEW' then
1820: begin
1821: htp.p('Content-type: application/octet-stream');
1822: htp.p('Content-Disposition: attachement; filename='||c_name||'.sql');
1823: htp.p('Content-Transfer-Encoding: base64');
1824: -- htp.p('Content-Disposition: inline; filename='||c_name||'.txt');
1825: htp.p('');
1826:
1827: if c_type = 'VIEW' then
1828: for t_rec in cur_vw_source(c_name, c_owner) loop
1821: htp.p('Content-type: application/octet-stream');
1822: htp.p('Content-Disposition: attachement; filename='||c_name||'.sql');
1823: htp.p('Content-Transfer-Encoding: base64');
1824: -- htp.p('Content-Disposition: inline; filename='||c_name||'.txt');
1825: htp.p('');
1826:
1827: if c_type = 'VIEW' then
1828: for t_rec in cur_vw_source(c_name, c_owner) loop
1829: htp.prn(t_rec.text);
1825: htp.p('');
1826:
1827: if c_type = 'VIEW' then
1828: for t_rec in cur_vw_source(c_name, c_owner) loop
1829: htp.prn(t_rec.text);
1830: end loop;
1831: else
1832: for t_rec in cur_source(c_name, c_type, c_owner) loop
1833: htp.prn(t_rec.text);
1829: htp.prn(t_rec.text);
1830: end loop;
1831: else
1832: for t_rec in cur_source(c_name, c_type, c_owner) loop
1833: htp.prn(t_rec.text);
1834: end loop;
1835: end if;
1836:
1837: htp.p('');
1833: htp.prn(t_rec.text);
1834: end loop;
1835: end if;
1836:
1837: htp.p('');
1838: htp.prn(chr(4));
1839: end download_source;
1840:
1841: procedure ls_errors(c_name IN dba_objects.object_name%type
1834: end loop;
1835: end if;
1836:
1837: htp.p('');
1838: htp.prn(chr(4));
1839: end download_source;
1840:
1841: procedure ls_errors(c_name IN dba_objects.object_name%type
1842: , c_type IN dba_objects.object_type%type
1862: v_first := TRUE;
1863:
1864: for e_rec in cur_errors(c_name, c_type, c_owner) loop
1865: IF v_first Then
1866: htp.p(' Error Text
');
1867: htp.p('
Line | ');
---|
Line | ');Pos''n | ');|||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Line | ');Pos''n | ');Text | Line | ');
---|
Line | ');Pos''n | ');Text | Pos''n | ');
---|
Line | ');Pos''n | ');Text | Text | ');|||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Line | ');Pos''n | ');Text | ||||||||||||||||||||||
');Line 1876: htp.prn(''); | 1872: htp.p(' Text | '); | ');1877: htp.prn(e_rec.line); 1878: htp.p(' 1879: htp.prn(' '); | 1880: htp.prn(e_rec.position); Line 1877: htp.prn(e_rec.line); | ');'); 1877: htp.prn(e_rec.line); 1878: htp.p(' | ');'); 1880: htp.prn(e_rec.position); 1881: htp.p(' | ');'); 1877: htp.prn(e_rec.line); 1878: htp.p(' | ');'); 1880: htp.prn(e_rec.position); 1881: htp.p(' | ');');Line 1879: htp.prn('
1875: | '); 1877: htp.prn(e_rec.line); 1878: htp.p(' | ');'); 1880: htp.prn(e_rec.position); 1881: htp.p(' | ');'); 1883: htp.prn(e_rec.text); Line 1880: htp.prn(e_rec.position); | '); 1877: htp.prn(e_rec.line); 1878: htp.p(' | ');'); 1880: htp.prn(e_rec.position); 1881: htp.p(' | ');'); 1883: htp.prn(e_rec.text); 1884: htp.p(' | ');'); 1880: htp.prn(e_rec.position); 1881: htp.p(' | ');'); 1883: htp.prn(e_rec.text); 1884: htp.p(' | ');'); 1878: htp.p(' | ');'); 1880: htp.prn(e_rec.position); 1881: htp.p(' | ');'); 1883: htp.prn(e_rec.text); 1884: htp.p(' | ');'); 1880: htp.prn(e_rec.position); 1881: htp.p(' | ');'); 1883: htp.prn(e_rec.text); 1884: htp.p(' | ');'); 1883: htp.prn(e_rec.text); 1884: htp.p(' | ');'); 1883: htp.prn(e_rec.text); 1884: htp.p(' | ');
1887: end loop;
1888: IF v_first Then
1889: htp.p(c_name|| ' no errors
');
1890: else
1891: htp.p('
1907: uiutil.cabo2b;
1908: etrm_pnav.draw_tabs;
1909: uiutil.cabo3;
1910:
1911: htp.p('DBA Objects
');
1912: htp.p('
1908: etrm_pnav.draw_tabs;
1909: uiutil.cabo3;
1910:
1911: htp.p('
1910:
1911: htp.p('
1914: htp.p('
1915: uiutil.a_href_gen(c_type => 'APP'
1916: , c_link => 'etrm_pnav.ls_apps?c_mode=APPS'
1917: , c_display => 'Applications Product Prefixes');
1918: htp.p('
1919: htp.p('
1921: , c_link => 'etrm_pnav.ls_apps?c_mode=USER'
1922: , c_display => 'Database Schemas');
1923: htp.p('');
1924:
1925: htp.p('');
1926:
1927: uiutil.cabo4;
1928: etrm_pnav.quick_list;
1929: uiutil.cabo5;
1990: etrm_pnav.draw_tabs;
1991: uiutil.cabo3;
1992: if vapps_installation then
1993:
1994: htp.p('');
1995: htp.p('
1991: uiutil.cabo3;
1992: if vapps_installation then
1993:
1994: htp.p('
1998: loop
1999: fetch fnd_cv into fnd_name, fnd_title;
2000: exit when fnd_cv%NOTFOUND;
2001: vsearch_name := fnd_name ||'\_*';
2002: htp.p('
2004: , c_link => 'etrm_pnav.ls_object?c_name='
2005: || vsearch_name
2006: , c_display => fnd_name||' - '||fnd_title);
2004: , c_link => 'etrm_pnav.ls_object?c_name='
2005: || vsearch_name
2006: , c_display => fnd_name||' - '||fnd_title);
2007:
2008: htp.p('');
2009: end loop;
2010: if fnd_cv%ISOPEN then close fnd_cv; end if;
2011:
2012: htp.p('
2008: htp.p('');
2009: end loop;
2010: if fnd_cv%ISOPEN then close fnd_cv; end if;
2011:
2012: htp.p('');
2013: else
2014:
2015: htp.p('
2012: htp.p('');
2013: else
2014:
2015: htp.p('
2016: htp.p('
2023: ||'&c_owner='
2024: ||s_rec.username
2025: , c_display => s_rec.username);
2026:
2027: htp.p('');
2028: end loop;
2029: htp.p('
2025: , c_display => s_rec.username);
2026:
2027: htp.p('');
2028: end loop;
2029: htp.p('');
2030: end if;
2031: uiutil.cabo4;
2032: etrm_pnav.quick_list;
2033: uiutil.cabo5;
2098:
2099: v_object_id dba_objects.object_id%type;
2100: begin
2101: uiutil.cabo1(c_title=> FND_CSS_PKG.Encode(c_type) ||' - '||FND_CSS_PKG.Encode(c_owner)||'.'||FND_CSS_PKG.Encode(c_name));
2102: htp.p('');
2103: htp.p('');
2104: htp.p('
[Home] [Help]
2105: [Dependency Information]
2106:
2099: v_object_id dba_objects.object_id%type;
2100: begin
2101: uiutil.cabo1(c_title=> FND_CSS_PKG.Encode(c_type) ||' - '||FND_CSS_PKG.Encode(c_owner)||'.'||FND_CSS_PKG.Encode(c_name));
2102: htp.p('
[Home] [Help]
2105: [Dependency Information]
2106:
2100: begin
2101: uiutil.cabo1(c_title=> FND_CSS_PKG.Encode(c_type) ||' - '||FND_CSS_PKG.Encode(c_owner)||'.'||FND_CSS_PKG.Encode(c_name));
2102: htp.p('
[Home] [Help]
2105: [Dependency Information]
2106:
2105: [Dependency Information]
2106:
');
2112:
2113:
2114: if c_type in ('PACKAGE', 'PACKAGE BODY')
2115: then
2116: htp.p('
');
2114: if c_type in (" PACKAGE', 'PACKAGE BODY') ');
2120: ||" &c_owner="
2126: ||" &c_owner="
2117:
2118: htp.p('
2115: then
2116: htp.p('
2117:
2118: htp.p('
2121: ||utl_url.escape(c_owner)
2122: ||" &c_type="PACKAGE'
2123: ||'&c_detail_type=source">[Package]
2124: htp.p('
2127: ||utl_url.escape(c_owner)
2128: ||" &c_type="PACKAGE%20BODY'
2129: ||'&c_detail_type=source">[Package Body]
2130: htp.p('[SQL Statements]');
2133: htp.p('
2134:
2129: ||'&c_detail_type=source">[Package Body]');
2130: htp.p('[SQL Statements]');
2133: htp.p('
');
2134:
2135:
2136: elsif c_type in ('PROCEDURE', 'FUNCTION', 'TYPE BODY', 'JAVA SOURCE')
2137: then
2138: htp.p('
');
2135: ');
2139: htp.p('
2136: elsif c_type in (" PROCEDURE', 'FUNCTION', 'TYPE BODY', 'JAVA SOURCE')
2137: then
2138: htp.p('
2139: htp.p('[Source]');
2145: htp.p('
2146: elsif (c_type = 'TABLE')
2147: then
2148: ls_table(c_name, c_owner);
2149: etrm_pnav.ls_table(v_object_id);
2195: then
2196: ls_type(c_name, c_owner);
2197: end if;
2198:
2199: htp.p('Dependencies
');
2200:
2201:
2202: etrm_pnav.ls_dependencies(v_object_id);
2203:
2202: etrm_pnav.ls_dependencies(v_object_id);
2203:
2204:
2205:
2206: htp.p('
2204:
2205:
2206: htp.p('
2216: if c_detail_type = 'download'
2217: then download_source(c_name, c_type, c_owner);
2218: else
2219: uiutil.cabo1(c_title=> c_type ||' - '||c_owner||'.'||c_name);
2220: htp.p('[Home] [Help]
2221:
2219: uiutil.cabo1(c_title=> c_type ||' - '||c_owner||'.'||c_name);
2220: htp.p('[Home] [Help]
2221:
2220: htp.p('[Home] [Help]
2221:
2223: htp.p('
');
2226: if c_detail_type = 'source'
2227: then htp.p('
No further details are available
');No further details are available
');
2229: elsif c_detail_type = 'exception'
2230: then htp.p('
No further details are available
');2233: htp.p('
No further details are available
');
2264:
2265: begin
2266: v_string := '%'||upper(c_name)||'%';
2267: uiutil.cabo1(c_title=> c_name || ' dependencies');
2268: htp.p('[Home] [Help]
2269:
2267: uiutil.cabo1(c_title=> c_name || ' dependencies');
2268: htp.p('[Home] [Help]
2269:
');
2272: for t_rec in cur_find_line(n_object_id, v_string) loop
2273: v_first := FALSE;
2274: v_line := t_rec.line;
2275: uiutil.txt_prn1('
');
2277: for l_rec in cur_print_line(n_object_id, v_line) loop
2278: if l_rec.line = v_line then
2279: uiutil.txt_prn1(''||l_rec.line||': '||l_rec.source||'');
2280: else
2280: else
2281: uiutil.txt_prn1(l_rec.line||': '||l_rec.source);
2282: end if;
2283: end loop;
2284: htp.p('
These dependencies are not visible in source code. They may be indirect dependencies
2288: or the source code may be encrypted
These dependencies are not visible in source code. They may be indirect dependencies
2283: end loop;
2284: htp.p('
These dependencies are not visible in source code. They may be indirect dependencies
2288: or the source code may be encrypted
2318: v_select_stmt line_table;
2319: v_stmt_count binary_integer;
2320: begin
2321: uiutil.cabo1(c_title=> ' SQL Statements');
2322: htp.p('[Home] [Help]
2323:
The following lines contain the word ''select'', ''insert'', ''update'' or ''delete'':
');
2320: begin
2321: uiutil.cabo1(c_title=> ' SQL Statements');
2322: htp.p('[Home] [Help]
2323:
The following lines contain the word ''select'', ''insert'', ''update'' or ''delete'':
');The following lines contain the word ''select'', ''insert'', ''update'' or ''delete'':
');
2321: uiutil.cabo1(c_title=> ' SQL Statements');
2322: htp.p('[Home] [Help]
2323:
The following lines contain the word ''select'', ''insert'', ''update'' or ''delete'':
');
2370:
2371:
2372: for i in 1 .. v_stmt_count loop
2373: if v_select_stmt(i).status = 'VALID' then
2374: htp.p('Line: '||v_select_stmt(i).select_line||'
');
2375: htp.p('
');
2376: for j in v_select_stmt(i).select_line .. v_select_stmt(i).term_line loop
2377: htp.prn(v_source(j));
2378: end loop;
Line 2375: htp.p('');
2371:
2372: for i in 1 .. v_stmt_count loop
2373: if v_select_stmt(i).status = 'VALID' then
2374: htp.p('
Line: '||v_select_stmt(i).select_line||'
');
2375: htp.p('');
2376: for j in v_select_stmt(i).select_line .. v_select_stmt(i).term_line loop
2377: htp.prn(v_source(j));
2378: end loop;
2379: htp.p('
');
2373: if v_select_stmt(i).status = 'VALID' then
2374: htp.p('
');
2376: for j in v_select_stmt(i).select_line .. v_select_stmt(i).term_line loop
2377: htp.prn(v_source(j));
2378: end loop;
2379: htp.p('
');2375: htp.p('
');
2376: for j in v_select_stmt(i).select_line .. v_select_stmt(i).term_line loop
2377: htp.prn(v_source(j));
2378: end loop;
2379: htp.p('
');No SQL Statements are visable in the source code.
2381: end loop;
2382:
2383:
2384: if v_stmt_count = 0 then
2385: htp.p('
No SQL Statements are visable in the source code.
2386: The package body may be wrapped (encrypted)
2422: , replace(c_status, '*', '%')) loop
2423: if v_first = TRUE
2424: then v_first := FALSE;
2425: else
2426: htp.p('
');
2427: end if;
2428:
2429: uiutil.a_javascript_gen(c_type => c_type
2430: , c_link => 'etrm_pnav.show_object?c_name='
2437:
2438: end loop;
2439:
2440: if v_first = TRUE then
2441: htp.p('Not implemented in this database');
2442: end if;
2443:
2444:
2445: end prn_object_type;