ccmdb unpack

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

Synopsis

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

Uses

Before you unpack a database:

After unpacking a database (particularly from a packed production database), you might need to change some of the database properties. For example, the paths to project work areas. For important information about changing database properties, see work_area command.

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.
Attention: Do not unpack a database to the temp dbspace.
packfile
Specifies the file to be unpacked.
/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 train72.

> ccmdb unpack packfiles\training.cpk /t \\orbit1\ccmdb\train72
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\train72.
Creating Rational Synergy database \\orbit1\ccmdb\train72.
Database create succeeded.
Extracting pack file 
\\pulsar2\ccmred\ccmred.sol\cmred_odd\packfiles\training.cpk.
Loading database.
loading Rational Synergy dump file version 7.2 platform Windows ...
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