pvmdconv
Pervasive PSQL includes a conversion utility, pvmdconv, to convert V1 metadata to V2 metadata. This command line utility is located in the BIN subdirectory under the installation directory.
Synopsis
pvmdconv -o <1 | 2> -d path_to_DDFs -n database_name [-v] [-ddf] [-s server_name] [-i server_login_name] [-c server_password] [-u database_user_name] [-p database_password] [-l log_file] [-<h | ?>]
Parameters
 
Note: The current release of pvmdconv does not support converting DDFs from V2 metadata to V1 metadata.
-d path_to_DDFs
-n database_name
[-s server_name]
[-i server_login_name]
Specifies the name required to log in to the remote server where the database resides. Server_login_name is a name administered by the operating system.
[-c server_password]
Specifies the password for server_login_name. Server_password is a password administered by the operating system.
[-u database_user_name]
[-p database_password]
[-l log_file]
Prints diagnostic messages to a text file. The name and location of the text file is specified by log_file. If this parameter is omitted, the utility prints any diagnostic messages to the screen.
Description
Pvmdconv allows you to perform the following actions:
Convert only DDFs from one version of metadata to another version of metadata. The database to which the DDFs belong remains categorized as is. That is, the metadata property for the database, which is stored in a special file named dbnames.cfg, does not change. This action is sometimes referred to as “migrating” the DDFs.
This action requires that the DDFs for each metadata version must already exist in the location path_to_ddfs. That is, you must have already converted (migrated) the DDFs from V1 metadata to V2 metadata.
Convert the DDFs and set the metadata property of the database in dbnames.cfg. That is, combine the first two actions. This is the default action of pvmdconv.
Having different conversion actions provides more control over how you can convert metadata. For example, you may choose first to convert only the DDFs and check for errors. If no errors occur, you could then update the metadata version in dbnames.cfg.
Conversion From V1 to V2 Metadata
All of the data from the V1 DDFs is directly copied to the V2 DDFs with the following exceptions:
Conversion From V2 to V1 Metadata
The current release of pvmdconv does not support conversion from V2 to V1 metadata.
Examples
For default locations of Pervasive PSQL files, see Where are the Pervasive PSQL files installed? in Getting Started With Pervasive PSQL.
Default Conversion
To convert the sample database DEMODATA to V2 metadata (assuming a default installation on a Windows platform):
pvmdconv -o 2 -d file_path\PSQL\Demodata\ -n demodata
This example results in the following:
To perform the same conversion and obtain a log of conversion diagnostic information:
pvmdconv -o 2 -d file_path\PSQL\Demodata\ -n demodata ‑l file_path\PSQL\Demodata\\pvmdconv_log.txt
Convert Only DDFs
To convert only the DDFS for the sample database DEMODATA to V2 metadata (assuming a default installation on a Windows platform):
pvmdconv -o 2 -d file_path\PSQL\Demodata\ -n demodata -DDF
This example results in the following:
Change Metadata Version of Database
To change the metadata version of the sample database DEMODATA to V2 metadata (assuming a default installation on a Windows platform):
pvmdconv -o 2 -d file_path\PSQL\Demodata\ -n demodata -v
This example results in the following:
Note: this example requires that the DEMODATA DDFs exist in file_path\PSQL\Demodata\ even through the DDFs are not affected by the conversion.
Perform Conversion on a Remote Server
To convert the sample database DEMODATA to V2 metadata given the following:
pvmdconv -o 2 -d z:file_path\PSQL\Demodata\ -n demodata -s TESTSERVER -i adminuser -c admin99user
This example results in the following: