Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Searching for SQL-Code or Tools for Tablespace Fillments

Status
Not open for further replies.

appi

IS-IT--Management
Mar 17, 2003
296
CH
Hi Folks,
I am searching for a great tool or maybe SQL-Code to retrieve data for tablespace-fillments of our databases. We need to have a flatfile, or sql-code which retrieve the data in a flatfile, which should be read from HP-Openview (without heading lines). HP-Openview should send sms if a defined percentage of fillment is reached.
I got some code, but I got no fitting data to encounters HP-OpenView to work.
We're using Oracle 8.05, 8.16, 8.17 and 9.20, but serious is 8.17.
Any suggestions welcome
regards
Uwe
 
Thanks BJ,
it works slightly okay, but the second part won't work.

SQL>
SQL> select 'TOTALS',
2 sum(a.BYTES),
3 sum(a.BYTES-b.BYTES),
4 sum(b.BYTES)
5 from sys.orasnap_ddf a, sys.orasnap_dfs b
6 where a.TABLESPACE_NAME = b.TABLESPACE_NAME;
from sys.orasnap_ddf a, sys.orasnap_dfs b
*
Error in Line 5:
ORA-00942: Table or View does not exist.
I don't even know how, but I think I can deal with the result.
thanks
Uwe
 
Make sure you are logged in with DBA privileges when running this script. (select * from life where brain is not null)
Consultant/Custom Forms & PL/SQL - Oracle 8.1.7 - Windows 2000
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top