Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: DBWR summed scan depth
On Tue, 09 Oct 2007 09:03:05 -0700, abdoul85 wrote:
> hello,
> I'm writing a simple script which shows informations about database. The
> problem is that I have excecute:
>
> select * from v$sysstat dssd where dssd.name='DBWR summed scan depth'
>
> On database ver 9 everything is allright but on ver 10 the row with name
> value = 'DBWR summed scan depth' doesnt' exist. How to enable 'DBWR
> summed scan depth' in my database ? or is there any posibility to
> encourage SELECT to return for example "NOT EXIST" string instead of
> NULL when 'DBWR summed scan depth' doesn,t exist ?
Try something like this:
SQL> select min(v) val from (select to_char(value) v from v$sysstat where name='execute count' union select 'not found' v from dual);
VAL
SQL> select min(v) val from (select to_char(value) v from v$sysstat where name='DBWR summed scan depth' union select 'not found' v from dual);
VAL
![]() |
![]() |