DrSeussFreak
Programmer
I have a script running on a server that runs Oracle 9i and it looks for auto extensible files that can not extend anymore.
I need this code to be modified so that is the file that it pulls is extended to its max size, BUT another file exists in the same tablespace, it does not alert me. Currently, I keep getting the following alert every day
Any thoughts? I wrote
but I fear it will just suppress all alerts, so I have no implemented it.
Thanks in advance!
Code:
SELECT FILE_NAME||' '||BYTES||' '||MAXBYTES FROM DBA_DATA_FILES WHERE autoextensible = 'YES' and maxbytes-bytes < 2097152 order by bytes;
I need this code to be modified so that is the file that it pulls is extended to its max size, BUT another file exists in the same tablespace, it does not alert me. Currently, I keep getting the following alert every day
FILE_NAME||''||BYTES||''||MAXBYTES
--------------------------------------------------------------------------------
Disk:[Path]Tablespace_Name_01.DBS 4294967296 4294967296
Any thoughts? I wrote
Code:
SELECT FILE_NAME, BYTES, MAXBYTES
FROM DBA_DATA_FILES
WHERE autoextensible = 'YES'
AND maxbytes-bytes < 2097152
AND file_name in (SELECT FILE_NAME from dba_data_files where autoextensible = 'YES' and maxbytes-bytes < 2097152)
order by bytes;
but I fear it will just suppress all alerts, so I have no implemented it.
Thanks in advance!