Collection Contents Index The Collation utility The Console utility pdf/chap4.pdf

Reference Manual
   CHAPTER 4. Database Administration Utilities     

The Compression utility


With the Compression utility you can compress a database file. The Compression utility reads the given database file and creates a compressed database file. Compressed databases are usually 40 to 60 per cent of their original size. The database server cannot update compressed database files: they must be used in conjunction with write files.

The Compression utility does not compress files other than the main database file.

You can access the Compression utility in the following ways:

Top of page  Compressing a database in Sybase Central

  To compress a database file:
  1. Open the Database Utilities folder in the left panel.

  2. Double-click Compress Database in the right panel. The Compress Database wizard is displayed.

  3. Follow the instructions in the wizard.

For Info     For full information on compressing a database in Sybase Central, see the Sybase Central online Help.

Top of page  The DBSHRINK command-line utility

Syntax 

dbshrink [switches] database-file [compressed-database-file]

Windows 3.x
syntax 

dbshrinw [switches] database-file [compressed-database-file]

Switch

Description

-q

Quiet mode—do not print messages

-y

Erase an existing output file without confirmation

Description 

dbshrink reads the given database file and creates a compressed database file. The compressed filename defaults to the same name with an extension of cdb. The output filename (with extension) must not be same as the input filename (with extension).

For Info     For more information about the command-line switches, see Compression utility options.

Top of page  Compression utility options

Operate quietly (-q )     Do not display messages on a window. This option is available only from the command-line utility.

Operate without confirming actions (-y )     Without this option, you are prompted to confirm the replacement of an existing database file.

Top of page  

Collection Contents Index The Collation utility The Console utility pdf/chap4.pdf