Showing Segments with BR*Tools
You can use BR*Tools for Oracle to show information about database segments.
Start the procedure using BRGUI or BRTOOLS, or from the command line:
BRGUI or BRTOOLS:
Choose .
BRGUI or BRTOOLS displays the menu BRSPACE main options
for showing database information
, where you specify the options with which you call BRSPACE.
Set the required options:
Menu Entry |
Equivalent BRSPACE Command Option |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This shows you the BRSPACE -f dbshow -c sginfo command that is to be executed using the current settings. |
Note
If required, in Database table
or Database index
you can enter the names of multiple tables or indexes by using wildcards. For more information, see “Selecting Objects” in Segment
Management with BR*Tools.
In Database tablespace
and Database owner
, you can specify multiple objects but you cannot use wildcards.
BRSPACE processes all the segments in the specified tablespace(s), or all segments belonging to the specified owner(s), table(s), or index(es).
Choose Continue
BRGUI or BRTOOLS prompts you to start BRSPACE.
Choose Continue
to start BRSPACE.
Command line:
Enter at least the following command:
brspace -f dbshow -c sginfo
You can enter more parameters if required. For more information, see BRSPACE -f dbshow.
BRSPACE starts and you see a message that includes Start of BRSPACE processing
. From now on, BRSPACE writes a detail log if you set the option Create
log file
(parameter -l|-log
).
Note
If you started BRSPACE from the command line without information class name (-c|-class
) – that is, with brspace -f dbshow – BRSPACE displays the Show database information main menu
.
Choose .
BRSPACE displays the List of database segments
:
List Entry |
Meaning |
|---|---|
|
List sequence number |
|
Segment owner |
|
Segment type: table, index, tabpart, indpart, lobseg, lobind, cluster, rollback, temp, cache |
|
Segment name |
|
Partition name if applicable |
|
Tablespace name |
|
Segment size |
|
Number of extents |
|
Next extent size |
|
Maximum number of extents possible |
To see more information, select one or more segments.
Example
These examples only apply to input in character mode.
To select the first three entries in the list, enter 1-3.
To select the first and third entries, enter 1,3.
To select the first three entries and the fifth, enter 1-3,5.
To select all entries, enter 0.
BRSPACE displays Information about segment
:
List Entry |
Meaning |
|---|---|
|
Segment type: table, index, tabpart, indpart, lobseg, lobind, cluster, rollback, temp, cache |
|
Tablespace name |
|
Segment size |
|
Number of extents |
|
Next extent size |
|
Maximum number of extents possible |
If you specified multiple segments, choose Continue
to scroll through.
If you set the option Create log file
(parameter -l|-log
), check the results in the BRSPACE logs.
The summary log space<DBSID>.log
displays the return code.
The detail log s<encoded timestamp>.dbw
displays the details.
For more information on how to view the logs with BR*Tools, see Showing Profiles and Logs with BR*Tools.