Note: Configuration is different for MySQL and DB2. DB2 configuration is accomplished by using the DB2/UDB configuration tool. The following describes one method of configuring the ODBC driver for MySQL. Note that the instructions may vary depending on the release installed. The steps needed for DB2 are similar. For more information refer to the documentation provided by the database vendor.
To configure ODBC
DRIVER=/opt/MySQL/mysql-connector-odbc-5.1.7-linux-glibc2.3-x86-32bit/lib/libmyodbc5.so
[Data Source Name]
DESCRIPTION={option}
DRIVER=MySQL ODBC 5.1 Driver name
SERVER=XCOM_MACHINE
PORT=3306
DATABASE=XCOM History Database Name
UID=xcomuser
PWD=mypassword
XCOMHIST or another name defined to be the data source name.
Optional; can contain whatever you like.
The name of the ODBC driver as defined in the odbcinst.ini file.
The name of the machine containing the database.
The name of the database created in Step 2, Create a Database.
The port number defined when MySQL was installed. The default port is 3306.
The name of the user that will be connecting to the database. On the machine in which the database is installed the user should be set to root. On all other machines connecting to this database the name should be something common, like XCOMUSER.
Should be set on the machine that owns the database and must match the password that was set when MySQL was installed.
Issue the following command:
-isql -v {DSN}
Where {DSN} is the datasource name in the ODBC.ini file that was added in step 3.
Example:
isql -v XCOMHIST
A connected message will be displayed if the connection is successful.
CREATE user ‘xcomhist_user’@’%’;
The % indicates that you will accept xcomhist_user from any host.
To be more restrictive, code the following (for example):
CREATE user ‘xcomhist_user’@’user01-xp.ca.com’;
GRANT {all/select,insert} on xcomhist.* to ‘xcomhist_user’@’{%/machine}’;
The standalone UI in CA XCOM Data Transport is a Java based application that uses JDBC to communicate with the database for accessing the trusted transfer tables. If you do not plan on using trusted transfers then you can skip configuring the JDBC drivers.
Example:
-Djava.ext.dirs=$XCOM_HOME/lib:/opt/DB2path/java
Example:
-Djava.ext.dirs=$XCOM_HOME/lib:/opt/mysqlpath/java
| Copyright © [set copyright date variable] CA. All rights reserved. |
|