Consultor Eletrônico



Kbase P3488: Client Connection (CC) and a Client Session (CS) parameters
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   13/12/2004
Status: Verified

GOAL:

Difference between a Client Connection (CC) and a Client Session (CS) startup parameters?

GOAL:

What are Client Connection (CC) and a Client Session (CS) parameters?

GOAL:

Which startup parameters can be defined in the parameter file .pf?

FIX:

The Progress Documentation, including the Startup Command and Parameter Reference and Pocket Progress, give information about startup parameters that can be used by Progress clients (CC, CS) and server processes (DBS, OID, DS).

When defining parameter files for Progress clients, it is important to understand the differences in terms of what is preferable to be included in the command line and what would be best recorded in the parameter file. A common misunderstanding is the uncertainty around which parameters will be applied to which database in the startup procedure from each client session.

Startup commands fall into two basic and SEPERATE categories: Client Session (CS) and Client Connection (CC). Parameter files (.pf) can be used to define these, in order to avoid typing in the same commands to start Progress every time. There are client session parameters defined as Progress defaults that every Progress executable uses in DLC\startup.pf. Progress would not to work properly without these. CS parameter definitions can be added to/modified here, if you choose to use .pf's.

1) Client Session (CS) parameters

Are used whenever any CLIENT session is started for a 4GL client, an ESQL-89 client, or an AppServer (as client). These are used to startup and shutdown the client session which will in turn connect to the database (with the Client Connection parameters). They cannot be dynamically re-configured, new/different CS parameters will initiate at the next start of the session. Client Session parameters can be queried at runtime, using the SESSION system handle.

So, for example, the -T parameter (Temporary Directory) is a CS parameter. It needs to be defined so that it can initialise every time a client session is started. In Windows, if the working directory is shared between users, this could result in a conflict of temporary files. The -T parameter can be accessed during runtime by using the SESSION:TEMP-DIR attribute, which is read-only.

2) Client Connection (CC) parameters

Are used to connect clients to a SPECIFIC database in a particular way via a Server (Progress Database Server, AdminServer, AppServer, or a non-Progress DataServer.) They are used to startup and shutdown database processes such as database servers, database brokers and background writers.

So, when you use the -db parameter, the connection parameters for EACH database, need to be specified after the name of the database to which they apply. All other parameters can be specified elsewhere on the command line (or in a .pf). Client Connection parameters can be queried through the use of promon or Virtual System Tables.