|
 |
|
Oracle Tips by Burleson |
Chapter 6 Oracle Tablespace and File
Internals Scripts
file_id,
block_id, blocks,
(blocks*&dbblksiz)/(1024*1024) meg
FROM
dba_free_space
SEE CODE DEPOT FOR FULL SCRIPT
UNION
SELECT
SUBSTR(owner,1,20), SUBSTR(segment_name, 1,32),partition_name
file_id, block_id, blocks,
(blocks*&dbblksiz)/(1024*1024) meg
FROM
dba_extents
SEE CODE DEPOT FOR FULL SCRIPT
ORDER BY 3,4;
SPOOL OFF
UNDEF ts
SET PAGES 22 LINES 80 VERIFY ON FEEDBACK ON
CLEAR COLUMNS
TTITLE OFF
Here is a sample listing.
File
OWNER
OBJECT id BLOCK_ID BLOCKS MEG
----------
-------------- ---- -------- ------ ------
TELE_DBA
LOAD_TEST 11 2 102655 401.00
TELE_DBA
LOAD_TEST 11 102657 25600 100.00
The above text is
an excerpt from:
Mike
Ault’s Oracle Internals Monitoring & Tuning Scripts
Written by the world's top DBA and author
of over 20 Oracle books, Mike Ault shares his secrets for Oracle
DBA management scripts. This handy reference is indispensable
for all Oracle professionals who must quickly automate and
manage their Oracle databases with scripts.
This stellar book comes complete with an
online code depot full of over 200 pre-tested Oracle DBA
scripts, and covers all areas of Oracle database administration
including data files, tablespace, table and index management
scripts. Based on more than 20 years full-time experience, Mike
Ault brings his expertise to the public with this fantastic
book. Your time savings from a single script is worth the price
of this great book.
Mike Ault is one of the
leading names in Oracle technology. The author of 20
books and hundreds of articles in national publications,
Mike was the first popular Oracle author with his
landmark book "Oracle7 Administration and Management".
Mike also wrote several of the "Exam Cram" books, and
enjoys a reputation as a leading author and Oracle
consultant.
Mike started
working with computers in 1979 right out of a stint in
the Nuclear Navy. He began working with Oracle in 1990
and has since become a World Renowned Oracle expert (in
the words of his publisher anyway!) Mike has written 14
Oracle related books, dozens of articles, and has
presented at conferences in Europe and the USA. Mike has
two wonderful daughters and is kept out of trouble by
his wife of 29 years, Susan. |
http://www.rampant-books.com/book_2003_2_ault_internals.htm
See the Oracle script collection::
|