1

正如标题中所说,我想根据以下信息填充 Apex 报告:

show sga
show parameter

sql plus 中存在的命令

有谁知道在后台为此执行的 select 语句或它引用的表?

4

1 回答 1

2

显示参数可以通过这个选择来模拟:

select name,  
       case type 
         when 1 then 'boolean'  
         when 2 then 'string' 
         when 3 then 'integer' 
         when 4 then 'parameter file' 
         when 5 then 'reserved' 
         when 6 then 'big integer' 
         else to_char(type) 
       end as type,  
       value, 
       description, 
       update_comment 
from v$parameter 
where name like '%foo%'

可以使用以下语句模拟 Show SGA:

select 'Total System Global Area' as "Memory", 
       sum(VALUE) as "Value", 
       'bytes' as unit 
from V$SGA 
union all 
select NAME, 
       VALUE, 
       'bytes' 
from V$SGA
于 2012-06-08T17:36:48.830 回答