Before you start: If you are using server mode, you must start the SQL engine server before using the driver. Before starting the SQL engine server, verify that you have the correct permissions to write to the directory specified by the Schema Map (SchemaMap) option.

The following sections describe how to configure, start, and stop the SQL engine server using server mode on UNIX and Linux platforms.

Note: By default, SQL Engine Mode is set to 1 (Server) for Windows and 2 (Direct) for UNIX/Linux.

The SQL Engine runs in a java process and can be launched using a java command with the following format. See the "SQL engine server Java options" table for a description of these options.

java -Xmx<heap_size>m -cp "<jvm_classpath>" com.ddtek.jdbc.mongodb.phoenix.sql.Server 
     -port <port_number> -Dhttp.proxyHost=<proxy_host> -Dhttp.proxyPort=<proxy_port> 
     -Dhttp.proxyUser=<proxy_user> -Dhttp.proxyPassword=<proxy_password>

For example:

java -Xmx1024m -cp "/opt/Progress/DataDirect/ODBC_81_64bit/java/lib/mongodb.jar" 
     com.ddtek.jdbc.mongodb.phoenix.sql.Server -port 19967 
     -Dhttp.proxyHost=myhost@mydomain.com -Dhttp.proxyPort=12345 
     -Dhttp.proxyUser=JohnQPublic -Dhttp.proxyPassword=secret

A confirmation message is returned once the server is online.

Note: After the initial configuration, in order for changes to these connection option values to take effect, you must restart the SQL engine server.
Table 1. SQL engine server Java options
Java Option Description
Required Java Options

-cp

Specifies the CLASSPATH for the Java Virtual Machine (JVM) used by the driver. The CLASSPATH is the search string the JVM uses to locate the Java jar files the driver needs. The driver's JVM is located on the following path:

install_dir/java/lib/mongodb.jar

-port

Specifies a valid port on which the SQL engine listens for requests from the driver. We recommend specifying one of the following values:

  • 19968 (32-bit drivers)
  • 19967 (64-bit drivers)
Optional Java Options

-Xmx

Specifies the maximum memory heap size, in megabytes, for the JVM. The default size is determined by your JVM. We recommend specifying a size no smaller than 1024.

Note: Although this option is not required to start the SQL engine server, we highly recommend specifying a value.

-Dhttp.proxyHost

Specifies the host name of the proxy server. The value specified can be a host name, a fully qualified domain name, or an IPv4 or IPv6 address.

-Dhttp.proxyPort

Specifies the port number where the proxy server is listening for HTTP and/or HTTPS requests.

-Dhttp.proxyUser

Specifies the user name needed to connect to the proxy server.

-Dhttp.proxyPassword

Specifies the password needed to connect to the proxy server.