How to setup a remote ODBC connection to the OpsCenter Analytics database

  • Modified Date:
  • Article ID:000009348

Problem

Example: How to setup a remote ODBC connection to the OpsCenter Analytics database

Cause

OpsCenter uses SQL Anywhere database software from Sybase.  By default, this database is configured to disallow remote connections.

Solution

OpsCenter uses the SAP SQL Anywhere© database software to store its information. To remotely connect to OpsCenter via ODBC you will need to install and configure the proper ODBC software. The ODBC software is provided by SAP, not by VERITAS. This article provides an example of how to configure a remote Windows client with direct ODBC access to the OpsCenter server's database.

Warning: Direct access to the OpsCenter database bypasses any safety checks or constraints of the OpsCenter software. Any changes to the underlying database via direct access may cause OpsCenter to not function properly. VERITAS does not provide support for the use of the OpsCenter database via ODBC, but only through the OpsCenter product itself.

In the example below, the OpsCenter server is "win2k8-1" and the remote client is "win2k8client". Both example computers are running the Windows 2008R2 Server operating system.

I. Prepare the OpsCenter server

Configure the OpsCenter server. By default, the OpsCenter database service will only allow access from the OpsCenter server. Disable this restriction by changing the LocalOnly=YES option in the OpsCenter database server service startup.

  1. Create a backup copy of the server.conf file.
Windows:  <Install Path>\OpsCenter\server\db\conf\server.conf
Linux: /opt/SYMCOpsCenterServer/db/conf/server.conf
  1. Edit the server.conf file.

 

Change the following:

"LocalOnly=YES" option to "LocalOnly=NO"

Remove this line if it exists in the server.conf file:

ME=127.0.0.1

For example, on win23kx64-1 change:

-n OPSCENTER_WIN2K8-1 -x tcpip(LocalOnly=YES;ServerPort=13786) -gd DBA -gk DBA -gl DBA -gp 4096 -ti 0 -c 256M -ch 1024M -cl 256M -zl -os 1M -m -o "C:\Program Files\Symantec\OpsCenter\server\db\log\server.log" -m

to

-n OPSCENTER_WIN2K-1 -x tcpip(LocalOnly=NO;ServerPort=13786) -gd DBA -gk DBA -gl DBA -gp 4096 -ti 0 -c 256M -ch 1024M -cl 256M -zl -os 1M -m -o "C:\Program Files\Symantec\OpsCenter\server\db\log\server.log" -m

Note: that "OPSCENTER_WIN2K8-1" is the database server name in this example server.conf file. This will be used later below in the remote client's configuration, but in lower case.

  1. Restart the OpsCenter services using the "opsadmin" commands:

Windows: <install path>\OpsCenter\server\bin\opsadmin stop
Linux: /opt/SYMCOpsCenterServer/bin/opsadmin.sh stop

  1. Use opsadmin again but with the "start" option.


II. Download the SAP SQL Anywhere Database Client

Download the appropriate ODBC software for your operating system. At the time of this writing the software is located at http://scn.sap.com/docs/DOC-35857, in the article titled SAP SQL "Anywhere Database Client Download". This software is provided by SAP, not VERITAS. Contact SAP for more information if you need assistance.

  1. Download the appropriate SAP SQL Anywhere 16.0  file to a temporary location on the client, win2k8client, such as C:\temp.


III. Configure the example remote client

  1. Install the downloaded software using all default selections. This will install Sybase Central 16.0.x, Sybase Central, ODBC Data Source Administrator, Mobilink Monitor, and Interactive Console. Contact SAP for any additional information or assistance.
  2. From the Windows Start menu choose Programs > Administrative Tools > Data Source (ODBC) and in the User DSN tab click "Add". Choose "SQL Anywhere 16" and click "Finish".
  3. This brings up a dialog box with the tabs ODBC, Login, Network, Advanced. Enter the following:

Network tab
Verify that Packet encryption is set to NONE

Login tab
Authentication: Database
User ID: DBA
Password: SQL
Action: Connect to a running database on another computer
Host: win2k8-1
Port: 13786
Server name: opscenter_win2k8-1
Database name: vxpmdb

Note: As described earlier, the “Server name” field uses a lower case version of the database server name from server.conf on the OpsCenter server.

ODBC tab
Data source name: vxpmdb (or whatever you would like)

  1. Click on Test Connection in the ODBC tab. If it fails then recheck your entries, verify network name resolution, network connectivity, and firewall settings. Once passed, click OK, and then OK again.


IV. Example Usage

  1. Start Sybase Central on the remote client
  2. From the menu choose Connections > connect with SQL Anywhere 16.
  3. Fill out the dialog box:

Authentication: Database
User ID: DBA
Password: <db password>
Action: Connect with an ODBC Data Source
ODBC Data Source Name: vxpmdb (or whatever name you had created above)

  1. Click the Connect button.

Terms of use for this information are found in Legal Notices.

Search

Survey

Did this article answer your question or resolve your issue?

No
Yes

Did this article save you the trouble of contacting technical support?

No
Yes

How can we make this article more helpful?

Email Address (Optional)