Previous  |  Next  >  
Product: Storage Foundation for Databases Guides   
Manual: Storage Foundation 4.1 for Oracle Administrator's Guide   

Mapping Tablespaces to Disks Using dbed_analyzer

The dbed_analyzer command provides tablespace-to-physical disk mapping information for all the datafiles in a specified database. In addition, dbed_analyzer provides information about the percentage of disk space being used by a tablespace.

Because the dbed_analyzer command output can be long, it is written to a file for easier viewing. The file name is dbed_analyzer_$ORACLE_SID.log and it is located /tmp.


Prerequisites

  • You must log in as the database administrator (typically, the user ID oracle).


Usage Notes

  • The -o sort=tbs option provides the layout of the specified tablespaces on the physical disk as well as the percentage of disk space they are using.
  • The -o sort=disk option provides the name of the disks containing the specified tablespaces as well as the percentage of disk space the tablespaces are using.
  • The -f filename option specifies the name of a file containing a list of the tablespaces for which to obtain mapping information.
  • The -t tablespace option specifies the name of a tablespace for which to obtain mapping information.
  • For more information, see the dbed_analyzer(1M) online manual page.

  To obtain storage mapping information sorted by tablespace

Use the dbed_analyzer command with the -f filename and -o sort=tbs options:


$ /opt/VRTSdbed/bin/dbed_analyzer -S $ORACLE_SID -H $ORACLE_HOME -o sort=tbs -f filename

Output similar to the following is displayed in the file filename:


TBSNAME DATAFILE DEVICE SIZE(sectors)
SYSTEM              /usr1/oracle/rw/DATA/PROD.dbf                    c3t21000020379DBD5Fd0            819216
TEMP              /usr1/oracle/rw/DATA/temp_20000                    c3t21000020379DBD5Fd0            1021968
TEMP              /usr1/oracle/rw/DATA/temp_20001                    c3t21000020379DBD5Fd0            2048016
SYSAUX              /usr1/oracle/rw/DATA/sysaux.dbf                    c3t21000020379DBD5Fd0            819216
ITEM              /usr1/oracle/rw/DATA/item_1000                    c3t21000020379DBD5Fd0            1021968
ITM_IDX              /usr1/oracle/rw/DATA/itm_idx_2000                    c3t21000020379DBD5Fd0            1021968
PRODID_IDX              /usr1/oracle/rw/DATA/prodid_idx_3000                    c3t21000020379DBD5Fd0            1021968
QTY_IDX              /usr1/oracle/rw/DATA/qty_idx_7000                    c3t21000020379DBD5Fd0            1021968
ROLL_1              /usr1/oracle/rw/DATA/roll_1_5000                    c3t21000020379DBD5Fd0            1021968
ROLL_2              /usr1/oracle/rw/DATA/roll_2_6000                    c3t21000020379DBD5Fd0            1021968
ORDERS              /usr1/oracle/rw/DATA/orders_4000                    c3t21000020379DBD5Fd0            1021968
ORD_IDX              /usr1/oracle/rw/DATA/ord_idx_10000                    c3t21000020379DBD5Fd0            1021968
QTY_IDX              /usr1/oracle/rw/DATA/qty_idx_7001                    c3t21000020379DBD5Fd0            1024016
ITM_IDX              /usr1/oracle/rw/DATA/itm_idx_2001                    c3t21000020379DBD5Fd0            1024016
ROLL_1              /usr1/oracle/rw/DATA/roll_1_5001                    c3t21000020379DBD5Fd0            1024016
QTY_IDX              /usr1/oracle/rw/DATA/qty_idx_7002                    c3t21000020379DBD5Fd0            1024016
ROLL_2              /usr1/oracle/rw/DATA/roll_2_6001                    c3t21000020379DBD5Fd0            1024016
ITEM              /usr1/oracle/rw/DATA/item_1001                    c3t21000020379DBD5Fd0            4096016

  To obtain storage mapping information sorted by disk

Use the dbed_analyzer command with the -f filename and -o sort=disk options:


$ /opt/VRTSdbed/bin/dbed_analyzer -S $ORACLE_SID -H $ORACLE_HOME -o sort=disk -f filename

Output similar to the following is displayed in the file filename:


DEVICE                    TBSNAME     DATAFILE                  SIZE(sectors)
c3t21000020379DBD5Fd0                    SYSTEM     /usr1/oracle/rw/DATA/PROD.dbf                     819216
c3t21000020379DBD5Fd0                    TEMP     /usr1/oracle/rw/DATA/temp_20000                     1021968
c3t21000020379DBD5Fd0                    TEMP     /usr1/oracle/rw/DATA/temp_20001                     2048016
c3t21000020379DBD5Fd0                    SYSAUX     /usr1/oracle/rw/DATA/sysaux.dbf                     819216
c3t21000020379DBD5Fd0                    ITEM     /usr1/oracle/rw/DATA/item_1000                     1021968
c3t21000020379DBD5Fd0                    ITM_IDX     /usr1/oracle/rw/DATA/itm_idx_2000                     1021968
c3t21000020379DBD5Fd0                    PRODID_IDX      /usr1/oracle/rw/DATA/prodid_idx_3000                    1021968
c3t21000020379DBD5Fd0                    QTY_IDX     /usr1/oracle/rw/DATA/qty_idx_7000                     1021968
c3t21000020379DBD5Fd0                    ROLL_1     /usr1/oracle/rw/DATA/roll_1_5000                     1021968
c3t21000020379DBD5Fd0                    ROLL_2     /usr1/oracle/rw/DATA/roll_2_6000                     1021968
c3t21000020379DBD5Fd0                    ORDERS     /usr1/oracle/rw/DATA/orders_4000                     1021968
c3t21000020379DBD5Fd0                    ORD_IDX     /usr1/oracle/rw/DATA/ord_idx_10000                     1021968
c3t21000020379DBD5Fd0                    QTY_IDX     /usr1/oracle/rw/DATA/qty_idx_7001                     1024016
c3t21000020379DBD5Fd0                    ITM_IDX     /usr1/oracle/rw/DATA/itm_idx_2001                     1024016
c3t21000020379DBD5Fd0                    ROLL_1     /usr1/oracle/rw/DATA/roll_1_5001                     1024016
c3t21000020379DBD5Fd0                    QTY_IDX     /usr1/oracle/rw/DATA/qty_idx_7002                     1024016
c3t21000020379DBD5Fd0                    ROLL_2     /usr1/oracle/rw/DATA/roll_2_6001                     1024016
c3t21000020379DBD5Fd0                    ITEM     /usr1/oracle/rw/DATA/item_1001                     4096016
 ^ Return to Top Previous  |  Next  >  
Product: Storage Foundation for Databases Guides  
Manual: Storage Foundation 4.1 for Oracle Administrator's Guide  
VERITAS Software Corporation
www.veritas.com