Query tuning with connection and startup parameters
- Last Updated: April 3, 2026
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
In addition to controlling aspects of how the DataServer handles queries programmatically within ABL statements, you can control the same aspects through startup and connection parameter options.
QUERY-TUNING phrase take precedence
over startup and connection parameters. For example, if you specify "qt_debug,SQL"
at connection it will override the NO-DEBUG default.
If you additionally specify NO-DEBUG for a specific
query, the NO-DEBUG for the query will override
the connection setting, and no SQL will be written to the log file
for that query. In this example, the DataServer will write a report
that includes all the SQL it generates for the application, except
for the query with the NO-DEBUG option. See Query tuning for more information. You override query-tuning defaults with the DataServer (-Dsrv)
connection parameter when you connect to the Oracle database. The -Dsrv switch
accepts a comma separated list of options and values. To guarantee
correct parsing, there can be no spaces in the list, as shown in
the following syntax:
|
The following table describes the query-tuning options that you
can specify with the -Dsrv parameter. Unless otherwise
indicated, these options apply at compile and run time.
| Option | Description |
|---|---|
qt_bind_where
qt_no_bind_where
|
|
qt_cache_size,integer,QT_BYTE qt_cache_size,integer,QT_ROW |
|
qt_lookahead
qt_no_lookahead
|
|
Get Previous(-Dsrv srv-get-prev) |
|
| Warning suppression(-Dsrv PRGRS_WARNING_SUPPRESSION) |
|
The following example shows how to use the query-tuning options.
The qt_cache_size may enhance performance as it increases
the default size of the cache (of multiple records used by lookahead cursors)
to 32K . In addition, the following example uses a query tuning
logging switch that enables the DataServer to write an extended
report on the SQL statements it executes:
|
The following example shows how to use the PRGRS_WARNING_SUPPRESSION parameter to specify Oracle warning codes, ORA-24347 and ORA-24348, from being treated by the DataServer applications as error conditions:
|
Use startup parameters to override three other query-tuning defaults,
INDEX-HINT, JOIN-BY-SQLDB and USE_MERGE. The following table describes these
startup parameters.
| Startup Parameter | Description |
|---|---|
Index Hint(-noindexhint) |
|
Server Join(-nojoinbysqldb) |
Note: Server joins
are never performed for dynamic queries.
|
USE_MERGE Hint
(-nojoinhint) |
|