Using Rhn Db Control; Db Control Options - Red Hat NETWORK SATELLITE 5.2 Installation Manual

Hide thumbs Also See for NETWORK SATELLITE 5.2:
Table of Contents

Advertisement

8.4. Using RHN DB Control

RHN Satellite Server with Embedded Database requires a utility for managing that database. Red Hat
provides just such a tool: RHN DB Control. This command line utility allows you to do everything from
make, verify, and restore backups to obtain database status and restart it when necessary. You must
be the oracle user to invoke RHN DB Control. To begin, switch to the oracle user:
su - oracle
Next, issue the following command:
db-control option

8.4.1. DB Control Options

RHN DB Control offers many command line options. To use them, as oracle insert the option and the
appropriate value, if needed, after the db-control command.
Option
help
backup DIRNAME
examine DIRNAME
extend
gather-stats PCT
report
report-stats
restore DIRNAME
start
shrink-segments
status
stop
tablesizes
Description
Lists these db-control options with additional
details.
Backs up the database to the directory specified.
Examines the contents of a backup directory. Returns
the timestamp of backup creation and reports on its
contents.
Increase the RHN Oracle tablespace
Gather statistics on RHN Oracle database objects. PCT
is the percentage of rows to estimate (the default is
15%).
Reports on current usage of database space.
Reports on segments with stale or empty statistics.
Restores the database from backup kept in DIRNAME.
Database must be stopped for this command to run
successfully.
Starts the database instance. This can also be
accomplished by issuing the service rhn-
database start command as root.
Shrinks RHN Oracle database segments with signifcant
amounts of free space.
Shows the current status of the database, either
"running" or "offline".
Stops the database instance. This can also be
accomplished by issuing the service rhn-
database stop command as root.
Show space report for each table
Using RHN DB Control
55

Advertisement

Table of Contents
loading

Table of Contents