BC remote Oracle DBA - Call (800) 766-1884  
Oracle Consulting Oracle Training Development

Remote DBA

Remote DBA Plans  

Remote DBA Service

Remote DBA RAC

   
Remote DBA Oracle Home
Remote DBA Oracle Training
Remote DBA SQL Tuning Consulting
Remote DBA Oracle Tuning Consulting
Remote DBA Data Warehouse Consulting
Remote DBA Oracle Project Management
Remote DBA Oracle Security Assessment
Remote DBA Unix Consulting
Burleson Books
Burleson Articles
Burleson Web Courses
Burleson Qualifications
Oracle Links
Remote DBA Oracle Monitoring
Remote DBA Support Benefits
Remote DBA Plans & Prices
Our Automation Strategy
What We Monitor
Oracle Apps Support
Print Our Brochure
Contact Us (e-mail)
Oracle Job Opportunities
Oracle Consulting Prices





   

 

 

 

Remote DBA services

Remote DBA Support

Remote DBA RAC

Remote DBA Reasons

Remote Oracle Tuning

Remote DBA Links

Oracle DBA Support

Oracle DBA Forum

Oracle Disaster

Oracle Training

Oracle Tuning

Oracle Training

 Remote DBA SQL Server

Remote MSSQL Consulting

Oracle DBA Hosting

Oracle License Negotiation

 

 


 

 

 

 

 

 
 

Oracle Tips 

by Burleson Consulting

The Data Warehouse Development Life Cycle

Oracle Features for the Data Warehouse
Tablespace Fragmentation

column today new_value datevar noprint;

column TABLESPACE_NAME        FORMAT A15    HEADING 'Tablespace';

COLUMN PIECES                 FORMAT 9,999  HEADING 'Tablespace|Pieces';

COLUMN FILE_MBYTES            FORMAT 99,999 HEADING 'Tablespace|Mbytes';

cOLUMN FREE_MBYTES            FORMAT 99,999 HEADING 'Free|Mbytes';

COLUMN CONTIGUOUS_FREE_MBYTES FORMAT 99,999 HEADING 'Contiguous|Free|Mbytes';

COLUMN PCT_FREE               FORMAT 999    HEADING 'Percent|FREE';

COLUMN PCT_CONTIGUOUS_FREE    FORMAT 999    HEADING 'Percent|FREE|Contiguous';

 

ttitle left datevar right sql.pno -

       center ' Instance Data File Storage' SKIP 1 -

       center ' in ORACLE Megabytes (1048576 bytes)' -

       skip skip;

 

BREAK ON REPORT

COMPUTE SUM OF FILE_MBYTES ON REPORT

 

select to_char(sysdate,'mm/dd/yy') today,

       TABLESPACE_NAME,

       PIECES,

       (D.BYTES/1048576) FILE_MBYTES,

       (F.FREE_BYTES/1048576) FREE_MBYTES,

       ((F.FREE_BLOCKS / D.BLOCKS) * 100) PCT_FREE,

       (F.LARGEST_BYTES/1048576) CONTIGUOUS_FREE_MBYTES,

       ((F.LARGEST_BLKS / D.BLOCKS) * 100) PCT_CONTIGUOUS_FREE

from SYS.Remote DBA_DATA_FILES D, SYS.FREE_SPACE F

SEE CODE DEPOT FOR FULL SCRIPT

order by TABLESPACE_NAME;

 

 

Here is the report from this script.
 

Tablespace         Pieces     Mbytes  Mbytes  FREE       Mbytes Contiguous

--------------- ---------- ---------- ------- ------- ---------- ----------

MASTER1_DETAILS       1      18         2        10            2   10

MASTER1_DETAILS       1      20        20       100           20  100

MASTER2_DETAILS       1       2         1        65            1   65

MASTER3_DETAILS       1       5         5        95            5   95

MASTER4_DETAILS       2       3         1        36            1   35

RBS_ONE              11     490       380        78          280   57

RBS_TWO              11     490       379        77          279   57

SYSTEM               17      60        45        76           45   75

TEMP                  1     650       650       100          650  100

TOOLS                 2      15         9        61            8   55

USERS                41     100        31        31            4    4

----------

                      13,255

 

While this report is useful for finding the largest sized chunk of free space in a tablespace, it is not a substitute for some of the graphical tablespace display tools, such as Oracle’s Performance Pack Tablespace Manager, of the Eventus AdHawk Spacer tool.  These tools display a picture of each tablespace, showing exactly where the chunks of free space reside.


This is an excerpt from "High Performance Data Warehousing". To learn more about Oracle, try "Oracle Tuning: The Definitive Reference", by Donald K. Burleson.  You can buy it direct from the publisher at 30% off here:
http://www.rampant-books.com/book_1002_oracle_tuning_definitive_reference_2nd_ed.htm
 

 


Expert Remote DBA

BC is America's oldest and largest Remote DBA Oracle support provider.  Get real Remote DBA experts, call
BC Remote DBA today.

 

 

Remote DBA Service
 

Oracle Tuning Book

 

Advance SQL Tuning Book 

BC Oracle support

Oracle books by Rampant

Oracle monitoring software

 

 

 

 

 

 

BC Remote Oracle Support

Remote DBA

Remote DBA Services

Copyright © 1996 -  2013 by Burleson. All rights reserved.

Oracle® is the registered trademark of Oracle Corporation.