With the Compression utility you can compress a database file. The Compression utility reads the given database file and create a compressed database file. Compressed database files are useful if disk space is limited. Compressed databases are usually 40 to 60 per cent of their original size. The database engine 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:
For full information on compressing a database in Sybase Central, see the Sybase Central online Help.
The syntax for the Compression utility from the ISQL DBTOOL statement is as follows:
DBTOOL COMPRESS DATABASE filenameTO filename ]
dbshrink[switches] database-file [compressed-database-file]
dbshrinw [switches] database-file [compressed-database-file]
Switch | Description |
---|---|
-q | Quiet mode---do not print messages |
-y | Erase existing output file without confirmation |
DBSHRINK reads the given database file and create a compressed database file. The compressed filename defaults to the same name as the first with an extension of CDB. The output filename (with extension) must not have the same name as the input filename (with extension).
For more information about the command-line switches, see "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.