DataFlux Data Management Studio 2.6: User Guide
For production systems, it is typical to run small jobs on the DataFlux Data Management Studio host, and to run large jobs on the DataFlux Data Management Server host. When jobs are executed on the server, they need any data connections that are referenced in the jobs. It is also typical for production systems to have the server and client use the same DBMS-based repository. When the server is started, it will attempt to use the DBMS connection specified in its repository definition.
To support such production systems, you can define DSN connections on the DataFlux Data Management Server that use the same DSN name and the same connection attributes as the corresponding connections on the client. For example, suppose that a job uses an Oracle table named Countries as a data source. The next display shows this table as it might be displayed on the Data riser in DataFlux Data Management Studio.
The Countries table is visible to a job on the DataFlux Data Management Studio host because an Oracle ODBC DSN named Oracle11g was added to the Data riser. If that job was deployed to a DataFlux Data Management Server, an Oracle ODBC DSN named Oracle11g would need to be created on the Data Management Servers riser. Otherwise the job would fail.
Likewise, suppose that a DataFlux repository specified an Oracle ODBC DSN named Oracle11g as the Data storage method for the repository database, as shown in the next display.
If this repository definition was copied to a DataFlux Data Management Server, an Oracle ODBC DSN named Oracle11g must be created on the Data Management Servers riser. Otherwise the server would not start because the repository could not be accessed.
The steps for creating DSNs for the server are similar to the steps for creating them for DataFlux Data Management Studio. Some of the differences and similarities are summarized below. For more information about adding data connections for the server, especially for UNIX systems, see the "Managing Data Connections" chapter in the DataFlux Data Management
Perform the following steps to add data connections for DataFlux Data Management Servers:
Other than the fact that you are starting from the Data Management Servers riser instead of the Data riser, most steps for creating data connections on the server are similar to the steps for the corresponding client connections. See Connection Types for the Client for links to topics that describe how to add each connection type.
Click the Manage ODBC Credentials button to add or update user credentials for a registered ODBC connection for the server. Other updates for ODBC DSN's must be done from the ODBC Data Source Administrator window.
Perform the following steps to edit the properties of SAS Federation Server connections, Domain-Enabled ODBC connections, Custom connections, and SAS Data Set connections on the server.
If a DSN connection is used in a job, and no credentials have been saved to the connection, then the job will fail to run on the server. To use fix the DSN on the server, you could can do one of the following, depending on the type of connection.
If it is acceptable to save credentials for a data connection on the server, consider these connection types.
ODBC DSNs. You can specify credentials on several levels. You can save credentials in the ODBC Data Source Administrator window for this connection. You can click the Manage ODBC Credentials button (described in the previous topic) to add or update user credentials for a registered ODBC connection for the server. By default, saved credentials for the server are saved to the etc/dsn
folder in the server installation directory.
If it is acceptable to copy saved credential files from the client to the server, see Saving User Credentials for a Connection on the Client.
In a production environment, it might not be acceptable to save credentials for a data connection on the server. If so, consider these connection types.
Domain-Enabled ODBC Connections. You can create a connection on the server that references an ODBC connection and an appropriate Authentication Server domain. For more information, see Adding Domain Enabled ODBC Connections.
Connections to the Federation Server. You can save credentials in the Federation Server Connection dialog. Alternatively, you can store credentials in an Authentication Server domain and reference that domain in the dialog for this connection.
Federation Server DSNs. The credentials for these connections are managed by a Federation Server.
SAS data set connections. No user credentials are required for a connection that is created with the SAS Data Set Connection dialog. The SAS data is accessed directly on disk without mediation by a server.
In general, a 32-bit ODBC driver can access a database running in 64-bit mode, and a 64-bit ODBC driver can access a database running in 32-bit mode. Not all ODBC drivers are this versatile, however. In some cases, you might encounter the following scenario with Windows-based systems.
Suppose that DataFlux Data Management Studio, which is a 32-bit application, is running on a computer with a 64-bit version of Windows. Suppose also that a 64-bit DataFlux Data Management Server is running on the same computer. When you create an ODBC DSN connection in DataFlux Data Management Studio, you will specify a 32-bit driver. (The DataFlux Data Management Studio interface for ODBC connections always calls the 32-bit ODBC Data Source Administrator, even on a computer with a 64-bit version of Windows.) The 32-bit driver will work if you use the connection in DataFlux Data Management Studio. However, if you deploy a job that uses a 32-bit data connection to the local 64-bit DataFlux Data Management Server, then the job might fail to run on the server because of an architecture mismatch between the 32-bit connection and the 64-bit server.
The remedy is to define a 64-bit connection on the DataFlux Data Management Server that uses the same DSN name and the same connection attributes as the 32-bit connection. Then, when you execute the job on the DataFlux Data Management Server, the DSN name will reference the 64-bit connection, and the job will succeed, if the connection is to data in a database management system. The job itself does not have to be modified. For more information, see Matching Data Connections on the Client and Server.
Documentation Feedback: yourturn@sas.com
|
Doc ID: dfU_T_DataConnDMserver.html |