You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/helpers/menu_helper.rb
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ def menu_content
16
16
{class: 'menu',caption: 'DB-Locks',content: [
17
17
{class: 'item',caption: t(:menu_current_caption,:default=>'Current'),controller: :dba,action: 'show_locks',hint: t(:menu_dba_locks_hint,:default=>'shows current locking state incl. blocking sessions')},
18
18
{class: 'item',caption: t(:menu_dba_blocking_locks_historic_caption,:default=>'Blocking locks historic from ASH'),controller: 'active_session_history',action: 'show_blocking_locks_historic',hint: t(:menu_dba_blocking_locks_historic_hint,:default=>'Show historic blocking locks information from Active Session History')},
19
-
{class: 'item',caption: t(:menu_dba_blocking_locks_historic_panorama_caption,:default=>'Blocking locks historic from Panorama-Sampler'),controller: :addition,action: :show_blocking_locks_history,hint: t(:menu_dba_blocking_locks_historic_panorama_hint,:default=>'Show historic blocking locks information from Panorama-Sampler'),condition: PanoramaSamplerStructureCheck.panorama_table_exists?('Panorama_Blocking_Locks')},
19
+
{class: 'item',caption: t(:menu_dba_blocking_locks_historic_panorama_caption,:default=>'Blocking locks historic from Panorama-Sampler'),controller: :addition,action: :show_blocking_locks_history,hint: t(:menu_dba_blocking_locks_historic_panorama_hint,:default=>'Show historic blocking locks information from Panorama-Sampler'),condition: PanoramaConnection.panorama_table_exists?('Panorama_Blocking_Locks')},
20
20
]
21
21
},
22
22
{:class=>'menu',:caption=>'Redo-Logs',:content=>[
@@ -82,7 +82,7 @@ def menu_content
82
82
{:class=>'item',:caption=>t(:menu_current_caption,:default=>'Current'),:controller=>:dba,:action=>'show_session_waits',:hint=>t(:menu_wait_session_current_hint,:default=>'All current session waits')},
83
83
{:class=>'item',:caption=>t(:menu_historic_caption,:default=>'Historic'),:controller=>'active_session_history',:action=>'show_session_statistics_historic',:hint=>t(:menu_wait_session_historic_hint,:default=>'Prepared active session history from DBA_Hist_Active_Sess_History')},
84
84
{:class=>'item',:caption=>'CPU-Usage / DB-Time',:controller=>:dba_waits,:action=>:show_cpu_usage_historic,:hint=>t(:menu_wait_session_cpu_hint,:default=>"Historic CPU-Usage and DB-Time from DBA_Hist_Active_Sess_History.\nShows you the difference between real CPU-usage and waiting for CPU\nif you don't have Resource Manager activated.\nDifference means you have more sessions waiting for CPU than your system's number of CPU-cores.")},
{:class=>'item',:caption=>'Tablespace-Objects',:controller=>:dba_schema,:action=>:show_object_size,:hint=>t(:menu_dba_schema_ts_objects_hint,:default=>'DB-objects by size, utilization and wastage')},
158
-
{class: 'item',caption: t(:menu_addition_size_evolution_caption,:default=>'Object size evolution'),controller: 'addition',action: 'show_object_increase',hint: t(:menu_addition_size_evolution_hint,:default=>'Evolution of object sizes in considered time period'),condition: get_cached_panorama_object_sizes_exists},
158
+
{class: 'item',caption: t(:menu_addition_size_evolution_caption,:default=>'Object size evolution'),controller: 'addition',action: 'show_object_increase',hint: t(:menu_addition_size_evolution_hint,:default=>'Evolution of object sizes in considered time period'),condition: PanoramaConnection.panorama_object_sizes_exists?},
{:class=>'item',:caption=>'Invalid objects',:controller=>:dba_schema,:action=>:invalid_objects,:hint=>'List invalid objects (from DBA_Objects and DBA_Indexes)'},
161
161
{:class=>'item',:caption=>'Recycle bin',:controller=>:storage,:action=>:list_recycle_bin,:hint=>'Show content of recycle bin'},
@@ -215,7 +215,7 @@ def menu_content
215
215
{:class=>'menu',:caption=>'DB-Cache',:content=>[
216
216
{:class=>'item',:caption=>t(:menu_sga_pga_cache_usage_caption,:default=>'DB-cache usage current'),:controller=>'dba_sga',:action=>'db_cache_content',:hint=>t(:menu_sga_pga_cache_usage_hint,:default=>'Current content of DB-cache')},
217
217
{:class=>'item',:caption=>t(:menu_sga_pga_cache_advice_caption,:default=>'DB-cache advice'),:controller=>'dba_sga',:action=>'show_db_cache_advice_historic',:hint=>t(:menu_sga_pga_cache_advice_hint,:default=>"Historic view on what-happens-if-analysis for change of cache size")},
218
-
{:class=>'item',:caption=>t(:menu_sga_pga_cache_usage_historic_caption,:default=>'DB-cache usage historic'),:controller=>'addition',:action=>'db_cache_ressourcen',:hint=>t(:menu_sga_pga_cache_usage_historic_hint,:default=>'Historic view on DB-cache usage by Panorama_Cache_Objects'),condition: PanoramaSamplerStructureCheck.panorama_table_exists?('Panorama_Cache_Objects')}
218
+
{:class=>'item',:caption=>t(:menu_sga_pga_cache_usage_historic_caption,:default=>'DB-cache usage historic'),:controller=>'addition',:action=>'db_cache_ressourcen',:hint=>t(:menu_sga_pga_cache_usage_historic_hint,:default=>'Historic view on DB-cache usage by Panorama_Cache_Objects'),condition: PanoramaConnection.panorama_table_exists?('Panorama_Cache_Objects')}
219
219
]
220
220
},
221
221
{:class=>'menu',:caption=>t(:menu_sga_pga_object_usage_caption,:default=>'Object usage by SQL'),:content=>[
PanoramaConnection.sql_select_one(["SELECT COUNT(*) FROM All_Tables WHERE Table_Name=? and Owner = '#{PanoramaConnection.get_threadlocal_config[:panorama_sampler_schema].upcase}'",table_name.upcase]) > 0
490
+
end
491
+
492
+
493
+
# Check existence and readability of the sampler table
PanoramaConnection.sql_select_one(["SELECT COUNT(*) FROM All_Tables WHERE Table_Name=? and Owner = '#{PanoramaConnection.get_threadlocal_config[:panorama_sampler_schema].upcase}'",table_name.upcase]) > 0
Copy file name to clipboardExpand all lines: app/views/dba_schema/_list_indexes.html.erb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@
107
107
}, :title => "Show segment statistics from #{PanoramaConnection.adjust_table_name('DBA_Hist_Seg_Stat')} for all recorded AWR snapshots for #{@owner}.#{rec.index_name}"
108
108
)}</div>"
109
109
110
-
if get_cached_panorama_object_sizes_exists
110
+
if PanoramaConnection.panorama_object_sizes_exists?
Copy file name to clipboardExpand all lines: app/views/dba_schema/_list_lobs.html.erb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@
56
56
}, :title => "Show segment statistics from #{PanoramaConnection.adjust_table_name('DBA_Hist_Seg_Stat')} for all recorded AWR snapshots for #{@owner}.#{rec.segment_name}"
57
57
)}</div>"
58
58
59
-
if get_cached_panorama_object_sizes_exists
59
+
if PanoramaConnection.panorama_object_sizes_exists?
0 commit comments