ccmdb unpack

This topic contains information about the ccmdb unpack command.

Synopsis

ccmdb unpa|unpack   packfile [/p|/space dbspace]
                    [/s|/server servername] /t|/to database_path [/url server_url]

Description and uses

The ccmdb unpack command restores a database from a .cpk file created by ccmdb pack or ccmdb backup.

Before you unpack a database:

For more information, see Unpacking pack files to create databases.

The user for this command is the Rational Synergy administrator.

Options and arguments

/p|/space dbspace

Specifies the name of the dbspace. If not specified, the dbspace name defaults to the ccm dbspace.

packfile

Specifies the file to be unpacked.

/s|/server servername

Specifies the database server. If you do not specify this switch, the new database is created on the current computer, if it is a database server. If not, then the new database is created on the main server.

/t|/to database_path

Specifies the path and name of the database to be restored. Type the path using the UNC. Additionally, verify that you are running on an NTFS system.

/url server_url

When this option is specified, the new database is assigned to the specified server. Otherwise, it is assigned to the default CCM server running on the database server machine.

Example

Unpack the training database to a new database named train71.

> ccmdb unpack packfiles\training.cpk /t \\orbit1\ccmdb\train71
Enter user-name who has privileges of
CREATE USER, DROP USER, CREATE ANY INDEX, DROP ANY INDEX,
CREATE ANY SEQUENCE, CREATE ANY TABLE, INSERT ANY TABLE,
DROP ANY TABLE, SELECT ANY TABLE, UPDATE ANY TABLE,
DELETE ANY TABLE, and GRANT ANY OBJECT PRIVILEGE: sys
Enter password: 
Unpacking database \\orbit1\ccmdb\train71.
Creating Rational Synergy database \\orbit1\ccmdb\train71.
Database create succeeded.
Extracting pack file 
\\pulsar2\ccmred\ccmred.sol\cmred_odd\packfiles\training.cpk.
Loading database.
loading Rational Synergy dump file version 7.1 platform UNIX ...
loading table attrib...
.................................3380 records.
loading table bind...
...343 records.
loading table bsite...
..223 records.
loading table compver...
...368 records.
loading table control...
0 records.
loading table relate...
..224 records.
loading table release...
10 records.
loading table acckeys...
22 records.
Database unpacked successfully.

Feedback