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/controllers/dba_sga_controller.rb
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -839,12 +839,12 @@ def list_sga_components
839
839
@sums.eachdo |s|
840
840
s['parameter']=
841
841
cases.pool
842
-
when'buffer_cache'then"db_block_buffers = #{fn(sql_select_one(["SELECT Value FROM gv$System_Parameter WHERE Inst_ID = ? AND Name = ?",s.inst_id,'db_block_buffers']))}, db_cache_size = #{fn(sql_select_one(["SELECT Value FROM gv$System_Parameter WHERE Inst_ID = ? AND Name = ?",s.inst_id,'db_cache_size']))}"
843
-
when'java pool'then"java_pool_size = #{fn(sql_select_one(["SELECT Value FROM gv$System_Parameter WHERE Inst_ID = ? AND Name = ?",s.inst_id,'java_pool_size']))}"
844
-
when'large pool'then"large_pool_size = #{fn(sql_select_one(["SELECT Value FROM gv$System_Parameter WHERE Inst_ID = ? AND Name = ?",s.inst_id,'large_pool_size']))}"
845
-
when'log_buffer'then"log_buffer = #{fn(sql_select_one(["SELECT Value FROM gv$System_Parameter WHERE Inst_ID = ? AND Name = ?",s.inst_id,'log_buffer']))}"
846
-
when'shared pool'then"shared_pool_size = #{fn(sql_select_one(["SELECT Value FROM gv$System_Parameter WHERE Inst_ID = ? AND Name = ?",s.inst_id,'shared_pool_size']))}"
847
-
when'streams pool'then"streams_pool_size = #{fn(sql_select_one(["SELECT Value FROM gv$System_Parameter WHERE Inst_ID = ? AND Name = ?",s.inst_id,'streams_pool_size']))}"
842
+
when'buffer_cache'then"db_block_buffers = #{fn(sql_select_one(["SELECT Value FROM #{PanoramaConnection.system_parameter_table} WHERE Inst_ID = ? AND Name = ?",s.inst_id,'db_block_buffers']))}, db_cache_size = #{fn(sql_select_one(["SELECT Value FROM #{PanoramaConnection.system_parameter_table} WHERE Inst_ID = ? AND Name = ?",s.inst_id,'db_cache_size']))}"
843
+
when'java pool'then"java_pool_size = #{fn(sql_select_one(["SELECT Value FROM #{PanoramaConnection.system_parameter_table} WHERE Inst_ID = ? AND Name = ?",s.inst_id,'java_pool_size']))}"
844
+
when'large pool'then"large_pool_size = #{fn(sql_select_one(["SELECT Value FROM #{PanoramaConnection.system_parameter_table} WHERE Inst_ID = ? AND Name = ?",s.inst_id,'large_pool_size']))}"
845
+
when'log_buffer'then"log_buffer = #{fn(sql_select_one(["SELECT Value FROM #{PanoramaConnection.system_parameter_table} WHERE Inst_ID = ? AND Name = ?",s.inst_id,'log_buffer']))}"
846
+
when'shared pool'then"shared_pool_size = #{fn(sql_select_one(["SELECT Value FROM #{PanoramaConnection.system_parameter_table} WHERE Inst_ID = ? AND Name = ?",s.inst_id,'shared_pool_size']))}"
847
+
when'streams pool'then"streams_pool_size = #{fn(sql_select_one(["SELECT Value FROM #{PanoramaConnection.system_parameter_table} WHERE Inst_ID = ? AND Name = ?",s.inst_id,'streams_pool_size']))}"
Copy file name to clipboardExpand all lines: app/controllers/env_controller.rb
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -172,15 +172,15 @@ def start_page
172
172
173
173
174
174
system_parameter_sql=ifget_db_version >= '12.1'
175
-
# Ensure uniqueness of parameter names, because GV$System_Parameter may contain parameter names for each container
175
+
# Ensure uniqueness of parameter names, because #{PanoramaConnection.system_parameter_table} may contain parameter names for each container
176
176
# Use the parameter of the current container if exists, otherwise use the parameter of the CDB (0)
177
-
"SELECT Inst_ID, Name, Value FROM GV$System_Parameter p0
177
+
"SELECT Inst_ID, Name, Value FROM #{PanoramaConnection.system_parameter_table} p0
178
178
WHERE Con_ID = 0
179
-
AND NOT EXISTS (SELECT 1 FROM GV$System_Parameter pi WHERE pi.Inst_ID = p0.Inst_ID AND pi.Name = p0.Name AND pi.Con_ID = SYS_CONTEXT('USERENV', 'CON_ID'))
179
+
AND NOT EXISTS (SELECT 1 FROM #{PanoramaConnection.system_parameter_table} pi WHERE pi.Inst_ID = p0.Inst_ID AND pi.Name = p0.Name AND pi.Con_ID = SYS_CONTEXT('USERENV', 'CON_ID'))
180
180
UNION ALL
181
-
SELECT Inst_ID, Name, Value FROM GV$System_Parameter WHERE Con_ID = SYS_CONTEXT('USERENV', 'CON_ID')"
181
+
SELECT Inst_ID, Name, Value FROM #{PanoramaConnection.system_parameter_table} WHERE Con_ID = SYS_CONTEXT('USERENV', 'CON_ID')"
182
182
else
183
-
"SELECT Inst_ID, Name, Value FROM GV$System_Parameter"
183
+
"SELECT Inst_ID, Name, Value FROM #{PanoramaConnection.system_parameter_table}"
184
184
end
185
185
nls_parameters_sql=ifget_db_version >= '12.1'
186
186
"SELECT Inst_ID, Parameter, Value FROM gv$NLS_Parameters p0
:desc=>t(:dragnet_helper_3_12_desc,:default=>'Detection of non-optimal or incompatible database parameters'),
212
212
:sql=>"SELECT /* DB-Tools Ramm DB-Parameter */
213
213
Inst_ID, Name, Value, 'Value should be 0 if cursor_sharing is used because lookup to session cached cursors is done before converting literals to bind variables' Description
214
-
FROM gv$System_Parameter p
214
+
FROM #{PanoramaConnection.system_parameter_table} p
215
215
WHERE Name = 'session_cached_cursors'
216
216
AND Value != '0'
217
-
AND EXISTS (SELECT 1 FROM gv$System_Parameter pi WHERE pi.Inst_ID=p.Inst_ID AND pi.Name='cursor_sharing' AND pi.value!='EXACT' )
217
+
AND EXISTS (SELECT 1 FROM #{PanoramaConnection.system_parameter_table} pi WHERE pi.Inst_ID=p.Inst_ID AND pi.Name='cursor_sharing' AND pi.value!='EXACT' )
Copy file name to clipboardExpand all lines: app/views/env/_start_page.html.erb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -131,9 +131,9 @@
131
131
{:caption=>"Startup",:data=>proc{|rec| localeDateTime(rec.startup_time)},:title=>"Startup der DB"},
132
132
{:caption=>"Archiver",:data=>proc{|rec| rec.archiver},:title=>"Archiver mode of instance"},
133
133
{:caption=>"Character-set",:data=>proc{|rec| rec.nls_characterset},:title=>"Character set of database",:data_title=>proc{|rec| "%t: NChar_Character_Set=#{rec.nls_nchar_characterset}"}},
134
-
{:caption=>"Cp.",:data=>show_compatible,:title=>"Optimizer compatible mode of instance (from v$System_Parameter)",data_title: data_title_compatible},
134
+
{:caption=>"Cp.",:data=>show_compatible,:title=>"Optimizer compatible mode of instance (from #{PanoramaConnection.system_parameter_table[1..-1]})",data_title: data_title_compatible},
135
135
{:caption=>"Instance role",:data=>proc{|rec| rec["instance_role"]},:title=>"Instance role for data guard"},
136
-
{:caption=>"CPU cnt.",:data=>proc{|rec| rec.cpu_count},:title=>"Number of CPUs counted for instance (from gv$System_Parameter)",data_title: cpu_count_data_title,align: :right},
136
+
{:caption=>"CPU cnt.",:data=>proc{|rec| rec.cpu_count},:title=>"Number of CPUs counted for instance (from #{PanoramaConnection.system_parameter_table})",data_title: cpu_count_data_title,align: :right},
137
137
{:caption=>"Phys. memory (GB)",:data=>proc{|rec| fn(rec.phys_mem_gb,3)},:title=>"Physical server memory in Gigabyte (from gv$OSStat)",data_title: phys_mem_data_title,align: :right},
138
138
{:caption=>"Resource manager plan",:data=>proc{|rec| rec.resource_manager_plan},:title=>"Resource manager plan that is currently active.\nEmpty if resource manager is deactivated."},
139
139
{:caption=>"Srv.",:data=>link_services,:title=>"Number of TNS services for this instance\n(from gv$Services)",:align=>:right},
0 commit comments