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

Using dbed_analyzer

Effectively performing a parallel backup requires an understanding of which tablespaces reside on which disks. If two tablespaces reside on the same disk, for example, backing them up in parallel will not reduce their downtime.

The dbed_analyzer command provides tablespace-to-physical disk mapping information for all the datafiles in a specified tablespace, list of tablespaces, or an entire database. (In contrast, the vxstorage_stats command provides this information on a per-file basis only.) In addition, dbed_analyzer provides information about the amount of disk space they are using.


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 amount 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 amount 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.
  • If -f filename or -t tablespace is not specified then all the tablespaces in the database will be analyzed.
  • For more information, see the dbed_analyzer(1M) online manual page.

Obtaining Storage Mapping Information for a List of Tablespaces

  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

Example


$ /opt/VRTSdbed/bin/dbed_analyzer -S PROD -H /usr1/oracle \
-o sort=tbs -f /tmp/tbsfile

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


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

Example


$ /opt/VRTSdbed/bin/dbed_analyzer -S PROD -H /usr1/oracle \
-o sort=disk -f /tmp/tbsfile

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


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