Re: dbms_server_alert.tablespace_byt_free measures really KB?
Date: Thu, 10 Feb 2011 07:35:34 -0800 (PST)
On Feb 10, 9:27 am, Lothar Armbrüster
> Hello out there,
> I tried to configure alerts for full tablespaces using
> dbms_server_alert.set_threshold. Since we do not have licensed
> diagnostics pack I cannot do this with dbconsole. I have to resort to
> the command line.
> Anyway, I want to get a warning when the tablespace has less than 1GB
> free space.
> So I issued the following command:
> dbms_server_alert.set_threshold(metrics_id =>
> warning_operator =>
> warning_value => '1048576',
> critical_operator =>
> critical_value => '204800',
> observation_period => 1,
> consecutive_occurrences => 1,
> instance_name => null,
> object_type =>
> object_name => 'TS_TABLES');
> But now I get a critical warning saying tablespace TS_TABLES only has
> 8505 MB free space left.
> Therefor the question is: are the units of
> dbms_server_alert.tablespace_byt_free really KB as described in the
> documentation or are this MB as I suspect?
> Setting the thresholds to 1024 and 200 the alerts disappear but I want
> to be sure that I get warnings if there are fewer than 1GB left and
> not fewer than 1MB. In the latter case there would not be enough time
> to react. :-)
> This is Oracle 10.2.0.5 on Windows 2000.
IF possible, set up a 'dummy' tablespace with less than 1 GB of storage then redirect your alert to this tablespace and see what happens with your various configuration settings. It would appear that the documentation is incorrect, however you won't know that for certain until you test this with a tablespace known to have less than 1 GB free.
David Fitzjarrell Received on Thu Feb 10 2011 - 09:35:34 CST