PreviousAdvanced Operations Guide (v9 SP2 (9.5) revision 1) Next

Pervasive PSQL Database Tasks

Chapter contents

The following tasks pertain to databases.

For conceptual information on named databases, see Pervasive PSQL Database Concepts

To create a new database


Note
On Linux, the owner of the directory where you want to create the database must be psql. If not, error message 7039: Dictionary path is invalid results. Use the chown command to change owner of the directory. For example, chown psql directoryname.
  1. In PCC Pervasive PSQL Explorer, right-click on the database engine for which you want the new database.
  2. Click New4Database.
  3. The Create New Database dialog appears (see Figure 1-1).

  4. Provide a name for the database and a location (see Table 1-1, Identifier Restrictions by Identifier Type, ).
  5. The name cannot be the same as an existing DSN.

  6. Specify the additional options on the dialog as required for the database. See Table 1-9 for a discussion of the options.

To modify properties of a database

  1. In PCC Pervasive PSQL Explorer, right-click on the database engine for which you want to modify the properties, then click Properties

    .
  2. On the Properties dialog, click the tree node for which you want to specify properties:
  3. Set the specific properties as required.

To delete a database

You cannot delete the database to which you are currently logged in. See To log out from a database engine in Pervasive PSQL User's Guide.

If database security is set to "mixed" or "database," you must first remove the security. You cannot delete a database if security on it is set to "mixed" or "database." See To turn off security using Pervasive PSQL Explorer and To turn off security using SQL .

  1. In PCC Pervasive PSQL Explorer, right-click on the database engine that you want to delete.
  2. Click Delete.
  3. Click Yes to confirm the deletion.
  4. The "Confirm DSN Removal" dialog appears.

  5. If you want to remove a DSN associated with the database, ensure that the DSN is check marked in the list.
  6. Note that multiple DSNs can be associated with one database. In such cases, you may remove the DSNs that you want and retain the ones that you want.

  7. Optionally, select the option Always remove associated DSN entries if you want PCC to set DSN removal as the default action.

  8. Note
    If you select the option, PCC no longer prompts you for DSN removal when you delete a database. PCC will automatically remove all DSNs associated with the database being deleted.

    If you decide later to turn off the option, in PCC click Window 4 Preferences 4 General.


Chapter contents
Book contents

Prev topic: New Database GUI Reference
Next topic: Concepts of Database Maintenance