An Overview of Pervasive PSQL Control Center
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, tune engine performance, and access the Pervasive PSQL documentation library.
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.
Figure 17 Pervasive PSQL Control Center on Windows Platforms
 
Figure 18 Pervasive PSQL Control Center on Linux Platforms
Note that the PCC graphical user interface (GUI) may look cosmetically different depending on your distribution of Linux.
Installing PCC
On Windows platforms, PCC is installed by default when you install a database engine or a client. See Pervasive PSQL Optional Features in Getting Started With Pervasive PSQL.
On Linux, PCC is included in the full install. See Full Installations in Getting Started With Pervasive PSQL.
Starting PCC on Windows
Access Control Center from the operating system Start menu or Apps screen. You may also run the executable file pcc.exe.
Starting PCC On Linux
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 6, 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.
You are not required to log in as user psql or root to run PCC. However, if you are neither of these users, you must be a member of group pvsw.
The "SWT no more handles" error is caused by X-Server denying a connection to a client. Before switching to user psql or root, open a console window and type xhost + to allow other clients to connect to X-Server.
Also, sometimes the display environment variables needs to be set. As user psql or root, type the following command at a console window:
By default, the log file of PCC errors is located in a subdirectory of the user’s home directory (the subdirectory is dir_pcc/workspace/.metadata). For troubleshooting, you may find it more convenient to redirect the errors to the console window.
Situations Requiring That You Clear PCC Cache
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 Pervasive 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.
1
2
3
For default locations of Pervasive PSQL files, see Where are the Pervasive PSQL files installed? in Getting Started With Pervasive PSQL.
4
Type pcc -clean and press Enter.
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.
Editors and Views Within PCC
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 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.
Editor and View Characteristics
The following table summarizes the characteristics of the editors and views.
Pervasive PSQL Explorer
This view displays a tree of objects and subordinate objects and provides access to the following:
Objects and Their Properties
The tree of objects includes a root node named Pervasive PSQL. The root node contains objects such as clients, services (if applicable), database engines, databases, tables, views, stored procedures, user-defined functions, triggers, groups, users, and system objects (such as system tables).
Most objects in Pervasive PSQL Explorer can be 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 “” symbol, or some other similar symbol. Click the collapse icon to hide subordinate objects. (The collapse icon appears after you click an expand icon.)
If properties (configurable settings) apply to an object, you can access them by right-clicking on an object and selecting Properties. You can also click an object then press Alt+Enter to display properties. (See also Configuration Reference in Advanced Operations Guide.)
Figure 19 Example Objects Shown in Pervasive PSQL Explorer
Right-click Tasks
In addition to accessing properties, numerous other tasks can be invoked from Pervasive PSQL Explorer by right-clicking on an object. The follow table summarizes the tasks.
Open a table (performs a SELECT * from table_name query)
SQL Editor
SQL Editor allows you to run Structured Query Language (SQL) statements against a Pervasive PSQL database. See SQL Editor for a detailed discussion.
Grid
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.
Text
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.
Outline
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
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.
Preferences
You can set general preferences for your experience in PCC. You can also set preferences for the window views in PCC or for the external tools.
1
On the PCC Window menu, click Preferences. Expand the Pervasive node if it is not already expanded.
2
Click General.
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.
Deselect 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 deselected, 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.
Preferences for PCC Window Views
You can set preferences for the following PCC window views:
1
On the PCC Window menu, click Preferences. Expand the Pervasive node if it is not already expanded.
2
a.
b.
c.
d.
e.
Additional Utilities
Some utilities have not yet been tightly integrated within the PCC framework. However, they may still be started from within PCC by selecting them through the Tools menu:
Monitor (see Monitoring Database Resources in Advanced Operations Guide)
Rebuild (see Converting Data Files in Advanced Operations Guide)
ODBC Administrator—separate choices for 32-bit Administrator and 64-bit Administrator on 64-bit operating systems (see DSNs and ODBC Administrator in SQL Engine Reference). Note that Windows uses whichever ODBC Administrator is open if you try to invoke the other one. That is, if the 32-bit ODBC Administrator is open and you attempt to start the 64-bit one, Windows displays the 32-bit version (and vice versa). In other words, only one version of ODBC Administrator runs at a time. This is a limitation of Windows, not Pervasive PSQL.
*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.
External Tools
You can add your own software programs to the PCC Tools menu. This provides a convenient way to start the programs from PCC.
1
On the PCC Window menu, click Preferences. Expand the Pervasive node if it is not already expanded.
2
Click External Tools.
3
Click New.
4
Type a name for Tool Label that you want to appear in the Tools menu.
5
You can click and browse to the file location if your prefer.
6
Optionally, type any parameters for Tool Parameters that should be passed to the program when the program starts.
7
8
Click OK (or Apply then OK) to close the Preferences dialog.
1
On the PCC Window menu, click Preferences. Expand the Pervasive node if it is not already expanded.
2
Click External Tools.
3
Click the desired tool in the External Tools list.
4
a.
b.
c.