|
Pervasive PSQL Control Center (PCC) is an integrated framework in which users can connect to Pervasive PSQL engines, set up and modify databases and tables, query and update data, and tune engine performance.
PCC uses a file explorer-like motif-a tree of objects-referred to as the Pervasive PSQL Explorer. This tree of objects can be opened or expanded to reveal more detail. Examples of objects include engines, databases, tables, and users. The following figures illustrate PCC with several window views displayed. The Pervasive PSQL Explorer is the tree view on the left.


Note that the PCC graphical user interface (GUI) may look cosmetically different depending on your distribution of Linux.
On Windows platforms, PCC is installed by default when you install a database engine or a client. See Pervasive PSQL v10 Optional Features in Getting Started With Pervasive PSQL.
On Linux, PCC is a separately installable component. See Installing PCC and Documentation on Linux in Getting Started With Pervasive PSQL.
You start PCC from the Pervasive PSQL group on the Start menu. You may also run the executable file pcc.exe.
You start PCC by running the executable script file pcc from a command prompt. The script file is located, by default installation, in the usr/local/psql/bin directory.
We recommend that you start PCC from a command prompt and not by double-clicking on the script file using a file browser application. See Table 3-2, Troubleshooting Guide for Running PCC .
The following requirements must be met to start PCC on Linux.
If you have met the requirements to run PCC and still are having difficulty running the utility, refer to the following troubleshooting guide.
PCC caches certain information to improve efficiency. The cache must be cleared after you install or upgrade any other products that "plug in" to PCC. Otherwise, the installed or upgraded product does not appear in the Pervasive PSQL Explorer. For example, if you were to install or upgrade Btrieve 7.0 Data Exchange, you would then need to clear the PCC cache.
The cache can be cleared only by starting PCC with a parameter from the command line.
To clear PCC cache
For default locations of Pervasive PSQL files, see Where are the Pervasive PSQL v10 files installed? in Getting Started With Pervasive PSQL.
This starts PCC and clears the cache. The newly installed or upgraded products should then appear in the Pervasive PSQL Explorer.
Note
Use of the -clean parameter when starting PCC provides no advantage under normal usage. The parameter is required only if you install or upgrade a plug-in product.
The PCC main window comprises editors and views:
You can display and work with objects through the different editors and views. Multiple editors of the same type (for example, SQL Editor) can be open at the same time. Each object being edited is represented by a tab on top of the editor. The tab contains the name of the object. Data modified within an editor must be explicitly saved (for example, with File 4 Save).
Views, such as Pervasive PSQL Explorer, can be opened only one at a time. Actions performed within a view are applied immediately. No explicit save is required.
The following table summarizes the characteristics of the editors and views.
This view displays a tree of objects that can be opened or expanded to reveal more detail. Click the expand icon to the left of an object to reveal subordinate objects. The expand icon may be a "+" symbol, a "4" symbol, or some other similar symbol. Click the collapse icon to hide subordinate objects. (The collapse icon appears after you click an expand icon.)
The tree of objects includes a root node named Pervasive PSQL. The root node contains subordinate objects such as clients, services (if applicable), engines, databases, tables, views, stored procedures, user-defined functions, triggers, groups, users, and system objects (such as system tables).

A right-click on an object reveals actions or dialogs applicable to that object. For example, you can right-click on an object then click Properties to display configurable settings for the object (provided properties apply to the object). You may also click an object then press Alt+Enter to display properties.
SQL Editor allows you to run Structured Query Language (SQL) statements against a Pervasive PSQL database. See SQL Editor for a detailed discussion.
The Grid window view shows in a matrix format, like a spreadsheet, the result of running SQL statements. Each field is represented as a column and the data appears in cells within the columns. You can change data directly in the Grid cells as well as add additional rows to the Grid.
Both Table Editor and SQL Editor use the Grid. See To view table data and Grid Window View for further details.
The Text window view shows in a text format the result of running SQL statements. The text is display only. You cannot change data values by changing the text, but you can copy text. See Text Window View for a detailed discussion.
The Outline window view allows you to view the SQL statements in a tree structure. The root node of the tree is the same name as the name of the SQL Editor window view. See Outline Window View for a detailed discussion.
Note that the editor must support an outline or the Outline window view is not available. Currently, only SQL Editor supports an outline view.
Table Editor allows you to add, delete, or change the characteristics of columns within a table. The table may be one newly created or an existing table that you want to edit. See Table Editor for a detailed discussion.
You can set general preferences for your experience in PCC. You can also set preferences for the window views in PCC (page 3-10) or for the external tools (page 3-12).
The following are the options that can be set in the General Preferences:
Select Always remove associated DSN entries to have all DSN entries for any database automatically deleted along with the database without prompting.
Unselect Do not prompt for new database each time a SQL document is opened to be prompted to select a database each time you open a SQL document in the SQL Editor. If this option is unselected, select it to use the most recently selected database when you open a SQL document. The selected database is not maintained across PCC sessions. If you close and reopen PCC, you will have to select a new default database context.
You can set preferences for the following window views:
Some utilities have not yet been tightly integrated within the Windows PCC framework. However, they may still be started from within PCC by selecting them through the Tools menu:
Note
These utilities appear in the Tools menu only on Windows platforms. For both Windows and Linux platforms, you can add your own custom tools to the Tools menu. Refer to the next section.
You can add your own software programs to the PCC Tools menu. This provides a convenient way to start the programs from PCC.
To add external tools
You can click
and browse to the file location if your prefer.
To set preferences for external tools
|
Chapter contents
Prev topic: Using Pervasive PSQL Control Center
|